feat: add permission query to noti
This commit is contained in:
parent
53c0c0fce9
commit
f0db968b20
2 changed files with 16 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue