Ted Joe
10/26/2022, 2:37 PMUser {
id: String
employeeProfile: Profile[]
clientProfile Profile[] @relation("client")
}
Profile {
id: String
client User? @relation("clientProfile", fields: [clientProfileId], references: [id])
clientProfileId String?
employees User[]
}
The place where I'm having trouble is the employeeProfile. How can I do a many to man using the same tables?Jared Fraser
10/27/2022, 1:01 AM