From d2e7a89211f94dafab5dd9a4d828bd48c750d40a Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Fri, 19 Jul 2024 17:59:44 +0700 Subject: [PATCH] refactor: structure --- prisma/schema.prisma | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 1c4aec5..0fa9294 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -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