-
Let's say I have a constraint on a model like this:
This generates a long property name and long type name like so Something I noticed while investigating this that also is somewhat incompatible with my use case: On the generated type mentioned above, all fields are required. In my case, exactly two of them will be provided. I can hope that just using empty strings for the empty ones will work, but I'm not so sure that will work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found an answer here The way to do this is to add a |
Beta Was this translation helpful? Give feedback.
I found an answer here
The way to do this is to add a
name
property to the unique constraint