sea-orm-cli Support a flag for per-field model attributes #1799
andres-movl
started this conversation in
Ideas
Replies: 1 comment
-
Any progress? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Started as a discussion on Discord
Motivation
We are using ActixAdmin which also uses SeaORM. However ActixAdmin requires attributes on the model structs on a field level to specify which fields to show in the admin. The issue is that if we have any model changes, sea-orm-cli overrides everything so we need a new flag similar to
--model-extra-derives
but which allows the user to add attributes on a per field granularity.Proposed Solutions
A solution would be to add a new flag to support "model-field-extra-derives".
Current Workarounds
None, just re-adding field level attributes manually every time there's a change to the models.
Beta Was this translation helpful? Give feedback.
All reactions