                 CONSTRAINT data_bundle_pk PRIMARY KEY (id)
 );
 
+
+CREATE TABLE public.system_relationshiprecordtobundlecrossref (
+                id INTEGER NOT NULL,
+                date_created TIMESTAMP NOT NULL,
+                last_updated TIMESTAMP NOT NULL,
+                relationshiprecord_id INTEGER NOT NULL,
+                bundle_id INTEGER NOT NULL,
+                CONSTRAINT system_relationshiprecordtobundlecrossref_pk PRIMARY KEY (id)
+);
+
+
+CREATE SEQUENCE public.system_propertyrecordtobundlecrrossref_id_seq;
+
+CREATE TABLE public.system_propertyrecordtobundlecrrossref (
+                id VARCHAR NOT NULL DEFAULT nextval('public.system_propertyrecordtobundlecrrossref_id_seq'),
+                date_created TIMESTAMP NOT NULL,
+                last_updated TIMESTAMP NOT NULL,
+                propertyrecord_id INTEGER NOT NULL,
+                bundle_id INTEGER NOT NULL,
+                CONSTRAINT system_propertyrecordtobundlecrrossref_pk PRIMARY KEY (id)
+);
+
+
+ALTER SEQUENCE public.system_propertyrecordtobundlecrrossref_id_seq OWNED BY public.system_propertyrecordtobundlecrrossref.id;
 
 CREATE TABLE public.data_debit (
                 id INTEGER NOT NULL,

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)


CREATE TABLE public.system_relationshiprecord (
                id INTEGER NOT NULL,
                date_created TIMESTAMP NOT NULL,
                last_updated TIMESTAMP NOT NULL,
                name VARCHAR NOT NULL,
                CONSTRAINT system_relationshiprecord_pk PRIMARY KEY (id)
);


CREATE TABLE public.system_relationshiprecordtorecordcrossref (
                id INTEGER NOT NULL,
                date_created TIMESTAMP NOT NULL,
                last_updated TIMESTAMP NOT NULL,
                relationshiprecord_id1 INTEGER NOT NULL,
                relationshiprecord_id2 INTEGER NOT NULL,
                CONSTRAINT system_relationshiprecordtorecordcrossref_pk PRIMARY KEY (id)
);


CREATE SEQUENCE public.system_propertyrecord_id_seq;

