
alter table "public"."parts_orders"
           add constraint "parts_orders_orderedby_fkey"
           foreign key ("orderedby")
           references "public"."users"
           ("email") on update set null on delete set null;