feat: add field

This commit is contained in:
Methapon Metanipat 2024-10-04 13:29:38 +07:00
parent 3b1e84b6d8
commit 66f3188f42
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,6 @@
-- AlterEnum
ALTER TYPE "QuotationStatus" ADD VALUE 'ProcessComplete';
-- AlterTable
ALTER TABLE "Quotation" ADD COLUMN "agentPrice" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "discount" DOUBLE PRECISION NOT NULL DEFAULT 0;

View file

@ -1013,6 +1013,7 @@ model WorkProduct {
enum QuotationStatus {
PaymentWait
PaymentSuccess
ProcessComplete
}
enum PayCondition {
@ -1056,9 +1057,12 @@ model Quotation {
productServiceList QuotationProductServiceList[]
agentPrice Boolean @default(false)
totalPrice Float
totalDiscount Float
vat Float
discount Float @default(0)
finalPrice Float
createdAt DateTime @default(now())