refactor: add code gen for receipt and invoice
This commit is contained in:
parent
daebea490f
commit
dddb434914
4 changed files with 39 additions and 1 deletions
|
|
@ -1292,6 +1292,8 @@ model QuotationProductServiceWorker {
|
|||
model Invoice {
|
||||
id String @id @default(cuid())
|
||||
|
||||
code String
|
||||
|
||||
quotation Quotation @relation(fields: [quotationId], references: [id], onDelete: Cascade)
|
||||
quotationId String
|
||||
|
||||
|
|
@ -1316,6 +1318,8 @@ enum PaymentStatus {
|
|||
model Payment {
|
||||
id String @id @default(cuid())
|
||||
|
||||
code String?
|
||||
|
||||
invoice Invoice @relation(fields: [invoiceId], references: [id], onDelete: Cascade)
|
||||
invoiceId String @unique
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue