Schema in Prisma file
here described the relation between booking model, webUser and appUser
model Booking {
id String @id @default(auto()) @map("_id") @db.ObjectId
venueId String? @db.ObjectId // relation scalar field (used in the `@relation` attribute above
phone String
eventId String? @db.ObjectId
webUser webUser[] @relation(fields: [webUserId], references: [id])
webUserId String[] @db.ObjectId
…
Top comments (1)
Looks like github issue