feat: add delete notification
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 9s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 9s
This commit is contained in:
parent
6265ac8a65
commit
9bf534adce
2 changed files with 35 additions and 5 deletions
|
|
@ -29,7 +29,8 @@ model Notification {
|
|||
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
readByUser User[]
|
||||
readByUser User[] @relation(name: "NotificationRead")
|
||||
deleteByUser User[] @relation(name: "NotificationDelete")
|
||||
}
|
||||
|
||||
model NotificationGroup {
|
||||
|
|
@ -484,7 +485,8 @@ model User {
|
|||
invoiceCreated Invoice[]
|
||||
paymentCreated Payment[]
|
||||
notificationReceive Notification[] @relation("NotificationReceiver")
|
||||
notificationRead Notification[]
|
||||
notificationRead Notification[] @relation("NotificationRead")
|
||||
notificationDelete Notification[] @relation("NotificationDelete")
|
||||
taskOrderCreated TaskOrder[] @relation("TaskOrderCreatedByUser")
|
||||
creditNoteCreated CreditNote[] @relation("CreditNoteCreatedByUser")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue