refactor: structure

This commit is contained in:
Methapon2001 2024-07-19 17:59:44 +07:00
parent 0319990232
commit d2e7a89211

View file

@ -811,8 +811,9 @@ model Quotation {
totalPrice Float totalPrice Float
totalDiscount Float totalDiscount Float
vat Int vat Float
vatExcluded Int vatExcluded Float
finalPrice Float
createdAt DateTime @default(now()) createdAt DateTime @default(now())
createdBy User? @relation(name: "QuotationCreatedByUser", fields: [createdByUserId], references: [id], onDelete: SetNull) createdBy User? @relation(name: "QuotationCreatedByUser", fields: [createdByUserId], references: [id], onDelete: SetNull)
@ -877,6 +878,7 @@ model QuotationServiceWorkProduct {
product Product @relation(fields: [productId], references: [id], onDelete: Cascade) product Product @relation(fields: [productId], references: [id], onDelete: Cascade)
productId String productId String
vat Int
amount Int amount Int
discount Float discount Float
pricePerUnit Float pricePerUnit Float