chore: update field quotation
This commit is contained in:
parent
c27620c2b5
commit
59bb873b1c
3 changed files with 20 additions and 4 deletions
|
|
@ -0,0 +1,12 @@
|
||||||
|
/*
|
||||||
|
Warnings:
|
||||||
|
|
||||||
|
- You are about to drop the column `workerCount` on the `Quotation` table. All the data in the column will be lost.
|
||||||
|
|
||||||
|
*/
|
||||||
|
-- CreateEnum
|
||||||
|
CREATE TYPE "QuotationStatus" AS ENUM ('PaymentWait', 'PaymentSuccess');
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "Quotation" DROP COLUMN "workerCount",
|
||||||
|
ADD COLUMN "quotationStatus" "QuotationStatus" NOT NULL DEFAULT 'PaymentWait';
|
||||||
|
|
@ -1010,6 +1010,11 @@ model WorkProduct {
|
||||||
@@id([workId, productId])
|
@@id([workId, productId])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum QuotationStatus {
|
||||||
|
PaymentWait
|
||||||
|
PaymentSuccess
|
||||||
|
}
|
||||||
|
|
||||||
enum PayCondition {
|
enum PayCondition {
|
||||||
Full
|
Full
|
||||||
Split
|
Split
|
||||||
|
|
@ -1026,6 +1031,8 @@ model Quotation {
|
||||||
status Status @default(CREATED)
|
status Status @default(CREATED)
|
||||||
statusOrder Int @default(0)
|
statusOrder Int @default(0)
|
||||||
|
|
||||||
|
quotationStatus QuotationStatus @default(PaymentWait)
|
||||||
|
|
||||||
code String
|
code String
|
||||||
|
|
||||||
actorName String
|
actorName String
|
||||||
|
|
@ -1043,8 +1050,7 @@ model Quotation {
|
||||||
|
|
||||||
payBillDate DateTime? @db.Date
|
payBillDate DateTime? @db.Date
|
||||||
|
|
||||||
workerCount Int
|
worker QuotationWorker[]
|
||||||
worker QuotationWorker[]
|
|
||||||
|
|
||||||
urgent Boolean @default(false)
|
urgent Boolean @default(false)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,6 @@ type QuotationCreate = {
|
||||||
|
|
||||||
payBillDate?: Date;
|
payBillDate?: Date;
|
||||||
|
|
||||||
workerCount: number;
|
|
||||||
// EmployeeId or Create new employee
|
// EmployeeId or Create new employee
|
||||||
worker: (
|
worker: (
|
||||||
| string
|
| string
|
||||||
|
|
@ -98,7 +97,6 @@ type QuotationUpdate = {
|
||||||
|
|
||||||
payBillDate?: Date;
|
payBillDate?: Date;
|
||||||
|
|
||||||
workerCount?: number;
|
|
||||||
// EmployeeId or Create new employee
|
// EmployeeId or Create new employee
|
||||||
worker?: (
|
worker?: (
|
||||||
| string
|
| string
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue