Possibility of enum for DeriveEntityModel
?
#1850
rakshith-ravi
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think one of the best features of rust is the ability to store data in an enum. Is it possible for us to use that as a model?
Example:
This way, the enum can be flattened into the model where there are 3 nulable columns and depending on what is null and not null, the corresponding value will be returned. Perhaps we can also add
untagged
,tag
and other options to the enum, making querying easier?Would love to hear your thoughts
Beta Was this translation helpful? Give feedback.
All reactions