-- DropForeignKey
ALTER TABLE "provider_base_report" DROP CONSTRAINT "provider_base_report_totalFinanceReportId_fkey";

-- DropForeignKey
ALTER TABLE "user_account_spend_report" DROP CONSTRAINT "user_account_spend_report_userFinanceReportId_fkey";

-- DropForeignKey
ALTER TABLE "user_finance_report" DROP CONSTRAINT "user_finance_report_totalFinanceReportId_fkey";

-- AddForeignKey
ALTER TABLE "provider_base_report" ADD CONSTRAINT "provider_base_report_totalFinanceReportId_fkey" FOREIGN KEY ("totalFinanceReportId") REFERENCES "total_finance_report"("id") ON DELETE CASCADE ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "user_account_spend_report" ADD CONSTRAINT "user_account_spend_report_userFinanceReportId_fkey" FOREIGN KEY ("userFinanceReportId") REFERENCES "user_finance_report"("id") ON DELETE CASCADE ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "user_finance_report" ADD CONSTRAINT "user_finance_report_totalFinanceReportId_fkey" FOREIGN KEY ("totalFinanceReportId") REFERENCES "total_finance_report"("id") ON DELETE CASCADE ON UPDATE CASCADE;
