jws-backend/prisma/migrations/20250305041645_add_noti_perm_related_field/migration.sql
Methapon2001 c21ef1448b
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 6s
chore: migration
2025-03-05 11:17:27 +07:00

5 lines
281 B
SQL

-- 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;