happy-server/prisma/migrations/20250719061508_add_response_account/migration.sql
2025-07-18 23:33:44 -07:00

6 lines
300 B
SQL

-- AlterTable
ALTER TABLE "TerminalAuthRequest" ADD COLUMN "responseAccountId" TEXT;
-- AddForeignKey
ALTER TABLE "TerminalAuthRequest" ADD CONSTRAINT "TerminalAuthRequest_responseAccountId_fkey" FOREIGN KEY ("responseAccountId") REFERENCES "Account"("id") ON DELETE SET NULL ON UPDATE CASCADE;