As User - I want to set custom attributes on the entity field level #5990
Labels
epic: DB schema
impact: Value Proposition
initiatives that focus on improving the value that users are getting from the service
Milestone
As a user, I want to set custom attributes on the entity field level in Amplication, so that I can tailor the fields of my entities to my specific needs and workflows.
Example:
![image](https://private-user-images.githubusercontent.com/1912933/238183115-1a8159a8-1319-43eb-a164-168d36010582.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2MzgyNjEsIm5iZiI6MTcxOTYzNzk2MSwicGF0aCI6Ii8xOTEyOTMzLzIzODE4MzExNS0xYTgxNTlhOC0xMzE5LTQzZWItYTE2NC0xNjhkMzYwMTA1ODIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjlUMDUxMjQxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Y2ZhYTExMWJkZTc4YjJiYTFmNjQwZDcyNmFkNWI2M2MzYWI0ODQ2MDgyYjBhZTY5N2NmMjJmODI4ZWUyZjYzMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.pQgTIdtFDtZvWgFS_6Hguzp_Fp56LenbNnl0JrDHSA0)
Prisma Attributes and Functions:
https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#attributes
https://www.prisma.io/docs/concepts/components/prisma-schema/data-model#defining-attributes
https://www.prisma.io/docs/concepts/components/prisma-schema/data-model#using-functions
Requirements:
Custom Attributes on Field Level: Users should be able to set custom attributes for individual fields within an entity. These attributes could include details like format, default values, or specific validation rules. The system should validate these field-level custom attributes to ensure data integrity.
UI for Managing Field-Level Custom Attributes: A user-friendly UI should be provided for managing these field-level custom attributes. The UI should enable users to add, remove, and modify custom attributes at the field level. It should provide feedback on the validity of the attributes and any constraints that must be met. The UI should also display a summary of the custom attributes set for each field within an entity.
Persistence of Field-Level Custom Attributes: All field-level custom attributes should be saved and persisted across sessions. The system should maintain the association between the custom attributes and their respective fields, even when these fields are modified within an entity.
Documentation and Support for Field-Level Custom Attributes: Clear and concise documentation should be provided to guide users on how to use this feature. The documentation should include details on the types of custom attributes that can be set at the field level, how to manage them via the UI, and any constraints or rules related to the custom attributes. Additionally, there should be in-app help or tooltips to guide users while using this feature.
The text was updated successfully, but these errors were encountered: