prisma/prisma

Add model inheritance

listepo opened this issue · 3 comments

It would be nice to be able to inherit models
for example
client side:

model BaseProfile {
  id     Int    @id @default(autoincrement())
  bio    String
}

server side:

model Profile extends BaseProfile  {
  user   User   @relation(fields: [userId], references: [id])
  userId Int    @unique
}

Covered by #12604?

please pay more attention to this task