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
totalDiscount Float
vat Int
vatExcluded Int
vat Float
vatExcluded Float
finalPrice Float
createdAt DateTime @default(now())
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)
productId String
vat Int
amount Int
discount Float
pricePerUnit Float