prisma/migrations/20210208132952_add_account_rel_on_credit_cards/migration.sql
/*
Warnings:
- Added the required column `accountId` to the `CreditCard` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "CreditCard" ADD COLUMN "accountId" TEXT NOT NULL;
-- AddForeignKey
ALTER TABLE "CreditCard" ADD FOREIGN KEY ("accountId") REFERENCES "Account"("id") ON DELETE CASCADE ON UPDATE CASCADE;