feat: add field
This commit is contained in:
parent
3b1e84b6d8
commit
66f3188f42
2 changed files with 10 additions and 0 deletions
6
prisma/migrations/20241004062931_add_field/migration.sql
Normal file
6
prisma/migrations/20241004062931_add_field/migration.sql
Normal 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;
|
||||||
|
|
@ -1013,6 +1013,7 @@ model WorkProduct {
|
||||||
enum QuotationStatus {
|
enum QuotationStatus {
|
||||||
PaymentWait
|
PaymentWait
|
||||||
PaymentSuccess
|
PaymentSuccess
|
||||||
|
ProcessComplete
|
||||||
}
|
}
|
||||||
|
|
||||||
enum PayCondition {
|
enum PayCondition {
|
||||||
|
|
@ -1056,9 +1057,12 @@ model Quotation {
|
||||||
|
|
||||||
productServiceList QuotationProductServiceList[]
|
productServiceList QuotationProductServiceList[]
|
||||||
|
|
||||||
|
agentPrice Boolean @default(false)
|
||||||
|
|
||||||
totalPrice Float
|
totalPrice Float
|
||||||
totalDiscount Float
|
totalDiscount Float
|
||||||
vat Float
|
vat Float
|
||||||
|
discount Float @default(0)
|
||||||
finalPrice Float
|
finalPrice Float
|
||||||
|
|
||||||
createdAt DateTime @default(now())
|
createdAt DateTime @default(now())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue