diff --git a/prisma/migrations/20250305041645_add_noti_perm_related_field/migration.sql b/prisma/migrations/20250305041645_add_noti_perm_related_field/migration.sql new file mode 100644 index 0000000..95388f6 --- /dev/null +++ b/prisma/migrations/20250305041645_add_noti_perm_related_field/migration.sql @@ -0,0 +1,5 @@ +-- AlterTable +ALTER TABLE "Notification" ADD COLUMN "registeredBranchId" TEXT; + +-- AddForeignKey +ALTER TABLE "Notification" ADD CONSTRAINT "Notification_registeredBranchId_fkey" FOREIGN KEY ("registeredBranchId") REFERENCES "Branch"("id") ON DELETE SET NULL ON UPDATE CASCADE;