chore: update field quotation

This commit is contained in:
Methapon Metanipat 2024-10-04 09:22:52 +07:00
parent c27620c2b5
commit 59bb873b1c
3 changed files with 20 additions and 4 deletions

View file

@ -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';