feat: add creatorId to report database schema

should've been part of commit 36f0ff83
This commit is contained in:
trafficlunar 2025-05-23 16:14:17 +01:00
parent 0ace0f1703
commit 745a2e0c54
2 changed files with 16 additions and 8 deletions

View file

@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "reports" ADD COLUMN "creatorId" INTEGER;
-- AddForeignKey
ALTER TABLE "reports" ADD CONSTRAINT "reports_creatorId_fkey" FOREIGN KEY ("creatorId") REFERENCES "users"("id") ON DELETE SET NULL ON UPDATE CASCADE;