Yaakov
02/08/2022, 8:20 PMmodel Person {
id Int @id @default(autoincrement())
doctor Doctor?
lawyer Lawyer?
}
model Doctor {
id Int @id
person Person @relation(fields: [id], references: [id])
}
model Lawyer {
id Int @id
person Person @relation(fields: [id], references: [id])
}
Austin Zentz
02/08/2022, 8:24 PMAustin Zentz
02/08/2022, 8:26 PMYaakov
02/08/2022, 9:23 PM