reference support
Deploy / deploy (push) Successful in 3m38s

This commit is contained in:
twotalesanimation
2026-07-12 10:27:46 +02:00
parent 42e614c592
commit c09d06b6c7
6 changed files with 413 additions and 3 deletions
@@ -0,0 +1,17 @@
-- CreateTable
CREATE TABLE "shot_references" (
"id" TEXT NOT NULL,
"shotId" TEXT NOT NULL,
"label" TEXT,
"fileUrl" TEXT NOT NULL,
"fileKey" TEXT NOT NULL DEFAULT '',
"fileName" TEXT NOT NULL DEFAULT '',
"fileSize" BIGINT,
"sortOrder" INTEGER NOT NULL DEFAULT 0,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "shot_references_pkey" PRIMARY KEY ("id")
);
-- AddForeignKey
ALTER TABLE "shot_references" ADD CONSTRAINT "shot_references_shotId_fkey" FOREIGN KEY ("shotId") REFERENCES "shots"("id") ON DELETE CASCADE ON UPDATE CASCADE;