 ON UPDATE NO ACTION
 NOT DEFERRABLE;
 
+ALTER TABLE public.system_relationshiprecordtorecordcrossref ADD CONSTRAINT system_relationshiprecord_system_relationshiprecordtorecordc18
+FOREIGN KEY (relationshiprecord_id2)
+REFERENCES public.system_relationshiprecord (id)
+ON DELETE NO ACTION
+ON UPDATE NO ACTION
+NOT DEFERRABLE;
+
+ALTER TABLE public.system_relationshiprecordtorecordcrossref ADD CONSTRAINT system_relationshiprecord_system_relationshiprecordtorecordc567
+FOREIGN KEY (relationshiprecord_id1)
+REFERENCES public.system_relationshiprecord (id)
+ON DELETE NO ACTION
+ON UPDATE NO ACTION
+NOT DEFERRABLE;
+
+ALTER TABLE public.system_relationshiprecordtobundlecrossref ADD CONSTRAINT system_relationshiprecord_system_relationshiprecordtobundlec161
+FOREIGN KEY (relationshiprecord_id)
+REFERENCES public.system_relationshiprecord (id)
+ON DELETE NO ACTION
+ON UPDATE NO ACTION
+NOT DEFERRABLE;
+
 ALTER TABLE public.events_systempropertystaticcrossref ADD CONSTRAINT property_record_events_systempropertystaticcrossref_fk
 FOREIGN KEY (propertyrecord_id)
 REFERENCES public.system_propertyrecord (id)

                date_created TIMESTAMP NOT NULL,
                last_updated TIMESTAMP NOT NULL,
                name VARCHAR NOT NULL,
                is_bundle BOOLEAN NOT NULL,
                source_name VARCHAR NOT NULL,
                CONSTRAINT data_table_pk PRIMARY KEY (id)
);

ON UPDATE NO ACTION
NOT DEFERRABLE;

ALTER TABLE public.system_propertyrecordtobundlecrrossref ADD CONSTRAINT system_propertyrecord_system_propertytobundlecrossref_fk
FOREIGN KEY (propertyrecord_id)
REFERENCES public.system_propertyrecord (id)
ON DELETE NO ACTION
ON UPDATE NO ACTION
NOT DEFERRABLE;

ALTER TABLE public.data_debit ADD CONSTRAINT data_bundle_data_debit_fk1
FOREIGN KEY (bundle_id)
REFERENCES public.data_bundle (id)
