You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
modelUser {idInt@id@default(autoincrement())// posts Post[]. no need to specify it in Zmodel, ZenStack will generate it in the schema.prisma file.}modelPost {idInt@id@default(autoincrement())authorUser@relation(fields: [authorId], references: [id])authorIdInt}
Need naming convention rule to generate the inversed relation. Also, need a way to distinguish between one-to-one and one-to-many.
Support the below schema:
Need naming convention rule to generate the inversed relation. Also, need a way to distinguish between one-to-one and one-to-many.
Take a reference of how EF handles it:
https://learn.microsoft.com/en-us/ef/core/modeling/relationships/one-to-one#one-to-one-without-navigation-to-dependent
The text was updated successfully, but these errors were encountered: