diff --git a/prisma/migrations/20241004062931_add_field/migration.sql b/prisma/migrations/20241004062931_add_field/migration.sql new file mode 100644 index 0000000..ce0c1c7 --- /dev/null +++ b/prisma/migrations/20241004062931_add_field/migration.sql @@ -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; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index ebb5872..f9a58a3 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -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())