feat: add permission query to noti

This commit is contained in:
Methapon2001 2025-03-05 11:16:18 +07:00
parent 53c0c0fce9
commit f0db968b20
2 changed files with 16 additions and 4 deletions

View file

@ -21,6 +21,9 @@ model Notification {
groupReceiver NotificationGroup[]
registeredBranchId String?
registeredBranch Branch? @relation(fields: [registeredBranchId], references: [id])
receiver User? @relation(name: "NotificationReceiver", fields: [receiverId], references: [id], onDelete: Cascade)
receiverId String?
@ -313,6 +316,7 @@ model Branch {
quotation Quotation[]
workflowTemplate WorkflowTemplate[]
taskOrder TaskOrder[]
notification Notification[]
}
model BranchBank {