jws-backend/prisma/migrations/20241107064504_add_quotation_status/migration.sql
Methapon Metanipat 8e9ef01ae3 chore: migration
2024-11-07 13:45:11 +07:00

14 lines
432 B
SQL

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