mirror of
https://github.com/Drop-OSS/drop
synced 2026-08-27 14:23:05 -04:00
feat: add acl to notifications
not sure if i got all the acls of the different notifications down rn, but it seems to be about right
This commit is contained in:
parent
a94ede3861
commit
307552d9f8
8 changed files with 45 additions and 2 deletions
|
|
@ -0,0 +1,2 @@
|
|||
-- AlterTable
|
||||
ALTER TABLE "Notification" ADD COLUMN "requiredPerms" TEXT[] DEFAULT ARRAY[]::TEXT[];
|
||||
|
|
@ -34,6 +34,9 @@ model Notification {
|
|||
description String
|
||||
actions String[]
|
||||
|
||||
// ACL items
|
||||
requiredPerms String[] @default([])
|
||||
|
||||
read Boolean @default(false)
|
||||
|
||||
@@unique([userId, nonce])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue