
alter table "public"."audit_trail"
           add constraint "audit_trail_jobid_fkey"
           foreign key ("jobid")
           references "public"."jobs"
           ("id") on update cascade on delete set null;