Prisma, Authorization, Typescript, Web Development.
String reputation Int @default(1) memberships OrgMember[] ownedResources Resource[] // can be created by anyone, even not logged in @@allow('create', true) // can be read by users sharing any org @@allow('read', memberships?[org.members?[user == auth()]]) // full access by oneself @@allow('all',