Jack Wright
06/13/2022, 9:38 PMmodel User {
id Int @id @default(autoincrement())
firstname String
lastname String
username String @unique
email String @unique
password String
tel String?
country String?
bio String?
mealIds Meal[]
}
model Meal {
id Int @id @default(autoincrement())
name String @unique
about String
Owner User @relation(fields: [ownerId, likedUserIds], references: id) <--- Prisma does not like this
ownerId Int
likedUserIds Int[]
}
Nurul
06/14/2022, 7:46 AMJack Wright
06/15/2022, 7:53 PM