refactor: add credit note status to table
This commit is contained in:
parent
8533c49a27
commit
4af2a2c174
1 changed files with 7 additions and 0 deletions
|
|
@ -1574,9 +1574,16 @@ model UserTask {
|
||||||
userId String
|
userId String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum CreditNoteStatus {
|
||||||
|
Pending
|
||||||
|
Success
|
||||||
|
}
|
||||||
|
|
||||||
model CreditNote {
|
model CreditNote {
|
||||||
id String @id @default(cuid())
|
id String @id @default(cuid())
|
||||||
|
|
||||||
|
creditNoteStatus CreditNoteStatus @default(Pending)
|
||||||
|
|
||||||
quotation Quotation @relation(fields: [quotationId], references: [id], onDelete: Cascade)
|
quotation Quotation @relation(fields: [quotationId], references: [id], onDelete: Cascade)
|
||||||
quotationId String
|
quotationId String
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue