Files
Vault/prisma/migrations/20251127094406_add_video_uploader/migration.sql
T
twotalesanimation 81ad7e4ea9 Initial commit
2026-06-11 10:46:09 +02:00

9 lines
292 B
SQL

-- AlterTable
ALTER TABLE "Video" ADD COLUMN "userId" TEXT;
-- CreateIndex
CREATE INDEX "Video_userId_idx" ON "Video"("userId");
-- AddForeignKey
ALTER TABLE "Video" ADD CONSTRAINT "Video_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;