fix(db): changes to the user so it deletes correctly

This commit is contained in:
2025-09-07 15:38:27 -05:00
parent b9c6d0ba57
commit 932a72ba88
4 changed files with 2263 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
ALTER TABLE "userRoles" DROP CONSTRAINT "userRoles_user_id_users_user_id_fk";
--> statement-breakpoint
ALTER TABLE "userRoles" ADD CONSTRAINT "userRoles_user_id_users_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("user_id") ON DELETE cascade ON UPDATE no action;