chore: migration
This commit is contained in:
parent
18fb64b9cc
commit
8e9ef01ae3
1 changed files with 14 additions and 0 deletions
|
|
@ -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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue