Prisma, Authorization, Typescript, Web Development.
// resource owner has full control over its access list @@allow('all', resource.owner == auth()) } model Resource { id Int @id @default(autoincrement()) name String owner User @relation(fields: [ownerId], references: [id]) ownerId Int access Access[] // owner has full control @@allow('all', owner