jws-backend/prisma/migrations/20250305041645_add_noti_perm_related_field/migration.sql

6 lines
281 B
MySQL
Raw Normal View History

2025-03-05 11:16:54 +07:00
-- 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;