Prisma, Authorization, Typescript, Web Development.
auth()]) // org admin can update and delete @@allow('update,delete', members?[user == auth() && role == 'ADMIN']) } model OrgMember { id Int @id @default(autoincrement()) org Org @relation(fields: [orgId], references: [id]) orgId Int user User @relation(fields: [userId], references: [id]) userId