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 M1 {
m2_id String @id
m2 M2 @relation(fields: [m2_id], references: [id])
}
model M2 {
id String @id
m1 M1?
}
errors with
Validation errors:
line 68: Value is not assignable to parameter []
line 82: Field "m2_id" is part of a one-to-one relation and must be marked as @unique or be part of a model-level @@unique attribute []
Environment (please complete the following information):
Description and expected behavior
errors with
Environment (please complete the following information):
1.0.0-alpha.113
4.11.0