-- Fix Monthly ROI cascade behavior
ALTER TABLE "monthly_user_roi" DROP CONSTRAINT IF EXISTS "monthly_user_roi_userId_fkey";
ALTER TABLE "monthly_user_roi" ADD CONSTRAINT "monthly_user_roi_userId_fkey"
    FOREIGN KEY ("userId")
    REFERENCES "users"("id")
    ON DELETE RESTRICT
    ON UPDATE CASCADE;