feat: add metadata to credit note
This commit is contained in:
parent
2654633f9c
commit
8c65ad4eea
1 changed files with 5 additions and 0 deletions
|
|
@ -482,6 +482,7 @@ model User {
|
||||||
notificationReceive Notification[] @relation("NotificationReceiver")
|
notificationReceive Notification[] @relation("NotificationReceiver")
|
||||||
notificationRead Notification[]
|
notificationRead Notification[]
|
||||||
taskOrderCreated TaskOrder[] @relation("TaskOrderCreatedByUser")
|
taskOrderCreated TaskOrder[] @relation("TaskOrderCreatedByUser")
|
||||||
|
creditNoteCreated CreditNote[] @relation("CreditNoteCreatedByUser")
|
||||||
|
|
||||||
requestWorkStepStatus RequestWorkStepStatus[]
|
requestWorkStepStatus RequestWorkStepStatus[]
|
||||||
userTask UserTask[]
|
userTask UserTask[]
|
||||||
|
|
@ -1593,6 +1594,10 @@ model CreditNote {
|
||||||
|
|
||||||
// NOTE: only status cancel
|
// NOTE: only status cancel
|
||||||
requestWork RequestWork[]
|
requestWork RequestWork[]
|
||||||
|
|
||||||
|
createdAt DateTime @default(now())
|
||||||
|
createdBy User? @relation(name: "CreditNoteCreatedByUser", fields: [createdByUserId], references: [id])
|
||||||
|
createdByUserId String?
|
||||||
}
|
}
|
||||||
|
|
||||||
model DebitNote {
|
model DebitNote {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue