diff --git a/src/database/prisma/schema.prisma b/src/database/prisma/schema.prisma index f083e6f8..818ac448 100644 --- a/src/database/prisma/schema.prisma +++ b/src/database/prisma/schema.prisma @@ -461,6 +461,7 @@ model ExpoToken { /// @@allow('create', has(auth().policies, 'governing_document:write')) /// @@allow('read', has(auth().policies, 'governing_document:read')) +/// @@allow('delete', has(auth().policies, 'governing_document:write')) /// @@deny('read', deletedAt != null) /// @@allow('update', has(auth().policies, 'governing_document:write')) /// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments diff --git a/src/database/schema.zmodel b/src/database/schema.zmodel index acfdf8bc..629370de 100644 --- a/src/database/schema.zmodel +++ b/src/database/schema.zmodel @@ -464,6 +464,7 @@ model Document { @@allow("create", has(auth().policies, "governing_document:write")) @@allow("read", has(auth().policies, "governing_document:read")) + @@allow("delete", has(auth().policies, "governing_document:write")) @@deny("read", deletedAt != null) @@allow("update", has(auth().policies, "governing_document:write")) @@map("documents")