Vignesh T.V.
03/02/2022, 5:00 PM@@unique([field1, field2], name: "key")
Now, is it possible to relate to key
from other models like @relation(fields: [field3], references: [key])
Currently it says that I can only map to fields that exist if I do thisjanpio
@@unique
only constructs a unique constraint.
The @relations
needs to reference a field or combination of fields though. The key
is not a real thing you can refer to here.Vignesh T.V.
03/02/2022, 5:19 PMjanpio