chore: migration

This commit is contained in:
Methapon Metanipat 2024-11-07 13:45:11 +07:00
parent 18fb64b9cc
commit 8e9ef01ae3

View file

@ -0,0 +1,14 @@
-- AlterEnum
ALTER TYPE "QuotationStatus" ADD VALUE 'Expired';
-- CreateTable
CREATE TABLE "ProductDocument" (
"id" TEXT NOT NULL,
"name" TEXT NOT NULL,
"productId" TEXT,
CONSTRAINT "ProductDocument_pkey" PRIMARY KEY ("id")
);
-- AddForeignKey
ALTER TABLE "ProductDocument" ADD CONSTRAINT "ProductDocument_productId_fkey" FOREIGN KEY ("productId") REFERENCES "Product"("id") ON DELETE SET NULL ON UPDATE CASCADE;