feat: added new property to existing shortcode model in prisma schema

This commit is contained in:
Balu Babu
2023-10-25 19:38:06 +05:30
parent d1c9c3583f
commit 28a88759c6
3 changed files with 19 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "Shortcode" ADD COLUMN "properties" JSONB;
-- AddForeignKey
ALTER TABLE "Shortcode" ADD CONSTRAINT "Shortcode_creatorUid_fkey" FOREIGN KEY ("creatorUid") REFERENCES "User"("uid") ON DELETE SET NULL ON UPDATE CASCADE;