
CREATE TABLE "public"."associations"("email" text NOT NULL, "bodyshopid" uuid NOT NULL, PRIMARY KEY ("email","bodyshopid") , FOREIGN KEY ("bodyshopid") REFERENCES "public"."bodyshops"("id") ON UPDATE cascade ON DELETE cascade, FOREIGN KEY ("email") REFERENCES "public"."users"("email") ON UPDATE cascade ON DELETE cascade);