-- Name: COLUMN sl_log_2.log_tablenspname; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_log_2.log_tablenspname IS 'The schema name of the table affected';


--
-- Name: COLUMN sl_log_2.log_tablerelname; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_log_2.log_tablerelname IS 'The table name of the table affected';


--
-- Name: COLUMN sl_log_2.log_cmdtype; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_log_2.log_cmdtype IS 'Replication action to take. S = Script statement, s = Script complete';


--
-- Name: COLUMN sl_log_2.log_cmdupdncols; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_log_2.log_cmdupdncols IS 'For cmdtype=U the number of updated columns in cmdargs';


--
-- Name: COLUMN sl_log_2.log_cmdargs; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_log_2.log_cmdargs IS 'The data needed to perform the log action on the replica';


--
-- Name: sl_log_script; Type: TABLE; Schema: _TF; Owner: gazelle
--

CREATE TABLE "_TF".sl_log_script (
    log_origin integer,
    log_txid bigint,
    log_actionseq bigint,
    log_cmdtype "char",
    log_cmdargs text[]
);


ALTER TABLE "_TF".sl_log_script OWNER TO gazelle;

--
-- Name: TABLE sl_log_script; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON TABLE "_TF".sl_log_script IS 'Captures SQL script queries to be propagated to subscriber nodes';


--
-- Name: COLUMN sl_log_script.log_origin; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_log_script.log_origin IS 'Origin name from which the change came';


--
-- Name: COLUMN sl_log_script.log_txid; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_log_script.log_txid IS 'Transaction ID on the origin node';


--
-- Name: COLUMN sl_log_script.log_actionseq; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_log_script.log_actionseq IS 'The sequence number in which actions will be applied on replicas';


--
-- Name: COLUMN sl_log_script.log_cmdargs; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_log_script.log_cmdargs IS 'The DDL statement, optionally followed by selected nodes to execute it on.';


--
-- Name: sl_log_status; Type: SEQUENCE; Schema: _TF; Owner: gazelle
--

CREATE SEQUENCE "_TF".sl_log_status
    START WITH 0
    INCREMENT BY 1
    MINVALUE 0
    MAXVALUE 3
    CACHE 1;


ALTER TABLE "_TF".sl_log_status OWNER TO gazelle;

--
-- Name: SEQUENCE sl_log_status; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON SEQUENCE "_TF".sl_log_status IS '
Bit 0x01 determines the currently active log table
Bit 0x02 tells if the engine needs to read both logs
after switching until the old log is clean and truncated.

Possible values:
	0		sl_log_1 active, sl_log_2 clean
	1		sl_log_2 active, sl_log_1 clean
	2		sl_log_1 active, sl_log_2 unknown - cleanup
	3		sl_log_2 active, sl_log_1 unknown - cleanup

This is not yet in use.
';


--
-- Name: sl_node; Type: TABLE; Schema: _TF; Owner: gazelle
--

CREATE TABLE "_TF".sl_node (
    no_id integer NOT NULL,
    no_active boolean,
    no_comment text,
    no_failed boolean
);


ALTER TABLE "_TF".sl_node OWNER TO gazelle;

--
-- Name: TABLE sl_node; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON TABLE "_TF".sl_node IS 'Holds the list of nodes associated with this namespace.';


--
-- Name: COLUMN sl_node.no_id; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_node.no_id IS 'The unique ID number for the node';


--
-- Name: COLUMN sl_node.no_active; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_node.no_active IS 'Is the node active in replication yet?';


--
-- Name: COLUMN sl_node.no_comment; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_node.no_comment IS 'A human-oriented description of the node';


--
-- Name: sl_nodelock; Type: TABLE; Schema: _TF; Owner: gazelle
--

CREATE TABLE "_TF".sl_nodelock (
    nl_nodeid integer NOT NULL,
    nl_conncnt integer NOT NULL,
    nl_backendpid integer
);


ALTER TABLE "_TF".sl_nodelock OWNER TO gazelle;

--
-- Name: TABLE sl_nodelock; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON TABLE "_TF".sl_nodelock IS 'Used to prevent multiple slon instances and to identify the backends to kill in terminateNodeConnections().';


--
-- Name: COLUMN sl_nodelock.nl_nodeid; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_nodelock.nl_nodeid IS 'Clients node_id';


--
-- Name: COLUMN sl_nodelock.nl_conncnt; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_nodelock.nl_conncnt IS 'Clients connection number';


--
-- Name: COLUMN sl_nodelock.nl_backendpid; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_nodelock.nl_backendpid IS 'PID of database backend owning this lock';


--
-- Name: sl_nodelock_nl_conncnt_seq; Type: SEQUENCE; Schema: _TF; Owner: gazelle
--

CREATE SEQUENCE "_TF".sl_nodelock_nl_conncnt_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE "_TF".sl_nodelock_nl_conncnt_seq OWNER TO gazelle;

--
-- Name: sl_nodelock_nl_conncnt_seq; Type: SEQUENCE OWNED BY; Schema: _TF; Owner: gazelle
--

ALTER SEQUENCE "_TF".sl_nodelock_nl_conncnt_seq OWNED BY "_TF".sl_nodelock.nl_conncnt;


--
-- Name: sl_registry; Type: TABLE; Schema: _TF; Owner: gazelle
--

CREATE TABLE "_TF".sl_registry (
    reg_key text NOT NULL,
    reg_int4 integer,
    reg_text text,
    reg_timestamp timestamp with time zone
);


ALTER TABLE "_TF".sl_registry OWNER TO gazelle;

--
-- Name: TABLE sl_registry; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON TABLE "_TF".sl_registry IS 'Stores miscellaneous runtime data';


--
-- Name: COLUMN sl_registry.reg_key; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_registry.reg_key IS 'Unique key of the runtime option';


--
-- Name: COLUMN sl_registry.reg_int4; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_registry.reg_int4 IS 'Option value if type int4';


--
-- Name: COLUMN sl_registry.reg_text; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_registry.reg_text IS 'Option value if type text';


--
-- Name: COLUMN sl_registry.reg_timestamp; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_registry.reg_timestamp IS 'Option value if type timestamp';


--
-- Name: sl_sequence; Type: TABLE; Schema: _TF; Owner: gazelle
--

CREATE TABLE "_TF".sl_sequence (
    seq_id integer NOT NULL,
    seq_reloid oid NOT NULL,
    seq_relname name NOT NULL,
    seq_nspname name NOT NULL,
    seq_set integer,
    seq_comment text
);


ALTER TABLE "_TF".sl_sequence OWNER TO gazelle;

--
-- Name: TABLE sl_sequence; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON TABLE "_TF".sl_sequence IS 'Similar to sl_table, each entry identifies a sequence being replicated.';


--
-- Name: COLUMN sl_sequence.seq_id; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_sequence.seq_id IS 'An internally-used ID for Slony-I to use in its sequencing of updates';


--
-- Name: COLUMN sl_sequence.seq_reloid; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_sequence.seq_reloid IS 'The OID of the sequence object';


--
-- Name: COLUMN sl_sequence.seq_relname; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_sequence.seq_relname IS 'The name of the sequence in pg_catalog.pg_class.relname used to recover from a dump/restore cycle';


--
-- Name: COLUMN sl_sequence.seq_nspname; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_sequence.seq_nspname IS 'The name of the schema in pg_catalog.pg_namespace.nspname used to recover from a dump/restore cycle';


--
-- Name: COLUMN sl_sequence.seq_set; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_sequence.seq_set IS 'Indicates which replication set the object is in';


--
-- Name: COLUMN sl_sequence.seq_comment; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_sequence.seq_comment IS 'A human-oriented comment';


--
-- Name: sl_seqlastvalue; Type: VIEW; Schema: _TF; Owner: gazelle
--

CREATE VIEW "_TF".sl_seqlastvalue AS
 SELECT sq.seq_id,
    sq.seq_set,
    sq.seq_reloid,
    s.set_origin AS seq_origin,
    "_TF".sequencelastvalue(((quote_ident((pgn.nspname)::text) || '.'::text) || quote_ident((pgc.relname)::text))) AS seq_last_value
   FROM "_TF".sl_sequence sq,
    "_TF".sl_set s,
    pg_class pgc,
    pg_namespace pgn
  WHERE ((s.set_id = sq.seq_set) AND (pgc.oid = sq.seq_reloid) AND (pgn.oid = pgc.relnamespace));


ALTER TABLE "_TF".sl_seqlastvalue OWNER TO gazelle;

--
-- Name: sl_seqlog; Type: TABLE; Schema: _TF; Owner: gazelle
--

CREATE TABLE "_TF".sl_seqlog (
    seql_seqid integer,
    seql_origin integer,
    seql_ev_seqno bigint,
    seql_last_value bigint
);


ALTER TABLE "_TF".sl_seqlog OWNER TO gazelle;

--
-- Name: TABLE sl_seqlog; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON TABLE "_TF".sl_seqlog IS 'Log of Sequence updates';


--
-- Name: COLUMN sl_seqlog.seql_seqid; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_seqlog.seql_seqid IS 'Sequence ID';


--
-- Name: COLUMN sl_seqlog.seql_origin; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_seqlog.seql_origin IS 'Publisher node at which the sequence originates';


--
-- Name: COLUMN sl_seqlog.seql_ev_seqno; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_seqlog.seql_ev_seqno IS 'Slony-I Event with which this sequence update is associated';


--
-- Name: COLUMN sl_seqlog.seql_last_value; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_seqlog.seql_last_value IS 'Last value published for this sequence';


--
-- Name: sl_setsync; Type: TABLE; Schema: _TF; Owner: gazelle
--

CREATE TABLE "_TF".sl_setsync (
    ssy_setid integer NOT NULL,
    ssy_origin integer,
    ssy_seqno bigint,
    ssy_snapshot txid_snapshot,
    ssy_action_list text
);


ALTER TABLE "_TF".sl_setsync OWNER TO gazelle;

--
-- Name: TABLE sl_setsync; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON TABLE "_TF".sl_setsync IS 'SYNC information';


--
-- Name: COLUMN sl_setsync.ssy_setid; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_setsync.ssy_setid IS 'ID number of the replication set';


--
-- Name: COLUMN sl_setsync.ssy_origin; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_setsync.ssy_origin IS 'ID number of the node';


--
-- Name: COLUMN sl_setsync.ssy_seqno; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_setsync.ssy_seqno IS 'Slony-I sequence number';


--
-- Name: COLUMN sl_setsync.ssy_snapshot; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_setsync.ssy_snapshot IS 'TXID in provider system seen by the event';


--
-- Name: COLUMN sl_setsync.ssy_action_list; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_setsync.ssy_action_list IS 'action list used during the subscription process. At the time a subscriber copies over data from the origin, it sees all tables in a state somewhere between two SYNC events. Therefore this list must contains all log_actionseqs that are visible at that time, whose operations have therefore already been included in the data copied at the time the initial data copy is done.  Those actions may therefore be filtered out of the first SYNC done after subscribing.';


--
-- Name: sl_table; Type: TABLE; Schema: _TF; Owner: gazelle
--

CREATE TABLE "_TF".sl_table (
    tab_id integer NOT NULL,
    tab_reloid oid NOT NULL,
    tab_relname name NOT NULL,
    tab_nspname name NOT NULL,
    tab_set integer,
    tab_idxname name NOT NULL,
    tab_altered boolean NOT NULL,
    tab_comment text
);


ALTER TABLE "_TF".sl_table OWNER TO gazelle;

--
-- Name: TABLE sl_table; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON TABLE "_TF".sl_table IS 'Holds information about the tables being replicated.';


--
-- Name: COLUMN sl_table.tab_id; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_table.tab_id IS 'Unique key for Slony-I to use to identify the table';


--
-- Name: COLUMN sl_table.tab_reloid; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_table.tab_reloid IS 'The OID of the table in pg_catalog.pg_class.oid';


--
-- Name: COLUMN sl_table.tab_relname; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_table.tab_relname IS 'The name of the table in pg_catalog.pg_class.relname used to recover from a dump/restore cycle';


--
-- Name: COLUMN sl_table.tab_nspname; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_table.tab_nspname IS 'The name of the schema in pg_catalog.pg_namespace.nspname used to recover from a dump/restore cycle';


--
-- Name: COLUMN sl_table.tab_set; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_table.tab_set IS 'ID of the replication set the table is in';


--
-- Name: COLUMN sl_table.tab_idxname; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_table.tab_idxname IS 'The name of the primary index of the table';


--
-- Name: COLUMN sl_table.tab_altered; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_table.tab_altered IS 'Has the table been modified for replication?';


--
-- Name: COLUMN sl_table.tab_comment; Type: COMMENT; Schema: _TF; Owner: gazelle
--

COMMENT ON COLUMN "_TF".sl_table.tab_comment IS 'Human-oriented description of the table';


--
-- Name: cmn_application_preference; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.cmn_application_preference (
    id integer NOT NULL,
    class_name character varying(255) NOT NULL,
    description character varying(255) NOT NULL,
    preference_name character varying(64) NOT NULL,
    preference_value character varying(512) NOT NULL
);


ALTER TABLE public.cmn_application_preference OWNER TO gazelle;

--
-- Name: cmn_application_preference_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.cmn_application_preference_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.cmn_application_preference_id_seq OWNER TO gazelle;

--
-- Name: cmn_event_tracking; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.cmn_event_tracking (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    login_id integer,
    object_class character varying(255) NOT NULL,
    object_id integer,
    type_event character varying(255)
);


ALTER TABLE public.cmn_event_tracking OWNER TO gazelle;

--
-- Name: cmn_event_tracking_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.cmn_event_tracking_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.cmn_event_tracking_id_seq OWNER TO gazelle;

--
-- Name: cmn_number_of_results_per_page; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.cmn_number_of_results_per_page (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255),
    number_of_results_per_page integer
);


ALTER TABLE public.cmn_number_of_results_per_page OWNER TO gazelle;

--
-- Name: cmn_number_of_results_per_page_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.cmn_number_of_results_per_page_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.cmn_number_of_results_per_page_id_seq OWNER TO gazelle;

--
-- Name: cmn_path_linking_a_document; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.cmn_path_linking_a_document (
    id integer NOT NULL,
    comment character varying(255),
    path character varying(255) NOT NULL,
    type character varying(255) NOT NULL
);


ALTER TABLE public.cmn_path_linking_a_document OWNER TO gazelle;

--
-- Name: cmn_path_linking_a_document_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.cmn_path_linking_a_document_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.cmn_path_linking_a_document_id_seq OWNER TO gazelle;

--
-- Name: hibernate_sequence; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.hibernate_sequence
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.hibernate_sequence OWNER TO gazelle;

--
-- Name: message_validation_service; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.message_validation_service (
    id integer NOT NULL,
    tm_test_step_message_profile_id integer,
    validation_service_id integer
);


ALTER TABLE public.message_validation_service OWNER TO gazelle;

--
-- Name: message_validation_service_sequence; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.message_validation_service_sequence
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.message_validation_service_sequence OWNER TO gazelle;

--
-- Name: pat_patient_address_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.pat_patient_address_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.pat_patient_address_id_seq OWNER TO gazelle;

--
-- Name: pat_patient_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.pat_patient_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.pat_patient_id_seq OWNER TO gazelle;

--
-- Name: pr_crawler_changed_integration_statements; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.pr_crawler_changed_integration_statements (
    crawler_report_id integer NOT NULL,
    system_id integer NOT NULL
);


ALTER TABLE public.pr_crawler_changed_integration_statements OWNER TO gazelle;

--
-- Name: pr_crawler_reporting; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.pr_crawler_reporting (
    id integer NOT NULL,
    comment character varying(20000),
    number_of_encountered_application_error integer,
    execution_elapsed_time integer,
    execution_starting_date timestamp with time zone,
    list_of_unmatching_hashcode_for_integration_statements character varying(200000),
    list_of_unreachable_integration_statements character varying(200000),
    number_of_integration_statements_checked integer,
    number_of_successfully_checked integer,
    number_of_unmatching_hashcode_for_integration_statements integer,
    number_of_unreachable_integration_statements integer,
    number_of_changed_integration_statements integer
);


ALTER TABLE public.pr_crawler_reporting OWNER TO gazelle;

--
-- Name: pr_crawler_reporting_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.pr_crawler_reporting_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.pr_crawler_reporting_id_seq OWNER TO gazelle;

--
-- Name: pr_crawler_unmatching_hascode_for_integration_statements; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.pr_crawler_unmatching_hascode_for_integration_statements (
    crawler_report_id integer NOT NULL,
    system_id integer NOT NULL
);


ALTER TABLE public.pr_crawler_unmatching_hascode_for_integration_statements OWNER TO gazelle;

--
-- Name: pr_crawler_unreachable_integration_statements; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.pr_crawler_unreachable_integration_statements (
    crawler_report_id integer NOT NULL,
    system_id integer NOT NULL
);


ALTER TABLE public.pr_crawler_unreachable_integration_statements OWNER TO gazelle;

--
-- Name: pr_integration_statement_download; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.pr_integration_statement_download (
    id integer NOT NULL,
    browser_information character varying(255),
    comment character varying(255),
    download_date timestamp with time zone,
    download_performer_name character varying(255),
    download_performer_username character varying(255),
    performer_city character varying(255),
    performer_country character varying(255),
    performer_hostname character varying(255),
    performer_ip_address character varying(255),
    system_id integer NOT NULL,
    date timestamp with time zone,
    performer_username character varying(255),
    search_log_report_id integer
);


ALTER TABLE public.pr_integration_statement_download OWNER TO gazelle;

--
-- Name: pr_integration_statement_download_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.pr_integration_statement_download_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.pr_integration_statement_download_id_seq OWNER TO gazelle;

--
-- Name: pr_intro; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.pr_intro (
    id integer NOT NULL,
    language character varying(255),
    main_panel_content text,
    main_panel_header text
);


ALTER TABLE public.pr_intro OWNER TO gazelle;

--
-- Name: pr_intro_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.pr_intro_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.pr_intro_id_seq OWNER TO gazelle;

--
-- Name: pr_mail; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.pr_mail (
    id integer NOT NULL,
    page_name character varying(255),
    sent boolean,
    crawlerreporting_id integer,
    system_id integer
);


ALTER TABLE public.pr_mail OWNER TO gazelle;

--
-- Name: pr_mail_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.pr_mail_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.pr_mail_id_seq OWNER TO gazelle;

--
-- Name: pr_search_criteria_per_report; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.pr_search_criteria_per_report (
    search_log_report_id integer NOT NULL,
    search_log_criterion_id integer NOT NULL
);


ALTER TABLE public.pr_search_criteria_per_report OWNER TO gazelle;

--
-- Name: pr_search_log_criterion; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.pr_search_log_criterion (
    id integer NOT NULL,
    criterion character varying(255),
    isbeforedate boolean,
    value_date timestamp with time zone,
    value_id integer,
    text_value character varying(255)
);


ALTER TABLE public.pr_search_log_criterion OWNER TO gazelle;

--
-- Name: pr_search_log_criterion_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.pr_search_log_criterion_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.pr_search_log_criterion_id_seq OWNER TO gazelle;

--
-- Name: pr_search_log_report; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.pr_search_log_report (
    id integer NOT NULL,
    browser_information character varying(255),
    intersection_search boolean,
    list_of_found_integration_statements character varying(200000),
    number_of_criteria integer,
    number_of_found_integration_statements integer,
    performer_city character varying(255),
    performer_country character varying(255),
    performer_hostname character varying(255),
    performer_ip_address character varying(255),
    search_date timestamp with time zone,
    search_performer character varying(255),
    search_type character varying(255),
    date timestamp with time zone,
    performer_username character varying(255)
);


ALTER TABLE public.pr_search_log_report OWNER TO gazelle;

--
-- Name: pr_search_log_report_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.pr_search_log_report_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.pr_search_log_report_id_seq OWNER TO gazelle;

--
-- Name: pr_search_log_systems_found; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.pr_search_log_systems_found (
    search_report_id integer NOT NULL,
    system_id integer NOT NULL
);


ALTER TABLE public.pr_search_log_systems_found OWNER TO gazelle;

--
-- Name: pr_subtypes_per_system_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.pr_subtypes_per_system_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.pr_subtypes_per_system_id_seq OWNER TO gazelle;

--
-- Name: proxy_type; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.proxy_type (
    id integer NOT NULL,
    description character varying(255),
    keyword character varying(255),
    label_key_for_display character varying(255)
);


ALTER TABLE public.proxy_type OWNER TO gazelle;

--
-- Name: proxy_type_sequence; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.proxy_type_sequence
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.proxy_type_sequence OWNER TO gazelle;

--
-- Name: revinfo; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.revinfo (
    rev integer NOT NULL,
    revtstmp bigint
);


ALTER TABLE public.revinfo OWNER TO gazelle;

--
-- Name: sys_dicom_documents_for_systems; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.sys_dicom_documents_for_systems (
    system_id integer NOT NULL,
    path_linking_a_document_id integer NOT NULL
);


ALTER TABLE public.sys_dicom_documents_for_systems OWNER TO gazelle;

--
-- Name: sys_hl7_documents_for_systems; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.sys_hl7_documents_for_systems (
    system_id integer NOT NULL,
    path_linking_a_document_id integer NOT NULL
);


ALTER TABLE public.sys_hl7_documents_for_systems OWNER TO gazelle;

--
-- Name: sys_system_subtype; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.sys_system_subtype (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    subtype_for_quick_search boolean,
    description character varying(255),
    keyword character varying(255) NOT NULL
);


ALTER TABLE public.sys_system_subtype OWNER TO gazelle;

--
-- Name: sys_system_subtype_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.sys_system_subtype_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.sys_system_subtype_id_seq OWNER TO gazelle;

--
-- Name: sys_system_subtypes_per_system_type; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.sys_system_subtypes_per_system_type (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    system_subtype_id integer,
    system_type_id integer NOT NULL
);


ALTER TABLE public.sys_system_subtypes_per_system_type OWNER TO gazelle;

--
-- Name: sys_system_subtypes_per_system_type_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.sys_system_subtypes_per_system_type_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.sys_system_subtypes_per_system_type_id_seq OWNER TO gazelle;

--
-- Name: sys_system_type; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.sys_system_type (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255) NOT NULL,
    is_visible boolean
);


ALTER TABLE public.sys_system_type OWNER TO gazelle;

--
-- Name: sys_system_type_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.sys_system_type_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.sys_system_type_id_seq OWNER TO gazelle;

--
-- Name: sys_table_session; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.sys_table_session (
    id integer NOT NULL,
    lastchanged timestamp with time zone,
    lastmodifierid character varying(255),
    table_keyword character varying(255) NOT NULL
);


ALTER TABLE public.sys_table_session OWNER TO gazelle;

--
-- Name: sys_table_session_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.sys_table_session_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.sys_table_session_id_seq OWNER TO gazelle;

--
-- Name: tf_actor; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_actor (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    combined boolean,
    description character varying(2048),
    keyword character varying(32) NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE public.tf_actor OWNER TO gazelle;

--
-- Name: tf_actor_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_actor_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    combined boolean,
    description character varying(2048),
    keyword character varying(32),
    name character varying(255)
);


ALTER TABLE public.tf_actor_aud OWNER TO gazelle;

--
-- Name: tf_actor_default_ports; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_actor_default_ports (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    config_name character varying(255),
    port_non_secure integer,
    port_secure integer,
    type_of_config character varying(255) NOT NULL,
    actor_id integer,
    CONSTRAINT tf_actor_default_ports_port_non_secure_check CHECK ((port_non_secure <= 65635)),
    CONSTRAINT tf_actor_default_ports_port_secure_check CHECK ((port_secure <= 65635))
);


ALTER TABLE public.tf_actor_default_ports OWNER TO gazelle;

--
-- Name: tf_actor_default_ports_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_actor_default_ports_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_actor_default_ports_id_seq OWNER TO gazelle;

--
-- Name: tf_actor_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_actor_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_actor_id_seq OWNER TO gazelle;

--
-- Name: tf_actor_integration_profile; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_actor_integration_profile (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    actor_id integer,
    integration_profile_id integer
);


ALTER TABLE public.tf_actor_integration_profile OWNER TO gazelle;

--
-- Name: tf_actor_integration_profile_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_actor_integration_profile_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    actor_id integer,
    integration_profile_id integer
);


ALTER TABLE public.tf_actor_integration_profile_aud OWNER TO gazelle;

--
-- Name: tf_actor_integration_profile_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_actor_integration_profile_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_actor_integration_profile_id_seq OWNER TO gazelle;

--
-- Name: tf_actor_integration_profile_option; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_actor_integration_profile_option (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    actor_integration_profile_id integer NOT NULL,
    integration_profile_option_id integer,
    document_section integer,
    maybe_supportive boolean
);


ALTER TABLE public.tf_actor_integration_profile_option OWNER TO gazelle;

--
-- Name: tf_actor_integration_profile_option_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_actor_integration_profile_option_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    actor_integration_profile_id integer,
    integration_profile_option_id integer,
    document_section integer,
    maybe_supportive boolean
);


ALTER TABLE public.tf_actor_integration_profile_option_aud OWNER TO gazelle;

--
-- Name: tf_actor_integration_profile_option_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_actor_integration_profile_option_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_actor_integration_profile_option_id_seq OWNER TO gazelle;

--
-- Name: tf_affinity_domain; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_affinity_domain (
    id integer NOT NULL,
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255)
);


ALTER TABLE public.tf_affinity_domain OWNER TO gazelle;

--
-- Name: tf_affinity_domain_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_affinity_domain_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255)
);


ALTER TABLE public.tf_affinity_domain_aud OWNER TO gazelle;

--
-- Name: tf_affinity_domain_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_affinity_domain_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_affinity_domain_id_seq OWNER TO gazelle;

--
-- Name: tf_audit_message; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_audit_message (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    audited_event integer,
    oid character varying(255),
    audited_transaction integer,
    document_section integer,
    issuing_actor integer,
    comment character varying(255),
    event_code_type character varying(255)
);


ALTER TABLE public.tf_audit_message OWNER TO gazelle;

--
-- Name: tf_audit_message_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_audit_message_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_audit_message_id_seq OWNER TO gazelle;

--
-- Name: tf_document; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_document (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    document_dateofpublication timestamp with time zone,
    md5_hash_code character varying(255) NOT NULL,
    document_lifecyclestatus integer,
    document_linkstatus integer,
    document_name character varying(255) NOT NULL,
    document_revision character varying(255),
    document_title character varying(255),
    document_type integer NOT NULL,
    document_url character varying(255) NOT NULL,
    document_volume character varying(255),
    document_domain_id integer NOT NULL,
    document_linkstatusdescription character varying(255)
);


ALTER TABLE public.tf_document OWNER TO gazelle;

--
-- Name: tf_document_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_document_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    document_dateofpublication timestamp with time zone,
    md5_hash_code character varying(255),
    document_lifecyclestatus integer,
    document_linkstatus integer,
    document_name character varying(255),
    document_revision character varying(255),
    document_title character varying(255),
    document_type integer,
    document_url character varying(255),
    document_volume character varying(255),
    document_domain_id integer,
    document_linkstatusdescription character varying(255)
);


ALTER TABLE public.tf_document_aud OWNER TO gazelle;

--
-- Name: tf_document_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_document_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_document_id_seq OWNER TO gazelle;

--
-- Name: tf_document_sections; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_document_sections (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    section character varying(255),
    type integer,
    document_id integer
);


ALTER TABLE public.tf_document_sections OWNER TO gazelle;

--
-- Name: tf_document_sections_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_document_sections_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    section character varying(255),
    type integer,
    document_id integer
);


ALTER TABLE public.tf_document_sections_aud OWNER TO gazelle;

--
-- Name: tf_document_sections_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_document_sections_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_document_sections_id_seq OWNER TO gazelle;

--
-- Name: tf_domain; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_domain (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(4096),
    keyword character varying(32) NOT NULL,
    name character varying(64) NOT NULL,
    used_by_pr boolean
);


ALTER TABLE public.tf_domain OWNER TO gazelle;

--
-- Name: tf_domain_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_domain_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(4096),
    keyword character varying(32),
    name character varying(64),
    used_by_pr boolean
);


ALTER TABLE public.tf_domain_aud OWNER TO gazelle;

--
-- Name: tf_domain_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_domain_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_domain_id_seq OWNER TO gazelle;

--
-- Name: tf_domain_profile; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_domain_profile (
    domain_id integer NOT NULL,
    integration_profile_id integer NOT NULL
);


ALTER TABLE public.tf_domain_profile OWNER TO gazelle;

--
-- Name: tf_domain_profile_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_domain_profile_aud (
    rev integer NOT NULL,
    domain_id integer NOT NULL,
    integration_profile_id integer NOT NULL,
    revtype smallint
);


ALTER TABLE public.tf_domain_profile_aud OWNER TO gazelle;

--
-- Name: tf_gmm_server; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_gmm_server (
    id integer NOT NULL,
    description character varying(2048),
    server_name character varying(128) NOT NULL,
    server_url character varying(512) NOT NULL,
    activated boolean
);


ALTER TABLE public.tf_gmm_server OWNER TO gazelle;

--
-- Name: tf_gmm_server_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_gmm_server_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_gmm_server_id_seq OWNER TO gazelle;

--
-- Name: tf_hl7_message_profile; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_hl7_message_profile (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    hl7_version character varying(255) NOT NULL,
    message_order_control_code character varying(8),
    message_type character varying(15) NOT NULL,
    profile_content text,
    profile_oid character varying(64) NOT NULL,
    profile_type character varying(255),
    actor_id integer,
    domain_id integer,
    table_id integer,
    transaction_id integer
);


ALTER TABLE public.tf_hl7_message_profile OWNER TO gazelle;

--
-- Name: tf_hl7_message_profile_affinity_domain; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_hl7_message_profile_affinity_domain (
    hl7_message_profile_id integer NOT NULL,
    affinity_domain_id integer NOT NULL
);


ALTER TABLE public.tf_hl7_message_profile_affinity_domain OWNER TO gazelle;

--
-- Name: tf_hl7_message_profile_affinity_domain_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_hl7_message_profile_affinity_domain_aud (
    rev integer NOT NULL,
    hl7_message_profile_id integer NOT NULL,
    affinity_domain_id integer NOT NULL,
    revtype smallint
);


ALTER TABLE public.tf_hl7_message_profile_affinity_domain_aud OWNER TO gazelle;

--
-- Name: tf_hl7_message_profile_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_hl7_message_profile_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    hl7_version character varying(255),
    message_order_control_code character varying(8),
    message_type character varying(15),
    profile_oid character varying(64),
    profile_type character varying(255),
    actor_id integer,
    domain_id integer,
    table_id integer,
    transaction_id integer,
    profile_content character varying(255)
);


ALTER TABLE public.tf_hl7_message_profile_aud OWNER TO gazelle;

--
-- Name: tf_hl7_message_profile_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_hl7_message_profile_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_hl7_message_profile_id_seq OWNER TO gazelle;

--
-- Name: tf_hl7_message_profile_table; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_hl7_message_profile_table (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    table_content text,
    table_name character varying(255),
    table_version character varying(255)
);


ALTER TABLE public.tf_hl7_message_profile_table OWNER TO gazelle;

--
-- Name: tf_hl7_message_profile_table_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_hl7_message_profile_table_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    table_content text,
    table_name character varying(255),
    table_version character varying(255)
);


ALTER TABLE public.tf_hl7_message_profile_table_aud OWNER TO gazelle;

--
-- Name: tf_hl7_message_profile_table_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_hl7_message_profile_table_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_hl7_message_profile_table_id_seq OWNER TO gazelle;

--
-- Name: tf_integration_profile; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_integration_profile (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(4096),
    keyword character varying(32) NOT NULL,
    name character varying(128) NOT NULL,
    integration_profile_status_type_id integer,
    documentsection integer
);


ALTER TABLE public.tf_integration_profile OWNER TO gazelle;

--
-- Name: tf_integration_profile_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_integration_profile_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(4096),
    keyword character varying(32),
    name character varying(128),
    integration_profile_status_type_id integer,
    documentsection integer
);


ALTER TABLE public.tf_integration_profile_aud OWNER TO gazelle;

--
-- Name: tf_integration_profile_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_integration_profile_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_integration_profile_id_seq OWNER TO gazelle;

--
-- Name: tf_integration_profile_option; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_integration_profile_option (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(2048) NOT NULL,
    keyword character varying(255) NOT NULL,
    name character varying(255) NOT NULL,
    reference character varying(255),
    documentsection integer
);


ALTER TABLE public.tf_integration_profile_option OWNER TO gazelle;

--
-- Name: tf_integration_profile_option_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_integration_profile_option_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(2048),
    keyword character varying(255),
    name character varying(255),
    reference character varying(255),
    documentsection integer
);


ALTER TABLE public.tf_integration_profile_option_aud OWNER TO gazelle;

--
-- Name: tf_integration_profile_option_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_integration_profile_option_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_integration_profile_option_id_seq OWNER TO gazelle;

--
-- Name: tf_integration_profile_status_type; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_integration_profile_status_type (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(32) NOT NULL,
    name character varying(64) NOT NULL
);


ALTER TABLE public.tf_integration_profile_status_type OWNER TO gazelle;

--
-- Name: tf_integration_profile_status_type_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_integration_profile_status_type_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(32),
    name character varying(64)
);


ALTER TABLE public.tf_integration_profile_status_type_aud OWNER TO gazelle;

--
-- Name: tf_integration_profile_status_type_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_integration_profile_status_type_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_integration_profile_status_type_id_seq OWNER TO gazelle;

--
-- Name: tf_integration_profile_type; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_integration_profile_type (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(4096),
    keyword character varying(32) NOT NULL,
    name character varying(64) NOT NULL
);


ALTER TABLE public.tf_integration_profile_type OWNER TO gazelle;

--
-- Name: tf_integration_profile_type_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_integration_profile_type_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(4096),
    keyword character varying(32),
    name character varying(64)
);


ALTER TABLE public.tf_integration_profile_type_aud OWNER TO gazelle;

--
-- Name: tf_integration_profile_type_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_integration_profile_type_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_integration_profile_type_id_seq OWNER TO gazelle;

--
-- Name: tf_integration_profile_type_link; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_integration_profile_type_link (
    integration_profile_type_id integer NOT NULL,
    integration_profile_id integer NOT NULL
);


ALTER TABLE public.tf_integration_profile_type_link OWNER TO gazelle;

--
-- Name: tf_integration_profile_type_link_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_integration_profile_type_link_aud (
    rev integer NOT NULL,
    integration_profile_id integer NOT NULL,
    integration_profile_type_id integer NOT NULL,
    revtype smallint
);


ALTER TABLE public.tf_integration_profile_type_link_aud OWNER TO gazelle;

--
-- Name: tf_profile_inria_hl7_validation_files; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_profile_inria_hl7_validation_files (
    id integer NOT NULL,
    profile_xslt_file text,
    profile_table_xslt_file text,
    hl7_message_profile_id integer
);


ALTER TABLE public.tf_profile_inria_hl7_validation_files OWNER TO gazelle;

--
-- Name: tf_profile_inria_hl7_validation_files_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_profile_inria_hl7_validation_files_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    profile_xslt_file text,
    profile_table_xslt_file text,
    hl7_message_profile_id integer
);


ALTER TABLE public.tf_profile_inria_hl7_validation_files_aud OWNER TO gazelle;

--
-- Name: tf_profile_inria_hl7_validation_files_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_profile_inria_hl7_validation_files_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_profile_inria_hl7_validation_files_id_seq OWNER TO gazelle;

--
-- Name: tf_profile_link; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_profile_link (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    actor_integration_profile_id integer,
    transaction_id integer,
    transaction_option_type_id integer
);


ALTER TABLE public.tf_profile_link OWNER TO gazelle;

--
-- Name: tf_profile_link_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_profile_link_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    actor_integration_profile_id integer,
    transaction_id integer,
    transaction_option_type_id integer
);


ALTER TABLE public.tf_profile_link_aud OWNER TO gazelle;

--
-- Name: tf_profile_link_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_profile_link_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_profile_link_id_seq OWNER TO gazelle;

--
-- Name: tf_revision_tagged_for_sync; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_revision_tagged_for_sync (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(2048),
    revision_tag integer NOT NULL,
    tag_date timestamp with time zone
);


ALTER TABLE public.tf_revision_tagged_for_sync OWNER TO gazelle;

--
-- Name: tf_revision_tagged_for_sync_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_revision_tagged_for_sync_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_revision_tagged_for_sync_id_seq OWNER TO gazelle;

--
-- Name: tf_rule; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_rule (
    id integer NOT NULL,
    name character varying(255),
    cause_id integer,
    consequence_id integer,
    comment character varying(1024)
);


ALTER TABLE public.tf_rule OWNER TO gazelle;

--
-- Name: tf_rule_criterion; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_rule_criterion (
    dtype character varying(31) NOT NULL,
    id integer NOT NULL,
    single_actor character varying(255),
    single_integrationprofile character varying(255),
    single_option character varying(255),
    list_or boolean,
    aiporule_id integer,
    single_actor_id integer,
    single_integration_profile_id integer,
    single_option_id integer
);


ALTER TABLE public.tf_rule_criterion OWNER TO gazelle;

--
-- Name: tf_rule_criterion_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_rule_criterion_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_rule_criterion_id_seq OWNER TO gazelle;

--
-- Name: tf_rule_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_rule_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_rule_id_seq OWNER TO gazelle;

--
-- Name: tf_rule_list_criterion; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_rule_list_criterion (
    tf_rule_criterion_id integer NOT NULL,
    aipocriterions_id integer NOT NULL,
    tf_rule_list_criterion_id integer NOT NULL
);


ALTER TABLE public.tf_rule_list_criterion OWNER TO gazelle;

--
-- Name: tf_standard; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_standard (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    keyword character varying(255),
    name text,
    network_communication_type integer,
    url text,
    version character varying(255)
);


ALTER TABLE public.tf_standard OWNER TO gazelle;

--
-- Name: tf_standard_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_standard_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    keyword character varying(255),
    name text,
    network_communication_type integer,
    url text,
    version character varying(255)
);


ALTER TABLE public.tf_standard_aud OWNER TO gazelle;

--
-- Name: tf_standard_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_standard_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_standard_id_seq OWNER TO gazelle;

--
-- Name: tf_transaction; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_transaction (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(2048) NOT NULL,
    keyword character varying(32) NOT NULL,
    name character varying(128) NOT NULL,
    reference character varying(2048),
    transaction_status_type_id integer,
    documentsection integer
);


ALTER TABLE public.tf_transaction OWNER TO gazelle;

--
-- Name: tf_transaction_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_transaction_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(2048),
    keyword character varying(32),
    name character varying(128),
    reference character varying(2048),
    transaction_status_type_id integer,
    documentsection integer
);


ALTER TABLE public.tf_transaction_aud OWNER TO gazelle;

--
-- Name: tf_transaction_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_transaction_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_transaction_id_seq OWNER TO gazelle;

--
-- Name: tf_transaction_link; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_transaction_link (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    from_actor_id integer,
    to_actor_id integer,
    transaction_id integer
);


ALTER TABLE public.tf_transaction_link OWNER TO gazelle;

--
-- Name: tf_transaction_link_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_transaction_link_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    from_actor_id integer,
    to_actor_id integer,
    transaction_id integer
);


ALTER TABLE public.tf_transaction_link_aud OWNER TO gazelle;

--
-- Name: tf_transaction_link_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_transaction_link_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_transaction_link_id_seq OWNER TO gazelle;

--
-- Name: tf_transaction_option_type; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_transaction_option_type (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(32) NOT NULL,
    name character varying(64) NOT NULL
);


ALTER TABLE public.tf_transaction_option_type OWNER TO gazelle;

--
-- Name: tf_transaction_option_type_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_transaction_option_type_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(32),
    name character varying(64)
);


ALTER TABLE public.tf_transaction_option_type_aud OWNER TO gazelle;

--
-- Name: tf_transaction_option_type_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_transaction_option_type_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_transaction_option_type_id_seq OWNER TO gazelle;

--
-- Name: tf_transaction_standard; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_transaction_standard (
    transaction_id integer NOT NULL,
    standard_id integer NOT NULL
);


ALTER TABLE public.tf_transaction_standard OWNER TO gazelle;

--
-- Name: tf_transaction_standard_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_transaction_standard_aud (
    rev integer NOT NULL,
    transaction_id integer NOT NULL,
    standard_id integer NOT NULL,
    revtype smallint
);


ALTER TABLE public.tf_transaction_standard_aud OWNER TO gazelle;

--
-- Name: tf_transaction_status_type; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_transaction_status_type (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(32) NOT NULL,
    name character varying(64) NOT NULL
);


ALTER TABLE public.tf_transaction_status_type OWNER TO gazelle;

--
-- Name: tf_transaction_status_type_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_transaction_status_type_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(32),
    name character varying(64)
);


ALTER TABLE public.tf_transaction_status_type_aud OWNER TO gazelle;

--
-- Name: tf_transaction_status_type_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_transaction_status_type_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_transaction_status_type_id_seq OWNER TO gazelle;

--
-- Name: tf_updates_installed_by_sync; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_updates_installed_by_sync (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(2048),
    server_revision_tag integer NOT NULL
);


ALTER TABLE public.tf_updates_installed_by_sync OWNER TO gazelle;

--
-- Name: tf_updates_installed_by_sync_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_updates_installed_by_sync_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_updates_installed_by_sync_id_seq OWNER TO gazelle;

--
-- Name: tf_ws_transaction_usage; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_ws_transaction_usage (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    usage character varying(255),
    transaction_id integer NOT NULL
);


ALTER TABLE public.tf_ws_transaction_usage OWNER TO gazelle;

--
-- Name: tf_ws_transaction_usage_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tf_ws_transaction_usage_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    usage character varying(255),
    transaction_id integer
);


ALTER TABLE public.tf_ws_transaction_usage_aud OWNER TO gazelle;

--
-- Name: tf_ws_transaction_usage_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tf_ws_transaction_usage_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tf_ws_transaction_usage_id_seq OWNER TO gazelle;

--
-- Name: tm_abstract_configuration; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_abstract_configuration (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comments character varying(255),
    configuration_id integer NOT NULL
);


ALTER TABLE public.tm_abstract_configuration OWNER TO gazelle;

--
-- Name: tm_annotation; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_annotation (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    value character varying(500)
);


ALTER TABLE public.tm_annotation OWNER TO gazelle;

--
-- Name: tm_annotation_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_annotation_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_annotation_id_seq OWNER TO gazelle;

--
-- Name: tm_assertion; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_assertion (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255) NOT NULL
);


ALTER TABLE public.tm_assertion OWNER TO gazelle;

--
-- Name: tm_assertion_aipo; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_assertion_aipo (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    actor_integration_profile_id integer,
    assertion_id integer,
    integration_profile_option_id integer
);


ALTER TABLE public.tm_assertion_aipo OWNER TO gazelle;

--
-- Name: tm_assertion_aipo_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_assertion_aipo_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_assertion_aipo_id_seq OWNER TO gazelle;

--
-- Name: tm_assertion_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_assertion_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_assertion_id_seq OWNER TO gazelle;

--
-- Name: tm_assertion_standard; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_assertion_standard (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    assertion_id integer,
    standard_id integer
);


ALTER TABLE public.tm_assertion_standard OWNER TO gazelle;

--
-- Name: tm_assertion_standard_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_assertion_standard_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_assertion_standard_id_seq OWNER TO gazelle;

--
-- Name: tm_assertion_transaction; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_assertion_transaction (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    assertion_id integer,
    transaction_id integer
);


ALTER TABLE public.tm_assertion_transaction OWNER TO gazelle;

--
-- Name: tm_assertion_transaction_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_assertion_transaction_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_assertion_transaction_id_seq OWNER TO gazelle;

--
-- Name: tm_certificate; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_certificate (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    common_name character varying(255),
    country character varying(255),
    email_address character varying(255),
    expiration_date timestamp with time zone,
    is_vendor_generated boolean,
    key_directory character varying(255),
    locality_name character varying(255),
    organization_unit character varying(255),
    state character varying(255),
    tm_host_id integer,
    tm_certificate_id integer,
    tm_sys_in_sess_id integer NOT NULL
);


ALTER TABLE public.tm_certificate OWNER TO gazelle;

--
-- Name: tm_certificate_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_certificate_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_certificate_id_seq OWNER TO gazelle;

--
-- Name: tm_con_system_status; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_con_system_status (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    status character varying(255)
);


ALTER TABLE public.tm_con_system_status OWNER TO gazelle;

--
-- Name: tm_con_system_status_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_con_system_status_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_con_system_status_id_seq OWNER TO gazelle;

--
-- Name: tm_conf_mapping_w_aipo_w_conftypes; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_conf_mapping_w_aipo_w_conftypes (
    tm_conf_mapped_id integer NOT NULL,
    tm_conftypes_id integer NOT NULL
);


ALTER TABLE public.tm_conf_mapping_w_aipo_w_conftypes OWNER TO gazelle;

--
-- Name: tm_conf_mapping_w_aipo_w_conftypes_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_conf_mapping_w_aipo_w_conftypes_aud (
    rev integer NOT NULL,
    tm_conf_mapped_id integer NOT NULL,
    tm_conftypes_id integer NOT NULL,
    revtype smallint
);


ALTER TABLE public.tm_conf_mapping_w_aipo_w_conftypes_aud OWNER TO gazelle;

--
-- Name: tm_configuration; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_configuration (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comment character varying(255),
    approved boolean NOT NULL,
    is_secured boolean,
    actor_id integer,
    configurationtype_id integer NOT NULL,
    host_id integer,
    system_in_session_id integer
);


ALTER TABLE public.tm_configuration OWNER TO gazelle;

--
-- Name: tm_configuration_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_configuration_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_configuration_id_seq OWNER TO gazelle;

--
-- Name: tm_configuration_mapped_with_aipo; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_configuration_mapped_with_aipo (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    aipo_id integer NOT NULL
);


ALTER TABLE public.tm_configuration_mapped_with_aipo OWNER TO gazelle;

--
-- Name: tm_configuration_mapped_with_aipo_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_configuration_mapped_with_aipo_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    aipo_id integer
);


ALTER TABLE public.tm_configuration_mapped_with_aipo_aud OWNER TO gazelle;

--
-- Name: tm_configuration_mapped_with_aipo_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_configuration_mapped_with_aipo_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_configuration_mapped_with_aipo_id_seq OWNER TO gazelle;

--
-- Name: tm_configuration_type; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_configuration_type (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    category character varying(255),
    class_name character varying(255),
    type_name character varying(255),
    used_for_proxy boolean
);


ALTER TABLE public.tm_configuration_type OWNER TO gazelle;

--
-- Name: tm_configuration_type_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_configuration_type_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    category character varying(255),
    class_name character varying(255),
    type_name character varying(255),
    used_for_proxy boolean
);


ALTER TABLE public.tm_configuration_type_aud OWNER TO gazelle;

--
-- Name: tm_configuration_type_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_configuration_type_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_configuration_type_id_seq OWNER TO gazelle;

--
-- Name: tm_conftype_w_ports_wstype_and_sop_class; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_conftype_w_ports_wstype_and_sop_class (
    id integer NOT NULL,
    port_non_secure integer,
    port_secure integer,
    configurationtype_id integer NOT NULL,
    sop_class_id integer,
    web_service_type_id integer,
    comment character varying(255),
    transport_layer_id integer,
    ws_transaction_usage_id integer,
    transaction_description character varying(255),
    CONSTRAINT tm_conftype_w_ports_wstype_and_sop_class_port_non_secure_check CHECK (((port_non_secure >= 80) AND (port_non_secure <= 65535))),
    CONSTRAINT tm_conftype_w_ports_wstype_and_sop_class_port_secure_check CHECK (((port_secure >= 1024) AND (port_secure <= 65535)))
);


ALTER TABLE public.tm_conftype_w_ports_wstype_and_sop_class OWNER TO gazelle;

--
-- Name: tm_conftype_w_ports_wstype_and_sop_class_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_conftype_w_ports_wstype_and_sop_class_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    comment character varying(255),
    port_non_secure integer,
    port_secure integer,
    configurationtype_id integer,
    sop_class_id integer,
    transport_layer_id integer,
    web_service_type_id integer,
    ws_transaction_usage_id integer,
    transaction_description character varying(255)
);


ALTER TABLE public.tm_conftype_w_ports_wstype_and_sop_class_aud OWNER TO gazelle;

--
-- Name: tm_conftype_w_ports_wstype_and_sop_class_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_conftype_w_ports_wstype_and_sop_class_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_conftype_w_ports_wstype_and_sop_class_id_seq OWNER TO gazelle;

--
-- Name: tm_connectathon_participant; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_connectathon_participant (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    email character varying(255) NOT NULL,
    firstname character varying(128) NOT NULL,
    friday_meal boolean,
    institution_id bytea,
    institution_name character varying(255),
    lastname character varying(128) NOT NULL,
    monday_meal boolean,
    thursday_meal boolean,
    tuesday_meal boolean,
    vegetarian_meal boolean,
    wednesday_meal boolean,
    status_id integer NOT NULL,
    testing_session_id integer NOT NULL,
    social_event boolean,
    institution_ok_id integer
);


ALTER TABLE public.tm_connectathon_participant OWNER TO gazelle;

--
-- Name: tm_connectathon_participant_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_connectathon_participant_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_connectathon_participant_id_seq OWNER TO gazelle;

--
-- Name: tm_connectathon_participant_status; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_connectathon_participant_status (
    id integer NOT NULL,
    description character varying(255),
    name character varying(255) NOT NULL
);


ALTER TABLE public.tm_connectathon_participant_status OWNER TO gazelle;

--
-- Name: tm_connectathon_participant_status_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_connectathon_participant_status_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_connectathon_participant_status_id_seq OWNER TO gazelle;

--
-- Name: tm_contextual_information; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_contextual_information (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    label character varying(255) NOT NULL,
    value character varying(255),
    path_id integer
);


ALTER TABLE public.tm_contextual_information OWNER TO gazelle;

--
-- Name: tm_contextual_information_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_contextual_information_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    label character varying(255),
    value character varying(255),
    path_id integer
);


ALTER TABLE public.tm_contextual_information_aud OWNER TO gazelle;

--
-- Name: tm_contextual_information_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_contextual_information_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_contextual_information_id_seq OWNER TO gazelle;

--
-- Name: tm_contextual_information_instance; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_contextual_information_instance (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    value character varying(255),
    contextual_information integer NOT NULL
);


ALTER TABLE public.tm_contextual_information_instance OWNER TO gazelle;

--
-- Name: tm_contextual_information_instance_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_contextual_information_instance_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_contextual_information_instance_id_seq OWNER TO gazelle;

--
-- Name: tm_data_type; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_data_type (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255) NOT NULL
);


ALTER TABLE public.tm_data_type OWNER TO gazelle;

--
-- Name: tm_data_type_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_data_type_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_data_type_id_seq OWNER TO gazelle;

--
-- Name: tm_demonstration; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_demonstration (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    beginning_date timestamp with time zone,
    description character varying(1024),
    ending_date timestamp with time zone,
    name character varying(255) NOT NULL,
    url character varying(255),
    country character varying(2),
    is_active boolean
);


ALTER TABLE public.tm_demonstration OWNER TO gazelle;

--
-- Name: tm_demonstration_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_demonstration_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_demonstration_id_seq OWNER TO gazelle;

--
-- Name: tm_demonstration_system_in_session; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_demonstration_system_in_session (
    system_in_session_id integer NOT NULL,
    demonstration_id integer NOT NULL
);


ALTER TABLE public.tm_demonstration_system_in_session OWNER TO gazelle;

--
-- Name: tm_demonstrations_in_testing_sessions; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_demonstrations_in_testing_sessions (
    testing_session_id integer NOT NULL,
    demonstration_id integer NOT NULL
);


ALTER TABLE public.tm_demonstrations_in_testing_sessions OWNER TO gazelle;

--
-- Name: tm_dicom_scp_configuration; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_dicom_scp_configuration (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comments character varying(255),
    ae_title character varying(16) NOT NULL,
    modality_type character varying(255),
    port integer,
    port_proxy integer,
    port_secure integer,
    transfer_role character varying(255) NOT NULL,
    configuration_id integer NOT NULL,
    sop_class_id integer NOT NULL,
    CONSTRAINT tm_dicom_scp_configuration_port_check CHECK (((port >= 0) AND (port <= 65635))),
    CONSTRAINT tm_dicom_scp_configuration_port_proxy_check CHECK (((port_proxy >= 0) AND (port_proxy <= 65635))),
    CONSTRAINT tm_dicom_scp_configuration_port_secure_check CHECK (((port_secure >= 0) AND (port_secure <= 65635)))
);


ALTER TABLE public.tm_dicom_scp_configuration OWNER TO gazelle;

--
-- Name: tm_dicom_scu_configuration; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_dicom_scu_configuration (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comments character varying(255),
    ae_title character varying(16) NOT NULL,
    modality_type character varying(255),
    port integer,
    port_proxy integer,
    port_secure integer,
    transfer_role character varying(255) NOT NULL,
    configuration_id integer NOT NULL,
    sop_class_id integer NOT NULL,
    CONSTRAINT tm_dicom_scu_configuration_port_check CHECK (((port >= 0) AND (port <= 65635))),
    CONSTRAINT tm_dicom_scu_configuration_port_proxy_check CHECK (((port_proxy >= 0) AND (port_proxy <= 65635))),
    CONSTRAINT tm_dicom_scu_configuration_port_secure_check CHECK (((port_secure >= 0) AND (port_secure <= 65635)))
);


ALTER TABLE public.tm_dicom_scu_configuration OWNER TO gazelle;

--
-- Name: tm_domains_in_testing_sessions; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_domains_in_testing_sessions (
    testing_session_id integer NOT NULL,
    domain_id integer NOT NULL
);


ALTER TABLE public.tm_domains_in_testing_sessions OWNER TO gazelle;

--
-- Name: tm_free_ip_ports_for_proxy; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_free_ip_ports_for_proxy (
    id integer NOT NULL,
    port_used boolean,
    port integer,
    port_proxy_for_session integer NOT NULL,
    CONSTRAINT tm_free_ip_ports_for_proxy_port_check CHECK (((port >= 1024) AND (port <= 65634)))
);


ALTER TABLE public.tm_free_ip_ports_for_proxy OWNER TO gazelle;

--
-- Name: tm_free_ip_ports_for_proxy_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_free_ip_ports_for_proxy_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_free_ip_ports_for_proxy_id_seq OWNER TO gazelle;

--
-- Name: tm_free_ips_for_session; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_free_ips_for_session (
    id integer NOT NULL,
    ip character varying(255),
    address_used boolean,
    testing_session_id integer
);


ALTER TABLE public.tm_free_ips_for_session OWNER TO gazelle;

--
-- Name: tm_free_ips_for_session_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_free_ips_for_session_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_free_ips_for_session_id_seq OWNER TO gazelle;

--
-- Name: tm_generic_oids_institution_for_session; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_generic_oids_institution_for_session (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    current_oid_value integer NOT NULL,
    oid_for_session character varying(255),
    oid_root_value character varying(255),
    testing_session_id integer NOT NULL
);


ALTER TABLE public.tm_generic_oids_institution_for_session OWNER TO gazelle;

--
-- Name: tm_generic_oids_institution_for_session_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_generic_oids_institution_for_session_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_generic_oids_institution_for_session_id_seq OWNER TO gazelle;

--
-- Name: tm_generic_oids_ip_config_param_for_session; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_generic_oids_ip_config_param_for_session (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    current_oid_value integer NOT NULL,
    oid_for_session character varying(255),
    oid_root_value character varying(255),
    profile_for_id integer NOT NULL,
    testing_session_id integer NOT NULL
);


ALTER TABLE public.tm_generic_oids_ip_config_param_for_session OWNER TO gazelle;

--
-- Name: tm_generic_oids_ip_config_param_for_session_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_generic_oids_ip_config_param_for_session_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_generic_oids_ip_config_param_for_session_id_seq OWNER TO gazelle;

--
-- Name: tm_hl7_initiator_configuration; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_hl7_initiator_configuration (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comments character varying(255),
    assigning_authority character varying(255),
    ass_auth_oid character varying(255),
    sending_receiving_application character varying(255) NOT NULL,
    sending_receiving_facility character varying(255) NOT NULL,
    configuration_id integer NOT NULL
);


ALTER TABLE public.tm_hl7_initiator_configuration OWNER TO gazelle;

--
-- Name: tm_hl7_responder_configuration; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_hl7_responder_configuration (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comments character varying(255),
    assigning_authority character varying(255),
    ass_auth_oid character varying(255),
    sending_receiving_application character varying(255) NOT NULL,
    sending_receiving_facility character varying(255) NOT NULL,
    port integer,
    port_out integer,
    port_proxy integer,
    port_secure integer,
    configuration_id integer NOT NULL,
    CONSTRAINT tm_hl7_responder_configuration_port_check CHECK (((port >= 0) AND (port <= 65635))),
    CONSTRAINT tm_hl7_responder_configuration_port_out_check CHECK (((port_out >= 0) AND (port_out <= 65635))),
    CONSTRAINT tm_hl7_responder_configuration_port_proxy_check CHECK (((port_proxy >= 1024) AND (port_proxy <= 65635))),
    CONSTRAINT tm_hl7_responder_configuration_port_secure_check CHECK (((port_secure >= 0) AND (port_secure <= 65635)))
);


ALTER TABLE public.tm_hl7_responder_configuration OWNER TO gazelle;

--
-- Name: tm_hl7_v3_initiator_configuration; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_hl7_v3_initiator_configuration (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comments character varying(255),
    assigning_authority character varying(255),
    ass_auth_oid character varying(255),
    sending_receiving_application character varying(255) NOT NULL,
    sending_receiving_facility character varying(255) NOT NULL,
    configuration_id integer NOT NULL
);


ALTER TABLE public.tm_hl7_v3_initiator_configuration OWNER TO gazelle;

--
-- Name: tm_hl7_v3_responder_configuration; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_hl7_v3_responder_configuration (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comments character varying(255),
    assigning_authority character varying(255),
    ass_auth_oid character varying(255),
    sending_receiving_application character varying(255) NOT NULL,
    sending_receiving_facility character varying(255) NOT NULL,
    port integer,
    port_proxy integer,
    port_secured integer,
    url character varying(255) NOT NULL,
    usage character varying(255),
    configuration_id integer NOT NULL,
    ws_transaction_usage integer,
    CONSTRAINT tm_hl7_v3_responder_configuration_port_check CHECK (((port >= 0) AND (port <= 65635))),
    CONSTRAINT tm_hl7_v3_responder_configuration_port_proxy_check CHECK (((port_proxy >= 1024) AND (port_proxy <= 65635))),
    CONSTRAINT tm_hl7_v3_responder_configuration_port_secured_check CHECK (((port_secured >= 0) AND (port_secured <= 65635)))
);


ALTER TABLE public.tm_hl7_v3_responder_configuration OWNER TO gazelle;

--
-- Name: tm_home; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_home (
    id integer NOT NULL,
    language character varying(255),
    main_panel_content text,
    main_panel_header text,
    secondary_panel_content text,
    secondary_panel_header text,
    secondary_panel_position character varying(255)
);


ALTER TABLE public.tm_home OWNER TO gazelle;

--
-- Name: tm_home_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_home_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_home_id_seq OWNER TO gazelle;

--
-- Name: tm_host; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_host (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    alias character varying(255),
    comment character varying(255),
    hostname character varying(255) NOT NULL,
    ip character varying(255),
    ignore_domain_name boolean,
    used_by_more_one_system_in_session boolean,
    institution_id integer,
    testing_session_id integer
);


ALTER TABLE public.tm_host OWNER TO gazelle;

--
-- Name: tm_host_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_host_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_host_id_seq OWNER TO gazelle;

--
-- Name: tm_institution_system; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_institution_system (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comment character varying(255),
    institution_id integer,
    system_id integer
);


ALTER TABLE public.tm_institution_system OWNER TO gazelle;

--
-- Name: tm_institution_system_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_institution_system_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_institution_system_id_seq OWNER TO gazelle;

--
-- Name: tm_invoice; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_invoice (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    contract_received boolean,
    contract_received_date date,
    fees_amount numeric(19,2),
    fees_discount numeric(19,2),
    fees_due numeric(19,2),
    fees_paid numeric(19,2),
    invoice_generation_date timestamp with time zone,
    invoice_number integer,
    invoice_paid boolean,
    invoice_payment_date timestamp with time zone,
    invoice_path character varying(255),
    invoice_sent boolean,
    invoice_sent_date date,
    note character varying(255),
    purchase_order character varying(255),
    reasons_for_discount character varying(255),
    vat_amount numeric(19,2),
    vat_due boolean,
    vat_number character varying(255),
    vat_validity boolean,
    currency character varying(12),
    institution_id integer,
    testing_session_id integer,
    vat_country character varying(2),
    number_extra_participant integer,
    number_participant integer,
    number_system integer,
    last_contract_generation bigint,
    contract_out_of_date boolean,
    admin_invoice_notes text,
    special_instructions text,
    CONSTRAINT tm_invoice_fees_discount_check CHECK ((fees_discount >= (0)::numeric))
);


ALTER TABLE public.tm_invoice OWNER TO gazelle;

--
-- Name: tm_invoice_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_invoice_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_invoice_id_seq OWNER TO gazelle;

--
-- Name: tm_jira_issues_to_test; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_jira_issues_to_test (
    id integer NOT NULL,
    jira_key character varying(255),
    jira_status character varying(255),
    jira_summary character varying(255),
    test_id integer
);


ALTER TABLE public.tm_jira_issues_to_test OWNER TO gazelle;

--
-- Name: tm_jira_issues_to_test_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_jira_issues_to_test_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    jira_key character varying(255),
    jira_status character varying(255),
    jira_summary character varying(255),
    test_id integer
);


ALTER TABLE public.tm_jira_issues_to_test_aud OWNER TO gazelle;

--
-- Name: tm_jira_issues_to_test_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_jira_issues_to_test_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_jira_issues_to_test_id_seq OWNER TO gazelle;

--
-- Name: tm_meta_test; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_meta_test (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    keyword character varying(64) NOT NULL,
    short_description character varying(512)
);


ALTER TABLE public.tm_meta_test OWNER TO gazelle;

--
-- Name: tm_meta_test_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_meta_test_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    keyword character varying(64),
    short_description character varying(512)
);


ALTER TABLE public.tm_meta_test_aud OWNER TO gazelle;

--
-- Name: tm_meta_test_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_meta_test_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_meta_test_id_seq OWNER TO gazelle;

--
-- Name: tm_meta_test_test_roles; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_meta_test_test_roles (
    meta_test_id integer NOT NULL,
    test_roles_id integer NOT NULL
);


ALTER TABLE public.tm_meta_test_test_roles OWNER TO gazelle;

--
-- Name: tm_meta_test_test_roles_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_meta_test_test_roles_aud (
    rev integer NOT NULL,
    meta_test_id integer NOT NULL,
    test_roles_id integer NOT NULL,
    revtype smallint
);


ALTER TABLE public.tm_meta_test_test_roles_aud OWNER TO gazelle;

--
-- Name: tm_monitor_in_session; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_monitor_in_session (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    is_activated boolean,
    testing_session_id integer,
    user_id integer
);


ALTER TABLE public.tm_monitor_in_session OWNER TO gazelle;

--
-- Name: tm_monitor_in_session_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_monitor_in_session_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_monitor_in_session_id_seq OWNER TO gazelle;

--
-- Name: tm_monitor_test; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_monitor_test (
    monitor_id integer NOT NULL,
    test_id integer NOT NULL
);


ALTER TABLE public.tm_monitor_test OWNER TO gazelle;

--
-- Name: tm_network_config_for_session; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_network_config_for_session (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    dns_address character varying(255) NOT NULL,
    ip_range_high character varying(255) NOT NULL,
    ip_range_low character varying(255) NOT NULL,
    subnet_mask character varying(255) NOT NULL,
    testing_session_id integer NOT NULL,
    dns_header character varying(20000),
    host_header character varying(20000),
    domain_name character varying(255),
    reverse_header character varying(20000)
);


ALTER TABLE public.tm_network_config_for_session OWNER TO gazelle;

--
-- Name: tm_network_config_for_session_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_network_config_for_session_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_network_config_for_session_id_seq OWNER TO gazelle;

--
-- Name: tm_network_config_for_session_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_network_config_for_session_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_network_config_for_session_seq OWNER TO gazelle;

--
-- Name: tm_object_attribute; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_attribute (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255) NOT NULL,
    object_id integer NOT NULL
);


ALTER TABLE public.tm_object_attribute OWNER TO gazelle;

--
-- Name: tm_object_attribute_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_attribute_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    object_id integer
);


ALTER TABLE public.tm_object_attribute_aud OWNER TO gazelle;

--
-- Name: tm_object_attribute_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_object_attribute_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_object_attribute_id_seq OWNER TO gazelle;

--
-- Name: tm_object_attribute_option; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_attribute_option (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255) NOT NULL,
    keyword character varying(255) NOT NULL,
    attribue_id integer NOT NULL
);


ALTER TABLE public.tm_object_attribute_option OWNER TO gazelle;

--
-- Name: tm_object_attribute_option_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_attribute_option_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    attribue_id integer
);


ALTER TABLE public.tm_object_attribute_option_aud OWNER TO gazelle;

--
-- Name: tm_object_attribute_option_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_object_attribute_option_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_object_attribute_option_id_seq OWNER TO gazelle;

--
-- Name: tm_object_class_validator_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_object_class_validator_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_object_class_validator_id_seq OWNER TO gazelle;

--
-- Name: tm_object_creator; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_creator (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    aipo_id integer NOT NULL,
    object_id integer NOT NULL
);


ALTER TABLE public.tm_object_creator OWNER TO gazelle;

--
-- Name: tm_object_creator_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_creator_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    aipo_id integer,
    object_id integer
);


ALTER TABLE public.tm_object_creator_aud OWNER TO gazelle;

--
-- Name: tm_object_creator_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_object_creator_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_object_creator_id_seq OWNER TO gazelle;

--
-- Name: tm_object_file; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_file (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    object_id integer NOT NULL,
    type_id integer NOT NULL,
    max integer,
    min integer,
    uploader character varying(255)
);


ALTER TABLE public.tm_object_file OWNER TO gazelle;

--
-- Name: tm_object_file_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_file_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    max integer,
    min integer,
    uploader character varying(255),
    object_id integer,
    type_id integer
);


ALTER TABLE public.tm_object_file_aud OWNER TO gazelle;

--
-- Name: tm_object_file_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_object_file_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_object_file_id_seq OWNER TO gazelle;

--
-- Name: tm_object_file_type; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_file_type (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255) NOT NULL,
    keyword character varying(255) NOT NULL,
    extensions character varying(255),
    writable boolean,
    validate boolean
);


ALTER TABLE public.tm_object_file_type OWNER TO gazelle;

--
-- Name: tm_object_file_type_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_file_type_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    extensions character varying(255),
    keyword character varying(255),
    writable boolean,
    validate boolean
);


ALTER TABLE public.tm_object_file_type_aud OWNER TO gazelle;

--
-- Name: tm_object_file_type_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_object_file_type_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_object_file_type_id_seq OWNER TO gazelle;

--
-- Name: tm_object_instance; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_instance (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description text,
    location character varying(255),
    object_id integer NOT NULL,
    system_in_session_id integer NOT NULL,
    name character varying(255),
    completed boolean,
    validation_id integer,
    test_type_id integer
);


ALTER TABLE public.tm_object_instance OWNER TO gazelle;

--
-- Name: tm_object_instance_annotation; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_instance_annotation (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    annotation_id integer NOT NULL,
    object_instance_id integer NOT NULL
);


ALTER TABLE public.tm_object_instance_annotation OWNER TO gazelle;

--
-- Name: tm_object_instance_annotation_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_object_instance_annotation_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_object_instance_annotation_id_seq OWNER TO gazelle;

--
-- Name: tm_object_instance_attribute; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_instance_attribute (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    attribute_id integer NOT NULL,
    instance_id integer NOT NULL
);


ALTER TABLE public.tm_object_instance_attribute OWNER TO gazelle;

--
-- Name: tm_object_instance_attribute_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_object_instance_attribute_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_object_instance_attribute_id_seq OWNER TO gazelle;

--
-- Name: tm_object_instance_file; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_instance_file (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    url character varying(255),
    file_id integer NOT NULL,
    instance_id integer NOT NULL,
    system_in_session_id integer,
    result_oid bytea
);


ALTER TABLE public.tm_object_instance_file OWNER TO gazelle;

--
-- Name: tm_object_instance_file_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_object_instance_file_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_object_instance_file_id_seq OWNER TO gazelle;

--
-- Name: tm_object_instance_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_object_instance_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_object_instance_id_seq OWNER TO gazelle;

--
-- Name: tm_object_instance_validation; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_instance_validation (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    value character varying(255) NOT NULL
);


ALTER TABLE public.tm_object_instance_validation OWNER TO gazelle;

--
-- Name: tm_object_instance_validation_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_instance_validation_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    value character varying(255)
);


ALTER TABLE public.tm_object_instance_validation_aud OWNER TO gazelle;

--
-- Name: tm_object_instance_validation_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_object_instance_validation_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_object_instance_validation_id_seq OWNER TO gazelle;

--
-- Name: tm_object_method_validator_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_object_method_validator_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_object_method_validator_id_seq OWNER TO gazelle;

--
-- Name: tm_object_parameter_validator_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_object_parameter_validator_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_object_parameter_validator_id_seq OWNER TO gazelle;

--
-- Name: tm_object_reader; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_reader (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    aipo_id integer NOT NULL,
    object_id integer NOT NULL
);


ALTER TABLE public.tm_object_reader OWNER TO gazelle;

--
-- Name: tm_object_reader_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_reader_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    aipo_id integer,
    object_id integer
);


ALTER TABLE public.tm_object_reader_aud OWNER TO gazelle;

--
-- Name: tm_object_reader_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_object_reader_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_object_reader_id_seq OWNER TO gazelle;

--
-- Name: tm_object_type; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_type (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    default_desc character varying(500),
    description character varying(255),
    instructions text,
    keyword character varying(255) NOT NULL,
    object_type_status_id integer
);


ALTER TABLE public.tm_object_type OWNER TO gazelle;

--
-- Name: tm_object_type_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_type_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    default_desc character varying(500),
    description character varying(250),
    instructions text,
    keyword character varying(250),
    object_type_status_id integer
);


ALTER TABLE public.tm_object_type_aud OWNER TO gazelle;

--
-- Name: tm_object_type_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_object_type_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_object_type_id_seq OWNER TO gazelle;

--
-- Name: tm_object_type_status; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_type_status (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255)
);


ALTER TABLE public.tm_object_type_status OWNER TO gazelle;

--
-- Name: tm_object_type_status_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_object_type_status_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255)
);


ALTER TABLE public.tm_object_type_status_aud OWNER TO gazelle;

--
-- Name: tm_object_type_status_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_object_type_status_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_object_type_status_id_seq OWNER TO gazelle;

--
-- Name: tm_oid_institution; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_oid_institution (
    id integer NOT NULL,
    oid character varying(255),
    institution_id integer,
    testing_session_id integer
);


ALTER TABLE public.tm_oid_institution OWNER TO gazelle;

--
-- Name: tm_oid_institution_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_oid_institution_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_oid_institution_id_seq OWNER TO gazelle;

--
-- Name: tm_oid_requirement; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_oid_requirement (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    label character varying(255),
    oid_root_definition_id integer,
    prefix text
);


ALTER TABLE public.tm_oid_requirement OWNER TO gazelle;

--
-- Name: tm_oid_requirement_aipo; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_oid_requirement_aipo (
    oid_requirement_id integer NOT NULL,
    aipo_id integer NOT NULL
);


ALTER TABLE public.tm_oid_requirement_aipo OWNER TO gazelle;

--
-- Name: tm_oid_requirement_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_oid_requirement_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_oid_requirement_id_seq OWNER TO gazelle;

--
-- Name: tm_oid_root_definition; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_oid_root_definition (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    root_oid character varying(255),
    last_value integer DEFAULT 0 NOT NULL,
    label_id integer
);


ALTER TABLE public.tm_oid_root_definition OWNER TO gazelle;

--
-- Name: tm_oid_root_definition_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_oid_root_definition_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_oid_root_definition_id_seq OWNER TO gazelle;

--
-- Name: tm_oid_root_definition_label; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_oid_root_definition_label (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    label character varying(255) NOT NULL
);


ALTER TABLE public.tm_oid_root_definition_label OWNER TO gazelle;

--
-- Name: tm_oid_root_definition_label_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_oid_root_definition_label_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_oid_root_definition_label_id_seq OWNER TO gazelle;

--
-- Name: tm_oid_system_assignment; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_oid_system_assignment (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comment character varying(255),
    oid_value character varying(255),
    oid_requirement_id integer,
    system_in_session_id integer,
    oid character varying(255)
);


ALTER TABLE public.tm_oid_system_assignment OWNER TO gazelle;

--
-- Name: tm_oid_system_assignment_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_oid_system_assignment_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_oid_system_assignment_id_seq OWNER TO gazelle;

--
-- Name: tm_oids_ip_config_param_for_session_for_hl7; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_oids_ip_config_param_for_session_for_hl7 (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    current_id_for_oid_hl7_v2 integer NOT NULL,
    current_id_for_oid_hl7_v3 integer NOT NULL,
    oid_for_hl7_v2 character varying(255),
    oid_for_hl7_v3 character varying(255),
    oid_for_session character varying(255),
    testing_session_id integer NOT NULL
);


ALTER TABLE public.tm_oids_ip_config_param_for_session_for_hl7 OWNER TO gazelle;

--
-- Name: tm_oids_ip_config_param_for_session_for_hl7_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_oids_ip_config_param_for_session_for_hl7_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_oids_ip_config_param_for_session_for_hl7_id_seq OWNER TO gazelle;

--
-- Name: tm_path; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_path (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255) NOT NULL,
    keyword character varying(255) NOT NULL,
    type character varying(255)
);


ALTER TABLE public.tm_path OWNER TO gazelle;

--
-- Name: tm_path_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_path_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    type character varying(255)
);


ALTER TABLE public.tm_path_aud OWNER TO gazelle;

--
-- Name: tm_path_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_path_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_path_id_seq OWNER TO gazelle;

--
-- Name: tm_patient_assigning_autority_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_patient_assigning_autority_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_patient_assigning_autority_id_seq OWNER TO gazelle;

--
-- Name: tm_patient_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_patient_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_patient_id_seq OWNER TO gazelle;

--
-- Name: tm_patient_identifier_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_patient_identifier_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_patient_identifier_id_seq OWNER TO gazelle;

--
-- Name: tm_patient_type_code_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_patient_type_code_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_patient_type_code_id_seq OWNER TO gazelle;

--
-- Name: tm_port_host_pair; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_port_host_pair (
    id integer NOT NULL,
    host bytea,
    port integer,
    CONSTRAINT tm_port_host_pair_port_check CHECK ((port <= 65635))
);


ALTER TABLE public.tm_port_host_pair OWNER TO gazelle;

--
-- Name: tm_port_host_pair_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_port_host_pair_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_port_host_pair_id_seq OWNER TO gazelle;

--
-- Name: tm_profiles_in_testing_sessions; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_profiles_in_testing_sessions (
    testing_session_id integer NOT NULL,
    integration_profile_id integer NOT NULL
);


ALTER TABLE public.tm_profiles_in_testing_sessions OWNER TO gazelle;

--
-- Name: tm_proxy_configuration_for_session; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_proxy_configuration_for_session (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    ip_for_class character varying(255) NOT NULL,
    port_range_high integer,
    port_range_low integer,
    configurationtype_id integer,
    testing_session_id integer NOT NULL,
    CONSTRAINT tm_proxy_configuration_for_session_port_range_high_check CHECK ((port_range_high <= 65634)),
    CONSTRAINT tm_proxy_configuration_for_session_port_range_low_check CHECK ((port_range_low <= 65634))
);


ALTER TABLE public.tm_proxy_configuration_for_session OWNER TO gazelle;

--
-- Name: tm_proxy_configuration_for_session_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_proxy_configuration_for_session_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_proxy_configuration_for_session_id_seq OWNER TO gazelle;

--
-- Name: tm_proxy_configuration_for_session_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_proxy_configuration_for_session_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_proxy_configuration_for_session_seq OWNER TO gazelle;

--
-- Name: tm_raw_configuration; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_raw_configuration (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comments character varying(255),
    configuration_id integer NOT NULL,
    port integer,
    port_proxy integer,
    port_secured integer,
    transaction_description character varying(255),
    CONSTRAINT tm_raw_configuration_port_check CHECK (((port >= 0) AND (port <= 65635))),
    CONSTRAINT tm_raw_configuration_port_proxy_check CHECK (((port_proxy <= 65635) AND (port_proxy >= 0))),
    CONSTRAINT tm_raw_configuration_port_secured_check CHECK (((port_secured <= 65635) AND (port_secured >= 0)))
);


ALTER TABLE public.tm_raw_configuration OWNER TO gazelle;

--
-- Name: tm_role_in_test; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_role_in_test (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    keyword character varying(255),
    is_role_played_by_a_tool boolean
);


ALTER TABLE public.tm_role_in_test OWNER TO gazelle;

--
-- Name: tm_role_in_test_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_role_in_test_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    keyword character varying(255),
    is_role_played_by_a_tool boolean
);


ALTER TABLE public.tm_role_in_test_aud OWNER TO gazelle;

--
-- Name: tm_role_in_test_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_role_in_test_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_role_in_test_id_seq OWNER TO gazelle;

--
-- Name: tm_role_in_test_test_participants; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_role_in_test_test_participants (
    role_in_test_id integer NOT NULL,
    test_participants_id integer NOT NULL
);


ALTER TABLE public.tm_role_in_test_test_participants OWNER TO gazelle;

--
-- Name: tm_role_in_test_test_participants_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_role_in_test_test_participants_aud (
    rev integer NOT NULL,
    role_in_test_id integer NOT NULL,
    revtype smallint,
    test_participants_id integer NOT NULL
);


ALTER TABLE public.tm_role_in_test_test_participants_aud OWNER TO gazelle;

--
-- Name: tm_sap_result_tr_comment; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_sap_result_tr_comment (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comment character varying(255),
    sap_id integer NOT NULL,
    tr_id integer NOT NULL
);


ALTER TABLE public.tm_sap_result_tr_comment OWNER TO gazelle;

--
-- Name: tm_sap_result_tr_comment_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_sap_result_tr_comment_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_sap_result_tr_comment_seq OWNER TO gazelle;

--
-- Name: tm_share_patient_logger_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_share_patient_logger_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_share_patient_logger_id_seq OWNER TO gazelle;

--
-- Name: tm_simulator; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_simulator (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    hl7_conformance_statement_url character varying(255),
    dicom_conformance_statement_url character varying(255),
    events_history character varying(92000),
    integration_statement_date timestamp with time zone,
    integration_statement_size integer,
    integration_statement_url character varying(255),
    is_dicom_system boolean,
    is_hl7_system boolean,
    name character varying(128) NOT NULL,
    version character varying(255) NOT NULL,
    comment character varying(255),
    keyword_suffix character varying(60),
    owner_user_id integer NOT NULL,
    system_type_id integer,
    url character varying(255),
    keyword character varying(255),
    is_tool boolean
);


ALTER TABLE public.tm_simulator OWNER TO gazelle;

--
-- Name: tm_simulator_in_session; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_simulator_in_session (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    accepted_to_session boolean,
    ampere real,
    blog character varying(255),
    extra_ip_address integer,
    is_conf_stat_provided boolean,
    is_copy boolean,
    is_ihe_is_provided boolean,
    is_ihe_is_required boolean,
    power integer,
    skype character varying(255),
    storage_volume real,
    table_label character varying(255),
    voltage integer,
    person_servicing integer,
    system_id integer,
    system_in_session_status_id integer,
    table_session_id integer,
    testing_session_id integer,
    comment character varying(255)
);


ALTER TABLE public.tm_simulator_in_session OWNER TO gazelle;

--
-- Name: tm_sop_class; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_sop_class (
    id integer NOT NULL,
    keyword character varying(255) NOT NULL,
    name character varying(255),
    last_changed timestamp with time zone,
    last_modifier_id character varying(255)
);


ALTER TABLE public.tm_sop_class OWNER TO gazelle;

--
-- Name: tm_sop_class_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_sop_class_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    keyword character varying(255),
    name character varying(255),
    last_changed timestamp with time zone,
    last_modifier_id character varying(255)
);


ALTER TABLE public.tm_sop_class_aud OWNER TO gazelle;

--
-- Name: tm_sop_class_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_sop_class_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_sop_class_id_seq OWNER TO gazelle;

--
-- Name: tm_standard; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_standard (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    keyword character varying(255) NOT NULL,
    name character varying(255) NOT NULL,
    url character varying(255),
    version character varying(255)
);


ALTER TABLE public.tm_standard OWNER TO gazelle;

--
-- Name: tm_standard_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_standard_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_standard_id_seq OWNER TO gazelle;

--
-- Name: tm_status; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_status (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255)
);


ALTER TABLE public.tm_status OWNER TO gazelle;

--
-- Name: tm_status_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_status_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_status_id_seq OWNER TO gazelle;

--
-- Name: tm_status_results; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_status_results (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255)
);


ALTER TABLE public.tm_status_results OWNER TO gazelle;

--
-- Name: tm_status_results_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_status_results_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_status_results_id_seq OWNER TO gazelle;

--
-- Name: tm_step_inst_msg_process_status; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_step_inst_msg_process_status (
    id integer NOT NULL,
    description character varying(1024) NOT NULL,
    key character varying(255) NOT NULL,
    label_key_for_display character varying(45) NOT NULL
);


ALTER TABLE public.tm_step_inst_msg_process_status OWNER TO gazelle;

--
-- Name: tm_step_inst_msg_process_status_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_step_inst_msg_process_status_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_step_inst_msg_process_status_id_seq OWNER TO gazelle;

--
-- Name: tm_step_instance_exec_status; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_step_instance_exec_status (
    id integer NOT NULL,
    description character varying(1024) NOT NULL,
    key character varying(255) NOT NULL,
    label_key_for_display character varying(45) NOT NULL
);


ALTER TABLE public.tm_step_instance_exec_status OWNER TO gazelle;

--
-- Name: tm_step_instance_exec_status_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_step_instance_exec_status_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_step_instance_exec_status_id_seq OWNER TO gazelle;

--
-- Name: tm_step_instance_message; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_step_instance_message (
    id integer NOT NULL,
    connection_id integer,
    direction integer,
    error_message character varying(255),
    last_changed timestamp with time zone,
    message_contents bytea,
    proxy_host_name character varying(255),
    proxy_msg_id integer,
    proxy_port integer,
    message_type_recieved character varying(255),
    receiver_port integer,
    sender_port integer,
    process_status_id integer,
    proxy_type_id integer,
    receiver_host_id integer,
    receiver_institution_id integer,
    receiver_system_id integer,
    receiver_tm_configuration_id integer,
    relates_to integer,
    sender_host_id integer,
    sender_institution_id integer,
    sender_system_id integer,
    sender_tm_configuration_id integer,
    tm_test_step_instance_id integer,
    tm_test_step_message_profile_id integer
);


ALTER TABLE public.tm_step_instance_message OWNER TO gazelle;

--
-- Name: tm_step_instance_message_sequence; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_step_instance_message_sequence
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_step_instance_message_sequence OWNER TO gazelle;

--
-- Name: tm_step_instance_msg_validation; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_step_instance_msg_validation (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    validation_report bytea,
    message_validation_service_id integer,
    tm_step_instance_message_id integer,
    validation_status_id integer
);


ALTER TABLE public.tm_step_instance_msg_validation OWNER TO gazelle;

--
-- Name: tm_step_instance_msg_validation_sequence; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_step_instance_msg_validation_sequence
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_step_instance_msg_validation_sequence OWNER TO gazelle;

--
-- Name: tm_subtypes_per_system; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_subtypes_per_system (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    system_id integer NOT NULL,
    system_subtypes_per_system_type_id integer NOT NULL
);


ALTER TABLE public.tm_subtypes_per_system OWNER TO gazelle;

--
-- Name: tm_syslog_configuration; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_syslog_configuration (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comments character varying(255),
    port integer,
    port_proxy integer,
    configuration_id integer NOT NULL,
    port_secured integer,
    protocol_version character varying(255),
    transport_layer_id integer,
    CONSTRAINT tm_syslog_configuration_port_check CHECK ((port <= 65635)),
    CONSTRAINT tm_syslog_configuration_port_proxy_check CHECK ((port_proxy <= 65635)),
    CONSTRAINT tm_syslog_configuration_port_secured_check CHECK (((port_secured >= 0) AND (port_secured <= 65635)))
);


ALTER TABLE public.tm_syslog_configuration OWNER TO gazelle;

--
-- Name: tm_system; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_system (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    hl7_conformance_statement_url character varying(255),
    dicom_conformance_statement_url character varying(255),
    events_history character varying(92000),
    integration_statement_date timestamp with time zone,
    integration_statement_size integer,
    integration_statement_url character varying(255),
    is_dicom_system boolean,
    is_hl7_system boolean,
    name character varying(128) NOT NULL,
    version character varying(255) NOT NULL,
    comment character varying(255),
    keyword_suffix character varying(60),
    owner_user_id integer NOT NULL,
    system_type_id integer,
    keyword character varying(255),
    is_tool boolean,
    dtype character varying(31),
    url character varying(255),
    publication_request_date timestamp with time zone,
    counter_crawler_jobs_with_unmatching_hashcode integer,
    counter_crawler_jobs_with_unreachable_url integer,
    integration_statement_generated_checksum character varying(255),
    integration_statement_generated_date timestamp with time zone,
    integration_statement_referenced_checksum character varying(255),
    integration_statement_status integer,
    integration_statement_validated_by_admin_checksum character varying(255),
    integration_statement_validated_by_admin_comment character varying(4096),
    integration_statement_validated_by_admin_date timestamp with time zone,
    integration_statement_validated_last_time timestamp with time zone,
    is_email_sent_because_unmatching_hashcode boolean,
    is_email_sent_because_unreachable_url boolean
);


ALTER TABLE public.tm_system OWNER TO gazelle;

--
-- Name: tm_system_actor_profiles; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_system_actor_profiles (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    actor_integration_profile_option_id integer,
    system_id integer,
    testing_type_id integer,
    wanted_testing_type_id integer,
    testing_type_reviewed boolean
);


ALTER TABLE public.tm_system_actor_profiles OWNER TO gazelle;

--
-- Name: tm_system_actor_profiles_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_system_actor_profiles_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_system_actor_profiles_id_seq OWNER TO gazelle;

--
-- Name: tm_system_aipo_result_for_a_testing_session; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_system_aipo_result_for_a_testing_session (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comment character varying(255),
    status_id integer,
    system_actor_profile_id integer NOT NULL,
    testing_session_id integer NOT NULL,
    htmlcountfailed text,
    htmlcountprogress text,
    htmlcountverified text,
    htmlcountwaiting text,
    indicatorfailed integer,
    indicatorprogress integer,
    indicatorverified integer,
    indicatorwaiting integer,
    testrolescounto integer,
    testrolescountr integer,
    htmlpartners text,
    enabled boolean
);


ALTER TABLE public.tm_system_aipo_result_for_a_testing_session OWNER TO gazelle;

--
-- Name: tm_system_aipo_result_for_a_testing_session_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_system_aipo_result_for_a_testing_session_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_system_aipo_result_for_a_testing_session_id_seq OWNER TO gazelle;

--
-- Name: tm_system_event; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_system_event (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comment text,
    eventdate timestamp with time zone,
    type integer,
    username character varying(255)
);


ALTER TABLE public.tm_system_event OWNER TO gazelle;

--
-- Name: tm_system_event_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_system_event_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_system_event_id_seq OWNER TO gazelle;

--
-- Name: tm_system_events; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_system_events (
    tm_system_id integer NOT NULL,
    systemevents_id integer NOT NULL
);


ALTER TABLE public.tm_system_events OWNER TO gazelle;

--
-- Name: tm_system_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_system_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_system_id_seq OWNER TO gazelle;

--
-- Name: tm_system_in_session; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_system_in_session (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    accepted_to_session boolean,
    ampere real,
    blog character varying(255),
    extra_ip_address integer,
    is_conf_stat_provided boolean,
    is_copy boolean,
    is_ihe_is_provided boolean,
    is_ihe_is_required boolean,
    power integer,
    skype character varying(255),
    storage_volume real,
    table_label character varying(255),
    voltage integer,
    person_servicing integer,
    system_id integer,
    system_in_session_status_id integer,
    table_session_id integer,
    testing_session_id integer,
    dtype character varying(31),
    comment character varying(255),
    registration_status integer,
    noteslist bytea
);


ALTER TABLE public.tm_system_in_session OWNER TO gazelle;

--
-- Name: tm_system_in_session_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_system_in_session_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_system_in_session_id_seq OWNER TO gazelle;

--
-- Name: tm_system_in_session_status; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_system_in_session_status (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255)
);


ALTER TABLE public.tm_system_in_session_status OWNER TO gazelle;

--
-- Name: tm_system_in_session_status_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_system_in_session_status_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_system_in_session_status_id_seq OWNER TO gazelle;

--
-- Name: tm_system_in_session_user; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_system_in_session_user (
    id integer NOT NULL,
    system_in_session_id integer,
    user_id integer
);


ALTER TABLE public.tm_system_in_session_user OWNER TO gazelle;

--
-- Name: tm_system_in_session_user_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_system_in_session_user_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_system_in_session_user_id_seq OWNER TO gazelle;

--
-- Name: tm_system_link; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_system_link (
    mastersystem_id integer,
    id integer NOT NULL
);


ALTER TABLE public.tm_system_link OWNER TO gazelle;

--
-- Name: tm_test; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    keyword character varying(64) NOT NULL,
    name character varying(255) NOT NULL,
    number_of_tests_to_realize integer,
    short_description character varying(512) NOT NULL,
    version character varying(255),
    test_status_id integer,
    test_type_id integer NOT NULL,
    test_peer_type_id integer,
    orchestrated boolean,
    orchestrable boolean,
    validated boolean,
    author character varying(255),
    last_validator_id character varying(255),
    auto_complete boolean,
    child_node_update timestamp with time zone,
    CONSTRAINT tm_test_number_of_tests_to_realize_check CHECK ((number_of_tests_to_realize >= 1))
);


ALTER TABLE public.tm_test OWNER TO gazelle;

--
-- Name: tm_test_assertion; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_assertion (
    id integer NOT NULL,
    assertion_id integer,
    test_id integer
);


ALTER TABLE public.tm_test_assertion OWNER TO gazelle;

--
-- Name: tm_test_assertion_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_assertion_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_assertion_id_seq OWNER TO gazelle;

--
-- Name: tm_test_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    keyword character varying(64),
    name character varying(255),
    number_of_tests_to_realize integer,
    short_description character varying(512),
    version character varying(255),
    test_status_id integer,
    test_type_id integer,
    test_peer_type_id integer,
    orchestrated boolean,
    orchestrable boolean,
    validated boolean,
    author character varying(255),
    last_validator_id character varying(255),
    child_node_update timestamp with time zone
);


ALTER TABLE public.tm_test_aud OWNER TO gazelle;

--
-- Name: tm_test_description; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_description (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description text NOT NULL,
    gazelle_language_id integer NOT NULL
);


ALTER TABLE public.tm_test_description OWNER TO gazelle;

--
-- Name: tm_test_description_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_description_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description text,
    gazelle_language_id integer
);


ALTER TABLE public.tm_test_description_aud OWNER TO gazelle;

--
-- Name: tm_test_description_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_description_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_description_id_seq OWNER TO gazelle;

--
-- Name: tm_test_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_id_seq OWNER TO gazelle;

--
-- Name: tm_test_inheritance; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_inheritance (
    id integer NOT NULL,
    included_test_id integer,
    test_id integer
);


ALTER TABLE public.tm_test_inheritance OWNER TO gazelle;

--
-- Name: tm_test_inheritance_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_inheritance_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_inheritance_id_seq OWNER TO gazelle;

--
-- Name: tm_test_instance; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_instance (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    bpel_server_id character varying(255),
    comments text,
    description character varying(10000),
    last_status_id integer NOT NULL,
    monitor_id integer,
    test_id integer,
    test_version integer,
    proxy_used boolean,
    testing_session_id integer,
    execution_status_id integer,
    contains_same_system_or_company boolean
);


ALTER TABLE public.tm_test_instance OWNER TO gazelle;

--
-- Name: tm_test_instance_event; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_instance_event (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    date_of_event timestamp with time zone,
    status_id integer,
    comment text,
    type integer,
    username character varying(255),
    description text,
    filename text
);


ALTER TABLE public.tm_test_instance_event OWNER TO gazelle;

--
-- Name: tm_test_instance_event_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_instance_event_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_instance_event_id_seq OWNER TO gazelle;

--
-- Name: tm_test_instance_exec_status; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_instance_exec_status (
    id integer NOT NULL,
    description character varying(1024) NOT NULL,
    key character varying(255) NOT NULL,
    label_key_for_display character varying(45) NOT NULL
);


ALTER TABLE public.tm_test_instance_exec_status OWNER TO gazelle;

--
-- Name: tm_test_instance_exec_status_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_instance_exec_status_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_instance_exec_status_id_seq OWNER TO gazelle;

--
-- Name: tm_test_instance_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_instance_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_instance_id_seq OWNER TO gazelle;

--
-- Name: tm_test_instance_participants; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_instance_participants (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    role_in_test_id integer,
    status_id integer,
    system_in_session_user_id integer,
    test_instance_id integer,
    actor_integration_profile_option_id integer
);


ALTER TABLE public.tm_test_instance_participants OWNER TO gazelle;

--
-- Name: tm_test_instance_participants_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_instance_participants_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_instance_participants_id_seq OWNER TO gazelle;

--
-- Name: tm_test_instance_participants_status; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_instance_participants_status (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255)
);


ALTER TABLE public.tm_test_instance_participants_status OWNER TO gazelle;

--
-- Name: tm_test_instance_participants_status_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_instance_participants_status_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_instance_participants_status_id_seq OWNER TO gazelle;

--
-- Name: tm_test_instance_path_to_log_file; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_instance_path_to_log_file (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    path character varying(255) NOT NULL,
    type character varying(255) NOT NULL,
    filename character varying(255),
    withoutfilename boolean
);


ALTER TABLE public.tm_test_instance_path_to_log_file OWNER TO gazelle;

--
-- Name: tm_test_instance_path_to_log_file_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_instance_path_to_log_file_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_instance_path_to_log_file_id_seq OWNER TO gazelle;

--
-- Name: tm_test_instance_status; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_instance_status (
    id integer NOT NULL,
    paused_at timestamp with time zone,
    started_at timestamp with time zone,
    stopped_at timestamp with time zone,
    status_id integer
);


ALTER TABLE public.tm_test_instance_status OWNER TO gazelle;

--
-- Name: tm_test_instance_status_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_instance_status_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_instance_status_id_seq OWNER TO gazelle;

--
-- Name: tm_test_instance_test_instance_path_to_log_file; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_instance_test_instance_path_to_log_file (
    test_instance_id integer NOT NULL,
    test_instance_path_id integer NOT NULL
);


ALTER TABLE public.tm_test_instance_test_instance_path_to_log_file OWNER TO gazelle;

--
-- Name: tm_test_instance_test_status; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_instance_test_status (
    test_instance_id integer NOT NULL,
    status_id integer NOT NULL
);


ALTER TABLE public.tm_test_instance_test_status OWNER TO gazelle;

--
-- Name: tm_test_instance_test_steps_instance; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_instance_test_steps_instance (
    test_instance_id integer NOT NULL,
    test_steps_instance_id integer NOT NULL
);


ALTER TABLE public.tm_test_instance_test_steps_instance OWNER TO gazelle;

--
-- Name: tm_test_instance_tm_test_steps_data; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_instance_tm_test_steps_data (
    tm_test_instance_id integer NOT NULL,
    teststepsdatalist_id integer NOT NULL
);


ALTER TABLE public.tm_test_instance_tm_test_steps_data OWNER TO gazelle;

--
-- Name: tm_test_option; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_option (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255),
    available boolean
);


ALTER TABLE public.tm_test_option OWNER TO gazelle;

--
-- Name: tm_test_option_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_option_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255),
    available boolean
);


ALTER TABLE public.tm_test_option_aud OWNER TO gazelle;

--
-- Name: tm_test_option_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_option_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_option_id_seq OWNER TO gazelle;

--
-- Name: tm_test_participants; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_participants (
    id integer NOT NULL,
    is_tested boolean NOT NULL,
    actor_integration_profile_option_id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255)
);


ALTER TABLE public.tm_test_participants OWNER TO gazelle;

--
-- Name: tm_test_participants_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_participants_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    is_tested boolean,
    actor_integration_profile_option_id integer,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255)
);


ALTER TABLE public.tm_test_participants_aud OWNER TO gazelle;

--
-- Name: tm_test_participants_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_participants_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_participants_id_seq OWNER TO gazelle;

--
-- Name: tm_test_peer_type; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_peer_type (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255)
);


ALTER TABLE public.tm_test_peer_type OWNER TO gazelle;

--
-- Name: tm_test_peer_type_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_peer_type_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255)
);


ALTER TABLE public.tm_test_peer_type_aud OWNER TO gazelle;

--
-- Name: tm_test_peer_type_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_peer_type_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_peer_type_id_seq OWNER TO gazelle;

--
-- Name: tm_test_roles; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_roles (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    card_max integer,
    card_min integer,
    url character varying(255),
    url_doc character varying(255),
    role_in_test_id integer,
    test_id integer NOT NULL,
    test_option_id integer NOT NULL,
    number_of_tests_to_realize integer,
    role_rank integer,
    CONSTRAINT tm_test_roles_number_of_tests_to_realize_check CHECK ((number_of_tests_to_realize >= 1))
);


ALTER TABLE public.tm_test_roles OWNER TO gazelle;

--
-- Name: tm_test_roles_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_roles_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    card_max integer,
    card_min integer,
    url character varying(255),
    url_doc character varying(255),
    role_in_test_id integer,
    test_id integer,
    test_option_id integer,
    number_of_tests_to_realize integer,
    role_rank integer
);


ALTER TABLE public.tm_test_roles_aud OWNER TO gazelle;

--
-- Name: tm_test_roles_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_roles_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_roles_id_seq OWNER TO gazelle;

--
-- Name: tm_test_status; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_status (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255)
);


ALTER TABLE public.tm_test_status OWNER TO gazelle;

--
-- Name: tm_test_status_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_status_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255)
);


ALTER TABLE public.tm_test_status_aud OWNER TO gazelle;

--
-- Name: tm_test_status_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_status_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_status_id_seq OWNER TO gazelle;

--
-- Name: tm_test_step_message_profile; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_step_message_profile (
    id integer NOT NULL,
    auto_validate smallint,
    direction integer,
    example_msg_content character varying(2000000),
    example_msg_file_name character varying(255),
    validation_context_content character varying(2000000),
    validation_context_file_name character varying(255),
    tf_hl7_message_profile_id integer,
    tm_test_steps_id integer
);


ALTER TABLE public.tm_test_step_message_profile OWNER TO gazelle;

--
-- Name: tm_test_step_message_profile_sequence; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_step_message_profile_sequence
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_step_message_profile_sequence OWNER TO gazelle;

--
-- Name: tm_test_steps; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_steps (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(1024) NOT NULL,
    message_type character varying(255),
    step_index integer NOT NULL,
    test_roles_initiator_id integer NOT NULL,
    test_roles_responder_id integer,
    test_steps_option_id integer,
    transaction_id integer,
    secured boolean,
    ws_transaction_usage_id integer,
    auto_complete boolean,
    auto_triggered boolean,
    expected_message_count integer,
    hl7_version character varying(255),
    responder_message_type character varying(255)
);


ALTER TABLE public.tm_test_steps OWNER TO gazelle;

--
-- Name: tm_test_steps_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_steps_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(1024),
    message_type character varying(255),
    step_index integer,
    test_roles_initiator_id integer,
    test_roles_responder_id integer,
    test_steps_option_id integer,
    transaction_id integer,
    secured boolean,
    ws_transaction_usage_id integer
);


ALTER TABLE public.tm_test_steps_aud OWNER TO gazelle;

--
-- Name: tm_test_steps_data; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_steps_data (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comment text,
    value text,
    data_type_id integer,
    withoutfilename boolean,
    permanentlink character varying(255),
    status character varying(255)
);


ALTER TABLE public.tm_test_steps_data OWNER TO gazelle;

--
-- Name: tm_test_steps_data_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_steps_data_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_steps_data_id_seq OWNER TO gazelle;

--
-- Name: tm_test_steps_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_steps_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_steps_id_seq OWNER TO gazelle;

--
-- Name: tm_test_steps_input_ci; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_steps_input_ci (
    test_steps_id integer NOT NULL,
    contextual_information_id integer NOT NULL
);


ALTER TABLE public.tm_test_steps_input_ci OWNER TO gazelle;

--
-- Name: tm_test_steps_input_ci_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_steps_input_ci_aud (
    rev integer NOT NULL,
    test_steps_id integer NOT NULL,
    contextual_information_id integer NOT NULL,
    revtype smallint
);


ALTER TABLE public.tm_test_steps_input_ci_aud OWNER TO gazelle;

--
-- Name: tm_test_steps_instance; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_steps_instance (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    system_in_session_initiator_id integer NOT NULL,
    system_in_session_reponder_id integer,
    test_steps_id integer NOT NULL,
    test_steps_instance_status_id integer,
    test_steps_version integer,
    comments text,
    status_id integer,
    execution_status_id integer
);


ALTER TABLE public.tm_test_steps_instance OWNER TO gazelle;

--
-- Name: tm_test_steps_instance_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_steps_instance_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_steps_instance_id_seq OWNER TO gazelle;

--
-- Name: tm_test_steps_instance_input_ci_instance; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_steps_instance_input_ci_instance (
    test_steps_instance_id integer NOT NULL,
    contextual_information_instance_id integer NOT NULL
);


ALTER TABLE public.tm_test_steps_instance_input_ci_instance OWNER TO gazelle;

--
-- Name: tm_test_steps_instance_output_ci_instance; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_steps_instance_output_ci_instance (
    test_steps_instance_id integer NOT NULL,
    contextual_information_instance_id integer NOT NULL
);


ALTER TABLE public.tm_test_steps_instance_output_ci_instance OWNER TO gazelle;

--
-- Name: tm_test_steps_instance_status; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_steps_instance_status (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255)
);


ALTER TABLE public.tm_test_steps_instance_status OWNER TO gazelle;

--
-- Name: tm_test_steps_instance_status_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_steps_instance_status_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_steps_instance_status_id_seq OWNER TO gazelle;

--
-- Name: tm_test_steps_option; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_steps_option (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255)
);


ALTER TABLE public.tm_test_steps_option OWNER TO gazelle;

--
-- Name: tm_test_steps_option_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_steps_option_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255)
);


ALTER TABLE public.tm_test_steps_option_aud OWNER TO gazelle;

--
-- Name: tm_test_steps_option_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_steps_option_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_steps_option_id_seq OWNER TO gazelle;

--
-- Name: tm_test_steps_output_ci; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_steps_output_ci (
    test_steps_id integer NOT NULL,
    contextual_information_id integer NOT NULL
);


ALTER TABLE public.tm_test_steps_output_ci OWNER TO gazelle;

--
-- Name: tm_test_steps_output_ci_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_steps_output_ci_aud (
    rev integer NOT NULL,
    test_steps_id integer NOT NULL,
    contextual_information_id integer NOT NULL,
    revtype smallint
);


ALTER TABLE public.tm_test_steps_output_ci_aud OWNER TO gazelle;

--
-- Name: tm_test_steps_test_steps_data; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_steps_test_steps_data (
    test_steps_id integer NOT NULL,
    test_steps_data_id integer NOT NULL
);


ALTER TABLE public.tm_test_steps_test_steps_data OWNER TO gazelle;

--
-- Name: tm_test_test_description; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_test_description (
    test_id integer NOT NULL,
    test_description_id integer NOT NULL
);


ALTER TABLE public.tm_test_test_description OWNER TO gazelle;

--
-- Name: tm_test_test_description_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_test_description_aud (
    rev integer NOT NULL,
    test_id integer NOT NULL,
    test_description_id integer NOT NULL,
    revtype smallint
);


ALTER TABLE public.tm_test_test_description_aud OWNER TO gazelle;

--
-- Name: tm_test_test_steps; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_test_steps (
    test_id integer NOT NULL,
    test_steps_id integer NOT NULL
);


ALTER TABLE public.tm_test_test_steps OWNER TO gazelle;

--
-- Name: tm_test_test_steps_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_test_steps_aud (
    rev integer NOT NULL,
    test_id integer NOT NULL,
    test_steps_id integer NOT NULL,
    revtype smallint
);


ALTER TABLE public.tm_test_test_steps_aud OWNER TO gazelle;

--
-- Name: tm_test_type; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_type (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255)
);


ALTER TABLE public.tm_test_type OWNER TO gazelle;

--
-- Name: tm_test_type_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_type_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255),
    label_to_display character varying(255)
);


ALTER TABLE public.tm_test_type_aud OWNER TO gazelle;

--
-- Name: tm_test_type_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_test_type_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_test_type_id_seq OWNER TO gazelle;

--
-- Name: tm_test_types_sessions; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_types_sessions (
    testing_session_id integer NOT NULL,
    test_type_id integer NOT NULL
);


ALTER TABLE public.tm_test_types_sessions OWNER TO gazelle;

--
-- Name: tm_test_user_comment; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_test_user_comment (
    test_id integer NOT NULL,
    user_comment_id integer NOT NULL
);


ALTER TABLE public.tm_test_user_comment OWNER TO gazelle;

--
-- Name: tm_testing_session; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_testing_session (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    active boolean,
    beginning_date timestamp with time zone,
    description character varying(255),
    ending_date timestamp with time zone,
    invoice_payment_deadline_date timestamp with time zone,
    registration_deadline_date timestamp with time zone,
    type character varying(255) NOT NULL,
    year integer,
    zone character varying(255) NOT NULL,
    address_id integer,
    currency_id character varying(12),
    networkconfiguration_id integer,
    mailing_list_url character varying(255),
    hidden boolean,
    order_in_gui integer,
    is_critical_status_enabled boolean,
    configuration_overview character varying(20000),
    is_proxy_use_enabled boolean,
    contact_email character varying(255),
    contact_firstname character varying(255),
    contact_lastname character varying(255),
    domain_fee numeric(19,2),
    fee_additional_system numeric(19,2),
    fee_first_system numeric(19,2),
    vat_percent numeric(19,2),
    wiki_url character varying(255),
    required_contract boolean,
    contract_template_path character varying(255),
    logo_link_url character varying(255),
    logo_url character varying(255),
    next_invoice_number integer,
    invoice_template_path character varying(255),
    ti_accessed_by_qr integer,
    ti_claimed_by_qr integer,
    ti_verified_on_smartphone integer,
    fee_participant numeric(19,2),
    iso3_vat_countries character varying(255),
    session_closed boolean,
    results_compute timestamp with time zone,
    internettesting boolean,
    disable_auto_results boolean,
    enable_precat_tests boolean,
    target_color character varying(255),
    allowparticipantregistration boolean,
    certificates_rul character varying(255),
    display_certificates_menu boolean,
    default_testing_session boolean,
    disable_patient_generation_and_sharing boolean,
    nb_participants_included_in_system_fees integer DEFAULT 2,
    allow_same_company_testing boolean,
    systemautoacceptance boolean,
    participantscanlaunchgrouptests boolean,
    allow_same_company_testing_in_group_tests boolean,
    allow_one_company_play_several_role_in_group_tests boolean,
    allow_one_company_play_several_role_in_p2p_tests boolean,
    allow_participants_start_group_tests boolean
);


ALTER TABLE public.tm_testing_session OWNER TO gazelle;

--
-- Name: tm_testing_session_admin; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_testing_session_admin (
    testing_session_id integer NOT NULL,
    user_id integer NOT NULL
);


ALTER TABLE public.tm_testing_session_admin OWNER TO gazelle;

--
-- Name: tm_testing_session_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_testing_session_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_testing_session_id_seq OWNER TO gazelle;

--
-- Name: tm_testing_type; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_testing_type (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    image_url character varying(255),
    keyword character varying(255) NOT NULL,
    name character varying(128) NOT NULL
);


ALTER TABLE public.tm_testing_type OWNER TO gazelle;

--
-- Name: tm_testing_type_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_testing_type_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_testing_type_id_seq OWNER TO gazelle;

--
-- Name: tm_transport_layer_for_config; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_transport_layer_for_config (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    keyword character varying(255) NOT NULL,
    name character varying(255)
);


ALTER TABLE public.tm_transport_layer_for_config OWNER TO gazelle;

--
-- Name: tm_transport_layer_for_config_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_transport_layer_for_config_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    keyword character varying(255),
    name character varying(255)
);


ALTER TABLE public.tm_transport_layer_for_config_aud OWNER TO gazelle;

--
-- Name: tm_transport_layer_for_config_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_transport_layer_for_config_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_transport_layer_for_config_seq OWNER TO gazelle;

--
-- Name: tm_user_comment; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_user_comment (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comment_content text NOT NULL,
    creation_date timestamp with time zone,
    user_id character varying(32)
);


ALTER TABLE public.tm_user_comment OWNER TO gazelle;

--
-- Name: tm_user_comment_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_user_comment_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_user_comment_id_seq OWNER TO gazelle;

--
-- Name: tm_user_photo; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_user_photo (
    id integer NOT NULL,
    photo_bytes bytea
);


ALTER TABLE public.tm_user_photo OWNER TO gazelle;

--
-- Name: tm_user_photo_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_user_photo_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_user_photo_id_seq OWNER TO gazelle;

--
-- Name: tm_user_preferences; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_user_preferences (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    number_of_results_per_page_id integer,
    remember_session boolean,
    user_id integer NOT NULL,
    selected_testing_session_id integer,
    show_sequence_diagram boolean,
    photo_file_name character varying(255),
    skype character varying(255),
    spoken_languages character varying(255),
    connectathon_table character varying(255),
    is_email_displayed boolean,
    userphoto_id integer,
    time_zone character varying(512),
    is_tooltips_displayed boolean
);


ALTER TABLE public.tm_user_preferences OWNER TO gazelle;

--
-- Name: tm_user_preferences_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_user_preferences_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_user_preferences_id_seq OWNER TO gazelle;

--
-- Name: tm_validation_log_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_validation_log_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_validation_log_id_seq OWNER TO gazelle;

--
-- Name: tm_web_service_configuration; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_web_service_configuration (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comments character varying(255),
    port integer,
    port_proxy integer,
    port_secured integer,
    url character varying(255) NOT NULL,
    usage character varying(255),
    assigning_authority character varying(255),
    ass_auth_oid character varying(255),
    configuration_id integer NOT NULL,
    webservice_type integer,
    web_service_detail character varying(255),
    ws_transaction_usage integer,
    CONSTRAINT tm_web_service_configuration_port_check CHECK ((port <= 65635)),
    CONSTRAINT tm_web_service_configuration_port_proxy_check CHECK ((port_proxy <= 65635)),
    CONSTRAINT tm_web_service_configuration_port_secured_check CHECK ((port_secured <= 65635))
);


ALTER TABLE public.tm_web_service_configuration OWNER TO gazelle;

--
-- Name: tm_web_service_detail; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_web_service_detail (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    value character varying(255)
);


ALTER TABLE public.tm_web_service_detail OWNER TO gazelle;

--
-- Name: tm_web_service_detail_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_web_service_detail_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_web_service_detail_id_seq OWNER TO gazelle;

--
-- Name: tm_web_service_type; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_web_service_type (
    id integer NOT NULL,
    description character varying(255),
    needs_oid boolean,
    profile_id integer,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255)
);


ALTER TABLE public.tm_web_service_type OWNER TO gazelle;

--
-- Name: tm_web_service_type_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.tm_web_service_type_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    description character varying(255),
    needs_oid boolean,
    profile_id integer,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255)
);


ALTER TABLE public.tm_web_service_type_aud OWNER TO gazelle;

--
-- Name: tm_web_service_type_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.tm_web_service_type_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.tm_web_service_type_id_seq OWNER TO gazelle;

--
-- Name: usr_address; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.usr_address (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    address character varying(512),
    address_type character varying(255),
    city character varying(255),
    fax character varying(64),
    phone character varying(64),
    state character varying(255),
    zip_code character varying(20),
    country character varying(2),
    address_line_2 character varying(512) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE public.usr_address OWNER TO gazelle;

--
-- Name: usr_address_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.usr_address_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.usr_address_id_seq OWNER TO gazelle;

--
-- Name: usr_currency; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.usr_currency (
    keyword character varying(12) NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    comment character varying(255),
    name character varying(255)
);


ALTER TABLE public.usr_currency OWNER TO gazelle;

--
-- Name: usr_gazelle_language; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.usr_gazelle_language (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255) NOT NULL,
    keyword character varying(255) NOT NULL
);


ALTER TABLE public.usr_gazelle_language OWNER TO gazelle;

--
-- Name: usr_gazelle_language_aud; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.usr_gazelle_language_aud (
    id integer NOT NULL,
    rev integer NOT NULL,
    revtype smallint,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    keyword character varying(255)
);


ALTER TABLE public.usr_gazelle_language_aud OWNER TO gazelle;

--
-- Name: usr_gazelle_language_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.usr_gazelle_language_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.usr_gazelle_language_id_seq OWNER TO gazelle;

--
-- Name: usr_institution; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.usr_institution (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    activated boolean,
    integration_statements_repository_url character varying(512),
    keyword character varying(16) NOT NULL,
    name character varying(255) NOT NULL,
    note character varying(1024),
    url character varying(512) NOT NULL,
    institution_type_id integer NOT NULL,
    mailing_address_id integer
);


ALTER TABLE public.usr_institution OWNER TO gazelle;

--
-- Name: usr_institution_address; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.usr_institution_address (
    institution_id integer NOT NULL,
    address_id integer NOT NULL
);


ALTER TABLE public.usr_institution_address OWNER TO gazelle;

--
-- Name: usr_institution_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.usr_institution_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.usr_institution_id_seq OWNER TO gazelle;

--
-- Name: usr_institution_type; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.usr_institution_type (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(255),
    type character varying(32) NOT NULL
);


ALTER TABLE public.usr_institution_type OWNER TO gazelle;

--
-- Name: usr_institution_type_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.usr_institution_type_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.usr_institution_type_id_seq OWNER TO gazelle;

--
-- Name: usr_iso_3166_country_code; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.usr_iso_3166_country_code (
    iso character varying(2) NOT NULL,
    ec boolean,
    flag_url character varying(255),
    iso3 character varying(3),
    name character varying(80) NOT NULL,
    numcode integer,
    printable_name character varying(80) NOT NULL
);


ALTER TABLE public.usr_iso_3166_country_code OWNER TO gazelle;

--
-- Name: usr_message_parameters; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.usr_message_parameters (
    id integer NOT NULL,
    messageparameter character varying(255)
);


ALTER TABLE public.usr_message_parameters OWNER TO gazelle;

--
-- Name: usr_message_parameters_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.usr_message_parameters_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.usr_message_parameters_id_seq OWNER TO gazelle;

--
-- Name: usr_messages; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.usr_messages (
    id integer NOT NULL,
    author character varying(255),
    date timestamp with time zone,
    image character varying(255),
    link character varying(255),
    type character varying(255)
);


ALTER TABLE public.usr_messages OWNER TO gazelle;

--
-- Name: usr_messages_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.usr_messages_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.usr_messages_id_seq OWNER TO gazelle;

--
-- Name: usr_messages_usr_message_parameters; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.usr_messages_usr_message_parameters (
    usr_messages_id integer NOT NULL,
    messageparameters_id integer NOT NULL
);


ALTER TABLE public.usr_messages_usr_message_parameters OWNER TO gazelle;

--
-- Name: usr_messages_usr_users; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.usr_messages_usr_users (
    usr_messages_id integer NOT NULL,
    users_id integer NOT NULL
);


ALTER TABLE public.usr_messages_usr_users OWNER TO gazelle;

--
-- Name: usr_person; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.usr_person (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    cell_phone character varying(64),
    email character varying(255),
    firstname character varying(255) NOT NULL,
    lastname character varying(255) NOT NULL,
    mailing_list boolean,
    personal_fax character varying(64),
    personal_phone character varying(64),
    photo character varying(512),
    address_id integer,
    institution_id integer NOT NULL,
    title character varying(255)
);


ALTER TABLE public.usr_person OWNER TO gazelle;

--
-- Name: usr_person_function; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.usr_person_function (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(1024),
    is_billing boolean,
    name character varying(255) NOT NULL,
    keyword character varying(255)
);


ALTER TABLE public.usr_person_function OWNER TO gazelle;

--
-- Name: usr_person_function_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.usr_person_function_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.usr_person_function_id_seq OWNER TO gazelle;

--
-- Name: usr_person_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.usr_person_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.usr_person_id_seq OWNER TO gazelle;

--
-- Name: usr_persons_functions; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.usr_persons_functions (
    person_id integer NOT NULL,
    person_function_id integer NOT NULL
);


ALTER TABLE public.usr_persons_functions OWNER TO gazelle;

--
-- Name: usr_role; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.usr_role (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    description character varying(1024),
    name character varying(64) NOT NULL
);


ALTER TABLE public.usr_role OWNER TO gazelle;

--
-- Name: usr_role_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.usr_role_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.usr_role_id_seq OWNER TO gazelle;

--
-- Name: usr_user_role; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.usr_user_role (
    user_id integer NOT NULL,
    role_id integer NOT NULL
);


ALTER TABLE public.usr_user_role OWNER TO gazelle;

--
-- Name: usr_users; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.usr_users (
    id integer NOT NULL,
    last_changed timestamp with time zone,
    last_modifier_id character varying(255),
    activated boolean,
    activation_code character varying(255),
    blocked boolean,
    change_password_code character varying(255),
    creation_date timestamp with time zone,
    email character varying(255) NOT NULL,
    counter_failed_login_attempts integer,
    firstname character varying(128),
    is_institution_informations_entered boolean,
    last_login timestamp with time zone,
    lastname character varying(128),
    counter_logins integer,
    password character varying(128) NOT NULL,
    username character varying(16) NOT NULL,
    institution_id integer NOT NULL
);


ALTER TABLE public.usr_users OWNER TO gazelle;

--
-- Name: usr_users_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.usr_users_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.usr_users_id_seq OWNER TO gazelle;

--
-- Name: validation_service; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.validation_service (
    id integer NOT NULL,
    base_url character varying(255),
    description character varying(1024) NOT NULL,
    key character varying(45) NOT NULL,
    label_key_for_display character varying(255),
    url_path character varying(255),
    xslt_url character varying(1024)
);


ALTER TABLE public.validation_service OWNER TO gazelle;

--
-- Name: validation_service_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.validation_service_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.validation_service_id_seq OWNER TO gazelle;

--
-- Name: validation_status; Type: TABLE; Schema: public; Owner: gazelle
--

CREATE TABLE public.validation_status (
    id integer NOT NULL,
    description character varying(1024) NOT NULL,
    key character varying(45) NOT NULL,
    label_key_for_display character varying(255)
);


ALTER TABLE public.validation_status OWNER TO gazelle;

--
-- Name: validation_status_id_seq; Type: SEQUENCE; Schema: public; Owner: gazelle
--

CREATE SEQUENCE public.validation_status_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.validation_status_id_seq OWNER TO gazelle;

--
-- Name: sl_nodelock nl_conncnt; Type: DEFAULT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_nodelock ALTER COLUMN nl_conncnt SET DEFAULT nextval('"_TF".sl_nodelock_nl_conncnt_seq'::regclass);


--
-- Name: sl_components sl_components_pkey; Type: CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_components
    ADD CONSTRAINT sl_components_pkey PRIMARY KEY (co_actor);


--
-- Name: sl_event sl_event-pkey; Type: CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_event
    ADD CONSTRAINT "sl_event-pkey" PRIMARY KEY (ev_origin, ev_seqno);


--
-- Name: sl_listen sl_listen-pkey; Type: CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_listen
    ADD CONSTRAINT "sl_listen-pkey" PRIMARY KEY (li_origin, li_provider, li_receiver);


--
-- Name: sl_node sl_node-pkey; Type: CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_node
    ADD CONSTRAINT "sl_node-pkey" PRIMARY KEY (no_id);


--
-- Name: sl_nodelock sl_nodelock-pkey; Type: CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_nodelock
    ADD CONSTRAINT "sl_nodelock-pkey" PRIMARY KEY (nl_nodeid, nl_conncnt);


--
-- Name: sl_path sl_path-pkey; Type: CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_path
    ADD CONSTRAINT "sl_path-pkey" PRIMARY KEY (pa_server, pa_client);


--
-- Name: sl_registry sl_registry_pkey; Type: CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_registry
    ADD CONSTRAINT sl_registry_pkey PRIMARY KEY (reg_key);


--
-- Name: sl_sequence sl_sequence-pkey; Type: CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_sequence
    ADD CONSTRAINT "sl_sequence-pkey" PRIMARY KEY (seq_id);


--
-- Name: sl_sequence sl_sequence_seq_reloid_key; Type: CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_sequence
    ADD CONSTRAINT sl_sequence_seq_reloid_key UNIQUE (seq_reloid);


--
-- Name: sl_set sl_set-pkey; Type: CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_set
    ADD CONSTRAINT "sl_set-pkey" PRIMARY KEY (set_id);


--
-- Name: sl_setsync sl_setsync-pkey; Type: CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_setsync
    ADD CONSTRAINT "sl_setsync-pkey" PRIMARY KEY (ssy_setid);


--
-- Name: sl_subscribe sl_subscribe-pkey; Type: CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_subscribe
    ADD CONSTRAINT "sl_subscribe-pkey" PRIMARY KEY (sub_receiver, sub_set);


--
-- Name: sl_table sl_table-pkey; Type: CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_table
    ADD CONSTRAINT "sl_table-pkey" PRIMARY KEY (tab_id);


--
-- Name: sl_table sl_table_tab_reloid_key; Type: CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_table
    ADD CONSTRAINT sl_table_tab_reloid_key UNIQUE (tab_reloid);


--
-- Name: cmn_application_preference cmn_application_preference_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.cmn_application_preference
    ADD CONSTRAINT cmn_application_preference_pkey PRIMARY KEY (id);


--
-- Name: cmn_event_tracking cmn_event_tracking_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.cmn_event_tracking
    ADD CONSTRAINT cmn_event_tracking_pkey PRIMARY KEY (id);


--
-- Name: cmn_number_of_results_per_page cmn_number_of_results_per_page_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.cmn_number_of_results_per_page
    ADD CONSTRAINT cmn_number_of_results_per_page_pkey PRIMARY KEY (id);


--
-- Name: cmn_path_linking_a_document cmn_path_linking_a_document_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.cmn_path_linking_a_document
    ADD CONSTRAINT cmn_path_linking_a_document_pkey PRIMARY KEY (id);


--
-- Name: message_validation_service message_validation_service_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.message_validation_service
    ADD CONSTRAINT message_validation_service_pkey PRIMARY KEY (id);


--
-- Name: pr_crawler_changed_integration_statements pr_crawler_changed_integration_statements_system_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_crawler_changed_integration_statements
    ADD CONSTRAINT pr_crawler_changed_integration_statements_system_id_key UNIQUE (system_id, crawler_report_id);


--
-- Name: pr_crawler_reporting pr_crawler_reporting_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_crawler_reporting
    ADD CONSTRAINT pr_crawler_reporting_pkey PRIMARY KEY (id);


--
-- Name: pr_crawler_unmatching_hascode_for_integration_statements pr_crawler_unmatching_hascode_for_integration_sta_system_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_crawler_unmatching_hascode_for_integration_statements
    ADD CONSTRAINT pr_crawler_unmatching_hascode_for_integration_sta_system_id_key UNIQUE (system_id, crawler_report_id);


--
-- Name: pr_crawler_unreachable_integration_statements pr_crawler_unreachable_integration_statements_system_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_crawler_unreachable_integration_statements
    ADD CONSTRAINT pr_crawler_unreachable_integration_statements_system_id_key UNIQUE (system_id, crawler_report_id);


--
-- Name: pr_integration_statement_download pr_integration_statement_download_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_integration_statement_download
    ADD CONSTRAINT pr_integration_statement_download_pkey PRIMARY KEY (id);


--
-- Name: pr_intro pr_intro_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_intro
    ADD CONSTRAINT pr_intro_pkey PRIMARY KEY (id);


--
-- Name: pr_mail pr_mail_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_mail
    ADD CONSTRAINT pr_mail_pkey PRIMARY KEY (id);


--
-- Name: pr_search_criteria_per_report pr_search_criteria_per_report_search_log_criterion_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_search_criteria_per_report
    ADD CONSTRAINT pr_search_criteria_per_report_search_log_criterion_id_key UNIQUE (search_log_criterion_id, search_log_report_id);


--
-- Name: pr_search_log_criterion pr_search_log_criterion_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_search_log_criterion
    ADD CONSTRAINT pr_search_log_criterion_pkey PRIMARY KEY (id);


--
-- Name: pr_search_log_report pr_search_log_report_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_search_log_report
    ADD CONSTRAINT pr_search_log_report_pkey PRIMARY KEY (id);


--
-- Name: pr_search_log_systems_found pr_search_log_systems_found_system_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_search_log_systems_found
    ADD CONSTRAINT pr_search_log_systems_found_system_id_key UNIQUE (system_id, search_report_id);


--
-- Name: cmn_application_preference preference_name_unique; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.cmn_application_preference
    ADD CONSTRAINT preference_name_unique UNIQUE (preference_name);


--
-- Name: proxy_type proxy_type_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.proxy_type
    ADD CONSTRAINT proxy_type_pkey PRIMARY KEY (id);


--
-- Name: revinfo revinfo_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.revinfo
    ADD CONSTRAINT revinfo_pkey PRIMARY KEY (rev);


--
-- Name: sys_dicom_documents_for_systems sys_dicom_documents_for_systems_system_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_dicom_documents_for_systems
    ADD CONSTRAINT sys_dicom_documents_for_systems_system_id_key UNIQUE (system_id, path_linking_a_document_id);


--
-- Name: sys_hl7_documents_for_systems sys_hl7_documents_for_systems_system_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_hl7_documents_for_systems
    ADD CONSTRAINT sys_hl7_documents_for_systems_system_id_key UNIQUE (system_id, path_linking_a_document_id);


--
-- Name: sys_system_subtype sys_system_subtype_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_system_subtype
    ADD CONSTRAINT sys_system_subtype_keyword_key UNIQUE (keyword);


--
-- Name: sys_system_subtype sys_system_subtype_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_system_subtype
    ADD CONSTRAINT sys_system_subtype_pkey PRIMARY KEY (id);


--
-- Name: sys_system_subtypes_per_system_type sys_system_subtypes_per_system_type_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_system_subtypes_per_system_type
    ADD CONSTRAINT sys_system_subtypes_per_system_type_pkey PRIMARY KEY (id);


--
-- Name: sys_system_subtypes_per_system_type sys_system_subtypes_per_system_type_system_type_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_system_subtypes_per_system_type
    ADD CONSTRAINT sys_system_subtypes_per_system_type_system_type_id_key UNIQUE (system_type_id, system_subtype_id);


--
-- Name: sys_system_type sys_system_type_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_system_type
    ADD CONSTRAINT sys_system_type_keyword_key UNIQUE (keyword);


--
-- Name: sys_system_type sys_system_type_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_system_type
    ADD CONSTRAINT sys_system_type_pkey PRIMARY KEY (id);


--
-- Name: sys_table_session sys_table_session_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_table_session
    ADD CONSTRAINT sys_table_session_pkey PRIMARY KEY (id);


--
-- Name: sys_table_session sys_table_session_table_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_table_session
    ADD CONSTRAINT sys_table_session_table_keyword_key UNIQUE (table_keyword);


--
-- Name: tf_actor_aud tf_actor_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_aud
    ADD CONSTRAINT tf_actor_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_actor_default_ports tf_actor_default_ports_actor_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_default_ports
    ADD CONSTRAINT tf_actor_default_ports_actor_id_key UNIQUE (actor_id, config_name, type_of_config);


--
-- Name: tf_actor_default_ports tf_actor_default_ports_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_default_ports
    ADD CONSTRAINT tf_actor_default_ports_pkey PRIMARY KEY (id);


--
-- Name: tf_actor_integration_profile tf_actor_integration_profile_actor_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_integration_profile
    ADD CONSTRAINT tf_actor_integration_profile_actor_id_key UNIQUE (actor_id, integration_profile_id);


--
-- Name: tf_actor_integration_profile_aud tf_actor_integration_profile_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_integration_profile_aud
    ADD CONSTRAINT tf_actor_integration_profile_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_actor_integration_profile_option tf_actor_integration_profile_o_actor_integration_profile_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_integration_profile_option
    ADD CONSTRAINT tf_actor_integration_profile_o_actor_integration_profile_id_key UNIQUE (actor_integration_profile_id, integration_profile_option_id);


--
-- Name: tf_actor_integration_profile_option_aud tf_actor_integration_profile_option_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_integration_profile_option_aud
    ADD CONSTRAINT tf_actor_integration_profile_option_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_actor_integration_profile_option tf_actor_integration_profile_option_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_integration_profile_option
    ADD CONSTRAINT tf_actor_integration_profile_option_pkey PRIMARY KEY (id);


--
-- Name: tf_actor_integration_profile tf_actor_integration_profile_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_integration_profile
    ADD CONSTRAINT tf_actor_integration_profile_pkey PRIMARY KEY (id);


--
-- Name: tf_actor tf_actor_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor
    ADD CONSTRAINT tf_actor_keyword_key UNIQUE (keyword);


--
-- Name: tf_actor tf_actor_name_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor
    ADD CONSTRAINT tf_actor_name_key UNIQUE (name);


--
-- Name: tf_actor tf_actor_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor
    ADD CONSTRAINT tf_actor_pkey PRIMARY KEY (id);


--
-- Name: tf_affinity_domain_aud tf_affinity_domain_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_affinity_domain_aud
    ADD CONSTRAINT tf_affinity_domain_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_affinity_domain tf_affinity_domain_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_affinity_domain
    ADD CONSTRAINT tf_affinity_domain_keyword_key UNIQUE (keyword);


--
-- Name: tf_affinity_domain tf_affinity_domain_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_affinity_domain
    ADD CONSTRAINT tf_affinity_domain_pkey PRIMARY KEY (id);


--
-- Name: tf_audit_message tf_audit_message_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_audit_message
    ADD CONSTRAINT tf_audit_message_pkey PRIMARY KEY (id);


--
-- Name: tf_document_aud tf_document_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_document_aud
    ADD CONSTRAINT tf_document_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_document tf_document_md5_hash_code_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_document
    ADD CONSTRAINT tf_document_md5_hash_code_key UNIQUE (md5_hash_code);


--
-- Name: tf_document tf_document_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_document
    ADD CONSTRAINT tf_document_pkey PRIMARY KEY (id);


--
-- Name: tf_document_sections_aud tf_document_sections_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_document_sections_aud
    ADD CONSTRAINT tf_document_sections_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_document_sections tf_document_sections_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_document_sections
    ADD CONSTRAINT tf_document_sections_pkey PRIMARY KEY (id);


--
-- Name: tf_domain_aud tf_domain_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_domain_aud
    ADD CONSTRAINT tf_domain_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_domain tf_domain_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_domain
    ADD CONSTRAINT tf_domain_keyword_key UNIQUE (keyword);


--
-- Name: tf_domain tf_domain_name_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_domain
    ADD CONSTRAINT tf_domain_name_key UNIQUE (name);


--
-- Name: tf_domain tf_domain_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_domain
    ADD CONSTRAINT tf_domain_pkey PRIMARY KEY (id);


--
-- Name: tf_domain_profile_aud tf_domain_profile_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_domain_profile_aud
    ADD CONSTRAINT tf_domain_profile_aud_pkey PRIMARY KEY (rev, domain_id, integration_profile_id);


--
-- Name: tf_domain_profile tf_domain_profile_domain_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_domain_profile
    ADD CONSTRAINT tf_domain_profile_domain_id_key UNIQUE (domain_id, integration_profile_id);


--
-- Name: tf_domain_profile tf_domain_profile_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_domain_profile
    ADD CONSTRAINT tf_domain_profile_pkey PRIMARY KEY (domain_id, integration_profile_id);


--
-- Name: tf_gmm_server tf_gmm_server_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_gmm_server
    ADD CONSTRAINT tf_gmm_server_pkey PRIMARY KEY (id);


--
-- Name: tf_gmm_server tf_gmm_server_server_name_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_gmm_server
    ADD CONSTRAINT tf_gmm_server_server_name_key UNIQUE (server_name);


--
-- Name: tf_gmm_server tf_gmm_server_server_url_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_gmm_server
    ADD CONSTRAINT tf_gmm_server_server_url_key UNIQUE (server_url);


--
-- Name: tf_hl7_message_profile_affinity_domain tf_hl7_message_profile_affinity_doma_hl7_message_profile_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile_affinity_domain
    ADD CONSTRAINT tf_hl7_message_profile_affinity_doma_hl7_message_profile_id_key UNIQUE (hl7_message_profile_id, affinity_domain_id);


--
-- Name: tf_hl7_message_profile_affinity_domain_aud tf_hl7_message_profile_affinity_domain_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile_affinity_domain_aud
    ADD CONSTRAINT tf_hl7_message_profile_affinity_domain_aud_pkey PRIMARY KEY (rev, hl7_message_profile_id, affinity_domain_id);


--
-- Name: tf_hl7_message_profile_affinity_domain tf_hl7_message_profile_affinity_domain_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile_affinity_domain
    ADD CONSTRAINT tf_hl7_message_profile_affinity_domain_pkey PRIMARY KEY (affinity_domain_id, hl7_message_profile_id);


--
-- Name: tf_hl7_message_profile_aud tf_hl7_message_profile_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile_aud
    ADD CONSTRAINT tf_hl7_message_profile_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_hl7_message_profile tf_hl7_message_profile_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile
    ADD CONSTRAINT tf_hl7_message_profile_pkey PRIMARY KEY (id);


--
-- Name: tf_hl7_message_profile tf_hl7_message_profile_profile_oid_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile
    ADD CONSTRAINT tf_hl7_message_profile_profile_oid_key UNIQUE (profile_oid);


--
-- Name: tf_hl7_message_profile_table_aud tf_hl7_message_profile_table_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile_table_aud
    ADD CONSTRAINT tf_hl7_message_profile_table_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_hl7_message_profile_table tf_hl7_message_profile_table_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile_table
    ADD CONSTRAINT tf_hl7_message_profile_table_pkey PRIMARY KEY (id);


--
-- Name: tf_integration_profile_aud tf_integration_profile_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_aud
    ADD CONSTRAINT tf_integration_profile_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_integration_profile tf_integration_profile_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile
    ADD CONSTRAINT tf_integration_profile_keyword_key UNIQUE (keyword);


--
-- Name: tf_integration_profile tf_integration_profile_name_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile
    ADD CONSTRAINT tf_integration_profile_name_key UNIQUE (name);


--
-- Name: tf_integration_profile_option_aud tf_integration_profile_option_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_option_aud
    ADD CONSTRAINT tf_integration_profile_option_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_integration_profile_option tf_integration_profile_option_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_option
    ADD CONSTRAINT tf_integration_profile_option_keyword_key UNIQUE (keyword);


--
-- Name: tf_integration_profile_option tf_integration_profile_option_name_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_option
    ADD CONSTRAINT tf_integration_profile_option_name_key UNIQUE (name);


--
-- Name: tf_integration_profile_option tf_integration_profile_option_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_option
    ADD CONSTRAINT tf_integration_profile_option_pkey PRIMARY KEY (id);


--
-- Name: tf_integration_profile tf_integration_profile_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile
    ADD CONSTRAINT tf_integration_profile_pkey PRIMARY KEY (id);


--
-- Name: tf_integration_profile_status_type_aud tf_integration_profile_status_type_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_status_type_aud
    ADD CONSTRAINT tf_integration_profile_status_type_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_integration_profile_status_type tf_integration_profile_status_type_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_status_type
    ADD CONSTRAINT tf_integration_profile_status_type_keyword_key UNIQUE (keyword);


--
-- Name: tf_integration_profile_status_type tf_integration_profile_status_type_name_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_status_type
    ADD CONSTRAINT tf_integration_profile_status_type_name_key UNIQUE (name);


--
-- Name: tf_integration_profile_status_type tf_integration_profile_status_type_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_status_type
    ADD CONSTRAINT tf_integration_profile_status_type_pkey PRIMARY KEY (id);


--
-- Name: tf_integration_profile_type_aud tf_integration_profile_type_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_type_aud
    ADD CONSTRAINT tf_integration_profile_type_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_integration_profile_type tf_integration_profile_type_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_type
    ADD CONSTRAINT tf_integration_profile_type_keyword_key UNIQUE (keyword);


--
-- Name: tf_integration_profile_type_link_aud tf_integration_profile_type_link_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_type_link_aud
    ADD CONSTRAINT tf_integration_profile_type_link_aud_pkey PRIMARY KEY (rev, integration_profile_id, integration_profile_type_id);


--
-- Name: tf_integration_profile_type_link tf_integration_profile_type_link_integration_profile_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_type_link
    ADD CONSTRAINT tf_integration_profile_type_link_integration_profile_id_key UNIQUE (integration_profile_id, integration_profile_type_id);


--
-- Name: tf_integration_profile_type_link tf_integration_profile_type_link_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_type_link
    ADD CONSTRAINT tf_integration_profile_type_link_pkey PRIMARY KEY (integration_profile_id, integration_profile_type_id);


--
-- Name: tf_integration_profile_type tf_integration_profile_type_name_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_type
    ADD CONSTRAINT tf_integration_profile_type_name_key UNIQUE (name);


--
-- Name: tf_integration_profile_type tf_integration_profile_type_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_type
    ADD CONSTRAINT tf_integration_profile_type_pkey PRIMARY KEY (id);


--
-- Name: tf_profile_inria_hl7_validation_files_aud tf_profile_inria_hl7_validation_files_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_profile_inria_hl7_validation_files_aud
    ADD CONSTRAINT tf_profile_inria_hl7_validation_files_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_profile_inria_hl7_validation_files tf_profile_inria_hl7_validation_files_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_profile_inria_hl7_validation_files
    ADD CONSTRAINT tf_profile_inria_hl7_validation_files_pkey PRIMARY KEY (id);


--
-- Name: tf_profile_link tf_profile_link_actor_integration_profile_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_profile_link
    ADD CONSTRAINT tf_profile_link_actor_integration_profile_id_key UNIQUE (actor_integration_profile_id, transaction_id, transaction_option_type_id);


--
-- Name: tf_profile_link_aud tf_profile_link_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_profile_link_aud
    ADD CONSTRAINT tf_profile_link_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_profile_link tf_profile_link_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_profile_link
    ADD CONSTRAINT tf_profile_link_pkey PRIMARY KEY (id);


--
-- Name: tf_revision_tagged_for_sync tf_revision_tagged_for_sync_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_revision_tagged_for_sync
    ADD CONSTRAINT tf_revision_tagged_for_sync_pkey PRIMARY KEY (id);


--
-- Name: tf_rule_criterion tf_rule_criterion_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_rule_criterion
    ADD CONSTRAINT tf_rule_criterion_pkey PRIMARY KEY (id);


--
-- Name: tf_rule_list_criterion tf_rule_list_criterion_aipocriterions_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_rule_list_criterion
    ADD CONSTRAINT tf_rule_list_criterion_aipocriterions_id_key UNIQUE (aipocriterions_id);


--
-- Name: tf_rule_list_criterion tf_rule_list_criterion_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_rule_list_criterion
    ADD CONSTRAINT tf_rule_list_criterion_pkey PRIMARY KEY (tf_rule_list_criterion_id);


--
-- Name: tf_rule tf_rule_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_rule
    ADD CONSTRAINT tf_rule_pkey PRIMARY KEY (id);


--
-- Name: tf_standard_aud tf_standard_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_standard_aud
    ADD CONSTRAINT tf_standard_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_standard tf_standard_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_standard
    ADD CONSTRAINT tf_standard_keyword_key UNIQUE (keyword);


--
-- Name: tf_standard tf_standard_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_standard
    ADD CONSTRAINT tf_standard_pkey PRIMARY KEY (id);


--
-- Name: tf_transaction_aud tf_transaction_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_aud
    ADD CONSTRAINT tf_transaction_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_transaction tf_transaction_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction
    ADD CONSTRAINT tf_transaction_keyword_key UNIQUE (keyword);


--
-- Name: tf_transaction_link_aud tf_transaction_link_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_link_aud
    ADD CONSTRAINT tf_transaction_link_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_transaction_link tf_transaction_link_from_actor_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_link
    ADD CONSTRAINT tf_transaction_link_from_actor_id_key UNIQUE (from_actor_id, to_actor_id, transaction_id);


--
-- Name: tf_transaction_link tf_transaction_link_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_link
    ADD CONSTRAINT tf_transaction_link_pkey PRIMARY KEY (id);


--
-- Name: tf_transaction_option_type_aud tf_transaction_option_type_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_option_type_aud
    ADD CONSTRAINT tf_transaction_option_type_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_transaction_option_type tf_transaction_option_type_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_option_type
    ADD CONSTRAINT tf_transaction_option_type_keyword_key UNIQUE (keyword);


--
-- Name: tf_transaction_option_type tf_transaction_option_type_name_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_option_type
    ADD CONSTRAINT tf_transaction_option_type_name_key UNIQUE (name);


--
-- Name: tf_transaction_option_type tf_transaction_option_type_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_option_type
    ADD CONSTRAINT tf_transaction_option_type_pkey PRIMARY KEY (id);


--
-- Name: tf_transaction tf_transaction_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction
    ADD CONSTRAINT tf_transaction_pkey PRIMARY KEY (id);


--
-- Name: tf_transaction_standard_aud tf_transaction_standard_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_standard_aud
    ADD CONSTRAINT tf_transaction_standard_aud_pkey PRIMARY KEY (rev, transaction_id, standard_id);


--
-- Name: tf_transaction_standard tf_transaction_standard_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_standard
    ADD CONSTRAINT tf_transaction_standard_pkey PRIMARY KEY (transaction_id, standard_id);


--
-- Name: tf_transaction_standard tf_transaction_standard_standard_id_transaction_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_standard
    ADD CONSTRAINT tf_transaction_standard_standard_id_transaction_id_key UNIQUE (standard_id, transaction_id);


--
-- Name: tf_transaction_status_type_aud tf_transaction_status_type_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_status_type_aud
    ADD CONSTRAINT tf_transaction_status_type_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_transaction_status_type tf_transaction_status_type_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_status_type
    ADD CONSTRAINT tf_transaction_status_type_keyword_key UNIQUE (keyword);


--
-- Name: tf_transaction_status_type tf_transaction_status_type_name_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_status_type
    ADD CONSTRAINT tf_transaction_status_type_name_key UNIQUE (name);


--
-- Name: tf_transaction_status_type tf_transaction_status_type_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_status_type
    ADD CONSTRAINT tf_transaction_status_type_pkey PRIMARY KEY (id);


--
-- Name: tf_updates_installed_by_sync tf_updates_installed_by_sync_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_updates_installed_by_sync
    ADD CONSTRAINT tf_updates_installed_by_sync_pkey PRIMARY KEY (id);


--
-- Name: tf_ws_transaction_usage_aud tf_ws_transaction_usage_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_ws_transaction_usage_aud
    ADD CONSTRAINT tf_ws_transaction_usage_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tf_ws_transaction_usage tf_ws_transaction_usage_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_ws_transaction_usage
    ADD CONSTRAINT tf_ws_transaction_usage_pkey PRIMARY KEY (id);


--
-- Name: tm_abstract_configuration tm_abstract_configuration_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_abstract_configuration
    ADD CONSTRAINT tm_abstract_configuration_pkey PRIMARY KEY (id);


--
-- Name: tm_annotation tm_annotation_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_annotation
    ADD CONSTRAINT tm_annotation_pkey PRIMARY KEY (id);


--
-- Name: tm_assertion_aipo tm_assertion_aipo_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_assertion_aipo
    ADD CONSTRAINT tm_assertion_aipo_pkey PRIMARY KEY (id);


--
-- Name: tm_assertion tm_assertion_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_assertion
    ADD CONSTRAINT tm_assertion_keyword_key UNIQUE (keyword);


--
-- Name: tm_assertion tm_assertion_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_assertion
    ADD CONSTRAINT tm_assertion_pkey PRIMARY KEY (id);


--
-- Name: tm_assertion_standard tm_assertion_standard_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_assertion_standard
    ADD CONSTRAINT tm_assertion_standard_pkey PRIMARY KEY (id);


--
-- Name: tm_assertion_transaction tm_assertion_transaction_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_assertion_transaction
    ADD CONSTRAINT tm_assertion_transaction_pkey PRIMARY KEY (id);


--
-- Name: tm_certificate tm_certificate_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_certificate
    ADD CONSTRAINT tm_certificate_pkey PRIMARY KEY (id);


--
-- Name: tm_con_system_status tm_con_system_status_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_con_system_status
    ADD CONSTRAINT tm_con_system_status_pkey PRIMARY KEY (id);


--
-- Name: tm_conf_mapping_w_aipo_w_conftypes_aud tm_conf_mapping_w_aipo_w_conftypes_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_conf_mapping_w_aipo_w_conftypes_aud
    ADD CONSTRAINT tm_conf_mapping_w_aipo_w_conftypes_aud_pkey PRIMARY KEY (rev, tm_conf_mapped_id, tm_conftypes_id);


--
-- Name: tm_conf_mapping_w_aipo_w_conftypes tm_conf_mapping_w_aipo_w_conftypes_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_conf_mapping_w_aipo_w_conftypes
    ADD CONSTRAINT tm_conf_mapping_w_aipo_w_conftypes_pkey PRIMARY KEY (tm_conf_mapped_id, tm_conftypes_id);


--
-- Name: tm_configuration_mapped_with_aipo tm_configuration_mapped_with_aipo_aipo_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_configuration_mapped_with_aipo
    ADD CONSTRAINT tm_configuration_mapped_with_aipo_aipo_id_key UNIQUE (aipo_id);


--
-- Name: tm_configuration_mapped_with_aipo_aud tm_configuration_mapped_with_aipo_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_configuration_mapped_with_aipo_aud
    ADD CONSTRAINT tm_configuration_mapped_with_aipo_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_configuration_mapped_with_aipo tm_configuration_mapped_with_aipo_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_configuration_mapped_with_aipo
    ADD CONSTRAINT tm_configuration_mapped_with_aipo_pkey PRIMARY KEY (id);


--
-- Name: tm_configuration tm_configuration_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_configuration
    ADD CONSTRAINT tm_configuration_pkey PRIMARY KEY (id);


--
-- Name: tm_configuration_type_aud tm_configuration_type_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_configuration_type_aud
    ADD CONSTRAINT tm_configuration_type_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_configuration_type tm_configuration_type_class_name_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_configuration_type
    ADD CONSTRAINT tm_configuration_type_class_name_key UNIQUE (class_name);


--
-- Name: tm_configuration_type tm_configuration_type_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_configuration_type
    ADD CONSTRAINT tm_configuration_type_pkey PRIMARY KEY (id);


--
-- Name: tm_conftype_w_ports_wstype_and_sop_class_aud tm_conftype_w_ports_wstype_and_sop_class_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_conftype_w_ports_wstype_and_sop_class_aud
    ADD CONSTRAINT tm_conftype_w_ports_wstype_and_sop_class_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_conftype_w_ports_wstype_and_sop_class tm_conftype_w_ports_wstype_and_sop_class_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_conftype_w_ports_wstype_and_sop_class
    ADD CONSTRAINT tm_conftype_w_ports_wstype_and_sop_class_pkey PRIMARY KEY (id);


--
-- Name: tm_connectathon_participant tm_connectathon_participant_email_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_connectathon_participant
    ADD CONSTRAINT tm_connectathon_participant_email_key UNIQUE (email, testing_session_id);


--
-- Name: tm_connectathon_participant tm_connectathon_participant_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_connectathon_participant
    ADD CONSTRAINT tm_connectathon_participant_pkey PRIMARY KEY (id);


--
-- Name: tm_connectathon_participant_status tm_connectathon_participant_status_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_connectathon_participant_status
    ADD CONSTRAINT tm_connectathon_participant_status_pkey PRIMARY KEY (id);


--
-- Name: tm_contextual_information_aud tm_contextual_information_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_contextual_information_aud
    ADD CONSTRAINT tm_contextual_information_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_contextual_information_instance tm_contextual_information_instance_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_contextual_information_instance
    ADD CONSTRAINT tm_contextual_information_instance_pkey PRIMARY KEY (id);


--
-- Name: tm_contextual_information tm_contextual_information_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_contextual_information
    ADD CONSTRAINT tm_contextual_information_pkey PRIMARY KEY (id);


--
-- Name: tm_data_type tm_data_type_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_data_type
    ADD CONSTRAINT tm_data_type_keyword_key UNIQUE (keyword);


--
-- Name: tm_data_type tm_data_type_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_data_type
    ADD CONSTRAINT tm_data_type_pkey PRIMARY KEY (id);


--
-- Name: tm_demonstration tm_demonstration_name_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_demonstration
    ADD CONSTRAINT tm_demonstration_name_key UNIQUE (name);


--
-- Name: tm_demonstration tm_demonstration_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_demonstration
    ADD CONSTRAINT tm_demonstration_pkey PRIMARY KEY (id);


--
-- Name: tm_demonstration_system_in_session tm_demonstration_system_in_session_system_in_session_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_demonstration_system_in_session
    ADD CONSTRAINT tm_demonstration_system_in_session_system_in_session_id_key UNIQUE (system_in_session_id, demonstration_id);


--
-- Name: tm_demonstrations_in_testing_sessions tm_demonstrations_in_testing_sessions_demonstration_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_demonstrations_in_testing_sessions
    ADD CONSTRAINT tm_demonstrations_in_testing_sessions_demonstration_id_key UNIQUE (demonstration_id, testing_session_id);


--
-- Name: tm_dicom_scp_configuration tm_dicom_scp_configuration_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_dicom_scp_configuration
    ADD CONSTRAINT tm_dicom_scp_configuration_pkey PRIMARY KEY (id);


--
-- Name: tm_dicom_scu_configuration tm_dicom_scu_configuration_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_dicom_scu_configuration
    ADD CONSTRAINT tm_dicom_scu_configuration_pkey PRIMARY KEY (id);


--
-- Name: tm_free_ip_ports_for_proxy tm_free_ip_ports_for_proxy_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_free_ip_ports_for_proxy
    ADD CONSTRAINT tm_free_ip_ports_for_proxy_pkey PRIMARY KEY (id);


--
-- Name: tm_free_ips_for_session tm_free_ips_for_session_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_free_ips_for_session
    ADD CONSTRAINT tm_free_ips_for_session_pkey PRIMARY KEY (id);


--
-- Name: tm_free_ips_for_session tm_free_ips_for_session_testing_session_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_free_ips_for_session
    ADD CONSTRAINT tm_free_ips_for_session_testing_session_id_key UNIQUE (testing_session_id, ip);


--
-- Name: tm_generic_oids_institution_for_session tm_generic_oids_institution_for_session_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_generic_oids_institution_for_session
    ADD CONSTRAINT tm_generic_oids_institution_for_session_pkey PRIMARY KEY (id);


--
-- Name: tm_generic_oids_ip_config_param_for_session tm_generic_oids_ip_config_param_for_session_oid_root_value_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_generic_oids_ip_config_param_for_session
    ADD CONSTRAINT tm_generic_oids_ip_config_param_for_session_oid_root_value_key UNIQUE (oid_root_value, testing_session_id);


--
-- Name: tm_generic_oids_ip_config_param_for_session tm_generic_oids_ip_config_param_for_session_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_generic_oids_ip_config_param_for_session
    ADD CONSTRAINT tm_generic_oids_ip_config_param_for_session_pkey PRIMARY KEY (id);


--
-- Name: tm_generic_oids_ip_config_param_for_session tm_generic_oids_ip_config_param_for_session_profile_for_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_generic_oids_ip_config_param_for_session
    ADD CONSTRAINT tm_generic_oids_ip_config_param_for_session_profile_for_id_key UNIQUE (profile_for_id, testing_session_id);


--
-- Name: tm_hl7_initiator_configuration tm_hl7_initiator_configuration_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_hl7_initiator_configuration
    ADD CONSTRAINT tm_hl7_initiator_configuration_pkey PRIMARY KEY (id);


--
-- Name: tm_hl7_responder_configuration tm_hl7_responder_configuration_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_hl7_responder_configuration
    ADD CONSTRAINT tm_hl7_responder_configuration_pkey PRIMARY KEY (id);


--
-- Name: tm_hl7_v3_initiator_configuration tm_hl7_v3_initiator_configuration_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_hl7_v3_initiator_configuration
    ADD CONSTRAINT tm_hl7_v3_initiator_configuration_pkey PRIMARY KEY (id);


--
-- Name: tm_hl7_v3_responder_configuration tm_hl7_v3_responder_configuration_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_hl7_v3_responder_configuration
    ADD CONSTRAINT tm_hl7_v3_responder_configuration_pkey PRIMARY KEY (id);


--
-- Name: tm_home tm_home_language_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_home
    ADD CONSTRAINT tm_home_language_key UNIQUE (language);


--
-- Name: tm_home tm_home_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_home
    ADD CONSTRAINT tm_home_pkey PRIMARY KEY (id);


--
-- Name: tm_host tm_host_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_host
    ADD CONSTRAINT tm_host_pkey PRIMARY KEY (id);


--
-- Name: tm_institution_system tm_institution_system_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_institution_system
    ADD CONSTRAINT tm_institution_system_pkey PRIMARY KEY (id);


--
-- Name: tm_institution_system tm_institution_system_system_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_institution_system
    ADD CONSTRAINT tm_institution_system_system_id_key UNIQUE (system_id, institution_id);


--
-- Name: tm_invoice tm_invoice_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_invoice
    ADD CONSTRAINT tm_invoice_pkey PRIMARY KEY (id);


--
-- Name: tm_invoice tm_invoice_testing_session_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_invoice
    ADD CONSTRAINT tm_invoice_testing_session_id_key UNIQUE (testing_session_id, institution_id);


--
-- Name: tm_jira_issues_to_test_aud tm_jira_issues_to_test_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_jira_issues_to_test_aud
    ADD CONSTRAINT tm_jira_issues_to_test_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_jira_issues_to_test tm_jira_issues_to_test_jira_key_test_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_jira_issues_to_test
    ADD CONSTRAINT tm_jira_issues_to_test_jira_key_test_id_key UNIQUE (jira_key, test_id);


--
-- Name: tm_jira_issues_to_test tm_jira_issues_to_test_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_jira_issues_to_test
    ADD CONSTRAINT tm_jira_issues_to_test_pkey PRIMARY KEY (id);


--
-- Name: tm_meta_test_aud tm_meta_test_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_meta_test_aud
    ADD CONSTRAINT tm_meta_test_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_meta_test tm_meta_test_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_meta_test
    ADD CONSTRAINT tm_meta_test_keyword_key UNIQUE (keyword);


--
-- Name: tm_meta_test tm_meta_test_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_meta_test
    ADD CONSTRAINT tm_meta_test_pkey PRIMARY KEY (id);


--
-- Name: tm_meta_test_test_roles_aud tm_meta_test_test_roles_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_meta_test_test_roles_aud
    ADD CONSTRAINT tm_meta_test_test_roles_aud_pkey PRIMARY KEY (rev, meta_test_id, test_roles_id);


--
-- Name: tm_meta_test_test_roles tm_meta_test_test_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_meta_test_test_roles
    ADD CONSTRAINT tm_meta_test_test_roles_pkey PRIMARY KEY (meta_test_id, test_roles_id);


--
-- Name: tm_meta_test_test_roles tm_meta_test_test_roles_test_roles_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_meta_test_test_roles
    ADD CONSTRAINT tm_meta_test_test_roles_test_roles_id_key UNIQUE (test_roles_id);


--
-- Name: tm_monitor_in_session tm_monitor_in_session_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_monitor_in_session
    ADD CONSTRAINT tm_monitor_in_session_pkey PRIMARY KEY (id);


--
-- Name: tm_monitor_in_session tm_monitor_in_session_user_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_monitor_in_session
    ADD CONSTRAINT tm_monitor_in_session_user_id_key UNIQUE (user_id, testing_session_id);


--
-- Name: tm_network_config_for_session tm_network_config_for_session_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_network_config_for_session
    ADD CONSTRAINT tm_network_config_for_session_pkey PRIMARY KEY (id);


--
-- Name: tm_network_config_for_session tm_network_config_for_session_testing_session_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_network_config_for_session
    ADD CONSTRAINT tm_network_config_for_session_testing_session_id_key UNIQUE (testing_session_id);


--
-- Name: tm_object_attribute_aud tm_object_attribute_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_attribute_aud
    ADD CONSTRAINT tm_object_attribute_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_object_attribute_option_aud tm_object_attribute_option_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_attribute_option_aud
    ADD CONSTRAINT tm_object_attribute_option_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_object_attribute_option tm_object_attribute_option_description_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_attribute_option
    ADD CONSTRAINT tm_object_attribute_option_description_key UNIQUE (description);


--
-- Name: tm_object_attribute_option tm_object_attribute_option_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_attribute_option
    ADD CONSTRAINT tm_object_attribute_option_keyword_key UNIQUE (keyword);


--
-- Name: tm_object_attribute_option tm_object_attribute_option_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_attribute_option
    ADD CONSTRAINT tm_object_attribute_option_pkey PRIMARY KEY (id);


--
-- Name: tm_object_attribute tm_object_attribute_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_attribute
    ADD CONSTRAINT tm_object_attribute_pkey PRIMARY KEY (id);


--
-- Name: tm_object_creator_aud tm_object_creator_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_creator_aud
    ADD CONSTRAINT tm_object_creator_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_object_creator tm_object_creator_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_creator
    ADD CONSTRAINT tm_object_creator_pkey PRIMARY KEY (id);


--
-- Name: tm_object_file_aud tm_object_file_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_file_aud
    ADD CONSTRAINT tm_object_file_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_object_file tm_object_file_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_file
    ADD CONSTRAINT tm_object_file_pkey PRIMARY KEY (id);


--
-- Name: tm_object_file_type_aud tm_object_file_type_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_file_type_aud
    ADD CONSTRAINT tm_object_file_type_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_object_file_type tm_object_file_type_description_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_file_type
    ADD CONSTRAINT tm_object_file_type_description_key UNIQUE (description);


--
-- Name: tm_object_file_type tm_object_file_type_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_file_type
    ADD CONSTRAINT tm_object_file_type_keyword_key UNIQUE (keyword);


--
-- Name: tm_object_file_type tm_object_file_type_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_file_type
    ADD CONSTRAINT tm_object_file_type_pkey PRIMARY KEY (id);


--
-- Name: tm_object_instance_annotation tm_object_instance_annotation_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance_annotation
    ADD CONSTRAINT tm_object_instance_annotation_pkey PRIMARY KEY (id);


--
-- Name: tm_object_instance_attribute tm_object_instance_attribute_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance_attribute
    ADD CONSTRAINT tm_object_instance_attribute_pkey PRIMARY KEY (id);


--
-- Name: tm_object_instance_file tm_object_instance_file_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance_file
    ADD CONSTRAINT tm_object_instance_file_pkey PRIMARY KEY (id);


--
-- Name: tm_object_instance tm_object_instance_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance
    ADD CONSTRAINT tm_object_instance_pkey PRIMARY KEY (id);


--
-- Name: tm_object_instance_validation_aud tm_object_instance_validation_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance_validation_aud
    ADD CONSTRAINT tm_object_instance_validation_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_object_instance_validation tm_object_instance_validation_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance_validation
    ADD CONSTRAINT tm_object_instance_validation_pkey PRIMARY KEY (id);


--
-- Name: tm_object_reader_aud tm_object_reader_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_reader_aud
    ADD CONSTRAINT tm_object_reader_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_object_reader tm_object_reader_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_reader
    ADD CONSTRAINT tm_object_reader_pkey PRIMARY KEY (id);


--
-- Name: tm_object_type_aud tm_object_type_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_type_aud
    ADD CONSTRAINT tm_object_type_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_object_type tm_object_type_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_type
    ADD CONSTRAINT tm_object_type_pkey PRIMARY KEY (id);


--
-- Name: tm_object_type_status_aud tm_object_type_status_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_type_status_aud
    ADD CONSTRAINT tm_object_type_status_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_object_type_status tm_object_type_status_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_type_status
    ADD CONSTRAINT tm_object_type_status_pkey PRIMARY KEY (id);


--
-- Name: tm_oid_institution tm_oid_institution_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oid_institution
    ADD CONSTRAINT tm_oid_institution_pkey PRIMARY KEY (id);


--
-- Name: tm_oid_requirement_aipo tm_oid_requirement_aipo_oid_requirement_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oid_requirement_aipo
    ADD CONSTRAINT tm_oid_requirement_aipo_oid_requirement_id_key UNIQUE (oid_requirement_id, aipo_id);


--
-- Name: tm_oid_requirement tm_oid_requirement_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oid_requirement
    ADD CONSTRAINT tm_oid_requirement_pkey PRIMARY KEY (id);


--
-- Name: tm_oid_root_definition_label tm_oid_root_definition_label_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oid_root_definition_label
    ADD CONSTRAINT tm_oid_root_definition_label_pkey PRIMARY KEY (id);


--
-- Name: tm_oid_root_definition tm_oid_root_definition_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oid_root_definition
    ADD CONSTRAINT tm_oid_root_definition_pkey PRIMARY KEY (id);


--
-- Name: tm_oid_system_assignment tm_oid_system_assignment_oid_requirement_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oid_system_assignment
    ADD CONSTRAINT tm_oid_system_assignment_oid_requirement_id_key UNIQUE (oid_requirement_id, system_in_session_id);


--
-- Name: tm_oid_system_assignment tm_oid_system_assignment_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oid_system_assignment
    ADD CONSTRAINT tm_oid_system_assignment_pkey PRIMARY KEY (id);


--
-- Name: tm_oids_ip_config_param_for_session_for_hl7 tm_oids_ip_config_param_for_session_for__testing_session_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oids_ip_config_param_for_session_for_hl7
    ADD CONSTRAINT tm_oids_ip_config_param_for_session_for__testing_session_id_key UNIQUE (testing_session_id);


--
-- Name: tm_oids_ip_config_param_for_session_for_hl7 tm_oids_ip_config_param_for_session_for_hl7_oid_for_hl7_v2_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oids_ip_config_param_for_session_for_hl7
    ADD CONSTRAINT tm_oids_ip_config_param_for_session_for_hl7_oid_for_hl7_v2_key UNIQUE (oid_for_hl7_v2, testing_session_id);


--
-- Name: tm_oids_ip_config_param_for_session_for_hl7 tm_oids_ip_config_param_for_session_for_hl7_oid_for_hl7_v3_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oids_ip_config_param_for_session_for_hl7
    ADD CONSTRAINT tm_oids_ip_config_param_for_session_for_hl7_oid_for_hl7_v3_key UNIQUE (oid_for_hl7_v3, testing_session_id);


--
-- Name: tm_oids_ip_config_param_for_session_for_hl7 tm_oids_ip_config_param_for_session_for_hl7_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oids_ip_config_param_for_session_for_hl7
    ADD CONSTRAINT tm_oids_ip_config_param_for_session_for_hl7_pkey PRIMARY KEY (id);


--
-- Name: tm_path_aud tm_path_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_path_aud
    ADD CONSTRAINT tm_path_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_path tm_path_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_path
    ADD CONSTRAINT tm_path_pkey PRIMARY KEY (id);


--
-- Name: tm_port_host_pair tm_port_host_pair_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_port_host_pair
    ADD CONSTRAINT tm_port_host_pair_pkey PRIMARY KEY (id);


--
-- Name: tm_proxy_configuration_for_session tm_proxy_configuration_for_session_configurationtype_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_proxy_configuration_for_session
    ADD CONSTRAINT tm_proxy_configuration_for_session_configurationtype_id_key UNIQUE (configurationtype_id, testing_session_id);


--
-- Name: tm_proxy_configuration_for_session tm_proxy_configuration_for_session_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_proxy_configuration_for_session
    ADD CONSTRAINT tm_proxy_configuration_for_session_pkey PRIMARY KEY (id);


--
-- Name: tm_raw_configuration tm_raw_configuration_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_raw_configuration
    ADD CONSTRAINT tm_raw_configuration_pkey PRIMARY KEY (id);


--
-- Name: tm_role_in_test_aud tm_role_in_test_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_role_in_test_aud
    ADD CONSTRAINT tm_role_in_test_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_role_in_test tm_role_in_test_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_role_in_test
    ADD CONSTRAINT tm_role_in_test_keyword_key UNIQUE (keyword);


--
-- Name: tm_role_in_test tm_role_in_test_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_role_in_test
    ADD CONSTRAINT tm_role_in_test_pkey PRIMARY KEY (id);


--
-- Name: tm_role_in_test_test_participants_aud tm_role_in_test_test_participants_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_role_in_test_test_participants_aud
    ADD CONSTRAINT tm_role_in_test_test_participants_aud_pkey PRIMARY KEY (rev, role_in_test_id, test_participants_id);


--
-- Name: tm_role_in_test_test_participants tm_role_in_test_test_participants_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_role_in_test_test_participants
    ADD CONSTRAINT tm_role_in_test_test_participants_pkey PRIMARY KEY (role_in_test_id, test_participants_id);


--
-- Name: tm_sap_result_tr_comment tm_sap_result_tr_comment_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_sap_result_tr_comment
    ADD CONSTRAINT tm_sap_result_tr_comment_pkey PRIMARY KEY (id);


--
-- Name: tm_sap_result_tr_comment tm_sap_result_tr_comment_sap_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_sap_result_tr_comment
    ADD CONSTRAINT tm_sap_result_tr_comment_sap_id_key UNIQUE (sap_id, tr_id);


--
-- Name: tm_simulator_in_session tm_simulator_in_session_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_simulator_in_session
    ADD CONSTRAINT tm_simulator_in_session_pkey PRIMARY KEY (id);


--
-- Name: tm_simulator_in_session tm_simulator_in_session_system_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_simulator_in_session
    ADD CONSTRAINT tm_simulator_in_session_system_id_key UNIQUE (system_id, testing_session_id);


--
-- Name: tm_simulator tm_simulator_name_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_simulator
    ADD CONSTRAINT tm_simulator_name_key UNIQUE (name, version);


--
-- Name: tm_simulator tm_simulator_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_simulator
    ADD CONSTRAINT tm_simulator_pkey PRIMARY KEY (id);


--
-- Name: tm_sop_class_aud tm_sop_class_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_sop_class_aud
    ADD CONSTRAINT tm_sop_class_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_sop_class tm_sop_class_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_sop_class
    ADD CONSTRAINT tm_sop_class_keyword_key UNIQUE (keyword);


--
-- Name: tm_sop_class tm_sop_class_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_sop_class
    ADD CONSTRAINT tm_sop_class_pkey PRIMARY KEY (id);


--
-- Name: tm_standard tm_standard_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_standard
    ADD CONSTRAINT tm_standard_keyword_key UNIQUE (keyword);


--
-- Name: tm_standard tm_standard_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_standard
    ADD CONSTRAINT tm_standard_pkey PRIMARY KEY (id);


--
-- Name: tm_status tm_status_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_status
    ADD CONSTRAINT tm_status_pkey PRIMARY KEY (id);


--
-- Name: tm_status_results tm_status_results_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_status_results
    ADD CONSTRAINT tm_status_results_pkey PRIMARY KEY (id);


--
-- Name: tm_step_inst_msg_process_status tm_step_inst_msg_process_status_key_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_inst_msg_process_status
    ADD CONSTRAINT tm_step_inst_msg_process_status_key_key UNIQUE (key);


--
-- Name: tm_step_inst_msg_process_status tm_step_inst_msg_process_status_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_inst_msg_process_status
    ADD CONSTRAINT tm_step_inst_msg_process_status_pkey PRIMARY KEY (id);


--
-- Name: tm_step_instance_exec_status tm_step_instance_exec_status_key_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_exec_status
    ADD CONSTRAINT tm_step_instance_exec_status_key_key UNIQUE (key);


--
-- Name: tm_step_instance_exec_status tm_step_instance_exec_status_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_exec_status
    ADD CONSTRAINT tm_step_instance_exec_status_pkey PRIMARY KEY (id);


--
-- Name: tm_step_instance_message tm_step_instance_message_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_message
    ADD CONSTRAINT tm_step_instance_message_pkey PRIMARY KEY (id);


--
-- Name: tm_step_instance_message tm_step_instance_message_proxy_msg_id_proxy_type_id_proxy_h_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_message
    ADD CONSTRAINT tm_step_instance_message_proxy_msg_id_proxy_type_id_proxy_h_key UNIQUE (proxy_msg_id, proxy_type_id, proxy_host_name);


--
-- Name: tm_step_instance_msg_validation tm_step_instance_msg_validation_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_msg_validation
    ADD CONSTRAINT tm_step_instance_msg_validation_pkey PRIMARY KEY (id);


--
-- Name: tm_subtypes_per_system tm_subtypes_per_system_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_subtypes_per_system
    ADD CONSTRAINT tm_subtypes_per_system_pkey PRIMARY KEY (id);


--
-- Name: tm_subtypes_per_system tm_subtypes_per_system_system_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_subtypes_per_system
    ADD CONSTRAINT tm_subtypes_per_system_system_id_key UNIQUE (system_id, system_subtypes_per_system_type_id);


--
-- Name: tm_syslog_configuration tm_syslog_configuration_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_syslog_configuration
    ADD CONSTRAINT tm_syslog_configuration_pkey PRIMARY KEY (id);


--
-- Name: tm_system_actor_profiles tm_system_actor_profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_actor_profiles
    ADD CONSTRAINT tm_system_actor_profiles_pkey PRIMARY KEY (id);


--
-- Name: tm_system_actor_profiles tm_system_actor_profiles_system_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_actor_profiles
    ADD CONSTRAINT tm_system_actor_profiles_system_id_key UNIQUE (system_id, actor_integration_profile_option_id);


--
-- Name: tm_system_aipo_result_for_a_testing_session tm_system_aipo_result_for_a_testing_session_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_aipo_result_for_a_testing_session
    ADD CONSTRAINT tm_system_aipo_result_for_a_testing_session_pkey PRIMARY KEY (id);


--
-- Name: tm_system_aipo_result_for_a_testing_session tm_system_aipo_result_for_a_testing_system_actor_profile_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_aipo_result_for_a_testing_session
    ADD CONSTRAINT tm_system_aipo_result_for_a_testing_system_actor_profile_id_key UNIQUE (system_actor_profile_id, testing_session_id);


--
-- Name: tm_system_event tm_system_event_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_event
    ADD CONSTRAINT tm_system_event_pkey PRIMARY KEY (id);


--
-- Name: tm_system_events tm_system_events_systemevents_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_events
    ADD CONSTRAINT tm_system_events_systemevents_id_key UNIQUE (systemevents_id);


--
-- Name: tm_system_in_session tm_system_in_session_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_in_session
    ADD CONSTRAINT tm_system_in_session_pkey PRIMARY KEY (id);


--
-- Name: tm_system_in_session_status tm_system_in_session_status_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_in_session_status
    ADD CONSTRAINT tm_system_in_session_status_pkey PRIMARY KEY (id);


--
-- Name: tm_system_in_session tm_system_in_session_system_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_in_session
    ADD CONSTRAINT tm_system_in_session_system_id_key UNIQUE (system_id, testing_session_id);


--
-- Name: tm_system_in_session_user tm_system_in_session_user_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_in_session_user
    ADD CONSTRAINT tm_system_in_session_user_pkey PRIMARY KEY (id);


--
-- Name: tm_system_in_session_user tm_system_in_session_user_user_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_in_session_user
    ADD CONSTRAINT tm_system_in_session_user_user_id_key UNIQUE (user_id, system_in_session_id);


--
-- Name: tm_system_link tm_system_link_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_link
    ADD CONSTRAINT tm_system_link_pkey PRIMARY KEY (id);


--
-- Name: tm_system tm_system_name_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system
    ADD CONSTRAINT tm_system_name_key UNIQUE (name, version);


--
-- Name: tm_system tm_system_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system
    ADD CONSTRAINT tm_system_pkey PRIMARY KEY (id);


--
-- Name: tm_test_assertion tm_test_assertion_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_assertion
    ADD CONSTRAINT tm_test_assertion_pkey PRIMARY KEY (id);


--
-- Name: tm_test_aud tm_test_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_aud
    ADD CONSTRAINT tm_test_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_test_description_aud tm_test_description_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_description_aud
    ADD CONSTRAINT tm_test_description_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_test_description tm_test_description_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_description
    ADD CONSTRAINT tm_test_description_pkey PRIMARY KEY (id);


--
-- Name: tm_test_inheritance tm_test_inheritance_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_inheritance
    ADD CONSTRAINT tm_test_inheritance_pkey PRIMARY KEY (id);


--
-- Name: tm_test_instance_event tm_test_instance_event_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_event
    ADD CONSTRAINT tm_test_instance_event_pkey PRIMARY KEY (id);


--
-- Name: tm_test_instance_exec_status tm_test_instance_exec_status_key_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_exec_status
    ADD CONSTRAINT tm_test_instance_exec_status_key_key UNIQUE (key);


--
-- Name: tm_test_instance_exec_status tm_test_instance_exec_status_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_exec_status
    ADD CONSTRAINT tm_test_instance_exec_status_pkey PRIMARY KEY (id);


--
-- Name: tm_test_instance_participants tm_test_instance_participants_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_participants
    ADD CONSTRAINT tm_test_instance_participants_pkey PRIMARY KEY (id);


--
-- Name: tm_test_instance_participants_status tm_test_instance_participants_status_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_participants_status
    ADD CONSTRAINT tm_test_instance_participants_status_pkey PRIMARY KEY (id);


--
-- Name: tm_test_instance_path_to_log_file tm_test_instance_path_to_log_file_path_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_path_to_log_file
    ADD CONSTRAINT tm_test_instance_path_to_log_file_path_key UNIQUE (path);


--
-- Name: tm_test_instance_path_to_log_file tm_test_instance_path_to_log_file_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_path_to_log_file
    ADD CONSTRAINT tm_test_instance_path_to_log_file_pkey PRIMARY KEY (id);


--
-- Name: tm_test_instance tm_test_instance_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance
    ADD CONSTRAINT tm_test_instance_pkey PRIMARY KEY (id);


--
-- Name: tm_test_instance_status tm_test_instance_status_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_status
    ADD CONSTRAINT tm_test_instance_status_pkey PRIMARY KEY (id);


--
-- Name: tm_test_instance_test_status tm_test_instance_test_status_status_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_test_status
    ADD CONSTRAINT tm_test_instance_test_status_status_id_key UNIQUE (status_id);


--
-- Name: tm_test_instance_test_steps_instance tm_test_instance_test_steps_instance_test_steps_instance_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_test_steps_instance
    ADD CONSTRAINT tm_test_instance_test_steps_instance_test_steps_instance_id_key UNIQUE (test_steps_instance_id);


--
-- Name: tm_test_instance_tm_test_steps_data tm_test_instance_tm_test_steps_data_teststepsdatalist_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_tm_test_steps_data
    ADD CONSTRAINT tm_test_instance_tm_test_steps_data_teststepsdatalist_id_key UNIQUE (teststepsdatalist_id);


--
-- Name: tm_test tm_test_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test
    ADD CONSTRAINT tm_test_keyword_key UNIQUE (keyword);


--
-- Name: tm_test_option_aud tm_test_option_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_option_aud
    ADD CONSTRAINT tm_test_option_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_test_option tm_test_option_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_option
    ADD CONSTRAINT tm_test_option_pkey PRIMARY KEY (id);


--
-- Name: tm_test_participants tm_test_participants_actor_integration_profile_option_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_participants
    ADD CONSTRAINT tm_test_participants_actor_integration_profile_option_id_key UNIQUE (actor_integration_profile_option_id, is_tested);


--
-- Name: tm_test_participants_aud tm_test_participants_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_participants_aud
    ADD CONSTRAINT tm_test_participants_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_test_participants tm_test_participants_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_participants
    ADD CONSTRAINT tm_test_participants_pkey PRIMARY KEY (id);


--
-- Name: tm_test_peer_type_aud tm_test_peer_type_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_peer_type_aud
    ADD CONSTRAINT tm_test_peer_type_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_test_peer_type tm_test_peer_type_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_peer_type
    ADD CONSTRAINT tm_test_peer_type_pkey PRIMARY KEY (id);


--
-- Name: tm_test tm_test_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test
    ADD CONSTRAINT tm_test_pkey PRIMARY KEY (id);


--
-- Name: tm_test_roles_aud tm_test_roles_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_roles_aud
    ADD CONSTRAINT tm_test_roles_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_test_roles tm_test_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_roles
    ADD CONSTRAINT tm_test_roles_pkey PRIMARY KEY (id);


--
-- Name: tm_test_roles tm_test_roles_role_in_test_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_roles
    ADD CONSTRAINT tm_test_roles_role_in_test_id_key UNIQUE (role_in_test_id, test_id);


--
-- Name: tm_test_status_aud tm_test_status_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_status_aud
    ADD CONSTRAINT tm_test_status_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_test_status tm_test_status_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_status
    ADD CONSTRAINT tm_test_status_pkey PRIMARY KEY (id);


--
-- Name: tm_test_step_message_profile tm_test_step_message_profile_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_step_message_profile
    ADD CONSTRAINT tm_test_step_message_profile_pkey PRIMARY KEY (id);


--
-- Name: tm_test_steps_aud tm_test_steps_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_aud
    ADD CONSTRAINT tm_test_steps_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_test_steps_data tm_test_steps_data_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_data
    ADD CONSTRAINT tm_test_steps_data_pkey PRIMARY KEY (id);


--
-- Name: tm_test_steps_input_ci_aud tm_test_steps_input_ci_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_input_ci_aud
    ADD CONSTRAINT tm_test_steps_input_ci_aud_pkey PRIMARY KEY (rev, test_steps_id, contextual_information_id);


--
-- Name: tm_test_steps_input_ci tm_test_steps_input_ci_contextual_information_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_input_ci
    ADD CONSTRAINT tm_test_steps_input_ci_contextual_information_id_key UNIQUE (contextual_information_id);


--
-- Name: tm_test_steps_input_ci tm_test_steps_input_ci_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_input_ci
    ADD CONSTRAINT tm_test_steps_input_ci_pkey PRIMARY KEY (test_steps_id, contextual_information_id);


--
-- Name: tm_test_steps_instance_input_ci_instance tm_test_steps_instance_input__contextual_information_instan_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance_input_ci_instance
    ADD CONSTRAINT tm_test_steps_instance_input__contextual_information_instan_key UNIQUE (contextual_information_instance_id);


--
-- Name: tm_test_steps_instance_output_ci_instance tm_test_steps_instance_output_contextual_information_instan_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance_output_ci_instance
    ADD CONSTRAINT tm_test_steps_instance_output_contextual_information_instan_key UNIQUE (contextual_information_instance_id);


--
-- Name: tm_test_steps_instance tm_test_steps_instance_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance
    ADD CONSTRAINT tm_test_steps_instance_pkey PRIMARY KEY (id);


--
-- Name: tm_test_steps_instance_status tm_test_steps_instance_status_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance_status
    ADD CONSTRAINT tm_test_steps_instance_status_pkey PRIMARY KEY (id);


--
-- Name: tm_test_steps_option_aud tm_test_steps_option_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_option_aud
    ADD CONSTRAINT tm_test_steps_option_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_test_steps_option tm_test_steps_option_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_option
    ADD CONSTRAINT tm_test_steps_option_pkey PRIMARY KEY (id);


--
-- Name: tm_test_steps_output_ci_aud tm_test_steps_output_ci_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_output_ci_aud
    ADD CONSTRAINT tm_test_steps_output_ci_aud_pkey PRIMARY KEY (rev, test_steps_id, contextual_information_id);


--
-- Name: tm_test_steps_output_ci tm_test_steps_output_ci_contextual_information_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_output_ci
    ADD CONSTRAINT tm_test_steps_output_ci_contextual_information_id_key UNIQUE (contextual_information_id);


--
-- Name: tm_test_steps_output_ci tm_test_steps_output_ci_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_output_ci
    ADD CONSTRAINT tm_test_steps_output_ci_pkey PRIMARY KEY (test_steps_id, contextual_information_id);


--
-- Name: tm_test_steps tm_test_steps_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps
    ADD CONSTRAINT tm_test_steps_pkey PRIMARY KEY (id);


--
-- Name: tm_test_steps_test_steps_data tm_test_steps_test_steps_data_test_steps_data_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_test_steps_data
    ADD CONSTRAINT tm_test_steps_test_steps_data_test_steps_data_id_key UNIQUE (test_steps_data_id);


--
-- Name: tm_test_steps_test_steps_data tm_test_steps_test_steps_data_test_steps_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_test_steps_data
    ADD CONSTRAINT tm_test_steps_test_steps_data_test_steps_id_key UNIQUE (test_steps_id, test_steps_data_id);


--
-- Name: tm_test_test_description_aud tm_test_test_description_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_test_description_aud
    ADD CONSTRAINT tm_test_test_description_aud_pkey PRIMARY KEY (rev, test_id, test_description_id);


--
-- Name: tm_test_test_description tm_test_test_description_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_test_description
    ADD CONSTRAINT tm_test_test_description_pkey PRIMARY KEY (test_id, test_description_id);


--
-- Name: tm_test_test_description tm_test_test_description_test_description_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_test_description
    ADD CONSTRAINT tm_test_test_description_test_description_id_key UNIQUE (test_description_id);


--
-- Name: tm_test_test_steps_aud tm_test_test_steps_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_test_steps_aud
    ADD CONSTRAINT tm_test_test_steps_aud_pkey PRIMARY KEY (rev, test_id, test_steps_id);


--
-- Name: tm_test_test_steps tm_test_test_steps_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_test_steps
    ADD CONSTRAINT tm_test_test_steps_pkey PRIMARY KEY (test_id, test_steps_id);


--
-- Name: tm_test_test_steps tm_test_test_steps_test_steps_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_test_steps
    ADD CONSTRAINT tm_test_test_steps_test_steps_id_key UNIQUE (test_steps_id);


--
-- Name: tm_test_type_aud tm_test_type_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_type_aud
    ADD CONSTRAINT tm_test_type_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_test_type tm_test_type_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_type
    ADD CONSTRAINT tm_test_type_pkey PRIMARY KEY (id);


--
-- Name: tm_test_user_comment tm_test_user_comment_user_comment_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_user_comment
    ADD CONSTRAINT tm_test_user_comment_user_comment_id_key UNIQUE (user_comment_id);


--
-- Name: tm_testing_session_admin tm_testing_session_admin_testing_session_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_testing_session_admin
    ADD CONSTRAINT tm_testing_session_admin_testing_session_id_key UNIQUE (testing_session_id, user_id);


--
-- Name: tm_testing_session tm_testing_session_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_testing_session
    ADD CONSTRAINT tm_testing_session_pkey PRIMARY KEY (id);


--
-- Name: tm_testing_type tm_testing_type_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_testing_type
    ADD CONSTRAINT tm_testing_type_keyword_key UNIQUE (keyword);


--
-- Name: tm_testing_type tm_testing_type_name_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_testing_type
    ADD CONSTRAINT tm_testing_type_name_key UNIQUE (name);


--
-- Name: tm_testing_type tm_testing_type_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_testing_type
    ADD CONSTRAINT tm_testing_type_pkey PRIMARY KEY (id);


--
-- Name: tm_transport_layer_for_config_aud tm_transport_layer_for_config_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_transport_layer_for_config_aud
    ADD CONSTRAINT tm_transport_layer_for_config_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_transport_layer_for_config tm_transport_layer_for_config_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_transport_layer_for_config
    ADD CONSTRAINT tm_transport_layer_for_config_keyword_key UNIQUE (keyword);


--
-- Name: tm_transport_layer_for_config tm_transport_layer_for_config_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_transport_layer_for_config
    ADD CONSTRAINT tm_transport_layer_for_config_pkey PRIMARY KEY (id);


--
-- Name: tm_user_comment tm_user_comment_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_user_comment
    ADD CONSTRAINT tm_user_comment_pkey PRIMARY KEY (id);


--
-- Name: tm_user_photo tm_user_photo_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_user_photo
    ADD CONSTRAINT tm_user_photo_pkey PRIMARY KEY (id);


--
-- Name: tm_user_preferences tm_user_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_user_preferences
    ADD CONSTRAINT tm_user_preferences_pkey PRIMARY KEY (id);


--
-- Name: tm_user_preferences tm_user_preferences_user_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_user_preferences
    ADD CONSTRAINT tm_user_preferences_user_id_key UNIQUE (user_id);


--
-- Name: tm_web_service_configuration tm_web_service_configuration_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_web_service_configuration
    ADD CONSTRAINT tm_web_service_configuration_pkey PRIMARY KEY (id);


--
-- Name: tm_web_service_detail tm_web_service_detail_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_web_service_detail
    ADD CONSTRAINT tm_web_service_detail_pkey PRIMARY KEY (id);


--
-- Name: tm_web_service_type_aud tm_web_service_type_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_web_service_type_aud
    ADD CONSTRAINT tm_web_service_type_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: tm_web_service_type tm_web_service_type_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_web_service_type
    ADD CONSTRAINT tm_web_service_type_pkey PRIMARY KEY (id);


--
-- Name: tm_web_service_type tm_web_service_type_profile_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_web_service_type
    ADD CONSTRAINT tm_web_service_type_profile_id_key UNIQUE (profile_id);


--
-- Name: tm_profiles_in_testing_sessions uc_integration_profile_per_testing_session; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_profiles_in_testing_sessions
    ADD CONSTRAINT uc_integration_profile_per_testing_session UNIQUE (testing_session_id, integration_profile_id);


--
-- Name: tm_monitor_test uk_1hn1p5frtj81roa7jtx1b1bvx; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_monitor_test
    ADD CONSTRAINT uk_1hn1p5frtj81roa7jtx1b1bvx UNIQUE (monitor_id, test_id);


--
-- Name: sys_dicom_documents_for_systems uk_28t1c79mdb8clmu3ilsb7bkuu; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_dicom_documents_for_systems
    ADD CONSTRAINT uk_28t1c79mdb8clmu3ilsb7bkuu UNIQUE (system_id, path_linking_a_document_id);


--
-- Name: tm_system_aipo_result_for_a_testing_session uk_2uns6kpga7ppk1fqley584ig2; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_aipo_result_for_a_testing_session
    ADD CONSTRAINT uk_2uns6kpga7ppk1fqley584ig2 UNIQUE (system_actor_profile_id, testing_session_id);


--
-- Name: pr_crawler_changed_integration_statements uk_2voggjxoj0tlcovu29st15arr; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_crawler_changed_integration_statements
    ADD CONSTRAINT uk_2voggjxoj0tlcovu29st15arr UNIQUE (system_id, crawler_report_id);


--
-- Name: tm_test_steps_test_steps_data uk_2vyce7ta80j2pwqf2vi7vcxte; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_test_steps_data
    ADD CONSTRAINT uk_2vyce7ta80j2pwqf2vi7vcxte UNIQUE (test_steps_id, test_steps_data_id);


--
-- Name: tm_oid_root_definition_label uk_3quk0wl72puff27mpk4aqcqei; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oid_root_definition_label
    ADD CONSTRAINT uk_3quk0wl72puff27mpk4aqcqei UNIQUE (label);


--
-- Name: usr_user_role uk_40tx3h9q3qxciis823tkciy31; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_user_role
    ADD CONSTRAINT uk_40tx3h9q3qxciis823tkciy31 UNIQUE (user_id, role_id);


--
-- Name: tf_domain uk_436tct1jl8811q2xgd8bjth9q; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_domain
    ADD CONSTRAINT uk_436tct1jl8811q2xgd8bjth9q UNIQUE (keyword);


--
-- Name: tm_subtypes_per_system uk_4jmwjcgdypwx6o98fbh57ygok; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_subtypes_per_system
    ADD CONSTRAINT uk_4jmwjcgdypwx6o98fbh57ygok UNIQUE (system_id, system_subtypes_per_system_type_id);


--
-- Name: usr_institution_type uk_4x2rymgrys6gpojsuqcxq2prd; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_institution_type
    ADD CONSTRAINT uk_4x2rymgrys6gpojsuqcxq2prd UNIQUE (type);


--
-- Name: tm_connectathon_participant uk_4x3q251c75oj0p9vf0jwfr3x; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_connectathon_participant
    ADD CONSTRAINT uk_4x3q251c75oj0p9vf0jwfr3x UNIQUE (email, testing_session_id);


--
-- Name: pr_search_log_systems_found uk_52rsrc6xwgmj26w2rm947w5b9; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_search_log_systems_found
    ADD CONSTRAINT uk_52rsrc6xwgmj26w2rm947w5b9 UNIQUE (system_id, search_report_id);


--
-- Name: cmn_application_preference uk_535ry4wkukk8xivd9vqvu06hp; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.cmn_application_preference
    ADD CONSTRAINT uk_535ry4wkukk8xivd9vqvu06hp UNIQUE (preference_name);


--
-- Name: tm_test_steps_instance_input_ci_instance uk_59rxha39jxmugs9x3jyaj2djn; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance_input_ci_instance
    ADD CONSTRAINT uk_59rxha39jxmugs9x3jyaj2djn UNIQUE (test_steps_instance_id, contextual_information_instance_id);


--
-- Name: tm_test_steps_input_ci uk_5rdivjd19b0n5nqwy3bkb7u9c; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_input_ci
    ADD CONSTRAINT uk_5rdivjd19b0n5nqwy3bkb7u9c UNIQUE (test_steps_id, contextual_information_id);


--
-- Name: tm_generic_oids_ip_config_param_for_session uk_63nd7mueot21l0ar33r2fhjp5; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_generic_oids_ip_config_param_for_session
    ADD CONSTRAINT uk_63nd7mueot21l0ar33r2fhjp5 UNIQUE (oid_root_value, testing_session_id);


--
-- Name: tm_user_preferences uk_6e83kvu2r93s4hafcs6gcwmah; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_user_preferences
    ADD CONSTRAINT uk_6e83kvu2r93s4hafcs6gcwmah UNIQUE (user_id);


--
-- Name: tf_transaction uk_6nt35dm69gbrrj0aegkkqalr2; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction
    ADD CONSTRAINT uk_6nt35dm69gbrrj0aegkkqalr2 UNIQUE (keyword);


--
-- Name: pr_search_criteria_per_report uk_6pk7s91q24wh36ggpq3lmufp7; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_search_criteria_per_report
    ADD CONSTRAINT uk_6pk7s91q24wh36ggpq3lmufp7 UNIQUE (search_log_criterion_id, search_log_report_id);


--
-- Name: tf_actor_default_ports uk_75d73bul1n175ugk6o8v2xgsn; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_default_ports
    ADD CONSTRAINT uk_75d73bul1n175ugk6o8v2xgsn UNIQUE (actor_id, config_name, type_of_config);


--
-- Name: tm_test_steps_test_steps_data uk_7bla4jq9vrgr2ke17oq45ku5d; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_test_steps_data
    ADD CONSTRAINT uk_7bla4jq9vrgr2ke17oq45ku5d UNIQUE (test_steps_data_id);


--
-- Name: pr_intro uk_7g5gypis7rsyevuml55t9hxvi; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_intro
    ADD CONSTRAINT uk_7g5gypis7rsyevuml55t9hxvi UNIQUE (language);


--
-- Name: tm_jira_issues_to_test uk_7ix8bprdgihbs5esk9osv6phc; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_jira_issues_to_test
    ADD CONSTRAINT uk_7ix8bprdgihbs5esk9osv6phc UNIQUE (jira_key, test_id);


--
-- Name: tm_test_participants uk_7k7xjvok2fkhv090gf6k8n6ua; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_participants
    ADD CONSTRAINT uk_7k7xjvok2fkhv090gf6k8n6ua UNIQUE (actor_integration_profile_option_id, is_tested);


--
-- Name: tf_rule_list_criterion uk_81shykw7emr3q41anx9ksqdb6; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_rule_list_criterion
    ADD CONSTRAINT uk_81shykw7emr3q41anx9ksqdb6 UNIQUE (aipocriterions_id);


--
-- Name: tf_standard uk_862df7ewvip5ajs8fpnnx9hm6; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_standard
    ADD CONSTRAINT uk_862df7ewvip5ajs8fpnnx9hm6 UNIQUE (keyword);


--
-- Name: sys_system_type uk_86l8p9bukdmfhqqt9nln4o18q; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_system_type
    ADD CONSTRAINT uk_86l8p9bukdmfhqqt9nln4o18q UNIQUE (keyword);


--
-- Name: tf_actor_integration_profile_option uk_8b4tb6bcp3eh7mtsucokgh7fx; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_integration_profile_option
    ADD CONSTRAINT uk_8b4tb6bcp3eh7mtsucokgh7fx UNIQUE (actor_integration_profile_id, integration_profile_option_id);


--
-- Name: tf_transaction_status_type uk_8ojkw0me2bv4tsm5vyrmwb6gu; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_status_type
    ADD CONSTRAINT uk_8ojkw0me2bv4tsm5vyrmwb6gu UNIQUE (name);


--
-- Name: tf_transaction_link uk_97iyim1a054rgjkpa32j9ksxb; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_link
    ADD CONSTRAINT uk_97iyim1a054rgjkpa32j9ksxb UNIQUE (from_actor_id, to_actor_id, transaction_id);


--
-- Name: tf_affinity_domain uk_9lriehprhbeo91cxqn7rqwjsy; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_affinity_domain
    ADD CONSTRAINT uk_9lriehprhbeo91cxqn7rqwjsy UNIQUE (keyword);


--
-- Name: tf_transaction_standard uk_9xw54omnofi1bn7px13kr6jyk; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_standard
    ADD CONSTRAINT uk_9xw54omnofi1bn7px13kr6jyk UNIQUE (standard_id, transaction_id);


--
-- Name: tm_demonstration uk_ajsabrf510pmh8fxks3rqwa8l; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_demonstration
    ADD CONSTRAINT uk_ajsabrf510pmh8fxks3rqwa8l UNIQUE (name);


--
-- Name: usr_institution uk_an3krxejvje497n5bqhw3pyew; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_institution
    ADD CONSTRAINT uk_an3krxejvje497n5bqhw3pyew UNIQUE (name);


--
-- Name: tm_generic_oids_ip_config_param_for_session uk_arx4mnq8dccmdtn9m4187dr3j; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_generic_oids_ip_config_param_for_session
    ADD CONSTRAINT uk_arx4mnq8dccmdtn9m4187dr3j UNIQUE (profile_for_id, testing_session_id);


--
-- Name: sys_hl7_documents_for_systems uk_b62n69tgo7jmvs85yon701g5p; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_hl7_documents_for_systems
    ADD CONSTRAINT uk_b62n69tgo7jmvs85yon701g5p UNIQUE (system_id, path_linking_a_document_id);


--
-- Name: tf_actor_integration_profile uk_b6ejd87o8v27xinqw27nn1hss; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_integration_profile
    ADD CONSTRAINT uk_b6ejd87o8v27xinqw27nn1hss UNIQUE (actor_id, integration_profile_id);


--
-- Name: usr_institution_address uk_cwvldv0unpwmi4m472u9ai8ga; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_institution_address
    ADD CONSTRAINT uk_cwvldv0unpwmi4m472u9ai8ga UNIQUE (institution_id, address_id);


--
-- Name: tf_integration_profile_type_link uk_d8f4vv4juh946m3kbs3o0w7p2; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_type_link
    ADD CONSTRAINT uk_d8f4vv4juh946m3kbs3o0w7p2 UNIQUE (integration_profile_id, integration_profile_type_id);


--
-- Name: usr_messages_usr_message_parameters uk_dgnn9iuua4q2tytrlkkhitjf1; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_messages_usr_message_parameters
    ADD CONSTRAINT uk_dgnn9iuua4q2tytrlkkhitjf1 UNIQUE (messageparameters_id);


--
-- Name: tm_test_instance_test_status uk_dt4ios5pp48n7weh8rxx4n9rf; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_test_status
    ADD CONSTRAINT uk_dt4ios5pp48n7weh8rxx4n9rf UNIQUE (status_id);


--
-- Name: usr_persons_functions uk_en9ho8ougnovio1aktpuc7jj4; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_persons_functions
    ADD CONSTRAINT uk_en9ho8ougnovio1aktpuc7jj4 UNIQUE (person_function_id, person_id);


--
-- Name: tm_oid_system_assignment uk_eqafflltc0vi5wuspeeb58bmn; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oid_system_assignment
    ADD CONSTRAINT uk_eqafflltc0vi5wuspeeb58bmn UNIQUE (system_in_session_id, oid_requirement_id);


--
-- Name: tm_institution_system uk_f8opps24svl0h6lf93vngtuhy; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_institution_system
    ADD CONSTRAINT uk_f8opps24svl0h6lf93vngtuhy UNIQUE (system_id, institution_id);


--
-- Name: tm_test_instance_tm_test_steps_data uk_fcvt06p9ogywqpi7wv390hdd4; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_tm_test_steps_data
    ADD CONSTRAINT uk_fcvt06p9ogywqpi7wv390hdd4 UNIQUE (teststepsdatalist_id);


--
-- Name: tm_object_file uk_fpb1spo4lb16jwvv2om0lv4e8; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_file
    ADD CONSTRAINT uk_fpb1spo4lb16jwvv2om0lv4e8 UNIQUE (description, object_id, type_id, uploader);


--
-- Name: tf_actor uk_fpb6vpa9bnw6cjsb1pucuuivw; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor
    ADD CONSTRAINT uk_fpb6vpa9bnw6cjsb1pucuuivw UNIQUE (keyword);


--
-- Name: tf_transaction_option_type uk_fv74hod7rl73bhyerub82q67c; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_option_type
    ADD CONSTRAINT uk_fv74hod7rl73bhyerub82q67c UNIQUE (name);


--
-- Name: tm_object_type_status uk_g1w5apucxfq82xcvs0pj4l0df; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_type_status
    ADD CONSTRAINT uk_g1w5apucxfq82xcvs0pj4l0df UNIQUE (keyword);


--
-- Name: sys_table_session uk_gitay4shg3ajgue6udvvw4xqf; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_table_session
    ADD CONSTRAINT uk_gitay4shg3ajgue6udvvw4xqf UNIQUE (table_keyword);


--
-- Name: tm_test_user_comment uk_gq3etdcefp2fj86m8gag3x7xd; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_user_comment
    ADD CONSTRAINT uk_gq3etdcefp2fj86m8gag3x7xd UNIQUE (user_comment_id);


--
-- Name: tf_document_sections uk_gqqt5kk1xa5npiaptbwwdu9bt; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_document_sections
    ADD CONSTRAINT uk_gqqt5kk1xa5npiaptbwwdu9bt UNIQUE (section, document_id);


--
-- Name: tm_testing_session_admin uk_gxleq7xkksv2l4l162wu37u2h; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_testing_session_admin
    ADD CONSTRAINT uk_gxleq7xkksv2l4l162wu37u2h UNIQUE (testing_session_id, user_id);


--
-- Name: tm_step_instance_message uk_h1ssaepfongpr260b2fea8tkm; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_message
    ADD CONSTRAINT uk_h1ssaepfongpr260b2fea8tkm UNIQUE (proxy_msg_id, proxy_type_id, proxy_host_name);


--
-- Name: tm_test_test_steps uk_hf9i4p02djpa5xscdy3rmneuc; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_test_steps
    ADD CONSTRAINT uk_hf9i4p02djpa5xscdy3rmneuc UNIQUE (test_id, test_steps_id);


--
-- Name: tm_raw_configuration uk_hjk5484nmdehnlukgop7o1sd7; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_raw_configuration
    ADD CONSTRAINT uk_hjk5484nmdehnlukgop7o1sd7 UNIQUE (id);


--
-- Name: tm_monitor_in_session uk_icit9xkh4kbs16pco83ekfs6x; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_monitor_in_session
    ADD CONSTRAINT uk_icit9xkh4kbs16pco83ekfs6x UNIQUE (user_id, testing_session_id);


--
-- Name: tm_demonstration_system_in_session uk_irmi59xhdk6eun3kol3sogx6t; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_demonstration_system_in_session
    ADD CONSTRAINT uk_irmi59xhdk6eun3kol3sogx6t UNIQUE (system_in_session_id, demonstration_id);


--
-- Name: tf_integration_profile_type uk_jx75w0mlp0ptnjsbiv8576nl0; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_type
    ADD CONSTRAINT uk_jx75w0mlp0ptnjsbiv8576nl0 UNIQUE (keyword);


--
-- Name: tf_hl7_message_profile uk_k6ujf0i2mjoaf4w15wk7fq89y; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile
    ADD CONSTRAINT uk_k6ujf0i2mjoaf4w15wk7fq89y UNIQUE (profile_oid);


--
-- Name: tm_test_steps_instance_output_ci_instance uk_l6rhgq95skiwdornands5xr45; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance_output_ci_instance
    ADD CONSTRAINT uk_l6rhgq95skiwdornands5xr45 UNIQUE (test_steps_instance_id, contextual_information_instance_id);


--
-- Name: tm_system_events uk_lqcivp5bh2olqqdmy9jah4gor; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_events
    ADD CONSTRAINT uk_lqcivp5bh2olqqdmy9jah4gor UNIQUE (systemevents_id);


--
-- Name: pr_crawler_unreachable_integration_statements uk_lr6gr27b3pf1onfp0jaf63ucx; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_crawler_unreachable_integration_statements
    ADD CONSTRAINT uk_lr6gr27b3pf1onfp0jaf63ucx UNIQUE (system_id, crawler_report_id);


--
-- Name: tf_domain_profile uk_luennoioveseb7edrlppqaum2; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_domain_profile
    ADD CONSTRAINT uk_luennoioveseb7edrlppqaum2 UNIQUE (domain_id, integration_profile_id);


--
-- Name: tm_demonstrations_in_testing_sessions uk_lv3evdty6fk3whjwtmqn6ygs7; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_demonstrations_in_testing_sessions
    ADD CONSTRAINT uk_lv3evdty6fk3whjwtmqn6ygs7 UNIQUE (demonstration_id, testing_session_id);


--
-- Name: tm_home uk_m6xa64ak77qn64i52f94o0aui; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_home
    ADD CONSTRAINT uk_m6xa64ak77qn64i52f94o0aui UNIQUE (language);


--
-- Name: sys_system_subtype uk_m93upfoi8eoru26w6wa71b9w3; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_system_subtype
    ADD CONSTRAINT uk_m93upfoi8eoru26w6wa71b9w3 UNIQUE (keyword);


--
-- Name: tf_profile_link uk_mei0k3s7jd4oyc3000w96e3oi; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_profile_link
    ADD CONSTRAINT uk_mei0k3s7jd4oyc3000w96e3oi UNIQUE (actor_integration_profile_id, transaction_id, transaction_option_type_id);


--
-- Name: tm_role_in_test_test_participants uk_mqxhfodh8n194l0vsaqoafdej; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_role_in_test_test_participants
    ADD CONSTRAINT uk_mqxhfodh8n194l0vsaqoafdej UNIQUE (role_in_test_id, test_participants_id);


--
-- Name: tf_hl7_message_profile_affinity_domain uk_n5trtb5a0bt27vlsad418w4rj; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile_affinity_domain
    ADD CONSTRAINT uk_n5trtb5a0bt27vlsad418w4rj UNIQUE (hl7_message_profile_id, affinity_domain_id);


--
-- Name: tm_test_steps_output_ci uk_ncouo4jyhdge5n0lc7tae3ole; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_output_ci
    ADD CONSTRAINT uk_ncouo4jyhdge5n0lc7tae3ole UNIQUE (test_steps_id, contextual_information_id);


--
-- Name: tm_proxy_configuration_for_session uk_nfn91ua4n1fuo6655qopnveb9; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_proxy_configuration_for_session
    ADD CONSTRAINT uk_nfn91ua4n1fuo6655qopnveb9 UNIQUE (configurationtype_id, testing_session_id);


--
-- Name: tf_integration_profile uk_ny4glgtyovt2w045nwct19arx; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile
    ADD CONSTRAINT uk_ny4glgtyovt2w045nwct19arx UNIQUE (keyword);


--
-- Name: tm_system_in_session_user uk_p0jgiqxpcw7m6f363ek0pax50; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_in_session_user
    ADD CONSTRAINT uk_p0jgiqxpcw7m6f363ek0pax50 UNIQUE (user_id, system_in_session_id);


--
-- Name: sys_system_subtypes_per_system_type uk_p54his4fl04yygccw4fdhcips; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_system_subtypes_per_system_type
    ADD CONSTRAINT uk_p54his4fl04yygccw4fdhcips UNIQUE (system_type_id, system_subtype_id);


--
-- Name: tm_system_in_session uk_pd70pawc4iq8l7afq8mclgabg; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_in_session
    ADD CONSTRAINT uk_pd70pawc4iq8l7afq8mclgabg UNIQUE (system_id, testing_session_id);


--
-- Name: tf_integration_profile_status_type uk_pejuyujydm4t4ylimltqlogfc; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_status_type
    ADD CONSTRAINT uk_pejuyujydm4t4ylimltqlogfc UNIQUE (name);


--
-- Name: tm_system_actor_profiles uk_qd01r6y0s49jd12l0m462ayo8; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_actor_profiles
    ADD CONSTRAINT uk_qd01r6y0s49jd12l0m462ayo8 UNIQUE (system_id, actor_integration_profile_option_id);


--
-- Name: tm_system uk_qhpcvotilafl949f1g3do63tt; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system
    ADD CONSTRAINT uk_qhpcvotilafl949f1g3do63tt UNIQUE (name, version);


--
-- Name: tm_test_test_description uk_qo6uflwoy4qa3qokcqrt996bm; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_test_description
    ADD CONSTRAINT uk_qo6uflwoy4qa3qokcqrt996bm UNIQUE (test_id, test_description_id);


--
-- Name: tm_contextual_information uk_qq8qo8sirf841okjdfjyw7ycx; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_contextual_information
    ADD CONSTRAINT uk_qq8qo8sirf841okjdfjyw7ycx UNIQUE (label, value);


--
-- Name: tm_sap_result_tr_comment uk_rxj81ybsh4wf86h4wc9buyo25; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_sap_result_tr_comment
    ADD CONSTRAINT uk_rxj81ybsh4wf86h4wc9buyo25 UNIQUE (sap_id, tr_id);


--
-- Name: pr_crawler_unmatching_hascode_for_integration_statements uk_s4yfodw20na8a0njfk5wvspx9; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_crawler_unmatching_hascode_for_integration_statements
    ADD CONSTRAINT uk_s4yfodw20na8a0njfk5wvspx9 UNIQUE (system_id, crawler_report_id);


--
-- Name: tm_conf_mapping_w_aipo_w_conftypes uk_sgdk7xcq7relwxufplvfm62b2; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_conf_mapping_w_aipo_w_conftypes
    ADD CONSTRAINT uk_sgdk7xcq7relwxufplvfm62b2 UNIQUE (tm_conf_mapped_id, tm_conftypes_id);


--
-- Name: tm_test_roles uk_si09xlggxxmbda6b2ablydara; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_roles
    ADD CONSTRAINT uk_si09xlggxxmbda6b2ablydara UNIQUE (test_id, role_in_test_id);


--
-- Name: tm_meta_test_test_roles uk_sspau5tor4bss0vn9s4sj0mtl; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_meta_test_test_roles
    ADD CONSTRAINT uk_sspau5tor4bss0vn9s4sj0mtl UNIQUE (test_roles_id, meta_test_id);


--
-- Name: tm_invoice uk_tfqb9a3h09ycwkwj0dcsx81yp; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_invoice
    ADD CONSTRAINT uk_tfqb9a3h09ycwkwj0dcsx81yp UNIQUE (testing_session_id, institution_id);


--
-- Name: tf_integration_profile_option uk_thqc1vykug4qhn8jdij04d1bh; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_option
    ADD CONSTRAINT uk_thqc1vykug4qhn8jdij04d1bh UNIQUE (keyword);


--
-- Name: usr_address usr_address_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_address
    ADD CONSTRAINT usr_address_pkey PRIMARY KEY (id);


--
-- Name: usr_currency usr_currency_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_currency
    ADD CONSTRAINT usr_currency_pkey PRIMARY KEY (keyword);


--
-- Name: usr_gazelle_language_aud usr_gazelle_language_aud_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_gazelle_language_aud
    ADD CONSTRAINT usr_gazelle_language_aud_pkey PRIMARY KEY (id, rev);


--
-- Name: usr_gazelle_language usr_gazelle_language_description_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_gazelle_language
    ADD CONSTRAINT usr_gazelle_language_description_key UNIQUE (description);


--
-- Name: usr_gazelle_language usr_gazelle_language_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_gazelle_language
    ADD CONSTRAINT usr_gazelle_language_keyword_key UNIQUE (keyword);


--
-- Name: usr_gazelle_language usr_gazelle_language_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_gazelle_language
    ADD CONSTRAINT usr_gazelle_language_pkey PRIMARY KEY (id);


--
-- Name: usr_institution_address usr_institution_address_institution_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_institution_address
    ADD CONSTRAINT usr_institution_address_institution_id_key UNIQUE (institution_id, address_id);


--
-- Name: usr_institution usr_institution_name_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_institution
    ADD CONSTRAINT usr_institution_name_key UNIQUE (name);


--
-- Name: usr_institution usr_institution_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_institution
    ADD CONSTRAINT usr_institution_pkey PRIMARY KEY (id);


--
-- Name: usr_institution_type usr_institution_type_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_institution_type
    ADD CONSTRAINT usr_institution_type_pkey PRIMARY KEY (id);


--
-- Name: usr_institution_type usr_institution_type_type_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_institution_type
    ADD CONSTRAINT usr_institution_type_type_key UNIQUE (type);


--
-- Name: usr_iso_3166_country_code usr_iso_3166_country_code_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_iso_3166_country_code
    ADD CONSTRAINT usr_iso_3166_country_code_pkey PRIMARY KEY (iso);


--
-- Name: usr_message_parameters usr_message_parameters_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_message_parameters
    ADD CONSTRAINT usr_message_parameters_pkey PRIMARY KEY (id);


--
-- Name: usr_messages usr_messages_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_messages
    ADD CONSTRAINT usr_messages_pkey PRIMARY KEY (id);


--
-- Name: usr_messages_usr_message_parameters usr_messages_usr_message_parameters_messageparameters_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_messages_usr_message_parameters
    ADD CONSTRAINT usr_messages_usr_message_parameters_messageparameters_id_key UNIQUE (messageparameters_id);


--
-- Name: usr_person_function usr_person_function_keyword_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_person_function
    ADD CONSTRAINT usr_person_function_keyword_key UNIQUE (keyword);


--
-- Name: usr_person_function usr_person_function_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_person_function
    ADD CONSTRAINT usr_person_function_pkey PRIMARY KEY (id);


--
-- Name: usr_person usr_person_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_person
    ADD CONSTRAINT usr_person_pkey PRIMARY KEY (id);


--
-- Name: usr_persons_functions usr_persons_functions_person_function_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_persons_functions
    ADD CONSTRAINT usr_persons_functions_person_function_id_key UNIQUE (person_function_id, person_id);


--
-- Name: usr_role usr_role_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_role
    ADD CONSTRAINT usr_role_pkey PRIMARY KEY (id);


--
-- Name: usr_user_role usr_user_role_user_id_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_user_role
    ADD CONSTRAINT usr_user_role_user_id_key UNIQUE (user_id, role_id);


--
-- Name: usr_users usr_users_email_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_users
    ADD CONSTRAINT usr_users_email_key UNIQUE (email);


--
-- Name: usr_users usr_users_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_users
    ADD CONSTRAINT usr_users_pkey PRIMARY KEY (id);


--
-- Name: usr_users usr_users_username_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_users
    ADD CONSTRAINT usr_users_username_key UNIQUE (username);


--
-- Name: validation_service validation_service_key_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.validation_service
    ADD CONSTRAINT validation_service_key_key UNIQUE (key);


--
-- Name: validation_service validation_service_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.validation_service
    ADD CONSTRAINT validation_service_pkey PRIMARY KEY (id);


--
-- Name: validation_status validation_status_key_key; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.validation_status
    ADD CONSTRAINT validation_status_key_key UNIQUE (key);


--
-- Name: validation_status validation_status_pkey; Type: CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.validation_status
    ADD CONSTRAINT validation_status_pkey PRIMARY KEY (id);


--
-- Name: PartInd_TF_sl_log_1-node-1; Type: INDEX; Schema: _TF; Owner: gazelle
--

CREATE INDEX "PartInd_TF_sl_log_1-node-1" ON "_TF".sl_log_1 USING btree (log_txid) WHERE (log_origin = 1);


--
-- Name: PartInd_TF_sl_log_2-node-1; Type: INDEX; Schema: _TF; Owner: gazelle
--

CREATE INDEX "PartInd_TF_sl_log_2-node-1" ON "_TF".sl_log_2 USING btree (log_txid) WHERE (log_origin = 1);


--
-- Name: sl_apply_stats_idx1; Type: INDEX; Schema: _TF; Owner: gazelle
--

CREATE INDEX sl_apply_stats_idx1 ON "_TF".sl_apply_stats USING btree (as_origin);


--
-- Name: sl_confirm_idx1; Type: INDEX; Schema: _TF; Owner: gazelle
--

CREATE INDEX sl_confirm_idx1 ON "_TF".sl_confirm USING btree (con_origin, con_received, con_seqno);


--
-- Name: sl_confirm_idx2; Type: INDEX; Schema: _TF; Owner: gazelle
--

CREATE INDEX sl_confirm_idx2 ON "_TF".sl_confirm USING btree (con_received, con_seqno);


--
-- Name: sl_log_1_idx1; Type: INDEX; Schema: _TF; Owner: gazelle
--

CREATE INDEX sl_log_1_idx1 ON "_TF".sl_log_1 USING btree (log_origin, log_txid, log_actionseq);


--
-- Name: sl_log_2_idx1; Type: INDEX; Schema: _TF; Owner: gazelle
--

CREATE INDEX sl_log_2_idx1 ON "_TF".sl_log_2 USING btree (log_origin, log_txid, log_actionseq);


--
-- Name: sl_log_script_idx1; Type: INDEX; Schema: _TF; Owner: gazelle
--

CREATE INDEX sl_log_script_idx1 ON "_TF".sl_log_script USING btree (log_origin, log_txid, log_actionseq);


--
-- Name: sl_seqlog_idx; Type: INDEX; Schema: _TF; Owner: gazelle
--

CREATE INDEX sl_seqlog_idx ON "_TF".sl_seqlog USING btree (seql_origin, seql_ev_seqno, seql_seqid);


--
-- Name: tm_configuration_actor_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_configuration_actor_id_idx ON public.tm_configuration USING btree (actor_id);


--
-- Name: tm_configuration_approved_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_configuration_approved_idx ON public.tm_configuration USING btree (approved);


--
-- Name: tm_configuration_configurationtype_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_configuration_configurationtype_id_idx ON public.tm_configuration USING btree (configurationtype_id);


--
-- Name: tm_configuration_host_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_configuration_host_id_idx ON public.tm_configuration USING btree (host_id);


--
-- Name: tm_configuration_is_secured_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_configuration_is_secured_idx ON public.tm_configuration USING btree (is_secured);


--
-- Name: tm_configuration_system_in_session_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_configuration_system_in_session_id_idx ON public.tm_configuration USING btree (system_in_session_id);


--
-- Name: tm_connectathon_participant_email_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_connectathon_participant_email_idx ON public.tm_connectathon_participant USING btree (email);


--
-- Name: tm_connectathon_participant_institution_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_connectathon_participant_institution_id_idx ON public.tm_connectathon_participant USING btree (institution_id);


--
-- Name: tm_connectathon_participant_institution_name_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_connectathon_participant_institution_name_idx ON public.tm_connectathon_participant USING btree (institution_name);


--
-- Name: tm_connectathon_participant_institution_ok_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_connectathon_participant_institution_ok_id_idx ON public.tm_connectathon_participant USING btree (institution_ok_id);


--
-- Name: tm_connectathon_participant_lastname_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_connectathon_participant_lastname_idx ON public.tm_connectathon_participant USING btree (lastname);


--
-- Name: tm_connectathon_participant_status_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_connectathon_participant_status_id_idx ON public.tm_connectathon_participant USING btree (status_id);


--
-- Name: tm_connectathon_participant_testing_session_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_connectathon_participant_testing_session_id_idx ON public.tm_connectathon_participant USING btree (testing_session_id);


--
-- Name: tm_host_hostname_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_host_hostname_idx ON public.tm_host USING btree (hostname);


--
-- Name: tm_object_instance_completed_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_object_instance_completed_idx ON public.tm_object_instance USING btree (completed);


--
-- Name: tm_object_instance_name_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_object_instance_name_idx ON public.tm_object_instance USING btree (name);


--
-- Name: tm_object_instance_object_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_object_instance_object_id_idx ON public.tm_object_instance USING btree (object_id);


--
-- Name: tm_object_instance_system_in_session_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_object_instance_system_in_session_id_idx ON public.tm_object_instance USING btree (system_in_session_id);


--
-- Name: tm_object_instance_test_type_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_object_instance_test_type_id_idx ON public.tm_object_instance USING btree (test_type_id);


--
-- Name: tm_object_instance_validation_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_object_instance_validation_id_idx ON public.tm_object_instance USING btree (validation_id);


--
-- Name: tm_oid_system_assignment_oid_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_oid_system_assignment_oid_idx ON public.tm_oid_system_assignment USING btree (oid);


--
-- Name: tm_oid_system_assignment_oid_value_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_oid_system_assignment_oid_value_idx ON public.tm_oid_system_assignment USING btree (oid_value);


--
-- Name: tm_oid_system_assignment_system_in_session_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_oid_system_assignment_system_in_session_id_idx ON public.tm_oid_system_assignment USING btree (system_in_session_id);


--
-- Name: tm_system_actor_profiles_actor_integration_profile_option_i_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_system_actor_profiles_actor_integration_profile_option_i_idx ON public.tm_system_actor_profiles USING btree (actor_integration_profile_option_id);


--
-- Name: tm_system_actor_profiles_system_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_system_actor_profiles_system_id_idx ON public.tm_system_actor_profiles USING btree (system_id);


--
-- Name: tm_system_actor_profiles_testing_type_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_system_actor_profiles_testing_type_id_idx ON public.tm_system_actor_profiles USING btree (testing_type_id);


--
-- Name: tm_system_actor_profiles_testing_type_reviewed_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_system_actor_profiles_testing_type_reviewed_idx ON public.tm_system_actor_profiles USING btree (testing_type_reviewed);


--
-- Name: tm_system_actor_profiles_wanted_testing_type_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_system_actor_profiles_wanted_testing_type_id_idx ON public.tm_system_actor_profiles USING btree (wanted_testing_type_id);


--
-- Name: tm_system_events_tm_system_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_system_events_tm_system_id_idx ON public.tm_system_events USING btree (tm_system_id);


--
-- Name: tm_test_instance_participants_actor_integration_profile_opt_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_test_instance_participants_actor_integration_profile_opt_idx ON public.tm_test_instance_participants USING btree (actor_integration_profile_option_id);


--
-- Name: tm_test_instance_participants_role_in_test_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_test_instance_participants_role_in_test_id_idx ON public.tm_test_instance_participants USING btree (role_in_test_id);


--
-- Name: tm_test_instance_participants_status_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_test_instance_participants_status_id_idx ON public.tm_test_instance_participants USING btree (status_id);


--
-- Name: tm_test_instance_participants_system_in_session_user_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_test_instance_participants_system_in_session_user_id_idx ON public.tm_test_instance_participants USING btree (system_in_session_user_id);


--
-- Name: tm_test_instance_participants_test_instance_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_test_instance_participants_test_instance_id_idx ON public.tm_test_instance_participants USING btree (test_instance_id);


--
-- Name: tm_test_instance_test_status_test_instance_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_test_instance_test_status_test_instance_id_idx ON public.tm_test_instance_test_status USING btree (test_instance_id);


--
-- Name: tm_test_instance_test_steps_instance_test_instance_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_test_instance_test_steps_instance_test_instance_id_idx ON public.tm_test_instance_test_steps_instance USING btree (test_instance_id);


--
-- Name: tm_test_steps_instance_execution_status_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_test_steps_instance_execution_status_id_idx ON public.tm_test_steps_instance USING btree (execution_status_id);


--
-- Name: tm_test_steps_instance_status_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_test_steps_instance_status_id_idx ON public.tm_test_steps_instance USING btree (status_id);


--
-- Name: tm_test_steps_instance_system_in_session_initiator_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_test_steps_instance_system_in_session_initiator_id_idx ON public.tm_test_steps_instance USING btree (system_in_session_initiator_id);


--
-- Name: tm_test_steps_instance_system_in_session_reponder_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_test_steps_instance_system_in_session_reponder_id_idx ON public.tm_test_steps_instance USING btree (system_in_session_reponder_id);


--
-- Name: tm_test_steps_instance_test_steps_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_test_steps_instance_test_steps_id_idx ON public.tm_test_steps_instance USING btree (test_steps_id);


--
-- Name: tm_test_steps_instance_test_steps_instance_status_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_test_steps_instance_test_steps_instance_status_id_idx ON public.tm_test_steps_instance USING btree (test_steps_instance_status_id);


--
-- Name: tm_test_steps_instance_test_steps_version_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX tm_test_steps_instance_test_steps_version_idx ON public.tm_test_steps_instance USING btree (test_steps_version);


--
-- Name: usr_messages_usr_message_parameters_messageparameters_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX usr_messages_usr_message_parameters_messageparameters_id_idx ON public.usr_messages_usr_message_parameters USING btree (messageparameters_id);


--
-- Name: usr_messages_usr_message_parameters_usr_messages_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX usr_messages_usr_message_parameters_usr_messages_id_idx ON public.usr_messages_usr_message_parameters USING btree (usr_messages_id);


--
-- Name: usr_users_activated_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX usr_users_activated_idx ON public.usr_users USING btree (activated);


--
-- Name: usr_users_blocked_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX usr_users_blocked_idx ON public.usr_users USING btree (blocked);


--
-- Name: usr_users_firstname_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX usr_users_firstname_idx ON public.usr_users USING btree (firstname);


--
-- Name: usr_users_institution_id_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX usr_users_institution_id_idx ON public.usr_users USING btree (institution_id);


--
-- Name: usr_users_lastname_idx; Type: INDEX; Schema: public; Owner: gazelle
--

CREATE INDEX usr_users_lastname_idx ON public.usr_users USING btree (lastname);


--
-- Name: sl_listen li_origin-no_id-ref; Type: FK CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_listen
    ADD CONSTRAINT "li_origin-no_id-ref" FOREIGN KEY (li_origin) REFERENCES "_TF".sl_node(no_id);


--
-- Name: sl_path pa_client-no_id-ref; Type: FK CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_path
    ADD CONSTRAINT "pa_client-no_id-ref" FOREIGN KEY (pa_client) REFERENCES "_TF".sl_node(no_id);


--
-- Name: sl_path pa_server-no_id-ref; Type: FK CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_path
    ADD CONSTRAINT "pa_server-no_id-ref" FOREIGN KEY (pa_server) REFERENCES "_TF".sl_node(no_id);


--
-- Name: sl_sequence seq_set-set_id-ref; Type: FK CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_sequence
    ADD CONSTRAINT "seq_set-set_id-ref" FOREIGN KEY (seq_set) REFERENCES "_TF".sl_set(set_id);


--
-- Name: sl_set set_origin-no_id-ref; Type: FK CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_set
    ADD CONSTRAINT "set_origin-no_id-ref" FOREIGN KEY (set_origin) REFERENCES "_TF".sl_node(no_id);


--
-- Name: sl_listen sl_listen-sl_path-ref; Type: FK CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_listen
    ADD CONSTRAINT "sl_listen-sl_path-ref" FOREIGN KEY (li_provider, li_receiver) REFERENCES "_TF".sl_path(pa_server, pa_client);


--
-- Name: sl_subscribe sl_subscribe-sl_path-ref; Type: FK CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_subscribe
    ADD CONSTRAINT "sl_subscribe-sl_path-ref" FOREIGN KEY (sub_provider, sub_receiver) REFERENCES "_TF".sl_path(pa_server, pa_client);


--
-- Name: sl_setsync ssy_origin-no_id-ref; Type: FK CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_setsync
    ADD CONSTRAINT "ssy_origin-no_id-ref" FOREIGN KEY (ssy_origin) REFERENCES "_TF".sl_node(no_id);


--
-- Name: sl_setsync ssy_setid-set_id-ref; Type: FK CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_setsync
    ADD CONSTRAINT "ssy_setid-set_id-ref" FOREIGN KEY (ssy_setid) REFERENCES "_TF".sl_set(set_id);


--
-- Name: sl_subscribe sub_set-set_id-ref; Type: FK CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_subscribe
    ADD CONSTRAINT "sub_set-set_id-ref" FOREIGN KEY (sub_set) REFERENCES "_TF".sl_set(set_id);


--
-- Name: sl_table tab_set-set_id-ref; Type: FK CONSTRAINT; Schema: _TF; Owner: gazelle
--

ALTER TABLE ONLY "_TF".sl_table
    ADD CONSTRAINT "tab_set-set_id-ref" FOREIGN KEY (tab_set) REFERENCES "_TF".sl_set(set_id);


--
-- Name: tf_integration_profile fk110a80f114d625ba; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile
    ADD CONSTRAINT fk110a80f114d625ba FOREIGN KEY (documentsection) REFERENCES public.tf_document_sections(id);


--
-- Name: tf_integration_profile fk110a80f18fe9992f; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile
    ADD CONSTRAINT fk110a80f18fe9992f FOREIGN KEY (integration_profile_status_type_id) REFERENCES public.tf_integration_profile_status_type(id);


--
-- Name: usr_messages_usr_message_parameters fk110d3f554818cba4; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_messages_usr_message_parameters
    ADD CONSTRAINT fk110d3f554818cba4 FOREIGN KEY (messageparameters_id) REFERENCES public.usr_message_parameters(id);


--
-- Name: usr_messages_usr_message_parameters fk110d3f556515bd51; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_messages_usr_message_parameters
    ADD CONSTRAINT fk110d3f556515bd51 FOREIGN KEY (usr_messages_id) REFERENCES public.usr_messages(id);


--
-- Name: tm_hl7_initiator_configuration fk13dd45941eac332; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_hl7_initiator_configuration
    ADD CONSTRAINT fk13dd45941eac332 FOREIGN KEY (configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_configuration_type_aud fk141019badf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_configuration_type_aud
    ADD CONSTRAINT fk141019badf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_test_roles fk1475c2366073030e; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_roles
    ADD CONSTRAINT fk1475c2366073030e FOREIGN KEY (test_option_id) REFERENCES public.tm_test_option(id);


--
-- Name: tm_test_roles fk1475c2366e9c6c26; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_roles
    ADD CONSTRAINT fk1475c2366e9c6c26 FOREIGN KEY (test_id) REFERENCES public.tm_test(id);


--
-- Name: tm_test_roles fk1475c2367943ec50; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_roles
    ADD CONSTRAINT fk1475c2367943ec50 FOREIGN KEY (role_in_test_id) REFERENCES public.tm_role_in_test(id);


--
-- Name: tm_test_roles fk1475c236aae780b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_roles
    ADD CONSTRAINT fk1475c236aae780b FOREIGN KEY (test_option_id) REFERENCES public.tm_test_option(id);


--
-- Name: tm_test_roles fk1475c236cf087753; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_roles
    ADD CONSTRAINT fk1475c236cf087753 FOREIGN KEY (role_in_test_id) REFERENCES public.tm_role_in_test(id);


--
-- Name: tm_test_roles fk1475c236e95a3569; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_roles
    ADD CONSTRAINT fk1475c236e95a3569 FOREIGN KEY (test_id) REFERENCES public.tm_test(id);


--
-- Name: tm_object_attribute_option_aud fk14ffb583df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_attribute_option_aud
    ADD CONSTRAINT fk14ffb583df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_abstract_configuration fk15bfec1f1eac332; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_abstract_configuration
    ADD CONSTRAINT fk15bfec1f1eac332 FOREIGN KEY (configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_hl7_initiator_configuration fk15bfec1f1eac33213dd4594; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_hl7_initiator_configuration
    ADD CONSTRAINT fk15bfec1f1eac33213dd4594 FOREIGN KEY (configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_hl7_v3_initiator_configuration fk15bfec1f1eac33245d55b6; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_hl7_v3_initiator_configuration
    ADD CONSTRAINT fk15bfec1f1eac33245d55b6 FOREIGN KEY (configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_syslog_configuration fk15bfec1f1eac33264a2fa14; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_syslog_configuration
    ADD CONSTRAINT fk15bfec1f1eac33264a2fa14 FOREIGN KEY (configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_dicom_scu_configuration fk15bfec1f1eac3326b59abf3; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_dicom_scu_configuration
    ADD CONSTRAINT fk15bfec1f1eac3326b59abf3 FOREIGN KEY (configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_dicom_scp_configuration fk15bfec1f1eac332aa1098ae; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_dicom_scp_configuration
    ADD CONSTRAINT fk15bfec1f1eac332aa1098ae FOREIGN KEY (configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_web_service_configuration fk15bfec1f1eac332ad6413fb; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_web_service_configuration
    ADD CONSTRAINT fk15bfec1f1eac332ad6413fb FOREIGN KEY (configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_hl7_v3_responder_configuration fk15bfec1f1eac332b7f0a249; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_hl7_v3_responder_configuration
    ADD CONSTRAINT fk15bfec1f1eac332b7f0a249 FOREIGN KEY (configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_hl7_responder_configuration fk15bfec1f1eac332c7709227; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_hl7_responder_configuration
    ADD CONSTRAINT fk15bfec1f1eac332c7709227 FOREIGN KEY (configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_test_steps fk1648f6c01eb7fbbe; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps
    ADD CONSTRAINT fk1648f6c01eb7fbbe FOREIGN KEY (test_steps_option_id) REFERENCES public.tm_test_steps_option(id);


--
-- Name: tm_test_steps fk1648f6c02fa28b00; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps
    ADD CONSTRAINT fk1648f6c02fa28b00 FOREIGN KEY (transaction_id) REFERENCES public.tf_transaction(id);


--
-- Name: tm_test_steps fk1648f6c08414bd59; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps
    ADD CONSTRAINT fk1648f6c08414bd59 FOREIGN KEY (test_roles_initiator_id) REFERENCES public.tm_test_roles(id);


--
-- Name: tm_test_steps fk1648f6c0876f9b6; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps
    ADD CONSTRAINT fk1648f6c0876f9b6 FOREIGN KEY (ws_transaction_usage_id) REFERENCES public.tf_ws_transaction_usage(id);


--
-- Name: tm_test_steps fk1648f6c0a7e145f6; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps
    ADD CONSTRAINT fk1648f6c0a7e145f6 FOREIGN KEY (test_roles_initiator_id) REFERENCES public.tm_test_roles(id);


--
-- Name: tm_test_steps fk1648f6c0ca338ea6; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps
    ADD CONSTRAINT fk1648f6c0ca338ea6 FOREIGN KEY (test_roles_responder_id) REFERENCES public.tm_test_roles(id);


--
-- Name: tm_test_steps fk1648f6c0ee001743; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps
    ADD CONSTRAINT fk1648f6c0ee001743 FOREIGN KEY (test_roles_responder_id) REFERENCES public.tm_test_roles(id);


--
-- Name: tm_test_steps fk1648f6c0fa30da9b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps
    ADD CONSTRAINT fk1648f6c0fa30da9b FOREIGN KEY (test_steps_option_id) REFERENCES public.tm_test_steps_option(id);


--
-- Name: tm_test_types_sessions fk16e0fa2a3e189dee; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_types_sessions
    ADD CONSTRAINT fk16e0fa2a3e189dee FOREIGN KEY (test_type_id) REFERENCES public.tm_test_type(id);


--
-- Name: tm_test_types_sessions fk16e0fa2a49294f76; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_types_sessions
    ADD CONSTRAINT fk16e0fa2a49294f76 FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tm_test_types_sessions fk16e0fa2a55b72e2b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_types_sessions
    ADD CONSTRAINT fk16e0fa2a55b72e2b FOREIGN KEY (test_type_id) REFERENCES public.tm_test_type(id);


--
-- Name: tf_integration_profile_type_link fk176910118aa34388; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_type_link
    ADD CONSTRAINT fk176910118aa34388 FOREIGN KEY (integration_profile_type_id) REFERENCES public.tf_integration_profile_type(id);


--
-- Name: tf_integration_profile_type_link fk17691011fdeae32b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_type_link
    ADD CONSTRAINT fk17691011fdeae32b FOREIGN KEY (integration_profile_id) REFERENCES public.tf_integration_profile(id);


--
-- Name: tf_rule_criterion fk1778828b6b35ed02; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_rule_criterion
    ADD CONSTRAINT fk1778828b6b35ed02 FOREIGN KEY (single_integration_profile_id) REFERENCES public.tf_integration_profile(id);


--
-- Name: tf_rule_criterion fk1778828bc8271a37; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_rule_criterion
    ADD CONSTRAINT fk1778828bc8271a37 FOREIGN KEY (single_actor_id) REFERENCES public.tf_actor(id);


--
-- Name: tf_rule_criterion fk1778828bdf1a17b2; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_rule_criterion
    ADD CONSTRAINT fk1778828bdf1a17b2 FOREIGN KEY (single_option_id) REFERENCES public.tf_integration_profile_option(id);


--
-- Name: usr_address fk18243449e334b3e8; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_address
    ADD CONSTRAINT fk18243449e334b3e8 FOREIGN KEY (country) REFERENCES public.usr_iso_3166_country_code(iso);


--
-- Name: tm_object_reader_aud fk18a69dcedf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_reader_aud
    ADD CONSTRAINT fk18a69dcedf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_contextual_information fk18ddf5c49436df46; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_contextual_information
    ADD CONSTRAINT fk18ddf5c49436df46 FOREIGN KEY (path_id) REFERENCES public.tm_path(id);


--
-- Name: tm_contextual_information fk18ddf5c4ef4a889; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_contextual_information
    ADD CONSTRAINT fk18ddf5c4ef4a889 FOREIGN KEY (path_id) REFERENCES public.tm_path(id);


--
-- Name: tf_hl7_message_profile fk18e44b982fa28b00; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile
    ADD CONSTRAINT fk18e44b982fa28b00 FOREIGN KEY (transaction_id) REFERENCES public.tf_transaction(id);


--
-- Name: tf_hl7_message_profile fk18e44b984a63cbff; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile
    ADD CONSTRAINT fk18e44b984a63cbff FOREIGN KEY (table_id) REFERENCES public.tf_hl7_message_profile_table(id);


--
-- Name: tf_hl7_message_profile fk18e44b987b3d7174; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile
    ADD CONSTRAINT fk18e44b987b3d7174 FOREIGN KEY (domain_id) REFERENCES public.tf_domain(id);


--
-- Name: tf_hl7_message_profile fk18e44b98fafe1c20; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile
    ADD CONSTRAINT fk18e44b98fafe1c20 FOREIGN KEY (actor_id) REFERENCES public.tf_actor(id);


--
-- Name: tf_domain_aud fk1ae52c82df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_domain_aud
    ADD CONSTRAINT fk1ae52c82df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tf_integration_profile_type_link_aud fk1d7ccd62df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_type_link_aud
    ADD CONSTRAINT fk1d7ccd62df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: sys_dicom_documents_for_systems fk1ee8e0122bb54aa4; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_dicom_documents_for_systems
    ADD CONSTRAINT fk1ee8e0122bb54aa4 FOREIGN KEY (path_linking_a_document_id) REFERENCES public.cmn_path_linking_a_document(id);


--
-- Name: sys_dicom_documents_for_systems fk1ee8e0123c4abc77; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_dicom_documents_for_systems
    ADD CONSTRAINT fk1ee8e0123c4abc77 FOREIGN KEY (system_id) REFERENCES public.tm_system(id);


--
-- Name: sys_dicom_documents_for_systems fk1ee8e012f784882a; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_dicom_documents_for_systems
    ADD CONSTRAINT fk1ee8e012f784882a FOREIGN KEY (path_linking_a_document_id) REFERENCES public.cmn_path_linking_a_document(id);


--
-- Name: tm_test_instance fk20c71e5c2e22606; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance
    ADD CONSTRAINT fk20c71e5c2e22606 FOREIGN KEY (monitor_id) REFERENCES public.tm_monitor_in_session(id);


--
-- Name: tm_test_instance fk20c71e5c49294f76; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance
    ADD CONSTRAINT fk20c71e5c49294f76 FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tm_test_instance fk20c71e5c6e9c6c26; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance
    ADD CONSTRAINT fk20c71e5c6e9c6c26 FOREIGN KEY (test_id) REFERENCES public.tm_test(id);


--
-- Name: tm_test_instance fk20c71e5c871b5681; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance
    ADD CONSTRAINT fk20c71e5c871b5681 FOREIGN KEY (monitor_id) REFERENCES public.tm_monitor_in_session(id);


--
-- Name: tm_test_instance fk20c71e5ce0ba66f7; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance
    ADD CONSTRAINT fk20c71e5ce0ba66f7 FOREIGN KEY (execution_status_id) REFERENCES public.tm_test_instance_exec_status(id);


--
-- Name: tm_test_instance fk20c71e5ce95a3569; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance
    ADD CONSTRAINT fk20c71e5ce95a3569 FOREIGN KEY (test_id) REFERENCES public.tm_test(id);


--
-- Name: tm_assertion_aipo fk2161d9ca89ced2eb; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_assertion_aipo
    ADD CONSTRAINT fk2161d9ca89ced2eb FOREIGN KEY (assertion_id) REFERENCES public.tm_assertion(id);


--
-- Name: tm_assertion_aipo fk2161d9ca8d961d56; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_assertion_aipo
    ADD CONSTRAINT fk2161d9ca8d961d56 FOREIGN KEY (actor_integration_profile_id) REFERENCES public.tf_actor_integration_profile(id);


--
-- Name: tm_assertion_aipo fk2161d9cab4eaaa28; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_assertion_aipo
    ADD CONSTRAINT fk2161d9cab4eaaa28 FOREIGN KEY (integration_profile_option_id) REFERENCES public.tf_integration_profile_option(id);


--
-- Name: sys_hl7_documents_for_systems fk21adc9292bb54aa4; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_hl7_documents_for_systems
    ADD CONSTRAINT fk21adc9292bb54aa4 FOREIGN KEY (path_linking_a_document_id) REFERENCES public.cmn_path_linking_a_document(id);


--
-- Name: sys_hl7_documents_for_systems fk21adc9293c4abc77; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_hl7_documents_for_systems
    ADD CONSTRAINT fk21adc9293c4abc77 FOREIGN KEY (system_id) REFERENCES public.tm_system(id);


--
-- Name: sys_hl7_documents_for_systems fk21adc929f784882a; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_hl7_documents_for_systems
    ADD CONSTRAINT fk21adc929f784882a FOREIGN KEY (path_linking_a_document_id) REFERENCES public.cmn_path_linking_a_document(id);


--
-- Name: tm_test_instance_test_instance_path_to_log_file fk246861011fe62809; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_test_instance_path_to_log_file
    ADD CONSTRAINT fk246861011fe62809 FOREIGN KEY (test_instance_id) REFERENCES public.tm_test_instance(id);


--
-- Name: tm_test_instance_test_instance_path_to_log_file fk246861012b4bf367; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_test_instance_path_to_log_file
    ADD CONSTRAINT fk246861012b4bf367 FOREIGN KEY (test_instance_path_id) REFERENCES public.tm_test_instance_path_to_log_file(id);


--
-- Name: tm_test_instance_test_instance_path_to_log_file fk24686101cda3820e; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_test_instance_path_to_log_file
    ADD CONSTRAINT fk24686101cda3820e FOREIGN KEY (test_instance_id) REFERENCES public.tm_test_instance(id);


--
-- Name: tm_test_instance_test_instance_path_to_log_file fk24686101dae5c982; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_test_instance_path_to_log_file
    ADD CONSTRAINT fk24686101dae5c982 FOREIGN KEY (test_instance_path_id) REFERENCES public.tm_test_instance_path_to_log_file(id);


--
-- Name: tm_test_test_steps_aud fk27791e92df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_test_steps_aud
    ADD CONSTRAINT fk27791e92df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_test_option_aud fk2798a7cddf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_option_aud
    ADD CONSTRAINT fk2798a7cddf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_oid_requirement_aipo fk297e827e11a261d8; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oid_requirement_aipo
    ADD CONSTRAINT fk297e827e11a261d8 FOREIGN KEY (aipo_id) REFERENCES public.tf_actor_integration_profile_option(id);


--
-- Name: tm_oid_requirement_aipo fk297e827eb91f8d; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oid_requirement_aipo
    ADD CONSTRAINT fk297e827eb91f8d FOREIGN KEY (oid_requirement_id) REFERENCES public.tm_oid_requirement(id);


--
-- Name: tf_ws_transaction_usage_aud fk2de00edbdf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_ws_transaction_usage_aud
    ADD CONSTRAINT fk2de00edbdf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_web_service_type fk2fb706957dc72fe0; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_web_service_type
    ADD CONSTRAINT fk2fb706957dc72fe0 FOREIGN KEY (profile_id) REFERENCES public.tf_integration_profile(id);


--
-- Name: tm_test_peer_type_aud fk304338e1df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_peer_type_aud
    ADD CONSTRAINT fk304338e1df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tf_hl7_message_profile_aud fk3050ed69df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile_aud
    ADD CONSTRAINT fk3050ed69df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: pr_integration_statement_download fk30ad37803c4abc77; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_integration_statement_download
    ADD CONSTRAINT fk30ad37803c4abc77 FOREIGN KEY (system_id) REFERENCES public.tm_system(id);


--
-- Name: pr_integration_statement_download fk30ad3780ccc8e2be; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_integration_statement_download
    ADD CONSTRAINT fk30ad3780ccc8e2be FOREIGN KEY (search_log_report_id) REFERENCES public.pr_search_log_report(id);


--
-- Name: tf_hl7_message_profile_affinity_domain fk30b6fd1466a00065; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile_affinity_domain
    ADD CONSTRAINT fk30b6fd1466a00065 FOREIGN KEY (affinity_domain_id) REFERENCES public.tf_affinity_domain(id);


--
-- Name: tf_hl7_message_profile_affinity_domain fk30b6fd14f08bc670; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile_affinity_domain
    ADD CONSTRAINT fk30b6fd14f08bc670 FOREIGN KEY (hl7_message_profile_id) REFERENCES public.tf_hl7_message_profile(id);


--
-- Name: tf_domain_profile_aud fk31b3d6ecdf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_domain_profile_aud
    ADD CONSTRAINT fk31b3d6ecdf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_generic_oids_institution_for_session fk334eee3149294f76; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_generic_oids_institution_for_session
    ADD CONSTRAINT fk334eee3149294f76 FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tm_certificate fk3594c0d17da3be2b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_certificate
    ADD CONSTRAINT fk3594c0d17da3be2b FOREIGN KEY (tm_sys_in_sess_id) REFERENCES public.tm_system_in_session(id);


--
-- Name: tm_certificate fk3594c0d19c35a0bc; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_certificate
    ADD CONSTRAINT fk3594c0d19c35a0bc FOREIGN KEY (tm_host_id) REFERENCES public.tm_host(id);


--
-- Name: tm_certificate fk3594c0d1c6dee018; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_certificate
    ADD CONSTRAINT fk3594c0d1c6dee018 FOREIGN KEY (tm_certificate_id) REFERENCES public.tm_certificate(id);


--
-- Name: message_validation_service fk35a75027e8436adb; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.message_validation_service
    ADD CONSTRAINT fk35a75027e8436adb FOREIGN KEY (tm_test_step_message_profile_id) REFERENCES public.tm_test_step_message_profile(id);


--
-- Name: message_validation_service fk35a75027f0342a1a; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.message_validation_service
    ADD CONSTRAINT fk35a75027f0342a1a FOREIGN KEY (validation_service_id) REFERENCES public.validation_service(id);


--
-- Name: tf_transaction_aud fk3636a1e2df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_aud
    ADD CONSTRAINT fk3636a1e2df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_free_ip_ports_for_proxy fk388ad1603374112e; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_free_ip_ports_for_proxy
    ADD CONSTRAINT fk388ad1603374112e FOREIGN KEY (port_proxy_for_session) REFERENCES public.tm_proxy_configuration_for_session(id);


--
-- Name: tm_system_in_session_user fk3942132496e9f6ac; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_in_session_user
    ADD CONSTRAINT fk3942132496e9f6ac FOREIGN KEY (user_id) REFERENCES public.usr_users(id);


--
-- Name: tm_system_in_session_user fk39421324b0831473; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_in_session_user
    ADD CONSTRAINT fk39421324b0831473 FOREIGN KEY (system_in_session_id) REFERENCES public.tm_system_in_session(id);


--
-- Name: tm_institution_system fk3a79361c2fde29a8; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_institution_system
    ADD CONSTRAINT fk3a79361c2fde29a8 FOREIGN KEY (institution_id) REFERENCES public.usr_institution(id);


--
-- Name: tm_institution_system fk3a79361c3c4abc77; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_institution_system
    ADD CONSTRAINT fk3a79361c3c4abc77 FOREIGN KEY (system_id) REFERENCES public.tm_system(id);


--
-- Name: tm_assertion_transaction fk3af413db2fa28b00; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_assertion_transaction
    ADD CONSTRAINT fk3af413db2fa28b00 FOREIGN KEY (transaction_id) REFERENCES public.tf_transaction(id);


--
-- Name: tm_assertion_transaction fk3af413db89ced2eb; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_assertion_transaction
    ADD CONSTRAINT fk3af413db89ced2eb FOREIGN KEY (assertion_id) REFERENCES public.tm_assertion(id);


--
-- Name: pr_crawler_changed_integration_statements fk3ba329823c4abc77; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_crawler_changed_integration_statements
    ADD CONSTRAINT fk3ba329823c4abc77 FOREIGN KEY (system_id) REFERENCES public.tm_system(id);


--
-- Name: pr_crawler_changed_integration_statements fk3ba32982de226a49; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_crawler_changed_integration_statements
    ADD CONSTRAINT fk3ba32982de226a49 FOREIGN KEY (crawler_report_id) REFERENCES public.pr_crawler_reporting(id);


--
-- Name: tm_test_aud fk3bf53469df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_aud
    ADD CONSTRAINT fk3bf53469df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tf_actor_integration_profile_option_aud fk3d999edf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_integration_profile_option_aud
    ADD CONSTRAINT fk3d999edf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_conf_mapping_w_aipo_w_conftypes fk43019c03a2acdfba; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_conf_mapping_w_aipo_w_conftypes
    ADD CONSTRAINT fk43019c03a2acdfba FOREIGN KEY (tm_conf_mapped_id) REFERENCES public.tm_configuration_mapped_with_aipo(id);


--
-- Name: tm_conf_mapping_w_aipo_w_conftypes fk43019c03f0b88a2c; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_conf_mapping_w_aipo_w_conftypes
    ADD CONSTRAINT fk43019c03f0b88a2c FOREIGN KEY (tm_conftypes_id) REFERENCES public.tm_conftype_w_ports_wstype_and_sop_class(id);


--
-- Name: tm_role_in_test_aud fk440cc9fadf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_role_in_test_aud
    ADD CONSTRAINT fk440cc9fadf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_test_participants_aud fk44712838df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_participants_aud
    ADD CONSTRAINT fk44712838df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_test_assertion fk44b8c61b89ced2eb; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_assertion
    ADD CONSTRAINT fk44b8c61b89ced2eb FOREIGN KEY (assertion_id) REFERENCES public.tm_assertion(id);


--
-- Name: tm_test_assertion fk44b8c61be95a3569; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_assertion
    ADD CONSTRAINT fk44b8c61be95a3569 FOREIGN KEY (test_id) REFERENCES public.tm_test(id);


--
-- Name: tm_hl7_v3_initiator_configuration fk45d55b61eac332; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_hl7_v3_initiator_configuration
    ADD CONSTRAINT fk45d55b61eac332 FOREIGN KEY (configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_testing_session_admin fk471f873149294f76; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_testing_session_admin
    ADD CONSTRAINT fk471f873149294f76 FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tm_testing_session_admin fk471f873196e9f6ac; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_testing_session_admin
    ADD CONSTRAINT fk471f873196e9f6ac FOREIGN KEY (user_id) REFERENCES public.usr_users(id);


--
-- Name: tm_test_steps_aud fk479bc491df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_aud
    ADD CONSTRAINT fk479bc491df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: pr_crawler_unmatching_hascode_for_integration_statements fk489b92fe3c4abc77; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_crawler_unmatching_hascode_for_integration_statements
    ADD CONSTRAINT fk489b92fe3c4abc77 FOREIGN KEY (system_id) REFERENCES public.tm_system(id);


--
-- Name: pr_crawler_unmatching_hascode_for_integration_statements fk489b92fede226a49; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_crawler_unmatching_hascode_for_integration_statements
    ADD CONSTRAINT fk489b92fede226a49 FOREIGN KEY (crawler_report_id) REFERENCES public.pr_crawler_reporting(id);


--
-- Name: tm_testing_session fk489b9da1a6285728; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_testing_session
    ADD CONSTRAINT fk489b9da1a6285728 FOREIGN KEY (address_id) REFERENCES public.usr_address(id);


--
-- Name: tm_testing_session fk489b9da1e9639771; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_testing_session
    ADD CONSTRAINT fk489b9da1e9639771 FOREIGN KEY (networkconfiguration_id) REFERENCES public.tm_network_config_for_session(id);


--
-- Name: tm_testing_session fk489b9da1fedc8fec; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_testing_session
    ADD CONSTRAINT fk489b9da1fedc8fec FOREIGN KEY (currency_id) REFERENCES public.usr_currency(keyword);


--
-- Name: tm_role_in_test_test_participants_aud fk4c596e68df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_role_in_test_test_participants_aud
    ADD CONSTRAINT fk4c596e68df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_conftype_w_ports_wstype_and_sop_class fk4c76980c2ec2b912; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_conftype_w_ports_wstype_and_sop_class
    ADD CONSTRAINT fk4c76980c2ec2b912 FOREIGN KEY (configurationtype_id) REFERENCES public.tm_configuration_type(id);


--
-- Name: tm_conftype_w_ports_wstype_and_sop_class fk4c76980c876f9b6; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_conftype_w_ports_wstype_and_sop_class
    ADD CONSTRAINT fk4c76980c876f9b6 FOREIGN KEY (ws_transaction_usage_id) REFERENCES public.tf_ws_transaction_usage(id);


--
-- Name: tm_conftype_w_ports_wstype_and_sop_class fk4c76980c8d87132e; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_conftype_w_ports_wstype_and_sop_class
    ADD CONSTRAINT fk4c76980c8d87132e FOREIGN KEY (web_service_type_id) REFERENCES public.tm_web_service_type(id);


--
-- Name: tm_conftype_w_ports_wstype_and_sop_class fk4c76980c973a308f; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_conftype_w_ports_wstype_and_sop_class
    ADD CONSTRAINT fk4c76980c973a308f FOREIGN KEY (transport_layer_id) REFERENCES public.tm_transport_layer_for_config(id);


--
-- Name: tm_conftype_w_ports_wstype_and_sop_class fk4c76980ca3b62799; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_conftype_w_ports_wstype_and_sop_class
    ADD CONSTRAINT fk4c76980ca3b62799 FOREIGN KEY (sop_class_id) REFERENCES public.tm_sop_class(id);


--
-- Name: tm_test_test_steps fk511d7941268ec66; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_test_steps
    ADD CONSTRAINT fk511d7941268ec66 FOREIGN KEY (test_steps_id) REFERENCES public.tm_test_steps(id);


--
-- Name: tm_test_test_steps fk511d79416e9c6c26; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_test_steps
    ADD CONSTRAINT fk511d79416e9c6c26 FOREIGN KEY (test_id) REFERENCES public.tm_test(id);


--
-- Name: tm_test_test_steps fk511d7941de9c63c9; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_test_steps
    ADD CONSTRAINT fk511d7941de9c63c9 FOREIGN KEY (test_steps_id) REFERENCES public.tm_test_steps(id);


--
-- Name: tm_test_test_steps fk511d7941e95a3569; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_test_steps
    ADD CONSTRAINT fk511d7941e95a3569 FOREIGN KEY (test_id) REFERENCES public.tm_test(id);


--
-- Name: tm_role_in_test_test_participants fk551b2417293f4b6b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_role_in_test_test_participants
    ADD CONSTRAINT fk551b2417293f4b6b FOREIGN KEY (test_participants_id) REFERENCES public.tm_test_participants(id);


--
-- Name: tm_role_in_test_test_participants fk551b24177943ec50; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_role_in_test_test_participants
    ADD CONSTRAINT fk551b24177943ec50 FOREIGN KEY (role_in_test_id) REFERENCES public.tm_role_in_test(id);


--
-- Name: tm_role_in_test_test_participants fk551b2417bce2482e; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_role_in_test_test_participants
    ADD CONSTRAINT fk551b2417bce2482e FOREIGN KEY (test_participants_id) REFERENCES public.tm_test_participants(id);


--
-- Name: tm_role_in_test_test_participants fk551b2417cf087753; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_role_in_test_test_participants
    ADD CONSTRAINT fk551b2417cf087753 FOREIGN KEY (role_in_test_id) REFERENCES public.tm_role_in_test(id);


--
-- Name: usr_persons_functions fk5593ae6f7856fd97; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_persons_functions
    ADD CONSTRAINT fk5593ae6f7856fd97 FOREIGN KEY (person_function_id) REFERENCES public.usr_person_function(id);


--
-- Name: usr_persons_functions fk5593ae6f99a265ec; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_persons_functions
    ADD CONSTRAINT fk5593ae6f99a265ec FOREIGN KEY (person_id) REFERENCES public.usr_person(id);


--
-- Name: tf_integration_profile_option fk565b438314d625ba; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_option
    ADD CONSTRAINT fk565b438314d625ba FOREIGN KEY (documentsection) REFERENCES public.tf_document_sections(id);


--
-- Name: tm_jira_issues_to_test fk591bbd3c6e9c6c26; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_jira_issues_to_test
    ADD CONSTRAINT fk591bbd3c6e9c6c26 FOREIGN KEY (test_id) REFERENCES public.tm_test(id);


--
-- Name: tf_document fk5a614483ce8d750; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_document
    ADD CONSTRAINT fk5a614483ce8d750 FOREIGN KEY (document_domain_id) REFERENCES public.tf_domain(id);


--
-- Name: tf_transaction_link_aud fk5bf7f0b9df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_link_aud
    ADD CONSTRAINT fk5bf7f0b9df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tf_document_sections_aud fk5cb04f96df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_document_sections_aud
    ADD CONSTRAINT fk5cb04f96df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tf_actor_default_ports fk5f18967dfafe1c20; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_default_ports
    ADD CONSTRAINT fk5f18967dfafe1c20 FOREIGN KEY (actor_id) REFERENCES public.tf_actor(id);


--
-- Name: tm_object_type_status_aud fk6092c66edf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_type_status_aud
    ADD CONSTRAINT fk6092c66edf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_connectathon_participant fk610e1e0449294f76; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_connectathon_participant
    ADD CONSTRAINT fk610e1e0449294f76 FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tm_connectathon_participant fk610e1e049acffdbd; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_connectathon_participant
    ADD CONSTRAINT fk610e1e049acffdbd FOREIGN KEY (institution_ok_id) REFERENCES public.usr_institution(id);


--
-- Name: tm_connectathon_participant fk610e1e04caa800ca; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_connectathon_participant
    ADD CONSTRAINT fk610e1e04caa800ca FOREIGN KEY (status_id) REFERENCES public.tm_connectathon_participant_status(id);


--
-- Name: tm_object_attribute_aud fk61c68773df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_attribute_aud
    ADD CONSTRAINT fk61c68773df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_test_test_description_aud fk61fca167df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_test_description_aud
    ADD CONSTRAINT fk61fca167df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tf_transaction_standard fk6302beab2fa28b00; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_standard
    ADD CONSTRAINT fk6302beab2fa28b00 FOREIGN KEY (transaction_id) REFERENCES public.tf_transaction(id);


--
-- Name: tf_transaction_standard fk6302beab60fd5c54; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_standard
    ADD CONSTRAINT fk6302beab60fd5c54 FOREIGN KEY (standard_id) REFERENCES public.tf_standard(id);


--
-- Name: tm_syslog_configuration fk64a2fa141eac332; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_syslog_configuration
    ADD CONSTRAINT fk64a2fa141eac332 FOREIGN KEY (configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_syslog_configuration fk64a2fa14973a308f; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_syslog_configuration
    ADD CONSTRAINT fk64a2fa14973a308f FOREIGN KEY (transport_layer_id) REFERENCES public.tm_transport_layer_for_config(id);


--
-- Name: tm_system_link fk65b17b443c0a2055; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_link
    ADD CONSTRAINT fk65b17b443c0a2055 FOREIGN KEY (mastersystem_id) REFERENCES public.tm_system(id);


--
-- Name: tm_system_link fk65b17b44f8fdac67; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_link
    ADD CONSTRAINT fk65b17b44f8fdac67 FOREIGN KEY (id) REFERENCES public.tm_system(id);


--
-- Name: tm_object_instance_file fk65b40beca1dc1eff; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance_file
    ADD CONSTRAINT fk65b40beca1dc1eff FOREIGN KEY (instance_id) REFERENCES public.tm_object_instance(id);


--
-- Name: tm_object_instance_file fk65b40becb0831473; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance_file
    ADD CONSTRAINT fk65b40becb0831473 FOREIGN KEY (system_in_session_id) REFERENCES public.tm_system_in_session(id);


--
-- Name: tm_object_instance_file fk65b40bece79b9c1f; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance_file
    ADD CONSTRAINT fk65b40bece79b9c1f FOREIGN KEY (file_id) REFERENCES public.tm_object_file(id);


--
-- Name: pr_search_log_systems_found fk65b8b2b23c4abc77; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_search_log_systems_found
    ADD CONSTRAINT fk65b8b2b23c4abc77 FOREIGN KEY (system_id) REFERENCES public.tm_system(id);


--
-- Name: pr_search_log_systems_found fk65b8b2b2d2dbc679; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_search_log_systems_found
    ADD CONSTRAINT fk65b8b2b2d2dbc679 FOREIGN KEY (search_report_id) REFERENCES public.pr_search_log_report(id);


--
-- Name: tm_test_steps_input_ci fk65f45f9a268ec66; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_input_ci
    ADD CONSTRAINT fk65f45f9a268ec66 FOREIGN KEY (test_steps_id) REFERENCES public.tm_test_steps(id);


--
-- Name: tm_test_steps_input_ci fk65f45f9a992d6fc8; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_input_ci
    ADD CONSTRAINT fk65f45f9a992d6fc8 FOREIGN KEY (contextual_information_id) REFERENCES public.tm_contextual_information(id);


--
-- Name: tm_test_steps_input_ci fk65f45f9ade9c63c9; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_input_ci
    ADD CONSTRAINT fk65f45f9ade9c63c9 FOREIGN KEY (test_steps_id) REFERENCES public.tm_test_steps(id);


--
-- Name: tm_test_steps_input_ci fk65f45f9ae591eaab; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_input_ci
    ADD CONSTRAINT fk65f45f9ae591eaab FOREIGN KEY (contextual_information_id) REFERENCES public.tm_contextual_information(id);


--
-- Name: tm_transport_layer_for_config_aud fk6855a7d3df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_transport_layer_for_config_aud
    ADD CONSTRAINT fk6855a7d3df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tf_integration_profile_option_aud fk6863f7d4df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_option_aud
    ADD CONSTRAINT fk6863f7d4df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_sap_result_tr_comment fk68e2fe9dd8627c13; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_sap_result_tr_comment
    ADD CONSTRAINT fk68e2fe9dd8627c13 FOREIGN KEY (sap_id) REFERENCES public.tm_system_aipo_result_for_a_testing_session(id);


--
-- Name: tm_sap_result_tr_comment fk68e2fe9dda129f9b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_sap_result_tr_comment
    ADD CONSTRAINT fk68e2fe9dda129f9b FOREIGN KEY (tr_id) REFERENCES public.tm_test_roles(id);


--
-- Name: tm_test_inheritance fk6a34a9a3884ca0e6; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_inheritance
    ADD CONSTRAINT fk6a34a9a3884ca0e6 FOREIGN KEY (included_test_id) REFERENCES public.tm_test(id);


--
-- Name: tm_test_inheritance fk6a34a9a3e95a3569; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_inheritance
    ADD CONSTRAINT fk6a34a9a3e95a3569 FOREIGN KEY (test_id) REFERENCES public.tm_test(id);


--
-- Name: sys_system_subtypes_per_system_type fk6a980fc04916a6be; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_system_subtypes_per_system_type
    ADD CONSTRAINT fk6a980fc04916a6be FOREIGN KEY (system_subtype_id) REFERENCES public.sys_system_subtype(id);


--
-- Name: sys_system_subtypes_per_system_type fk6a980fc0f23e76d6; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.sys_system_subtypes_per_system_type
    ADD CONSTRAINT fk6a980fc0f23e76d6 FOREIGN KEY (system_type_id) REFERENCES public.sys_system_type(id);


--
-- Name: tm_test_steps_instance fk6afc67345f7eea0b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance
    ADD CONSTRAINT fk6afc67345f7eea0b FOREIGN KEY (execution_status_id) REFERENCES public.tm_step_instance_exec_status(id);


--
-- Name: tm_test_steps_instance fk6afc6734bc19b130; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance
    ADD CONSTRAINT fk6afc6734bc19b130 FOREIGN KEY (test_steps_instance_status_id) REFERENCES public.tm_test_steps_instance_status(id);


--
-- Name: tm_test_steps_instance fk6afc6734d75b1055; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance
    ADD CONSTRAINT fk6afc6734d75b1055 FOREIGN KEY (test_steps_instance_status_id) REFERENCES public.tm_test_steps_instance_status(id);


--
-- Name: tm_test_steps_instance fk6afc6734de9c63c9; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance
    ADD CONSTRAINT fk6afc6734de9c63c9 FOREIGN KEY (test_steps_id) REFERENCES public.tm_test_steps(id);


--
-- Name: tm_test_steps_instance fk6afc6734dfe16bd7; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance
    ADD CONSTRAINT fk6afc6734dfe16bd7 FOREIGN KEY (system_in_session_reponder_id) REFERENCES public.tm_system_in_session(id);


--
-- Name: tm_test_steps_instance fk6afc6734e2afb8c3; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance
    ADD CONSTRAINT fk6afc6734e2afb8c3 FOREIGN KEY (system_in_session_initiator_id) REFERENCES public.tm_system_in_session(id);


--
-- Name: tm_dicom_scu_configuration fk6b59abf31eac332; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_dicom_scu_configuration
    ADD CONSTRAINT fk6b59abf31eac332 FOREIGN KEY (configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_dicom_scu_configuration fk6b59abf3a3b62799; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_dicom_scu_configuration
    ADD CONSTRAINT fk6b59abf3a3b62799 FOREIGN KEY (sop_class_id) REFERENCES public.tm_sop_class(id);


--
-- Name: tm_conf_mapping_w_aipo_w_conftypes_aud fk712a1054df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_conf_mapping_w_aipo_w_conftypes_aud
    ADD CONSTRAINT fk712a1054df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_test_steps_output_ci fk7482ada5268ec66; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_output_ci
    ADD CONSTRAINT fk7482ada5268ec66 FOREIGN KEY (test_steps_id) REFERENCES public.tm_test_steps(id);


--
-- Name: tm_test_steps_output_ci fk7482ada5992d6fc8; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_output_ci
    ADD CONSTRAINT fk7482ada5992d6fc8 FOREIGN KEY (contextual_information_id) REFERENCES public.tm_contextual_information(id);


--
-- Name: tm_test_steps_output_ci fk7482ada5de9c63c9; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_output_ci
    ADD CONSTRAINT fk7482ada5de9c63c9 FOREIGN KEY (test_steps_id) REFERENCES public.tm_test_steps(id);


--
-- Name: tm_test_steps_output_ci fk7482ada5e591eaab; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_output_ci
    ADD CONSTRAINT fk7482ada5e591eaab FOREIGN KEY (contextual_information_id) REFERENCES public.tm_contextual_information(id);


--
-- Name: tm_object_file fk750eb9b69f5f2c7b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_file
    ADD CONSTRAINT fk750eb9b69f5f2c7b FOREIGN KEY (type_id) REFERENCES public.tm_object_file_type(id);


--
-- Name: tm_object_file fk750eb9b6c1cf0d3a; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_file
    ADD CONSTRAINT fk750eb9b6c1cf0d3a FOREIGN KEY (object_id) REFERENCES public.tm_object_type(id);


--
-- Name: tm_object_type fk7515537457f7b6b4; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_type
    ADD CONSTRAINT fk7515537457f7b6b4 FOREIGN KEY (object_type_status_id) REFERENCES public.tm_object_type_status(id);


--
-- Name: tm_test_description_aud fk76248c26df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_description_aud
    ADD CONSTRAINT fk76248c26df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_monitor_in_session fk7692a90749294f76; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_monitor_in_session
    ADD CONSTRAINT fk7692a90749294f76 FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tm_monitor_in_session fk7692a90796e9f6ac; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_monitor_in_session
    ADD CONSTRAINT fk7692a90796e9f6ac FOREIGN KEY (user_id) REFERENCES public.usr_users(id);


--
-- Name: tm_object_file_aud fk773b1c87df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_file_aud
    ADD CONSTRAINT fk773b1c87df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tf_actor_integration_profile_option fk78115a4d8d961d56; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_integration_profile_option
    ADD CONSTRAINT fk78115a4d8d961d56 FOREIGN KEY (actor_integration_profile_id) REFERENCES public.tf_actor_integration_profile(id);


--
-- Name: tf_actor_integration_profile_option fk78115a4db4eaaa28; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_integration_profile_option
    ADD CONSTRAINT fk78115a4db4eaaa28 FOREIGN KEY (integration_profile_option_id) REFERENCES public.tf_integration_profile_option(id);


--
-- Name: tf_actor_integration_profile_option fk78115a4de3138811; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_integration_profile_option
    ADD CONSTRAINT fk78115a4de3138811 FOREIGN KEY (document_section) REFERENCES public.tf_document_sections(id);


--
-- Name: tm_test_description fk7a26d0d540529789; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_description
    ADD CONSTRAINT fk7a26d0d540529789 FOREIGN KEY (gazelle_language_id) REFERENCES public.usr_gazelle_language(id);


--
-- Name: tm_test_description fk7a26d0d59e37ac6f; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_description
    ADD CONSTRAINT fk7a26d0d59e37ac6f FOREIGN KEY (gazelle_language_id) REFERENCES public.usr_gazelle_language(id);


--
-- Name: tm_object_type_aud fk7ac2a745df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_type_aud
    ADD CONSTRAINT fk7ac2a745df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_contextual_information_instance fk7bc0cb05f3ba94a; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_contextual_information_instance
    ADD CONSTRAINT fk7bc0cb05f3ba94a FOREIGN KEY (contextual_information) REFERENCES public.tm_contextual_information(id);


--
-- Name: tm_contextual_information_instance fk7bc0cb0aba0242d; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_contextual_information_instance
    ADD CONSTRAINT fk7bc0cb0aba0242d FOREIGN KEY (contextual_information) REFERENCES public.tm_contextual_information(id);


--
-- Name: tm_free_ips_for_session fk7c5c07c049294f76; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_free_ips_for_session
    ADD CONSTRAINT fk7c5c07c049294f76 FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tf_domain_profile fk7de66e9b7b3d7174; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_domain_profile
    ADD CONSTRAINT fk7de66e9b7b3d7174 FOREIGN KEY (domain_id) REFERENCES public.tf_domain(id);


--
-- Name: tf_domain_profile fk7de66e9bfdeae32b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_domain_profile
    ADD CONSTRAINT fk7de66e9bfdeae32b FOREIGN KEY (integration_profile_id) REFERENCES public.tf_integration_profile(id);


--
-- Name: usr_user_role fk8003cb7f96e9f6ac; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_user_role
    ADD CONSTRAINT fk8003cb7f96e9f6ac FOREIGN KEY (user_id) REFERENCES public.usr_users(id);


--
-- Name: usr_user_role fk8003cb7ff1bf32cc; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_user_role
    ADD CONSTRAINT fk8003cb7ff1bf32cc FOREIGN KEY (role_id) REFERENCES public.usr_role(id);


--
-- Name: tm_conftype_w_ports_wstype_and_sop_class_aud fk803fdfdddf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_conftype_w_ports_wstype_and_sop_class_aud
    ADD CONSTRAINT fk803fdfdddf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_object_reader fk8083f67d11a261d8; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_reader
    ADD CONSTRAINT fk8083f67d11a261d8 FOREIGN KEY (aipo_id) REFERENCES public.tf_actor_integration_profile_option(id);


--
-- Name: tm_object_reader fk8083f67d38a12517; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_reader
    ADD CONSTRAINT fk8083f67d38a12517 FOREIGN KEY (aipo_id) REFERENCES public.tf_actor_integration_profile_option(id);


--
-- Name: tm_object_reader fk8083f67dc1cf0d3a; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_reader
    ADD CONSTRAINT fk8083f67dc1cf0d3a FOREIGN KEY (object_id) REFERENCES public.tm_object_type(id);


--
-- Name: tf_profile_link fk8159657d2fa28b00; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_profile_link
    ADD CONSTRAINT fk8159657d2fa28b00 FOREIGN KEY (transaction_id) REFERENCES public.tf_transaction(id);


--
-- Name: tf_profile_link fk8159657d8d961d56; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_profile_link
    ADD CONSTRAINT fk8159657d8d961d56 FOREIGN KEY (actor_integration_profile_id) REFERENCES public.tf_actor_integration_profile(id);


--
-- Name: tf_profile_link fk8159657db802274a; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_profile_link
    ADD CONSTRAINT fk8159657db802274a FOREIGN KEY (transaction_option_type_id) REFERENCES public.tf_transaction_option_type(id);


--
-- Name: tf_rule_list_criterion fk81a77a961bd255c9; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_rule_list_criterion
    ADD CONSTRAINT fk81a77a961bd255c9 FOREIGN KEY (aipocriterions_id) REFERENCES public.tf_rule_criterion(id);


--
-- Name: tf_rule_list_criterion fk81a77a969c8d5a26; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_rule_list_criterion
    ADD CONSTRAINT fk81a77a969c8d5a26 FOREIGN KEY (tf_rule_criterion_id) REFERENCES public.tf_rule_criterion(id);


--
-- Name: tm_test_steps_test_steps_data fk828264101379f820; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_test_steps_data
    ADD CONSTRAINT fk828264101379f820 FOREIGN KEY (test_steps_data_id) REFERENCES public.tm_test_steps_data(id);


--
-- Name: tm_test_steps_test_steps_data fk828264101d67debb; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_test_steps_data
    ADD CONSTRAINT fk828264101d67debb FOREIGN KEY (test_steps_data_id) REFERENCES public.tm_test_steps_data(id);


--
-- Name: tm_test_steps_test_steps_data fk82826410a2e05f1b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_test_steps_data
    ADD CONSTRAINT fk82826410a2e05f1b FOREIGN KEY (test_steps_id) REFERENCES public.tm_test_steps_instance(id);


--
-- Name: tm_test_steps_test_steps_data fk82826410a5cd3e00; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_test_steps_data
    ADD CONSTRAINT fk82826410a5cd3e00 FOREIGN KEY (test_steps_id) REFERENCES public.tm_test_steps_instance(id);


--
-- Name: tm_test_roles_aud fk82e9e507df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_roles_aud
    ADD CONSTRAINT fk82e9e507df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_test_instance_test_steps_instance fk8447a7971fe62809; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_test_steps_instance
    ADD CONSTRAINT fk8447a7971fe62809 FOREIGN KEY (test_instance_id) REFERENCES public.tm_test_instance(id);


--
-- Name: tm_test_instance_test_steps_instance fk8447a797cda3820e; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_test_steps_instance
    ADD CONSTRAINT fk8447a797cda3820e FOREIGN KEY (test_instance_id) REFERENCES public.tm_test_instance(id);


--
-- Name: tm_test_instance_test_steps_instance fk8447a797ef49aa5b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_test_steps_instance
    ADD CONSTRAINT fk8447a797ef49aa5b FOREIGN KEY (test_steps_instance_id) REFERENCES public.tm_test_steps_instance(id);


--
-- Name: tm_test_instance_test_steps_instance fk8447a797f2368940; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_test_steps_instance
    ADD CONSTRAINT fk8447a797f2368940 FOREIGN KEY (test_steps_instance_id) REFERENCES public.tm_test_steps_instance(id);


--
-- Name: tm_profiles_in_testing_sessions fk84db81f749294f76; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_profiles_in_testing_sessions
    ADD CONSTRAINT fk84db81f749294f76 FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tm_profiles_in_testing_sessions fk84db81f7fdeae32b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_profiles_in_testing_sessions
    ADD CONSTRAINT fk84db81f7fdeae32b FOREIGN KEY (integration_profile_id) REFERENCES public.tf_integration_profile(id);


--
-- Name: tf_audit_message fk89ae8961878c8bd; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_audit_message
    ADD CONSTRAINT fk89ae8961878c8bd FOREIGN KEY (audited_transaction) REFERENCES public.tf_transaction(id);


--
-- Name: tf_audit_message fk89ae896914e3c47; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_audit_message
    ADD CONSTRAINT fk89ae896914e3c47 FOREIGN KEY (issuing_actor) REFERENCES public.tf_actor(id);


--
-- Name: tf_audit_message fk89ae896e3138811; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_audit_message
    ADD CONSTRAINT fk89ae896e3138811 FOREIGN KEY (document_section) REFERENCES public.tf_document_sections(id);


--
-- Name: tf_integration_profile_status_type_aud fk89e7966adf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_status_type_aud
    ADD CONSTRAINT fk89e7966adf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_test_steps_instance_output_ci_instance fk8c8d54fb77550faa; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance_output_ci_instance
    ADD CONSTRAINT fk8c8d54fb77550faa FOREIGN KEY (contextual_information_instance_id) REFERENCES public.tm_contextual_information_instance(id);


--
-- Name: tm_test_steps_instance_output_ci_instance fk8c8d54fb7b906045; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance_output_ci_instance
    ADD CONSTRAINT fk8c8d54fb7b906045 FOREIGN KEY (contextual_information_instance_id) REFERENCES public.tm_contextual_information_instance(id);


--
-- Name: tm_test_steps_instance_output_ci_instance fk8c8d54fbef49aa5b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance_output_ci_instance
    ADD CONSTRAINT fk8c8d54fbef49aa5b FOREIGN KEY (test_steps_instance_id) REFERENCES public.tm_test_steps_instance(id);


--
-- Name: tm_test_steps_instance_output_ci_instance fk8c8d54fbf2368940; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance_output_ci_instance
    ADD CONSTRAINT fk8c8d54fbf2368940 FOREIGN KEY (test_steps_instance_id) REFERENCES public.tm_test_steps_instance(id);


--
-- Name: tm_object_creator fk8ce399b211a261d8; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_creator
    ADD CONSTRAINT fk8ce399b211a261d8 FOREIGN KEY (aipo_id) REFERENCES public.tf_actor_integration_profile_option(id);


--
-- Name: tm_object_creator fk8ce399b238a12517; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_creator
    ADD CONSTRAINT fk8ce399b238a12517 FOREIGN KEY (aipo_id) REFERENCES public.tf_actor_integration_profile_option(id);


--
-- Name: tm_object_creator fk8ce399b2c1cf0d3a; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_creator
    ADD CONSTRAINT fk8ce399b2c1cf0d3a FOREIGN KEY (object_id) REFERENCES public.tm_object_type(id);


--
-- Name: tf_actor_aud fk8d10f7b9df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_aud
    ADD CONSTRAINT fk8d10f7b9df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_object_attribute_option fk8e1f30b2b226fe77; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_attribute_option
    ADD CONSTRAINT fk8e1f30b2b226fe77 FOREIGN KEY (attribue_id) REFERENCES public.tm_object_attribute(id);


--
-- Name: tm_test_steps_input_ci_aud fk8f53306bdf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_input_ci_aud
    ADD CONSTRAINT fk8f53306bdf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_sop_class_aud fk8f74c318df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_sop_class_aud
    ADD CONSTRAINT fk8f74c318df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tf_integration_profile_type_aud fk902bf99df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_type_aud
    ADD CONSTRAINT fk902bf99df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tf_transaction_link fk90b176e82fa28b00; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_link
    ADD CONSTRAINT fk90b176e82fa28b00 FOREIGN KEY (transaction_id) REFERENCES public.tf_transaction(id);


--
-- Name: tf_transaction_link fk90b176e863dc5964; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_link
    ADD CONSTRAINT fk90b176e863dc5964 FOREIGN KEY (to_actor_id) REFERENCES public.tf_actor(id);


--
-- Name: tf_transaction_link fk90b176e88223515; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_link
    ADD CONSTRAINT fk90b176e88223515 FOREIGN KEY (from_actor_id) REFERENCES public.tf_actor(id);


--
-- Name: tf_transaction_standard_aud fk91099efcdf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_standard_aud
    ADD CONSTRAINT fk91099efcdf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tf_ws_transaction_usage fk9311f60a2fa28b00; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_ws_transaction_usage
    ADD CONSTRAINT fk9311f60a2fa28b00 FOREIGN KEY (transaction_id) REFERENCES public.tf_transaction(id);


--
-- Name: tm_system_in_session fk94eeed462fc3056f; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_in_session
    ADD CONSTRAINT fk94eeed462fc3056f FOREIGN KEY (person_servicing) REFERENCES public.usr_person(id);


--
-- Name: tm_simulator_in_session fk94eeed462fc3056f1bdf6a9d; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_simulator_in_session
    ADD CONSTRAINT fk94eeed462fc3056f1bdf6a9d FOREIGN KEY (person_servicing) REFERENCES public.usr_person(id);


--
-- Name: tm_system_in_session fk94eeed463c4abc77; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_in_session
    ADD CONSTRAINT fk94eeed463c4abc77 FOREIGN KEY (system_id) REFERENCES public.tm_system(id);


--
-- Name: tm_system_in_session fk94eeed4649294f76; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_in_session
    ADD CONSTRAINT fk94eeed4649294f76 FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tm_simulator_in_session fk94eeed4649294f761bdf6a9d; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_simulator_in_session
    ADD CONSTRAINT fk94eeed4649294f761bdf6a9d FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tm_system_in_session fk94eeed46c54c60d3; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_in_session
    ADD CONSTRAINT fk94eeed46c54c60d3 FOREIGN KEY (table_session_id) REFERENCES public.sys_table_session(id);


--
-- Name: tm_simulator_in_session fk94eeed46c54c60d31bdf6a9d; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_simulator_in_session
    ADD CONSTRAINT fk94eeed46c54c60d31bdf6a9d FOREIGN KEY (table_session_id) REFERENCES public.sys_table_session(id);


--
-- Name: tm_system_in_session fk94eeed46ca8eeaba; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_in_session
    ADD CONSTRAINT fk94eeed46ca8eeaba FOREIGN KEY (table_session_id) REFERENCES public.sys_table_session(id);


--
-- Name: tm_system_in_session fk94eeed46cdf7f5ac; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_in_session
    ADD CONSTRAINT fk94eeed46cdf7f5ac FOREIGN KEY (system_in_session_status_id) REFERENCES public.tm_system_in_session_status(id);


--
-- Name: tm_simulator_in_session fk94eeed46cdf7f5ac1bdf6a9d; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_simulator_in_session
    ADD CONSTRAINT fk94eeed46cdf7f5ac1bdf6a9d FOREIGN KEY (system_in_session_status_id) REFERENCES public.tm_system_in_session_status(id);


--
-- Name: tf_integration_profile_aud fk953ace42df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_integration_profile_aud
    ADD CONSTRAINT fk953ace42df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: usr_messages_usr_users fk96e554f56515bd51; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_messages_usr_users
    ADD CONSTRAINT fk96e554f56515bd51 FOREIGN KEY (usr_messages_id) REFERENCES public.usr_messages(id);


--
-- Name: usr_messages_usr_users fk96e554f58fdacf4f; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_messages_usr_users
    ADD CONSTRAINT fk96e554f58fdacf4f FOREIGN KEY (users_id) REFERENCES public.usr_users(id);


--
-- Name: tf_transaction_status_type_aud fk9aa2fa0adf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_status_type_aud
    ADD CONSTRAINT fk9aa2fa0adf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_raw_configuration fk_20plq4300e5jtag03lyiepdy8; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_raw_configuration
    ADD CONSTRAINT fk_20plq4300e5jtag03lyiepdy8 FOREIGN KEY (configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_host fk_9i4co1kbpfx461xh1bfyn7wsn; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_host
    ADD CONSTRAINT fk_9i4co1kbpfx461xh1bfyn7wsn FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tm_oid_root_definition fk_h8ym6m2xbpfk5esjbnayppw7e; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oid_root_definition
    ADD CONSTRAINT fk_h8ym6m2xbpfk5esjbnayppw7e FOREIGN KEY (label_id) REFERENCES public.tm_oid_root_definition_label(id);


--
-- Name: tf_rule_criterion fk_j241r3eqgmslvierka38b8g0n; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_rule_criterion
    ADD CONSTRAINT fk_j241r3eqgmslvierka38b8g0n FOREIGN KEY (aiporule_id) REFERENCES public.tf_rule(id);


--
-- Name: tm_host fk_mu0t4y2aclf72oeviw4h7t5xg; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_host
    ADD CONSTRAINT fk_mu0t4y2aclf72oeviw4h7t5xg FOREIGN KEY (institution_id) REFERENCES public.usr_institution(id);


--
-- Name: pr_search_criteria_per_report fka06712bcccc8e2be; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_search_criteria_per_report
    ADD CONSTRAINT fka06712bcccc8e2be FOREIGN KEY (search_log_report_id) REFERENCES public.pr_search_log_report(id);


--
-- Name: pr_search_criteria_per_report fka06712bce5f4d616; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_search_criteria_per_report
    ADD CONSTRAINT fka06712bce5f4d616 FOREIGN KEY (search_log_criterion_id) REFERENCES public.pr_search_log_criterion(id);


--
-- Name: tf_document_sections fka47dcc45a9b2d794; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_document_sections
    ADD CONSTRAINT fka47dcc45a9b2d794 FOREIGN KEY (document_id) REFERENCES public.tf_document(id);


--
-- Name: usr_users fka4b7379d2fde29a8; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_users
    ADD CONSTRAINT fka4b7379d2fde29a8 FOREIGN KEY (institution_id) REFERENCES public.usr_institution(id);


--
-- Name: tm_meta_test_aud fka9368317df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_meta_test_aud
    ADD CONSTRAINT fka9368317df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_dicom_scp_configuration fkaa1098ae1eac332; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_dicom_scp_configuration
    ADD CONSTRAINT fkaa1098ae1eac332 FOREIGN KEY (configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_dicom_scp_configuration fkaa1098aea3b62799; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_dicom_scp_configuration
    ADD CONSTRAINT fkaa1098aea3b62799 FOREIGN KEY (sop_class_id) REFERENCES public.tm_sop_class(id);


--
-- Name: tm_oids_ip_config_param_for_session_for_hl7 fkaaaae37749294f76; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oids_ip_config_param_for_session_for_hl7
    ADD CONSTRAINT fkaaaae37749294f76 FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tf_rule fkabd178a928b678b9; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_rule
    ADD CONSTRAINT fkabd178a928b678b9 FOREIGN KEY (cause_id) REFERENCES public.tf_rule_criterion(id);


--
-- Name: tf_rule fkabd178a9525ef9f; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_rule
    ADD CONSTRAINT fkabd178a9525ef9f FOREIGN KEY (consequence_id) REFERENCES public.tf_rule_criterion(id);


--
-- Name: tm_test_steps_data fkabece9c9119e101e; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_data
    ADD CONSTRAINT fkabece9c9119e101e FOREIGN KEY (data_type_id) REFERENCES public.tm_data_type(id);


--
-- Name: tm_test_steps_data fkabece9c95000eb99; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_data
    ADD CONSTRAINT fkabece9c95000eb99 FOREIGN KEY (data_type_id) REFERENCES public.tm_data_type(id);


--
-- Name: tm_web_service_configuration fkad6413fb1eac332; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_web_service_configuration
    ADD CONSTRAINT fkad6413fb1eac332 FOREIGN KEY (configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_web_service_configuration fkad6413fb6281dd6; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_web_service_configuration
    ADD CONSTRAINT fkad6413fb6281dd6 FOREIGN KEY (ws_transaction_usage) REFERENCES public.tf_ws_transaction_usage(id);


--
-- Name: tm_web_service_configuration fkad6413fb7584293b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_web_service_configuration
    ADD CONSTRAINT fkad6413fb7584293b FOREIGN KEY (webservice_type) REFERENCES public.tm_web_service_type(id);


--
-- Name: tm_network_config_for_session fkaf8c02da49294f76; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_network_config_for_session
    ADD CONSTRAINT fkaf8c02da49294f76 FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tm_step_instance_message fkb125622a1883c4e0; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_message
    ADD CONSTRAINT fkb125622a1883c4e0 FOREIGN KEY (relates_to) REFERENCES public.tm_step_instance_message(id);


--
-- Name: tm_step_instance_message fkb125622a2062cf2; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_message
    ADD CONSTRAINT fkb125622a2062cf2 FOREIGN KEY (sender_institution_id) REFERENCES public.usr_institution(id);


--
-- Name: tm_step_instance_message fkb125622a233db1f8; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_message
    ADD CONSTRAINT fkb125622a233db1f8 FOREIGN KEY (receiver_institution_id) REFERENCES public.usr_institution(id);


--
-- Name: tm_step_instance_message fkb125622a393c3078; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_message
    ADD CONSTRAINT fkb125622a393c3078 FOREIGN KEY (sender_host_id) REFERENCES public.tm_host(id);


--
-- Name: tm_step_instance_message fkb125622a3b0c52ed; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_message
    ADD CONSTRAINT fkb125622a3b0c52ed FOREIGN KEY (sender_system_id) REFERENCES public.tm_system(id);


--
-- Name: tm_step_instance_message fkb125622a5381a632; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_message
    ADD CONSTRAINT fkb125622a5381a632 FOREIGN KEY (receiver_host_id) REFERENCES public.tm_host(id);


--
-- Name: tm_step_instance_message fkb125622a7c2c5923; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_message
    ADD CONSTRAINT fkb125622a7c2c5923 FOREIGN KEY (process_status_id) REFERENCES public.tm_step_inst_msg_process_status(id);


--
-- Name: tm_step_instance_message fkb125622aaa6e5299; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_message
    ADD CONSTRAINT fkb125622aaa6e5299 FOREIGN KEY (tm_test_step_instance_id) REFERENCES public.tm_test_steps_instance(id);


--
-- Name: tm_step_instance_message fkb125622ab7ee332e; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_message
    ADD CONSTRAINT fkb125622ab7ee332e FOREIGN KEY (sender_tm_configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_step_instance_message fkb125622abfdee1e8; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_message
    ADD CONSTRAINT fkb125622abfdee1e8 FOREIGN KEY (receiver_tm_configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_step_instance_message fkb125622acb3fc0ea; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_message
    ADD CONSTRAINT fkb125622acb3fc0ea FOREIGN KEY (proxy_type_id) REFERENCES public.proxy_type(id);


--
-- Name: tm_step_instance_message fkb125622ad9cb4227; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_message
    ADD CONSTRAINT fkb125622ad9cb4227 FOREIGN KEY (receiver_system_id) REFERENCES public.tm_system(id);


--
-- Name: tm_step_instance_message fkb125622ae8436adb; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_message
    ADD CONSTRAINT fkb125622ae8436adb FOREIGN KEY (tm_test_step_message_profile_id) REFERENCES public.tm_test_step_message_profile(id);


--
-- Name: tm_system_events fkb40101e3798e7360; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_events
    ADD CONSTRAINT fkb40101e3798e7360 FOREIGN KEY (systemevents_id) REFERENCES public.tm_system_event(id);


--
-- Name: tm_system_events fkb40101e3c56ac231; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_events
    ADD CONSTRAINT fkb40101e3c56ac231 FOREIGN KEY (tm_system_id) REFERENCES public.tm_system(id);


--
-- Name: tm_object_instance_validation_aud fkb475c3adf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance_validation_aud
    ADD CONSTRAINT fkb475c3adf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_meta_test_test_roles_aud fkb69577badf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_meta_test_test_roles_aud
    ADD CONSTRAINT fkb69577badf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_test_instance_tm_test_steps_data fkb7485c8c9ffe7714; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_tm_test_steps_data
    ADD CONSTRAINT fkb7485c8c9ffe7714 FOREIGN KEY (tm_test_instance_id) REFERENCES public.tm_test_instance(id);


--
-- Name: tm_test_instance_tm_test_steps_data fkb7485c8cce096cd2; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_tm_test_steps_data
    ADD CONSTRAINT fkb7485c8cce096cd2 FOREIGN KEY (teststepsdatalist_id) REFERENCES public.tm_test_steps_data(id);


--
-- Name: tm_test_instance_tm_test_steps_data fkb7485c8cd7f7536d; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_tm_test_steps_data
    ADD CONSTRAINT fkb7485c8cd7f7536d FOREIGN KEY (teststepsdatalist_id) REFERENCES public.tm_test_steps_data(id);


--
-- Name: tm_test_instance_tm_test_steps_data fkb7485c8cf2411d0f; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_tm_test_steps_data
    ADD CONSTRAINT fkb7485c8cf2411d0f FOREIGN KEY (tm_test_instance_id) REFERENCES public.tm_test_instance(id);


--
-- Name: tm_object_instance_attribute fkb7801a2c880ed775; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance_attribute
    ADD CONSTRAINT fkb7801a2c880ed775 FOREIGN KEY (attribute_id) REFERENCES public.tm_object_attribute(id);


--
-- Name: tm_object_instance_attribute fkb7801a2ca1dc1eff; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance_attribute
    ADD CONSTRAINT fkb7801a2ca1dc1eff FOREIGN KEY (instance_id) REFERENCES public.tm_object_instance(id);


--
-- Name: tm_test fkb7c41298284deaeb; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test
    ADD CONSTRAINT fkb7c41298284deaeb FOREIGN KEY (test_status_id) REFERENCES public.tm_test_status(id);


--
-- Name: tm_test fkb7c412983e189dee; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test
    ADD CONSTRAINT fkb7c412983e189dee FOREIGN KEY (test_type_id) REFERENCES public.tm_test_type(id);


--
-- Name: tm_test fkb7c4129855b72e2b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test
    ADD CONSTRAINT fkb7c4129855b72e2b FOREIGN KEY (test_type_id) REFERENCES public.tm_test_type(id);


--
-- Name: tm_test fkb7c412987e1275ee; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test
    ADD CONSTRAINT fkb7c412987e1275ee FOREIGN KEY (test_status_id) REFERENCES public.tm_test_status(id);


--
-- Name: tm_test fkb7c41298c0b2894d; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test
    ADD CONSTRAINT fkb7c41298c0b2894d FOREIGN KEY (test_peer_type_id) REFERENCES public.tm_test_peer_type(id);


--
-- Name: tm_test fkb7c41298c9e4b30a; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test
    ADD CONSTRAINT fkb7c41298c9e4b30a FOREIGN KEY (test_peer_type_id) REFERENCES public.tm_test_peer_type(id);


--
-- Name: tm_hl7_v3_responder_configuration fkb7f0a2491eac332; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_hl7_v3_responder_configuration
    ADD CONSTRAINT fkb7f0a2491eac332 FOREIGN KEY (configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tm_hl7_v3_responder_configuration fkb7f0a2496281dd6; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_hl7_v3_responder_configuration
    ADD CONSTRAINT fkb7f0a2496281dd6 FOREIGN KEY (ws_transaction_usage) REFERENCES public.tf_ws_transaction_usage(id);


--
-- Name: tm_test_steps_option_aud fkb99f1aa5df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_option_aud
    ADD CONSTRAINT fkb99f1aa5df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tf_transaction fkbb41249114d625ba; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction
    ADD CONSTRAINT fkbb41249114d625ba FOREIGN KEY (documentsection) REFERENCES public.tf_document_sections(id);


--
-- Name: tf_transaction fkbb4124912921e2c4; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction
    ADD CONSTRAINT fkbb4124912921e2c4 FOREIGN KEY (transaction_status_type_id) REFERENCES public.tf_transaction_status_type(id);


--
-- Name: tm_configuration fkbd060db02ec2b912; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_configuration
    ADD CONSTRAINT fkbd060db02ec2b912 FOREIGN KEY (configurationtype_id) REFERENCES public.tm_configuration_type(id);


--
-- Name: tm_configuration fkbd060db03d3b7482; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_configuration
    ADD CONSTRAINT fkbd060db03d3b7482 FOREIGN KEY (host_id) REFERENCES public.tm_host(id);


--
-- Name: tm_configuration fkbd060db0b0831473; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_configuration
    ADD CONSTRAINT fkbd060db0b0831473 FOREIGN KEY (system_in_session_id) REFERENCES public.tm_system_in_session(id);


--
-- Name: tm_configuration fkbd060db0fafe1c20; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_configuration
    ADD CONSTRAINT fkbd060db0fafe1c20 FOREIGN KEY (actor_id) REFERENCES public.tf_actor(id);


--
-- Name: tm_jira_issues_to_test_aud fkbe6eed0ddf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_jira_issues_to_test_aud
    ADD CONSTRAINT fkbe6eed0ddf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_subtypes_per_system fkbf2bbe913c4abc77; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_subtypes_per_system
    ADD CONSTRAINT fkbf2bbe913c4abc77 FOREIGN KEY (system_id) REFERENCES public.tm_system(id);


--
-- Name: tm_subtypes_per_system fkbf2bbe917d4018a9; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_subtypes_per_system
    ADD CONSTRAINT fkbf2bbe917d4018a9 FOREIGN KEY (system_subtypes_per_system_type_id) REFERENCES public.sys_system_subtypes_per_system_type(id);


--
-- Name: tm_object_attribute fkbf7c7aa2c1cf0d3a; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_attribute
    ADD CONSTRAINT fkbf7c7aa2c1cf0d3a FOREIGN KEY (object_id) REFERENCES public.tm_object_type(id);


--
-- Name: tm_step_instance_msg_validation fkc0866c743de2d3fa; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_msg_validation
    ADD CONSTRAINT fkc0866c743de2d3fa FOREIGN KEY (validation_status_id) REFERENCES public.validation_status(id);


--
-- Name: tm_step_instance_msg_validation fkc0866c74988f23d5; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_msg_validation
    ADD CONSTRAINT fkc0866c74988f23d5 FOREIGN KEY (message_validation_service_id) REFERENCES public.message_validation_service(id);


--
-- Name: tm_step_instance_msg_validation fkc0866c74d438f790; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_step_instance_msg_validation
    ADD CONSTRAINT fkc0866c74d438f790 FOREIGN KEY (tm_step_instance_message_id) REFERENCES public.tm_step_instance_message(id);


--
-- Name: tf_profile_link_aud fkc32c8ccedf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_profile_link_aud
    ADD CONSTRAINT fkc32c8ccedf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_object_instance_annotation fkc3a56d9f4f8c7b60; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance_annotation
    ADD CONSTRAINT fkc3a56d9f4f8c7b60 FOREIGN KEY (annotation_id) REFERENCES public.tm_annotation(id);


--
-- Name: tm_object_instance_annotation fkc3a56d9fdf2b39ff; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance_annotation
    ADD CONSTRAINT fkc3a56d9fdf2b39ff FOREIGN KEY (object_instance_id) REFERENCES public.tm_object_instance(id);


--
-- Name: tf_affinity_domain_aud fkc41e52bfdf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_affinity_domain_aud
    ADD CONSTRAINT fkc41e52bfdf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_object_instance fkc424abcf10dfa4b4; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance
    ADD CONSTRAINT fkc424abcf10dfa4b4 FOREIGN KEY (validation_id) REFERENCES public.tm_object_instance_validation(id);


--
-- Name: tm_object_instance fkc424abcf3e189dee; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance
    ADD CONSTRAINT fkc424abcf3e189dee FOREIGN KEY (test_type_id) REFERENCES public.tm_test_type(id);


--
-- Name: tm_object_instance fkc424abcf55b72e2b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance
    ADD CONSTRAINT fkc424abcf55b72e2b FOREIGN KEY (test_type_id) REFERENCES public.tm_test_type(id);


--
-- Name: tm_object_instance fkc424abcfb0831473; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance
    ADD CONSTRAINT fkc424abcfb0831473 FOREIGN KEY (system_in_session_id) REFERENCES public.tm_system_in_session(id);


--
-- Name: tm_object_instance fkc424abcfc1cf0d3a; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_instance
    ADD CONSTRAINT fkc424abcfc1cf0d3a FOREIGN KEY (object_id) REFERENCES public.tm_object_type(id);


--
-- Name: pr_crawler_unreachable_integration_statements fkc435a9623c4abc77; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_crawler_unreachable_integration_statements
    ADD CONSTRAINT fkc435a9623c4abc77 FOREIGN KEY (system_id) REFERENCES public.tm_system(id);


--
-- Name: pr_crawler_unreachable_integration_statements fkc435a962de226a49; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_crawler_unreachable_integration_statements
    ADD CONSTRAINT fkc435a962de226a49 FOREIGN KEY (crawler_report_id) REFERENCES public.pr_crawler_reporting(id);


--
-- Name: tm_test_participants fkc73845e7a674953f; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_participants
    ADD CONSTRAINT fkc73845e7a674953f FOREIGN KEY (actor_integration_profile_option_id) REFERENCES public.tf_actor_integration_profile_option(id);


--
-- Name: tm_test_participants fkc73845e7cd73587e; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_participants
    ADD CONSTRAINT fkc73845e7cd73587e FOREIGN KEY (actor_integration_profile_option_id) REFERENCES public.tf_actor_integration_profile_option(id);


--
-- Name: tm_hl7_responder_configuration fkc77092271eac332; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_hl7_responder_configuration
    ADD CONSTRAINT fkc77092271eac332 FOREIGN KEY (configuration_id) REFERENCES public.tm_configuration(id);


--
-- Name: tf_transaction_option_type_aud fkc80a24e7df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_transaction_option_type_aud
    ADD CONSTRAINT fkc80a24e7df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_proxy_configuration_for_session fkc944e3002ec2b912; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_proxy_configuration_for_session
    ADD CONSTRAINT fkc944e3002ec2b912 FOREIGN KEY (configurationtype_id) REFERENCES public.tm_configuration_type(id);


--
-- Name: tm_proxy_configuration_for_session fkc944e30049294f76; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_proxy_configuration_for_session
    ADD CONSTRAINT fkc944e30049294f76 FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tf_actor_integration_profile_aud fkc9c73bb8df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_integration_profile_aud
    ADD CONSTRAINT fkc9c73bb8df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_path_aud fkc9e3527cdf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_path_aud
    ADD CONSTRAINT fkc9e3527cdf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_test_instance_test_status fkcab72dc1fe62809; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_test_status
    ADD CONSTRAINT fkcab72dc1fe62809 FOREIGN KEY (test_instance_id) REFERENCES public.tm_test_instance(id);


--
-- Name: tm_test_instance_test_status fkcab72dcc930078c; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_test_status
    ADD CONSTRAINT fkcab72dcc930078c FOREIGN KEY (status_id) REFERENCES public.tm_test_instance_event(id);


--
-- Name: tm_test_instance_test_status fkcab72dccc1ce671; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_test_status
    ADD CONSTRAINT fkcab72dccc1ce671 FOREIGN KEY (status_id) REFERENCES public.tm_test_instance_event(id);


--
-- Name: tm_test_instance_test_status fkcab72dccda3820e; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_test_status
    ADD CONSTRAINT fkcab72dccda3820e FOREIGN KEY (test_instance_id) REFERENCES public.tm_test_instance(id);


--
-- Name: tm_domains_in_testing_sessions fkcb8bf4f049294f76; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_domains_in_testing_sessions
    ADD CONSTRAINT fkcb8bf4f049294f76 FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tm_domains_in_testing_sessions fkcb8bf4f07b3d7174; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_domains_in_testing_sessions
    ADD CONSTRAINT fkcb8bf4f07b3d7174 FOREIGN KEY (domain_id) REFERENCES public.tf_domain(id);


--
-- Name: tm_monitor_test fkccbcf05d2e22606; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_monitor_test
    ADD CONSTRAINT fkccbcf05d2e22606 FOREIGN KEY (monitor_id) REFERENCES public.tm_monitor_in_session(id);


--
-- Name: tm_monitor_test fkccbcf05d6e9c6c26; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_monitor_test
    ADD CONSTRAINT fkccbcf05d6e9c6c26 FOREIGN KEY (test_id) REFERENCES public.tm_test(id);


--
-- Name: tm_monitor_test fkccbcf05d871b5681; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_monitor_test
    ADD CONSTRAINT fkccbcf05d871b5681 FOREIGN KEY (monitor_id) REFERENCES public.tm_monitor_in_session(id);


--
-- Name: tm_configuration_mapped_with_aipo_aud fkcdb27f4df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_configuration_mapped_with_aipo_aud
    ADD CONSTRAINT fkcdb27f4df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: usr_institution fkce580b8dcfa3ed1c; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_institution
    ADD CONSTRAINT fkce580b8dcfa3ed1c FOREIGN KEY (mailing_address_id) REFERENCES public.usr_address(id);


--
-- Name: usr_institution fkce580b8dde0b0db9; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_institution
    ADD CONSTRAINT fkce580b8dde0b0db9 FOREIGN KEY (institution_type_id) REFERENCES public.usr_institution_type(id);


--
-- Name: tm_generic_oids_ip_config_param_for_session fkcf362de149294f76; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_generic_oids_ip_config_param_for_session
    ADD CONSTRAINT fkcf362de149294f76 FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tm_generic_oids_ip_config_param_for_session fkcf362de180abcc16; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_generic_oids_ip_config_param_for_session
    ADD CONSTRAINT fkcf362de180abcc16 FOREIGN KEY (profile_for_id) REFERENCES public.tf_integration_profile(id);


--
-- Name: tm_test_instance_participants fkd08d78a31fe62809; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_participants
    ADD CONSTRAINT fkd08d78a31fe62809 FOREIGN KEY (test_instance_id) REFERENCES public.tm_test_instance(id);


--
-- Name: tm_test_instance_participants fkd08d78a32c38294b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_participants
    ADD CONSTRAINT fkd08d78a32c38294b FOREIGN KEY (status_id) REFERENCES public.tm_test_instance_participants_status(id);


--
-- Name: tm_test_instance_participants fkd08d78a334890e5f; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_participants
    ADD CONSTRAINT fkd08d78a334890e5f FOREIGN KEY (system_in_session_user_id) REFERENCES public.tm_system_in_session_user(id);


--
-- Name: tm_test_instance_participants fkd08d78a3395854ba; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_participants
    ADD CONSTRAINT fkd08d78a3395854ba FOREIGN KEY (system_in_session_user_id) REFERENCES public.tm_system_in_session_user(id);


--
-- Name: tm_test_instance_participants fkd08d78a37943ec50; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_participants
    ADD CONSTRAINT fkd08d78a37943ec50 FOREIGN KEY (role_in_test_id) REFERENCES public.tm_role_in_test(id);


--
-- Name: tm_test_instance_participants fkd08d78a3a674953f; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_participants
    ADD CONSTRAINT fkd08d78a3a674953f FOREIGN KEY (actor_integration_profile_option_id) REFERENCES public.tf_actor_integration_profile_option(id);


--
-- Name: tm_test_instance_participants fkd08d78a3af66ec10; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_participants
    ADD CONSTRAINT fkd08d78a3af66ec10 FOREIGN KEY (status_id) REFERENCES public.tm_test_instance_participants_status(id);


--
-- Name: tm_test_instance_participants fkd08d78a3cd73587e; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_participants
    ADD CONSTRAINT fkd08d78a3cd73587e FOREIGN KEY (actor_integration_profile_option_id) REFERENCES public.tf_actor_integration_profile_option(id);


--
-- Name: tm_test_instance_participants fkd08d78a3cda3820e; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_instance_participants
    ADD CONSTRAINT fkd08d78a3cda3820e FOREIGN KEY (test_instance_id) REFERENCES public.tm_test_instance(id);


--
-- Name: tm_test_user_comment fkd0cdd43250cb1ad7; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_user_comment
    ADD CONSTRAINT fkd0cdd43250cb1ad7 FOREIGN KEY (user_comment_id) REFERENCES public.tm_user_comment(id);


--
-- Name: tm_test_user_comment fkd0cdd4326e9c6c26; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_user_comment
    ADD CONSTRAINT fkd0cdd4326e9c6c26 FOREIGN KEY (test_id) REFERENCES public.tm_test(id);


--
-- Name: tm_test_user_comment fkd0cdd432b397f034; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_user_comment
    ADD CONSTRAINT fkd0cdd432b397f034 FOREIGN KEY (user_comment_id) REFERENCES public.tm_user_comment(id);


--
-- Name: tm_test_user_comment fkd0cdd432e95a3569; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_user_comment
    ADD CONSTRAINT fkd0cdd432e95a3569 FOREIGN KEY (test_id) REFERENCES public.tm_test(id);


--
-- Name: tm_assertion_standard fkd178c6e089ced2eb; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_assertion_standard
    ADD CONSTRAINT fkd178c6e089ced2eb FOREIGN KEY (assertion_id) REFERENCES public.tm_assertion(id);


--
-- Name: tm_assertion_standard fkd178c6e0add7209; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_assertion_standard
    ADD CONSTRAINT fkd178c6e0add7209 FOREIGN KEY (standard_id) REFERENCES public.tm_standard(id);


--
-- Name: tf_standard_aud fkd17b8abbdf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_standard_aud
    ADD CONSTRAINT fkd17b8abbdf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_test_steps_instance_input_ci_instance fkd21c0f0e77550faa; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance_input_ci_instance
    ADD CONSTRAINT fkd21c0f0e77550faa FOREIGN KEY (contextual_information_instance_id) REFERENCES public.tm_contextual_information_instance(id);


--
-- Name: tm_test_steps_instance_input_ci_instance fkd21c0f0e7b906045; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance_input_ci_instance
    ADD CONSTRAINT fkd21c0f0e7b906045 FOREIGN KEY (contextual_information_instance_id) REFERENCES public.tm_contextual_information_instance(id);


--
-- Name: tm_test_steps_instance_input_ci_instance fkd21c0f0eef49aa5b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance_input_ci_instance
    ADD CONSTRAINT fkd21c0f0eef49aa5b FOREIGN KEY (test_steps_instance_id) REFERENCES public.tm_test_steps_instance(id);


--
-- Name: tm_test_steps_instance_input_ci_instance fkd21c0f0ef2368940; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_instance_input_ci_instance
    ADD CONSTRAINT fkd21c0f0ef2368940 FOREIGN KEY (test_steps_instance_id) REFERENCES public.tm_test_steps_instance(id);


--
-- Name: tm_invoice fkd3d06f672fde29a8; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_invoice
    ADD CONSTRAINT fkd3d06f672fde29a8 FOREIGN KEY (institution_id) REFERENCES public.usr_institution(id);


--
-- Name: tm_invoice fkd3d06f6749294f76; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_invoice
    ADD CONSTRAINT fkd3d06f6749294f76 FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tm_invoice fkd3d06f67d004e8d2; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_invoice
    ADD CONSTRAINT fkd3d06f67d004e8d2 FOREIGN KEY (vat_country) REFERENCES public.usr_iso_3166_country_code(iso);


--
-- Name: tm_invoice fkd3d06f67fe3143f4; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_invoice
    ADD CONSTRAINT fkd3d06f67fe3143f4 FOREIGN KEY (currency) REFERENCES public.usr_currency(keyword);


--
-- Name: tf_hl7_message_profile_affinity_domain_aud fkd43680e5df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile_affinity_domain_aud
    ADD CONSTRAINT fkd43680e5df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_oid_requirement fkd56ddb882fa924f6; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oid_requirement
    ADD CONSTRAINT fkd56ddb882fa924f6 FOREIGN KEY (oid_root_definition_id) REFERENCES public.tm_oid_root_definition(id);


--
-- Name: tf_actor_integration_profile fkd5a41967fafe1c20; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_integration_profile
    ADD CONSTRAINT fkd5a41967fafe1c20 FOREIGN KEY (actor_id) REFERENCES public.tf_actor(id);


--
-- Name: tf_actor_integration_profile fkd5a41967fdeae32b; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_actor_integration_profile
    ADD CONSTRAINT fkd5a41967fdeae32b FOREIGN KEY (integration_profile_id) REFERENCES public.tf_integration_profile(id);


--
-- Name: tm_system fkd66ed6b53de49f2f; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system
    ADD CONSTRAINT fkd66ed6b53de49f2f FOREIGN KEY (system_type_id) REFERENCES public.sys_system_type(id);


--
-- Name: tm_simulator fkd66ed6b53de49f2f130749be; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_simulator
    ADD CONSTRAINT fkd66ed6b53de49f2f130749be FOREIGN KEY (system_type_id) REFERENCES public.sys_system_type(id);


--
-- Name: tm_system fkd66ed6b583952d20; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system
    ADD CONSTRAINT fkd66ed6b583952d20 FOREIGN KEY (owner_user_id) REFERENCES public.usr_users(id);


--
-- Name: tm_simulator fkd66ed6b583952d20130749be; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_simulator
    ADD CONSTRAINT fkd66ed6b583952d20130749be FOREIGN KEY (owner_user_id) REFERENCES public.usr_users(id);


--
-- Name: tm_system fkd66ed6b5f23e76d6; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system
    ADD CONSTRAINT fkd66ed6b5f23e76d6 FOREIGN KEY (system_type_id) REFERENCES public.sys_system_type(id);


--
-- Name: tm_test_type_aud fkd76519d2df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_type_aud
    ADD CONSTRAINT fkd76519d2df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_test_test_description fkd815ae966e9c6c26; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_test_description
    ADD CONSTRAINT fkd815ae966e9c6c26 FOREIGN KEY (test_id) REFERENCES public.tm_test(id);


--
-- Name: tm_test_test_description fkd815ae9692de8746; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_test_description
    ADD CONSTRAINT fkd815ae9692de8746 FOREIGN KEY (test_description_id) REFERENCES public.tm_test_description(id);


--
-- Name: tm_test_test_description fkd815ae96b765a869; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_test_description
    ADD CONSTRAINT fkd815ae96b765a869 FOREIGN KEY (test_description_id) REFERENCES public.tm_test_description(id);


--
-- Name: tm_test_test_description fkd815ae96e95a3569; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_test_description
    ADD CONSTRAINT fkd815ae96e95a3569 FOREIGN KEY (test_id) REFERENCES public.tm_test(id);


--
-- Name: usr_institution_address fkd8f571422fde29a8; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_institution_address
    ADD CONSTRAINT fkd8f571422fde29a8 FOREIGN KEY (institution_id) REFERENCES public.usr_institution(id);


--
-- Name: usr_institution_address fkd8f57142a6285728; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_institution_address
    ADD CONSTRAINT fkd8f57142a6285728 FOREIGN KEY (address_id) REFERENCES public.usr_address(id);


--
-- Name: tm_web_service_type_aud fkd923e1e6df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_web_service_type_aud
    ADD CONSTRAINT fkd923e1e6df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_object_creator_aud fkd9679e83df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_creator_aud
    ADD CONSTRAINT fkd9679e83df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_meta_test_test_roles fkdf64a6691aa19d91; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_meta_test_test_roles
    ADD CONSTRAINT fkdf64a6691aa19d91 FOREIGN KEY (meta_test_id) REFERENCES public.tm_meta_test(id);


--
-- Name: tm_meta_test_test_roles fkdf64a6693030d54; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_meta_test_test_roles
    ADD CONSTRAINT fkdf64a6693030d54 FOREIGN KEY (meta_test_id) REFERENCES public.tm_meta_test(id);


--
-- Name: tm_meta_test_test_roles fkdf64a6697982b409; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_meta_test_test_roles
    ADD CONSTRAINT fkdf64a6697982b409 FOREIGN KEY (test_roles_id) REFERENCES public.tm_test_roles(id);


--
-- Name: tm_meta_test_test_roles fkdf64a6699d4f3ca6; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_meta_test_test_roles
    ADD CONSTRAINT fkdf64a6699d4f3ca6 FOREIGN KEY (test_roles_id) REFERENCES public.tm_test_roles(id);


--
-- Name: tf_document_aud fke09ede19df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_document_aud
    ADD CONSTRAINT fke09ede19df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tf_profile_inria_hl7_validation_files_aud fke0a94e8bdf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_profile_inria_hl7_validation_files_aud
    ADD CONSTRAINT fke0a94e8bdf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_oid_system_assignment fke2873e62b0831473; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oid_system_assignment
    ADD CONSTRAINT fke2873e62b0831473 FOREIGN KEY (system_in_session_id) REFERENCES public.tm_system_in_session(id);


--
-- Name: tm_oid_system_assignment fke2873e62b91f8d; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oid_system_assignment
    ADD CONSTRAINT fke2873e62b91f8d FOREIGN KEY (oid_requirement_id) REFERENCES public.tm_oid_requirement(id);


--
-- Name: tm_test_status_aud fke481e8cadf74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_status_aud
    ADD CONSTRAINT fke481e8cadf74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tf_hl7_message_profile_table_aud fke4cb7ab8df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_hl7_message_profile_table_aud
    ADD CONSTRAINT fke4cb7ab8df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: usr_person fke8e824602fde29a8; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_person
    ADD CONSTRAINT fke8e824602fde29a8 FOREIGN KEY (institution_id) REFERENCES public.usr_institution(id);


--
-- Name: usr_person fke8e82460a6285728; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_person
    ADD CONSTRAINT fke8e82460a6285728 FOREIGN KEY (address_id) REFERENCES public.usr_address(id);


--
-- Name: tm_demonstrations_in_testing_sessions fke8ff3b9149294f76; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_demonstrations_in_testing_sessions
    ADD CONSTRAINT fke8ff3b9149294f76 FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tm_demonstrations_in_testing_sessions fke8ff3b91bf96439d; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_demonstrations_in_testing_sessions
    ADD CONSTRAINT fke8ff3b91bf96439d FOREIGN KEY (demonstration_id) REFERENCES public.tm_demonstration(id);


--
-- Name: tm_contextual_information_aud fke9d1a195df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_contextual_information_aud
    ADD CONSTRAINT fke9d1a195df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: usr_gazelle_language_aud fkea14b593df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.usr_gazelle_language_aud
    ADD CONSTRAINT fkea14b593df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tf_profile_inria_hl7_validation_files fkea4e8dbaf08bc670; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tf_profile_inria_hl7_validation_files
    ADD CONSTRAINT fkea4e8dbaf08bc670 FOREIGN KEY (hl7_message_profile_id) REFERENCES public.tf_hl7_message_profile(id);


--
-- Name: tm_user_preferences fkebf6c58a5fe12f9a; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_user_preferences
    ADD CONSTRAINT fkebf6c58a5fe12f9a FOREIGN KEY (selected_testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tm_user_preferences fkebf6c58a844de061; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_user_preferences
    ADD CONSTRAINT fkebf6c58a844de061 FOREIGN KEY (userphoto_id) REFERENCES public.tm_user_photo(id);


--
-- Name: tm_user_preferences fkebf6c58a96e9f6ac; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_user_preferences
    ADD CONSTRAINT fkebf6c58a96e9f6ac FOREIGN KEY (user_id) REFERENCES public.usr_users(id);


--
-- Name: pr_mail fkecb021d43c4abc77; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_mail
    ADD CONSTRAINT fkecb021d43c4abc77 FOREIGN KEY (system_id) REFERENCES public.tm_system(id);


--
-- Name: pr_mail fkecb021d4a8726f8e; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.pr_mail
    ADD CONSTRAINT fkecb021d4a8726f8e FOREIGN KEY (crawlerreporting_id) REFERENCES public.pr_crawler_reporting(id);


--
-- Name: tm_demonstration_system_in_session fkee768ad6b0831473; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_demonstration_system_in_session
    ADD CONSTRAINT fkee768ad6b0831473 FOREIGN KEY (system_in_session_id) REFERENCES public.tm_system_in_session(id);


--
-- Name: tm_demonstration_system_in_session fkee768ad6bf96439d; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_demonstration_system_in_session
    ADD CONSTRAINT fkee768ad6bf96439d FOREIGN KEY (demonstration_id) REFERENCES public.tm_demonstration(id);


--
-- Name: tm_demonstration fkef46f009e334b3e8; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_demonstration
    ADD CONSTRAINT fkef46f009e334b3e8 FOREIGN KEY (country) REFERENCES public.usr_iso_3166_country_code(iso);


--
-- Name: tm_test_step_message_profile fkefd59545286efc83; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_step_message_profile
    ADD CONSTRAINT fkefd59545286efc83 FOREIGN KEY (tm_test_steps_id) REFERENCES public.tm_test_steps(id);


--
-- Name: tm_test_step_message_profile fkefd59545c77576dd; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_step_message_profile
    ADD CONSTRAINT fkefd59545c77576dd FOREIGN KEY (tf_hl7_message_profile_id) REFERENCES public.tf_hl7_message_profile(id);


--
-- Name: tm_test_steps_output_ci_aud fkf2a580f6df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_test_steps_output_ci_aud
    ADD CONSTRAINT fkf2a580f6df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_system_actor_profiles fkf3924dbe3c4abc77; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_actor_profiles
    ADD CONSTRAINT fkf3924dbe3c4abc77 FOREIGN KEY (system_id) REFERENCES public.tm_system(id);


--
-- Name: tm_system_actor_profiles fkf3924dbe977145ee; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_actor_profiles
    ADD CONSTRAINT fkf3924dbe977145ee FOREIGN KEY (wanted_testing_type_id) REFERENCES public.tm_testing_type(id);


--
-- Name: tm_system_actor_profiles fkf3924dbea674953f; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_actor_profiles
    ADD CONSTRAINT fkf3924dbea674953f FOREIGN KEY (actor_integration_profile_option_id) REFERENCES public.tf_actor_integration_profile_option(id);


--
-- Name: tm_system_actor_profiles fkf3924dbecb89d37e; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_actor_profiles
    ADD CONSTRAINT fkf3924dbecb89d37e FOREIGN KEY (testing_type_id) REFERENCES public.tm_testing_type(id);


--
-- Name: tm_system_actor_profiles fkf3924dbecd73587e; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_actor_profiles
    ADD CONSTRAINT fkf3924dbecd73587e FOREIGN KEY (actor_integration_profile_option_id) REFERENCES public.tf_actor_integration_profile_option(id);


--
-- Name: tm_oid_institution fkf4eea4fd2fde29a8; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oid_institution
    ADD CONSTRAINT fkf4eea4fd2fde29a8 FOREIGN KEY (institution_id) REFERENCES public.usr_institution(id);


--
-- Name: tm_oid_institution fkf4eea4fd49294f76; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_oid_institution
    ADD CONSTRAINT fkf4eea4fd49294f76 FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tm_object_file_type_aud fkf6c19474df74e053; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_object_file_type_aud
    ADD CONSTRAINT fkf6c19474df74e053 FOREIGN KEY (rev) REFERENCES public.revinfo(rev);


--
-- Name: tm_configuration_mapped_with_aipo fkfd2f83a311a261d8; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_configuration_mapped_with_aipo
    ADD CONSTRAINT fkfd2f83a311a261d8 FOREIGN KEY (aipo_id) REFERENCES public.tf_actor_integration_profile_option(id);


--
-- Name: tm_configuration_mapped_with_aipo fkfd2f83a338a12517; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_configuration_mapped_with_aipo
    ADD CONSTRAINT fkfd2f83a338a12517 FOREIGN KEY (aipo_id) REFERENCES public.tf_actor_integration_profile_option(id);


--
-- Name: tm_system_aipo_result_for_a_testing_session fkff584cff49294f76; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_aipo_result_for_a_testing_session
    ADD CONSTRAINT fkff584cff49294f76 FOREIGN KEY (testing_session_id) REFERENCES public.tm_testing_session(id);


--
-- Name: tm_system_aipo_result_for_a_testing_session fkff584cff6eed2582; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_aipo_result_for_a_testing_session
    ADD CONSTRAINT fkff584cff6eed2582 FOREIGN KEY (status_id) REFERENCES public.tm_status_results(id);


--
-- Name: tm_system_aipo_result_for_a_testing_session fkff584cff78db0c1d; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_aipo_result_for_a_testing_session
    ADD CONSTRAINT fkff584cff78db0c1d FOREIGN KEY (status_id) REFERENCES public.tm_status_results(id);


--
-- Name: tm_system_aipo_result_for_a_testing_session fkff584cff87d2e11e; Type: FK CONSTRAINT; Schema: public; Owner: gazelle
--

ALTER TABLE ONLY public.tm_system_aipo_result_for_a_testing_session
    ADD CONSTRAINT fkff584cff87d2e11e FOREIGN KEY (system_actor_profile_id) REFERENCES public.tm_system_actor_profiles(id);


--
-- Name: SCHEMA "_TF"; Type: ACL; Schema: -; Owner: gazelle
--

GRANT USAGE ON SCHEMA "_TF" TO PUBLIC;


--
--

