Fullstack TypeScript toolkit that enhances Prisma ORM with flexible Authorization layer for RBAC/ABAC/PBAC/ReBAC, offering auto-generated type-safe APIs and frontend hooks.
model House {
id Int @id @default(autoincrement())
doorTypeId Int
door Door @relation(fields: [doorTypeId], references: [id])
type String
@@delegate(type)
}
model PrivateHouse extends House {
card Int
}
model Skyscraper extends House {
ticket Int
}
model Door {
id Int @id @default(autoincrement())
color String
houses House[]
type String
@@delegate(type)
}
model IronDoor extends Door {
strength Int
}
model WoodenDoor extends Door {
texture String
}
as you can see it does not include the irondoor attributes, i would suggest to include it, or at least change the syntax of findunique to be the following to include it:
Having the following models:
if I do the following query:
The output will be:
as you can see it does not include the irondoor attributes, i would suggest to include it, or at least change the syntax of findunique to be the following to include it:
Versions: