Paul Obayuwana
07/26/2022, 2:36 PMmembers and manager in model Community both refer to User. Please provide different relation names for them by adding `@relation(<name>).
How do I go about this? Am new to prisma. I haven't understood the docs fullyLloyd Richards
07/26/2022, 2:41 PMmodel Community {
id String @id @default(cuid())
commName String?
commType String?
commAbout String?
members User[] @relation(name: "CommunityMembers")
manager User @relation(name: "CommunityManager",fields: [managerId], references: [id])
managerId String @unique
}
and then add the same name in your User model for the relationship to CommunityPaul Obayuwana
07/26/2022, 3:19 PMNurul
07/27/2022, 7:19 AM