Firat Özcan
12/19/2021, 4:10 PMUserMeta
table and I cannot use @relation because Prisma then tells me, that the relation already exists and I only have to provide it in one of the tablesMaciek K
12/19/2021, 8:42 PMmodel User {
id Int @id @default(autoincrement())
email String @unique
meta UserMeta?
@@map("user")
}
model UserMeta {
id Int @id @default(autoincrement())
userId Int @unique
user User @relation(fields: [userId], references: [id])
@@map("user_meta")
}