-- Name: xnat_megscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_megscandata_history (
    xft_version integer,
    megscandata_info integer,
    xnat_imagescandata_id integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_megscandata_history OWNER TO xnat;

--
-- Name: xnat_megscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_megscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_megscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_megscandata_history_history_id_seq OWNED BY public.xnat_megscandata_history.history_id;


--
-- Name: xnat_megscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_megscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_megscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_megscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_megscandata_meta_data.meta_data_id;


--
-- Name: xnat_megsessiondata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_megsessiondata_history (
    megsessiondata_info integer,
    xft_version integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    id character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_megsessiondata_history OWNER TO xnat;

--
-- Name: xnat_megsessiondata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_megsessiondata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_megsessiondata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_megsessiondata_history_history_id_seq OWNED BY public.xnat_megsessiondata_history.history_id;


--
-- Name: xnat_megsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_megsessiondata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_megsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_megsessiondata_meta_data_meta_data_id_seq OWNED BY public.xnat_megsessiondata_meta_data.meta_data_id;


--
-- Name: xnat_mgscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_mgscandata_history (
    xft_version integer,
    xnat_imagescandata_id integer,
    change_user integer,
    mgscandata_info integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_mgscandata_history OWNER TO xnat;

--
-- Name: xnat_mgscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_mgscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_mgscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_mgscandata_history_history_id_seq OWNED BY public.xnat_mgscandata_history.history_id;


--
-- Name: xnat_mgscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_mgscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_mgscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_mgscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_mgscandata_meta_data.meta_data_id;


--
-- Name: xnat_mgsessiondata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_mgsessiondata_history (
    xft_version integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    mgsessiondata_info integer,
    id character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_mgsessiondata_history OWNER TO xnat;

--
-- Name: xnat_mgsessiondata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_mgsessiondata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_mgsessiondata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_mgsessiondata_history_history_id_seq OWNED BY public.xnat_mgsessiondata_history.history_id;


--
-- Name: xnat_mgsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_mgsessiondata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_mgsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_mgsessiondata_meta_data_meta_data_id_seq OWNED BY public.xnat_mgsessiondata_meta_data.meta_data_id;


--
-- Name: xnat_mrassessordata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_mrassessordata_history (
    mrassessordata_info integer,
    xft_version integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    id character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_mrassessordata_history OWNER TO xnat;

--
-- Name: xnat_mrassessordata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_mrassessordata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_mrassessordata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_mrassessordata_history_history_id_seq OWNED BY public.xnat_mrassessordata_history.history_id;


--
-- Name: xnat_mrassessordata_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_mrassessordata_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_mrassessordata_meta_data OWNER TO xnat;

--
-- Name: xnat_mrassessordata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_mrassessordata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_mrassessordata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_mrassessordata_meta_data_meta_data_id_seq OWNED BY public.xnat_mrassessordata_meta_data.meta_data_id;


--
-- Name: xnat_mrqcscandata; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_mrqcscandata (
    xnat_qcscandata_id integer DEFAULT 0 NOT NULL,
    blurring character varying(255),
    flow character varying(255),
    imagecontrast character varying(255),
    inhomogeneity character varying(255),
    wrap character varying(255),
    susceptibility character varying(255),
    interpacmotion character varying(255),
    mrqcscandata_info integer
);


ALTER TABLE public.xnat_mrqcscandata OWNER TO xnat;

--
-- Name: xnat_mrqcscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_mrqcscandata_history (
    imagecontrast character varying(255),
    change_user integer,
    flow character varying(255),
    wrap character varying(255),
    mrqcscandata_info integer,
    blurring character varying(255),
    interpacmotion character varying(255),
    previous_change_date timestamp without time zone,
    xnat_qcscandata_id integer,
    inhomogeneity character varying(255),
    susceptibility character varying(255),
    history_id integer NOT NULL,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_qcscandata_id integer
);


ALTER TABLE public.xnat_mrqcscandata_history OWNER TO xnat;

--
-- Name: xnat_mrqcscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_mrqcscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_mrqcscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_mrqcscandata_history_history_id_seq OWNED BY public.xnat_mrqcscandata_history.history_id;


--
-- Name: xnat_mrqcscandata_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_mrqcscandata_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_mrqcscandata_meta_data OWNER TO xnat;

--
-- Name: xnat_mrqcscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_mrqcscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_mrqcscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_mrqcscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_mrqcscandata_meta_data.meta_data_id;


--
-- Name: xnat_mrscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_mrscandata_history (
    parameters_fov_y integer,
    parameters_fov_x integer,
    history_id integer NOT NULL,
    parameters_scansequence character varying(255),
    change_date timestamp without time zone,
    parameters_origin character varying(255),
    parameters_echospacing double precision,
    dcmvalidation_status integer,
    parameters_diffusion_orientations character varying(255),
    parameters_diffusion_directionality character varying(255),
    xnat_imagescandata_id integer,
    parameters_imagetype character varying(255),
    parameters_pmc character varying(255),
    parameters_inplanephaseencoding_polarityswap character varying(255),
    xft_version integer,
    parameters_diffusion_refocusflipangle character varying(255),
    parameters_sequence character varying(255),
    parameters_inplanephaseencoding_directionpositive character varying(255),
    parameters_coil character varying(255),
    mrscandata_info integer,
    parameters_diffusion_anisotropytype character varying(255),
    coil character varying(255),
    parameters_tr double precision,
    parameters_diffusion_bmax character varying(255),
    parameters_partitions integer,
    parameters_ti double precision,
    previous_change_date timestamp without time zone,
    parameters_te double precision,
    parameters_phaseencodingdirection character varying(255),
    parameters_acqtime character varying(255),
    parameters_scanoptions character varying(255),
    parameters_deltate double precision,
    parameters_coilelements character varying(255),
    change_user integer,
    parameters_subjectposition character varying(255),
    dcmvalidation character varying(255),
    parameters_seqvariant character varying(255),
    parameters_matrix_y integer,
    stabilization character varying(255),
    parameters_matrix_x integer,
    parameters_diffusion_bvalues character varying(255),
    parameters_inplanephaseencoding_direction character varying(255),
    parameters_acqtype character varying(255),
    parameters_readoutsamplespacing character varying(255),
    parameters_pixelbandwidth double precision,
    parameters_flip integer,
    filenameuuid character varying(255),
    parameters_voxelres_units character varying(255),
    parameters_voxelres_z double precision,
    parameters_voxelres_y double precision,
    parameters_dtiacqcount integer,
    parameters_voxelres_x double precision,
    parameters_orientation character varying(5),
    marker character varying(255),
    fieldstrength character varying(255),
    parameters_inplanephaseencoding_rotation character varying(255),
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_mrscandata_history OWNER TO xnat;

--
-- Name: xnat_mrscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_mrscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_mrscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_mrscandata_history_history_id_seq OWNED BY public.xnat_mrscandata_history.history_id;


--
-- Name: xnat_mrscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_mrscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_mrscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_mrscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_mrscandata_meta_data.meta_data_id;


--
-- Name: xnat_mrsessiondata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_mrsessiondata_history (
    coil character varying(255),
    change_user integer,
    id character varying(255),
    previous_change_date timestamp without time zone,
    marker character varying(255),
    fieldstrength character varying(255),
    mrsessiondata_info integer,
    stabilization character varying(255),
    history_id integer NOT NULL,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_mrsessiondata_history OWNER TO xnat;

--
-- Name: xnat_mrsessiondata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_mrsessiondata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_mrsessiondata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_mrsessiondata_history_history_id_seq OWNED BY public.xnat_mrsessiondata_history.history_id;


--
-- Name: xnat_mrsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_mrsessiondata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_mrsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_mrsessiondata_meta_data_meta_data_id_seq OWNED BY public.xnat_mrsessiondata_meta_data.meta_data_id;


--
-- Name: xnat_mrsscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_mrsscandata_history (
    xft_version integer,
    xnat_imagescandata_id integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    mrsscandata_info integer,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_mrsscandata_history OWNER TO xnat;

--
-- Name: xnat_mrsscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_mrsscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_mrsscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_mrsscandata_history_history_id_seq OWNED BY public.xnat_mrsscandata_history.history_id;


--
-- Name: xnat_mrsscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_mrsscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_mrsscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_mrsscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_mrsscandata_meta_data.meta_data_id;


--
-- Name: xnat_nmscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_nmscandata_history (
    xft_version integer,
    xnat_imagescandata_id integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    nmscandata_info integer,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_nmscandata_history OWNER TO xnat;

--
-- Name: xnat_nmscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_nmscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_nmscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_nmscandata_history_history_id_seq OWNED BY public.xnat_nmscandata_history.history_id;


--
-- Name: xnat_nmscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_nmscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_nmscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_nmscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_nmscandata_meta_data.meta_data_id;


--
-- Name: xnat_nmsessiondata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_nmsessiondata_history (
    nmsessiondata_info integer,
    xft_version integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    id character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_nmsessiondata_history OWNER TO xnat;

--
-- Name: xnat_nmsessiondata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_nmsessiondata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_nmsessiondata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_nmsessiondata_history_history_id_seq OWNED BY public.xnat_nmsessiondata_history.history_id;


--
-- Name: xnat_nmsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_nmsessiondata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_nmsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_nmsessiondata_meta_data_meta_data_id_seq OWNED BY public.xnat_nmsessiondata_meta_data.meta_data_id;


--
-- Name: xnat_opscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_opscandata_history (
    xft_version integer,
    opscandata_info integer,
    xnat_imagescandata_id integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_opscandata_history OWNER TO xnat;

--
-- Name: xnat_opscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_opscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_opscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_opscandata_history_history_id_seq OWNED BY public.xnat_opscandata_history.history_id;


--
-- Name: xnat_opscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_opscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_opscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_opscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_opscandata_meta_data.meta_data_id;


--
-- Name: xnat_opsessiondata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_opsessiondata_history (
    xft_version integer,
    change_user integer,
    change_date timestamp without time zone,
    opsessiondata_info integer,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    id character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_opsessiondata_history OWNER TO xnat;

--
-- Name: xnat_opsessiondata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_opsessiondata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_opsessiondata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_opsessiondata_history_history_id_seq OWNED BY public.xnat_opsessiondata_history.history_id;


--
-- Name: xnat_opsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_opsessiondata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_opsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_opsessiondata_meta_data_meta_data_id_seq OWNED BY public.xnat_opsessiondata_meta_data.meta_data_id;


--
-- Name: xnat_optscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_optscandata_history (
    parameters_voxelres_z double precision,
    parameters_voxelres_y double precision,
    parameters_voxelres_x double precision,
    parameters_imagetype character varying(255),
    dcmvalidation character varying(255),
    optscandata_info integer,
    dcmvalidation_status integer,
    change_date timestamp without time zone,
    parameters_voxelres_units character varying(255),
    parameters_illumination_power character varying(255),
    xnat_imagescandata_id integer,
    change_user integer,
    xft_version integer,
    history_id integer NOT NULL,
    parameters_fov_y integer,
    parameters_fov_x integer,
    parameters_laterality character varying(255),
    parameters_illumination_wavelength character varying(255),
    previous_change_date timestamp without time zone,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_optscandata_history OWNER TO xnat;

--
-- Name: xnat_optscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_optscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_optscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_optscandata_history_history_id_seq OWNED BY public.xnat_optscandata_history.history_id;


--
-- Name: xnat_optscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_optscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_optscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_optscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_optscandata_meta_data.meta_data_id;


--
-- Name: xnat_optsessiondata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_optsessiondata_history (
    optsessiondata_info integer,
    xft_version integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    id character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_optsessiondata_history OWNER TO xnat;

--
-- Name: xnat_optsessiondata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_optsessiondata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_optsessiondata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_optsessiondata_history_history_id_seq OWNED BY public.xnat_optsessiondata_history.history_id;


--
-- Name: xnat_optsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_optsessiondata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_optsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_optsessiondata_meta_data_meta_data_id_seq OWNED BY public.xnat_optsessiondata_meta_data.meta_data_id;


--
-- Name: xnat_otherdicomscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_otherdicomscandata_history (
    otherdicomscandata_info integer,
    xft_version integer,
    xnat_imagescandata_id integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_otherdicomscandata_history OWNER TO xnat;

--
-- Name: xnat_otherdicomscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_otherdicomscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_otherdicomscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_otherdicomscandata_history_history_id_seq OWNED BY public.xnat_otherdicomscandata_history.history_id;


--
-- Name: xnat_otherdicomscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_otherdicomscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_otherdicomscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_otherdicomscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_otherdicomscandata_meta_data.meta_data_id;


--
-- Name: xnat_otherdicomsessiondata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_otherdicomsessiondata_history (
    xft_version integer,
    change_user integer,
    otherdicomsessiondata_info integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    id character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_otherdicomsessiondata_history OWNER TO xnat;

--
-- Name: xnat_otherdicomsessiondata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_otherdicomsessiondata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_otherdicomsessiondata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_otherdicomsessiondata_history_history_id_seq OWNED BY public.xnat_otherdicomsessiondata_history.history_id;


--
-- Name: xnat_otherdicomsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_otherdicomsessiondata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_otherdicomsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_otherdicomsessiondata_meta_data_meta_data_id_seq OWNED BY public.xnat_otherdicomsessiondata_meta_data.meta_data_id;


--
-- Name: xnat_otherqcscandata; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_otherqcscandata (
    xnat_qcscandata_id integer DEFAULT 0 NOT NULL,
    other character varying(255),
    otherqcscandata_info integer
);


ALTER TABLE public.xnat_otherqcscandata OWNER TO xnat;

--
-- Name: xnat_otherqcscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_otherqcscandata_history (
    change_user integer,
    previous_change_date timestamp without time zone,
    xnat_qcscandata_id integer,
    other character varying(255),
    history_id integer NOT NULL,
    otherqcscandata_info integer,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_qcscandata_id integer
);


ALTER TABLE public.xnat_otherqcscandata_history OWNER TO xnat;

--
-- Name: xnat_otherqcscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_otherqcscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_otherqcscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_otherqcscandata_history_history_id_seq OWNED BY public.xnat_otherqcscandata_history.history_id;


--
-- Name: xnat_otherqcscandata_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_otherqcscandata_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_otherqcscandata_meta_data OWNER TO xnat;

--
-- Name: xnat_otherqcscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_otherqcscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_otherqcscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_otherqcscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_otherqcscandata_meta_data.meta_data_id;


--
-- Name: xnat_petassessordata; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_petassessordata (
    id character varying(255) DEFAULT ''::character varying NOT NULL,
    petassessordata_info integer
);


ALTER TABLE public.xnat_petassessordata OWNER TO xnat;

--
-- Name: xnat_petassessordata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_petassessordata_history (
    xft_version integer,
    change_user integer,
    change_date timestamp without time zone,
    petassessordata_info integer,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    id character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_petassessordata_history OWNER TO xnat;

--
-- Name: xnat_petassessordata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_petassessordata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_petassessordata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_petassessordata_history_history_id_seq OWNED BY public.xnat_petassessordata_history.history_id;


--
-- Name: xnat_petassessordata_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_petassessordata_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_petassessordata_meta_data OWNER TO xnat;

--
-- Name: xnat_petassessordata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_petassessordata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_petassessordata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_petassessordata_meta_data_meta_data_id_seq OWNED BY public.xnat_petassessordata_meta_data.meta_data_id;


--
-- Name: xnat_petmrsessiondata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_petmrsessiondata_history (
    tracer_isotope_half_life double precision,
    tracer_intermediate double precision,
    studytype character varying(255),
    blood_glucose_time timestamp without time zone,
    blood_glucose_units character varying(255),
    tracer_specificactivity double precision,
    marker character varying(255),
    tracer_isotope character varying(255),
    tracer_transmissions integer,
    change_date timestamp without time zone,
    tracer_totalmass_units character varying(255),
    tracer_name character varying(255),
    change_user integer,
    xft_version integer,
    tracer_transmissions_starttime timestamp without time zone,
    blood_glucose double precision,
    start_time timestamp without time zone,
    coil character varying(255),
    id character varying(255),
    history_id integer NOT NULL,
    patientid character varying(255),
    tracer_dose_units character varying(255),
    previous_change_date timestamp without time zone,
    fieldstrength character varying(255),
    tracer_totalmass double precision,
    tracer_dose double precision,
    tracer_starttime timestamp without time zone,
    tracer_intermediate_units character varying(255),
    petmrsessiondata_info integer,
    patientname character varying(255),
    start_time_injection timestamp without time zone,
    stabilization character varying(255),
    start_time_scan timestamp without time zone,
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_petmrsessiondata_history OWNER TO xnat;

--
-- Name: xnat_petmrsessiondata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_petmrsessiondata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_petmrsessiondata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_petmrsessiondata_history_history_id_seq OWNED BY public.xnat_petmrsessiondata_history.history_id;


--
-- Name: xnat_petmrsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_petmrsessiondata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_petmrsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_petmrsessiondata_meta_data_meta_data_id_seq OWNED BY public.xnat_petmrsessiondata_meta_data.meta_data_id;


--
-- Name: xnat_petqcscandata; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_petqcscandata (
    xnat_qcscandata_id integer DEFAULT 0 NOT NULL,
    acquisition character varying(255),
    correctreconstructionalgorithm character varying(255),
    reconstructionalgorithmused character varying(255),
    correctiterationsandsubsets character varying(255),
    correctfilters character varying(255),
    correctslicethickness character varying(255),
    acceptablevoxelsize character varying(255),
    unacceptableframes character varying(255),
    reasonframesunacceptable character varying(255),
    qcoutcome character varying(255),
    qcoutcomereason character varying(255),
    topcutoff character varying(255),
    bottomcutoff character varying(255),
    petqcscandata_info integer
);


ALTER TABLE public.xnat_petqcscandata OWNER TO xnat;

--
-- Name: xnat_petqcscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_petqcscandata_history (
    qcoutcome character varying(255),
    unacceptableframes character varying(255),
    correctiterationsandsubsets character varying(255),
    qcoutcomereason character varying(255),
    change_date timestamp without time zone,
    topcutoff character varying(255),
    correctfilters character varying(255),
    change_user integer,
    xft_version integer,
    xnat_qcscandata_id integer,
    reasonframesunacceptable character varying(255),
    history_id integer NOT NULL,
    correctslicethickness character varying(255),
    previous_change_date timestamp without time zone,
    petqcscandata_info integer,
    bottomcutoff character varying(255),
    reconstructionalgorithmused character varying(255),
    correctreconstructionalgorithm character varying(255),
    acquisition character varying(255),
    acceptablevoxelsize character varying(255),
    new_row_xnat_qcscandata_id integer
);


ALTER TABLE public.xnat_petqcscandata_history OWNER TO xnat;

--
-- Name: xnat_petqcscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_petqcscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_petqcscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_petqcscandata_history_history_id_seq OWNED BY public.xnat_petqcscandata_history.history_id;


--
-- Name: xnat_petqcscandata_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_petqcscandata_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_petqcscandata_meta_data OWNER TO xnat;

--
-- Name: xnat_petqcscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_petqcscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_petqcscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_petqcscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_petqcscandata_meta_data.meta_data_id;


--
-- Name: xnat_petqcscandata_processingerror; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_petqcscandata_processingerror (
    processingerror character varying(255),
    petqcscandata_processingerror_info integer,
    xnat_petqcscandata_processingerror_id integer NOT NULL,
    processingerrors_processingerro_xnat_qcscandata_id integer
);


ALTER TABLE public.xnat_petqcscandata_processingerror OWNER TO xnat;

--
-- Name: xnat_petqcscandata_processing_xnat_petqcscandata_processing_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_petqcscandata_processing_xnat_petqcscandata_processing_seq OWNER TO xnat;

--
-- Name: xnat_petqcscandata_processing_xnat_petqcscandata_processing_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_petqcscandata_processing_xnat_petqcscandata_processing_seq OWNED BY public.xnat_petqcscandata_processingerror.xnat_petqcscandata_processingerror_id;


--
-- Name: xnat_petqcscandata_processingerror_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_petqcscandata_processingerror_history (
    change_user integer,
    xnat_petqcscandata_processingerror_id integer,
    previous_change_date timestamp without time zone,
    petqcscandata_processingerror_info integer,
    processingerror character varying(255),
    processingerrors_processingerro_xnat_qcscandata_id integer,
    history_id integer NOT NULL,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_petqcscandata_processingerror_id integer
);


ALTER TABLE public.xnat_petqcscandata_processingerror_history OWNER TO xnat;

--
-- Name: xnat_petqcscandata_processingerror_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_petqcscandata_processingerror_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_petqcscandata_processingerror_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_petqcscandata_processingerror_history_history_id_seq OWNED BY public.xnat_petqcscandata_processingerror_history.history_id;


--
-- Name: xnat_petqcscandata_processingerror_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_petqcscandata_processingerror_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_petqcscandata_processingerror_meta_data OWNER TO xnat;

--
-- Name: xnat_petqcscandata_processingerror_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_petqcscandata_processingerror_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_petqcscandata_processingerror_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_petqcscandata_processingerror_meta_data_meta_data_id_seq OWNED BY public.xnat_petqcscandata_processingerror_meta_data.meta_data_id;


--
-- Name: xnat_petscandata_frame; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_petscandata_frame (
    number integer DEFAULT 0 NOT NULL,
    starttime double precision DEFAULT 0 NOT NULL,
    length double precision DEFAULT 0 NOT NULL,
    units character varying(255) DEFAULT ''::character varying NOT NULL,
    petscandata_frame_info integer,
    xnat_petscandata_frame_id integer NOT NULL,
    parameters_frames_frame_xnat_pe_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_petscandata_frame OWNER TO xnat;

--
-- Name: xnat_petscandata_frame_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_petscandata_frame_history (
    change_user integer,
    length double precision,
    previous_change_date timestamp without time zone,
    number integer,
    parameters_frames_frame_xnat_pe_xnat_imagescandata_id integer,
    units character varying(255),
    history_id integer NOT NULL,
    starttime double precision,
    petscandata_frame_info integer,
    xft_version integer,
    change_date timestamp without time zone,
    xnat_petscandata_frame_id integer,
    new_row_xnat_petscandata_frame_id integer
);


ALTER TABLE public.xnat_petscandata_frame_history OWNER TO xnat;

--
-- Name: xnat_petscandata_frame_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_petscandata_frame_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_petscandata_frame_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_petscandata_frame_history_history_id_seq OWNED BY public.xnat_petscandata_frame_history.history_id;


--
-- Name: xnat_petscandata_frame_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_petscandata_frame_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_petscandata_frame_meta_data OWNER TO xnat;

--
-- Name: xnat_petscandata_frame_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_petscandata_frame_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_petscandata_frame_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_petscandata_frame_meta_data_meta_data_id_seq OWNED BY public.xnat_petscandata_frame_meta_data.meta_data_id;


--
-- Name: xnat_petscandata_frame_xnat_petscandata_frame_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_petscandata_frame_xnat_petscandata_frame_id_seq OWNER TO xnat;

--
-- Name: xnat_petscandata_frame_xnat_petscandata_frame_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_petscandata_frame_xnat_petscandata_frame_id_seq OWNED BY public.xnat_petscandata_frame.xnat_petscandata_frame_id;


--
-- Name: xnat_petscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_petscandata_history (
    parameters_offset_x double precision,
    parameters_numacceptedbeats integer,
    ecatvalidation character varying(255),
    parameters_scattertype integer,
    parameters_rfilter_cutoff double precision,
    parameters_numangles double precision,
    parameters_numrelements double precision,
    parameters_originalfilename character varying(255),
    parameters_rwaveoffset integer,
    parameters_facility character varying(255),
    parameters_rfilter_order integer,
    parameters_numgates integer,
    parameters_planeseparation double precision,
    xnat_imagescandata_id integer,
    parameters_reconzoom double precision,
    parameters_mt_3_4 double precision,
    parameters_mt_3_3 double precision,
    parameters_mt_3_2 double precision,
    parameters_mt_3_1 double precision,
    parameters_orientation integer,
    parameters_mt_2_4 double precision,
    parameters_mt_2_3 double precision,
    parameters_bedposition double precision,
    parameters_mt_2_2 double precision,
    parameters_mt_2_1 double precision,
    parameters_ecatcalibrationfactor double precision,
    parameters_filetype integer,
    parameters_systemtype integer,
    parameters_mt_1_4 double precision,
    parameters_mt_1_3 double precision,
    parameters_mt_1_2 double precision,
    parameters_mt_1_1 double precision,
    parameters_dimensions_num integer,
    xft_version integer,
    parameters_zfilter_order integer,
    parameters_annotation character varying(255),
    parameters_acqtype integer,
    parameters_dimensions_z integer,
    parameters_dimensions_y integer,
    parameters_dimensions_x integer,
    change_date timestamp without time zone,
    parameters_pixelsize_z double precision,
    parameters_pixelsize_y double precision,
    parameters_pixelsize_x double precision,
    parameters_filtercode integer,
    parameters_numplanes integer,
    history_id integer NOT NULL,
    petscandata_info integer,
    parameters_zfilter_code integer,
    parameters_zfilter_cutoff double precision,
    parameters_recontype integer,
    parameters_rfilter_code integer,
    ecatvalidation_status integer,
    parameters_transaxialfov double precision,
    parameters_rfilter_resolution double precision,
    parameters_zrotationangle double precision,
    parameters_gateduration integer,
    parameters_binsize double precision,
    parameters_reconviews integer,
    change_user integer,
    parameters_filter_cutoff double precision,
    parameters_frames_numframes integer,
    parameters_processingcode integer,
    previous_change_date timestamp without time zone,
    parameters_datatype integer,
    parameters_resolution_z double precision,
    parameters_resolution_y double precision,
    parameters_resolution_x double precision,
    parameters_zfilter_resolution double precision,
    parameters_offset_z double precision,
    parameters_offset_y double precision,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_petscandata_history OWNER TO xnat;

--
-- Name: xnat_petscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_petscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_petscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_petscandata_history_history_id_seq OWNED BY public.xnat_petscandata_history.history_id;


--
-- Name: xnat_petscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_petscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_petscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_petscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_petscandata_meta_data.meta_data_id;


--
-- Name: xnat_petsessiondata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_petsessiondata_history (
    tracer_isotope_half_life double precision,
    tracer_intermediate double precision,
    studytype character varying(255),
    blood_glucose_time timestamp without time zone,
    blood_glucose_units character varying(255),
    tracer_specificactivity double precision,
    tracer_isotope character varying(255),
    tracer_transmissions integer,
    change_date timestamp without time zone,
    tracer_totalmass_units character varying(255),
    tracer_name character varying(255),
    change_user integer,
    xft_version integer,
    tracer_transmissions_starttime timestamp without time zone,
    blood_glucose double precision,
    start_time timestamp without time zone,
    id character varying(255),
    history_id integer NOT NULL,
    patientid character varying(255),
    tracer_dose_units character varying(255),
    previous_change_date timestamp without time zone,
    tracer_dose double precision,
    tracer_totalmass double precision,
    petsessiondata_info integer,
    tracer_starttime timestamp without time zone,
    tracer_intermediate_units character varying(255),
    patientname character varying(255),
    start_time_injection timestamp without time zone,
    stabilization character varying(255),
    start_time_scan timestamp without time zone,
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_petsessiondata_history OWNER TO xnat;

--
-- Name: xnat_petsessiondata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_petsessiondata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_petsessiondata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_petsessiondata_history_history_id_seq OWNED BY public.xnat_petsessiondata_history.history_id;


--
-- Name: xnat_petsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_petsessiondata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_petsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_petsessiondata_meta_data_meta_data_id_seq OWNED BY public.xnat_petsessiondata_meta_data.meta_data_id;


--
-- Name: xnat_projectdata_alias; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_projectdata_alias (
    alias character varying(255),
    source character varying(255),
    projectdata_alias_info integer,
    xnat_projectdata_alias_id integer NOT NULL,
    aliases_alias_xnat_projectdata_id character varying(255)
);


ALTER TABLE public.xnat_projectdata_alias OWNER TO xnat;

--
-- Name: xnat_projectdata_alias_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_projectdata_alias_history (
    source character varying(255),
    change_user integer,
    aliases_alias_xnat_projectdata_id character varying(255),
    previous_change_date timestamp without time zone,
    alias character varying(255),
    xnat_projectdata_alias_id integer,
    projectdata_alias_info integer,
    history_id integer NOT NULL,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_projectdata_alias_id integer
);


ALTER TABLE public.xnat_projectdata_alias_history OWNER TO xnat;

--
-- Name: xnat_projectdata_alias_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_projectdata_alias_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_projectdata_alias_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_projectdata_alias_history_history_id_seq OWNED BY public.xnat_projectdata_alias_history.history_id;


--
-- Name: xnat_projectdata_alias_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_projectdata_alias_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_projectdata_alias_meta_data OWNER TO xnat;

--
-- Name: xnat_projectdata_alias_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_projectdata_alias_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_projectdata_alias_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_projectdata_alias_meta_data_meta_data_id_seq OWNED BY public.xnat_projectdata_alias_meta_data.meta_data_id;


--
-- Name: xnat_projectdata_alias_xnat_projectdata_alias_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_projectdata_alias_xnat_projectdata_alias_id_seq OWNER TO xnat;

--
-- Name: xnat_projectdata_alias_xnat_projectdata_alias_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_projectdata_alias_xnat_projectdata_alias_id_seq OWNED BY public.xnat_projectdata_alias.xnat_projectdata_alias_id;


--
-- Name: xnat_projectdata_field; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_projectdata_field (
    field character varying(255),
    name character varying(255),
    projectdata_field_info integer,
    xnat_projectdata_field_id integer NOT NULL,
    fields_field_xnat_projectdata_id character varying(255)
);


ALTER TABLE public.xnat_projectdata_field OWNER TO xnat;

--
-- Name: xnat_projectdata_field_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_projectdata_field_history (
    change_user integer,
    name character varying(255),
    previous_change_date timestamp without time zone,
    projectdata_field_info integer,
    fields_field_xnat_projectdata_id character varying(255),
    history_id integer NOT NULL,
    field character varying(255),
    xnat_projectdata_field_id integer,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_projectdata_field_id integer
);


ALTER TABLE public.xnat_projectdata_field_history OWNER TO xnat;

--
-- Name: xnat_projectdata_field_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_projectdata_field_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_projectdata_field_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_projectdata_field_history_history_id_seq OWNED BY public.xnat_projectdata_field_history.history_id;


--
-- Name: xnat_projectdata_field_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_projectdata_field_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_projectdata_field_meta_data OWNER TO xnat;

--
-- Name: xnat_projectdata_field_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_projectdata_field_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_projectdata_field_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_projectdata_field_meta_data_meta_data_id_seq OWNED BY public.xnat_projectdata_field_meta_data.meta_data_id;


--
-- Name: xnat_projectdata_field_xnat_projectdata_field_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_projectdata_field_xnat_projectdata_field_id_seq OWNER TO xnat;

--
-- Name: xnat_projectdata_field_xnat_projectdata_field_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_projectdata_field_xnat_projectdata_field_id_seq OWNED BY public.xnat_projectdata_field.xnat_projectdata_field_id;


--
-- Name: xnat_projectdata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_projectdata_history (
    pi_xnat_investigatordata_id integer,
    change_user integer,
    name character varying(255),
    id character varying(255),
    projectdata_info integer,
    active integer,
    previous_change_date timestamp without time zone,
    keywords character varying(255),
    secondary_id character varying(255),
    history_id integer NOT NULL,
    type character varying(255),
    description text,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_projectdata_history OWNER TO xnat;

--
-- Name: xnat_projectdata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_projectdata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_projectdata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_projectdata_history_history_id_seq OWNED BY public.xnat_projectdata_history.history_id;


--
-- Name: xnat_projectdata_investigator_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_projectdata_investigator_history (
    xnat_projectdata_id character varying,
    xnat_investigatordata_xnat_investigatordata_id integer,
    xnat_projectdata_investigator_id integer,
    history_id integer NOT NULL
);


ALTER TABLE public.xnat_projectdata_investigator_history OWNER TO xnat;

--
-- Name: xnat_projectdata_investigator_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_projectdata_investigator_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_projectdata_investigator_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_projectdata_investigator_history_history_id_seq OWNED BY public.xnat_projectdata_investigator_history.history_id;


--
-- Name: xnat_projectdata_investigator_xnat_projectdata_investigator_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_projectdata_investigator_xnat_projectdata_investigator_seq OWNER TO xnat;

--
-- Name: xnat_projectdata_investigator_xnat_projectdata_investigator_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_projectdata_investigator_xnat_projectdata_investigator_seq OWNED BY public.xnat_projectdata_investigator.xnat_projectdata_investigator_id;


--
-- Name: xnat_projectdata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_projectdata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_projectdata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_projectdata_meta_data_meta_data_id_seq OWNED BY public.xnat_projectdata_meta_data.meta_data_id;



--
-- Name: xnat_projectdata_resource; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_projectdata_resource (
    xnat_projectdata_id character varying NOT NULL,
    xnat_abstractresource_xnat_abstractresource_id integer NOT NULL,
    xnat_projectdata_resource_id integer NOT NULL
);


ALTER TABLE public.xnat_projectdata_resource OWNER TO xnat;


--
-- Name: xnat_projectdata_resource_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_projectdata_resource_history (
    xnat_projectdata_id character varying,
    xnat_abstractresource_xnat_abstractresource_id integer,
    xnat_projectdata_resource_id integer,
    history_id integer NOT NULL
);


ALTER TABLE public.xnat_projectdata_resource_history OWNER TO xnat;

--
-- Name: xnat_projectdata_resource_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_projectdata_resource_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_projectdata_resource_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_projectdata_resource_history_history_id_seq OWNED BY public.xnat_projectdata_resource_history.history_id;


--
-- Name: xnat_projectdata_resource_xnat_projectdata_resource_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_projectdata_resource_xnat_projectdata_resource_id_seq OWNER TO xnat;

--
-- Name: xnat_projectdata_resource_xnat_projectdata_resource_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_projectdata_resource_xnat_projectdata_resource_id_seq OWNED BY public.xnat_projectdata_resource.xnat_projectdata_resource_id;


--
-- Name: xnat_projectparticipant_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_projectparticipant_history (
    xnat_projectparticipant_id integer,
    _group character varying(255),
    change_user integer,
    projectparticipant_info integer,
    previous_change_date timestamp without time zone,
    subject_id character varying(255),
    history_id integer NOT NULL,
    label character varying(255),
    project character varying(255),
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_projectparticipant_id integer
);


ALTER TABLE public.xnat_projectparticipant_history OWNER TO xnat;

--
-- Name: xnat_projectparticipant_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_projectparticipant_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_projectparticipant_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_projectparticipant_history_history_id_seq OWNED BY public.xnat_projectparticipant_history.history_id;


--
-- Name: xnat_projectparticipant_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_projectparticipant_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_projectparticipant_meta_data OWNER TO xnat;

--
-- Name: xnat_projectparticipant_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_projectparticipant_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_projectparticipant_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_projectparticipant_meta_data_meta_data_id_seq OWNED BY public.xnat_projectparticipant_meta_data.meta_data_id;


--
-- Name: xnat_projectparticipant_xnat_projectparticipant_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_projectparticipant_xnat_projectparticipant_id_seq OWNER TO xnat;

--
-- Name: xnat_projectparticipant_xnat_projectparticipant_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_projectparticipant_xnat_projectparticipant_id_seq OWNED BY public.xnat_projectparticipant.xnat_projectparticipant_id;


--
-- Name: xnat_publicationresource; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_publicationresource (
    xnat_abstractresource_id integer DEFAULT 0 NOT NULL,
    title text,
    citation text,
    abstract text,
    commentary text,
    isprimary integer,
    doi character varying(255),
    pubmed character varying(255),
    medline character varying(255),
    uri character varying(255),
    other character varying(255),
    type character varying(255),
    publicationresource_info integer,
    publications_publication_xnat_p_id character varying(255)
);


ALTER TABLE public.xnat_publicationresource OWNER TO xnat;

--
-- Name: xnat_publicationresource_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_publicationresource_history (
    citation text,
    publicationresource_info integer,
    pubmed character varying(255),
    isprimary integer,
    commentary text,
    type character varying(255),
    publications_publication_xnat_p_id character varying(255),
    xnat_abstractresource_id integer,
    other character varying(255),
    uri character varying(255),
    change_date timestamp without time zone,
    change_user integer,
    xft_version integer,
    history_id integer NOT NULL,
    abstract text,
    previous_change_date timestamp without time zone,
    doi character varying(255),
    medline character varying(255),
    title text,
    new_row_xnat_abstractresource_id integer
);


ALTER TABLE public.xnat_publicationresource_history OWNER TO xnat;

--
-- Name: xnat_publicationresource_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_publicationresource_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_publicationresource_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_publicationresource_history_history_id_seq OWNED BY public.xnat_publicationresource_history.history_id;


--
-- Name: xnat_publicationresource_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_publicationresource_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_publicationresource_meta_data OWNER TO xnat;

--
-- Name: xnat_publicationresource_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_publicationresource_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_publicationresource_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_publicationresource_meta_data_meta_data_id_seq OWNED BY public.xnat_publicationresource_meta_data.meta_data_id;


--
-- Name: xnat_pvisitdata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_pvisitdata_history (
    end_date timestamp without time zone,
    closed integer,
    pvisitdata_info integer,
    protocolversion integer,
    start_date timestamp without time zone,
    visit_name character varying(255),
    change_date timestamp without time zone,
    visit_type character varying(255),
    notes text,
    change_user integer,
    xft_version integer,
    id character varying(255),
    history_id integer NOT NULL,
    protocolid character varying(255),
    status character varying(255),
    previous_change_date timestamp without time zone,
    subject_id character varying(255),
    terminal integer,
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_pvisitdata_history OWNER TO xnat;

--
-- Name: xnat_pvisitdata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_pvisitdata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_pvisitdata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_pvisitdata_history_history_id_seq OWNED BY public.xnat_pvisitdata_history.history_id;


--
-- Name: xnat_pvisitdata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_pvisitdata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_pvisitdata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_pvisitdata_meta_data_meta_data_id_seq OWNED BY public.xnat_pvisitdata_meta_data.meta_data_id;


--
-- Name: xnat_qcassessmentdata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_qcassessmentdata_history (
    change_user integer,
    id character varying(255),
    previous_change_date timestamp without time zone,
    qcassessmentdata_info integer,
    history_id integer NOT NULL,
    type character varying(255),
    xft_version integer,
    change_date timestamp without time zone,
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_qcassessmentdata_history OWNER TO xnat;

--
-- Name: xnat_qcassessmentdata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_qcassessmentdata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_qcassessmentdata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_qcassessmentdata_history_history_id_seq OWNED BY public.xnat_qcassessmentdata_history.history_id;


--
-- Name: xnat_qcassessmentdata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_qcassessmentdata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_qcassessmentdata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_qcassessmentdata_meta_data_meta_data_id_seq OWNED BY public.xnat_qcassessmentdata_meta_data.meta_data_id;


--
-- Name: xnat_qcassessmentdata_scan; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_qcassessmentdata_scan (
    scanstatistics_xnat_abstractstatistics_id integer,
    id character varying(255) DEFAULT ''::character varying NOT NULL,
    qcassessmentdata_scan_info integer,
    xnat_qcassessmentdata_scan_id integer NOT NULL,
    scans_scan_xnat_qcassessmentdat_id character varying(255)
);


ALTER TABLE public.xnat_qcassessmentdata_scan OWNER TO xnat;

--
-- Name: xnat_qcassessmentdata_scan_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_qcassessmentdata_scan_history (
    change_user integer,
    id character varying(255),
    qcassessmentdata_scan_info integer,
    xnat_qcassessmentdata_scan_id integer,
    scans_scan_xnat_qcassessmentdat_id character varying(255),
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    xft_version integer,
    change_date timestamp without time zone,
    scanstatistics_xnat_abstractstatistics_id integer,
    new_row_xnat_qcassessmentdata_scan_id integer
);


ALTER TABLE public.xnat_qcassessmentdata_scan_history OWNER TO xnat;

--
-- Name: xnat_qcassessmentdata_scan_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_qcassessmentdata_scan_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_qcassessmentdata_scan_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_qcassessmentdata_scan_history_history_id_seq OWNED BY public.xnat_qcassessmentdata_scan_history.history_id;


--
-- Name: xnat_qcassessmentdata_scan_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_qcassessmentdata_scan_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_qcassessmentdata_scan_meta_data OWNER TO xnat;

--
-- Name: xnat_qcassessmentdata_scan_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_qcassessmentdata_scan_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_qcassessmentdata_scan_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_qcassessmentdata_scan_meta_data_meta_data_id_seq OWNED BY public.xnat_qcassessmentdata_scan_meta_data.meta_data_id;


--
-- Name: xnat_qcassessmentdata_scan_slice; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_qcassessmentdata_scan_slice (
    slicestatistics_xnat_abstractstatistics_id integer,
    number character varying(255),
    qcassessmentdata_scan_slice_info integer,
    xnat_qcassessmentdata_scan_slice_id integer NOT NULL,
    sliceqc_slice_xnat_qcassessment_xnat_qcassessmentdata_scan_id integer
);


ALTER TABLE public.xnat_qcassessmentdata_scan_slice OWNER TO xnat;

--
-- Name: xnat_qcassessmentdata_scan_sl_xnat_qcassessmentdata_scan_sl_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_qcassessmentdata_scan_sl_xnat_qcassessmentdata_scan_sl_seq OWNER TO xnat;

--
-- Name: xnat_qcassessmentdata_scan_sl_xnat_qcassessmentdata_scan_sl_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_qcassessmentdata_scan_sl_xnat_qcassessmentdata_scan_sl_seq OWNED BY public.xnat_qcassessmentdata_scan_slice.xnat_qcassessmentdata_scan_slice_id;


--
-- Name: xnat_qcassessmentdata_scan_slice_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_qcassessmentdata_scan_slice_history (
    xnat_qcassessmentdata_scan_slice_id integer,
    change_user integer,
    previous_change_date timestamp without time zone,
    number character varying(255),
    slicestatistics_xnat_abstractstatistics_id integer,
    qcassessmentdata_scan_slice_info integer,
    history_id integer NOT NULL,
    sliceqc_slice_xnat_qcassessment_xnat_qcassessmentdata_scan_id integer,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_qcassessmentdata_scan_slice_id integer
);


ALTER TABLE public.xnat_qcassessmentdata_scan_slice_history OWNER TO xnat;

--
-- Name: xnat_qcassessmentdata_scan_slice_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_qcassessmentdata_scan_slice_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_qcassessmentdata_scan_slice_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_qcassessmentdata_scan_slice_history_history_id_seq OWNED BY public.xnat_qcassessmentdata_scan_slice_history.history_id;


--
-- Name: xnat_qcassessmentdata_scan_slice_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_qcassessmentdata_scan_slice_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_qcassessmentdata_scan_slice_meta_data OWNER TO xnat;

--
-- Name: xnat_qcassessmentdata_scan_slice_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_qcassessmentdata_scan_slice_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_qcassessmentdata_scan_slice_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_qcassessmentdata_scan_slice_meta_data_meta_data_id_seq OWNED BY public.xnat_qcassessmentdata_scan_slice_meta_data.meta_data_id;


--
-- Name: xnat_qcassessmentdata_scan_xnat_qcassessmentdata_scan_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_qcassessmentdata_scan_xnat_qcassessmentdata_scan_id_seq OWNER TO xnat;

--
-- Name: xnat_qcassessmentdata_scan_xnat_qcassessmentdata_scan_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_qcassessmentdata_scan_xnat_qcassessmentdata_scan_id_seq OWNED BY public.xnat_qcassessmentdata_scan.xnat_qcassessmentdata_scan_id;


--
-- Name: xnat_qcmanualassessordata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_qcmanualassessordata_history (
    resolvable character varying(255),
    change_user integer,
    id character varying(255),
    stereotacticmarker character varying(255),
    rescan character varying(255),
    qcmanualassessordata_info integer,
    previous_change_date timestamp without time zone,
    comments text,
    history_id integer NOT NULL,
    retrain character varying(255),
    pass character varying(255),
    incidentalfindings text,
    rater character varying(255),
    xft_version integer,
    change_date timestamp without time zone,
    payable character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_qcmanualassessordata_history OWNER TO xnat;

--
-- Name: xnat_qcmanualassessordata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_qcmanualassessordata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_qcmanualassessordata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_qcmanualassessordata_history_history_id_seq OWNED BY public.xnat_qcmanualassessordata_history.history_id;


--
-- Name: xnat_qcmanualassessordata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_qcmanualassessordata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_qcmanualassessordata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_qcmanualassessordata_meta_data_meta_data_id_seq OWNED BY public.xnat_qcmanualassessordata_meta_data.meta_data_id;


--
-- Name: xnat_qcscandata; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_qcscandata (
    imagescan_id character varying(255),
    rater character varying(255),
    coverage character varying(255),
    motion character varying(255),
    otherimageartifacts text,
    comments text,
    pass character varying(255),
    rating character varying(255),
    rating_scale character varying(255),
    extension integer,
    qcscandata_info integer,
    xnat_qcscandata_id integer NOT NULL,
    scans_scan_xnat_qcmanualassesso_id character varying(255)
);


ALTER TABLE public.xnat_qcscandata OWNER TO xnat;

--
-- Name: xnat_qcscandata_field; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_qcscandata_field (
    field character varying(255),
    name character varying(255),
    qcscandata_field_info integer,
    xnat_qcscandata_field_id integer NOT NULL,
    fields_field_xnat_qcscandata_xnat_qcscandata_id integer
);


ALTER TABLE public.xnat_qcscandata_field OWNER TO xnat;

--
-- Name: xnat_qcscandata_field_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_qcscandata_field_history (
    change_user integer,
    name character varying(255),
    xnat_qcscandata_field_id integer,
    previous_change_date timestamp without time zone,
    qcscandata_field_info integer,
    fields_field_xnat_qcscandata_xnat_qcscandata_id integer,
    history_id integer NOT NULL,
    field character varying(255),
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_qcscandata_field_id integer
);


ALTER TABLE public.xnat_qcscandata_field_history OWNER TO xnat;

--
-- Name: xnat_qcscandata_field_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_qcscandata_field_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_qcscandata_field_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_qcscandata_field_history_history_id_seq OWNED BY public.xnat_qcscandata_field_history.history_id;


--
-- Name: xnat_qcscandata_field_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_qcscandata_field_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_qcscandata_field_meta_data OWNER TO xnat;

--
-- Name: xnat_qcscandata_field_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_qcscandata_field_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_qcscandata_field_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_qcscandata_field_meta_data_meta_data_id_seq OWNED BY public.xnat_qcscandata_field_meta_data.meta_data_id;


--
-- Name: xnat_qcscandata_field_xnat_qcscandata_field_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_qcscandata_field_xnat_qcscandata_field_id_seq OWNER TO xnat;

--
-- Name: xnat_qcscandata_field_xnat_qcscandata_field_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_qcscandata_field_xnat_qcscandata_field_id_seq OWNED BY public.xnat_qcscandata_field.xnat_qcscandata_field_id;


--
-- Name: xnat_qcscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_qcscandata_history (
    pass character varying(255),
    scans_scan_xnat_qcmanualassesso_id character varying(255),
    coverage character varying(255),
    imagescan_id character varying(255),
    qcscandata_info integer,
    comments text,
    change_date timestamp without time zone,
    rating character varying(255),
    change_user integer,
    xft_version integer,
    rating_scale character varying(255),
    xnat_qcscandata_id integer,
    motion character varying(255),
    history_id integer NOT NULL,
    otherimageartifacts text,
    previous_change_date timestamp without time zone,
    rater character varying(255),
    extension integer,
    new_row_xnat_qcscandata_id integer
);


ALTER TABLE public.xnat_qcscandata_history OWNER TO xnat;

--
-- Name: xnat_qcscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_qcscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_qcscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_qcscandata_history_history_id_seq OWNED BY public.xnat_qcscandata_history.history_id;


--
-- Name: xnat_qcscandata_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_qcscandata_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_qcscandata_meta_data OWNER TO xnat;

--
-- Name: xnat_qcscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_qcscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_qcscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_qcscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_qcscandata_meta_data.meta_data_id;


--
-- Name: xnat_qcscandata_xnat_qcscandata_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_qcscandata_xnat_qcscandata_id_seq OWNER TO xnat;

--
-- Name: xnat_qcscandata_xnat_qcscandata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_qcscandata_xnat_qcscandata_id_seq OWNED BY public.xnat_qcscandata.xnat_qcscandata_id;


--
-- Name: xnat_reconstructedimagedata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_reconstructedimagedata_history (
    change_user integer,
    id character varying(255),
    basescantype character varying(255),
    previous_change_date timestamp without time zone,
    reconstructedimagedata_info integer,
    image_session_id character varying(255),
    type character varying(255),
    history_id integer NOT NULL,
    xnat_reconstructedimagedata_id integer,
    xft_version integer,
    change_date timestamp without time zone,
    provenance_prov_process_id integer,
    new_row_xnat_reconstructedimagedata_id integer
);


ALTER TABLE public.xnat_reconstructedimagedata_history OWNER TO xnat;

--
-- Name: xnat_reconstructedimagedata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_reconstructedimagedata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_reconstructedimagedata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_reconstructedimagedata_history_history_id_seq OWNED BY public.xnat_reconstructedimagedata_history.history_id;


--
-- Name: xnat_reconstructedimagedata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_reconstructedimagedata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_reconstructedimagedata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_reconstructedimagedata_meta_data_meta_data_id_seq OWNED BY public.xnat_reconstructedimagedata_meta_data.meta_data_id;


--
-- Name: xnat_reconstructedimagedata_scanid; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_reconstructedimagedata_scanid (
    scanid character varying(255),
    reconstructedimagedata_scanid_info integer,
    xnat_reconstructedimagedata_scanid_id integer NOT NULL,
    inscans_scanid_xnat_reconstruct_xnat_reconstructedimagedata_id integer
);


ALTER TABLE public.xnat_reconstructedimagedata_scanid OWNER TO xnat;

--
-- Name: xnat_reconstructedimagedata_s_xnat_reconstructedimagedata_s_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_reconstructedimagedata_s_xnat_reconstructedimagedata_s_seq OWNER TO xnat;

--
-- Name: xnat_reconstructedimagedata_s_xnat_reconstructedimagedata_s_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_reconstructedimagedata_s_xnat_reconstructedimagedata_s_seq OWNED BY public.xnat_reconstructedimagedata_scanid.xnat_reconstructedimagedata_scanid_id;


--
-- Name: xnat_reconstructedimagedata_scanid_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_reconstructedimagedata_scanid_history (
    change_user integer,
    xnat_reconstructedimagedata_scanid_id integer,
    previous_change_date timestamp without time zone,
    scanid character varying(255),
    inscans_scanid_xnat_reconstruct_xnat_reconstructedimagedata_id integer,
    reconstructedimagedata_scanid_info integer,
    history_id integer NOT NULL,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_reconstructedimagedata_scanid_id integer
);


ALTER TABLE public.xnat_reconstructedimagedata_scanid_history OWNER TO xnat;

--
-- Name: xnat_reconstructedimagedata_scanid_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_reconstructedimagedata_scanid_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_reconstructedimagedata_scanid_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_reconstructedimagedata_scanid_history_history_id_seq OWNED BY public.xnat_reconstructedimagedata_scanid_history.history_id;


--
-- Name: xnat_reconstructedimagedata_scanid_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_reconstructedimagedata_scanid_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_reconstructedimagedata_scanid_meta_data OWNER TO xnat;

--
-- Name: xnat_reconstructedimagedata_scanid_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_reconstructedimagedata_scanid_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_reconstructedimagedata_scanid_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_reconstructedimagedata_scanid_meta_data_meta_data_id_seq OWNED BY public.xnat_reconstructedimagedata_scanid_meta_data.meta_data_id;


--
-- Name: xnat_reconstructedimagedata_xnat_reconstructedimagedata_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_reconstructedimagedata_xnat_reconstructedimagedata_id_seq OWNER TO xnat;

--
-- Name: xnat_reconstructedimagedata_xnat_reconstructedimagedata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_reconstructedimagedata_xnat_reconstructedimagedata_id_seq OWNED BY public.xnat_reconstructedimagedata.xnat_reconstructedimagedata_id;


--
-- Name: xnat_regionresource_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_regionresource_history (
    hemisphere character varying(255),
    name character varying(255),
    creator_firstname character varying(255),
    change_user integer,
    session_id character varying(255),
    file_xnat_abstractresource_id integer,
    regionresource_info integer,
    creator_lastname character varying(255),
    previous_change_date timestamp without time zone,
    baseimage_xnat_abstractresource_id integer,
    xnat_regionresource_id integer,
    history_id integer NOT NULL,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_regionresource_id integer
);


ALTER TABLE public.xnat_regionresource_history OWNER TO xnat;

--
-- Name: xnat_regionresource_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_regionresource_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_regionresource_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_regionresource_history_history_id_seq OWNED BY public.xnat_regionresource_history.history_id;


--
-- Name: xnat_regionresource_label; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_regionresource_label (
    label character varying(255),
    id integer DEFAULT 0 NOT NULL,
    hemisphere character varying(255) DEFAULT ''::character varying NOT NULL,
    regionresource_label_info integer,
    xnat_regionresource_label_id integer NOT NULL,
    subregionlabels_label_xnat_regi_xnat_regionresource_id integer
);


ALTER TABLE public.xnat_regionresource_label OWNER TO xnat;

--
-- Name: xnat_regionresource_label_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_regionresource_label_history (
    hemisphere character varying(255),
    regionresource_label_info integer,
    change_user integer,
    id integer,
    previous_change_date timestamp without time zone,
    xnat_regionresource_label_id integer,
    history_id integer NOT NULL,
    subregionlabels_label_xnat_regi_xnat_regionresource_id integer,
    label character varying(255),
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_regionresource_label_id integer
);


ALTER TABLE public.xnat_regionresource_label_history OWNER TO xnat;

--
-- Name: xnat_regionresource_label_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_regionresource_label_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_regionresource_label_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_regionresource_label_history_history_id_seq OWNED BY public.xnat_regionresource_label_history.history_id;


--
-- Name: xnat_regionresource_label_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_regionresource_label_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_regionresource_label_meta_data OWNER TO xnat;

--
-- Name: xnat_regionresource_label_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_regionresource_label_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_regionresource_label_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_regionresource_label_meta_data_meta_data_id_seq OWNED BY public.xnat_regionresource_label_meta_data.meta_data_id;


--
-- Name: xnat_regionresource_label_xnat_regionresource_label_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_regionresource_label_xnat_regionresource_label_id_seq OWNER TO xnat;

--
-- Name: xnat_regionresource_label_xnat_regionresource_label_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_regionresource_label_xnat_regionresource_label_id_seq OWNED BY public.xnat_regionresource_label.xnat_regionresource_label_id;


--
-- Name: xnat_regionresource_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_regionresource_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_regionresource_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_regionresource_meta_data_meta_data_id_seq OWNED BY public.xnat_regionresource_meta_data.meta_data_id;


--
-- Name: xnat_regionresource_xnat_regionresource_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_regionresource_xnat_regionresource_id_seq OWNER TO xnat;

--
-- Name: xnat_regionresource_xnat_regionresource_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_regionresource_xnat_regionresource_id_seq OWNED BY public.xnat_regionresource.xnat_regionresource_id;


--
-- Name: xnat_resource_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_resource_history (
    change_user integer,
    resource_info integer,
    cachepath character varying(255),
    uri character varying(255),
    previous_change_date timestamp without time zone,
    content character varying(255),
    history_id integer NOT NULL,
    format character varying(255),
    description character varying(255),
    xnat_abstractresource_id integer,
    xft_version integer,
    change_date timestamp without time zone,
    provenance_prov_process_id integer,
    new_row_xnat_abstractresource_id integer
);


ALTER TABLE public.xnat_resource_history OWNER TO xnat;

--
-- Name: xnat_resource_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_resource_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_resource_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_resource_history_history_id_seq OWNED BY public.xnat_resource_history.history_id;


--
-- Name: xnat_resource_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_resource_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_resource_meta_data OWNER TO xnat;

--
-- Name: xnat_resource_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_resource_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_resource_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_resource_meta_data_meta_data_id_seq OWNED BY public.xnat_resource_meta_data.meta_data_id;


--
-- Name: xnat_resourcecatalog_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_resourcecatalog_history (
    xnat_abstractresource_id integer,
    xft_version integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    resourcecatalog_info integer,
    new_row_xnat_abstractresource_id integer
);


ALTER TABLE public.xnat_resourcecatalog_history OWNER TO xnat;

--
-- Name: xnat_resourcecatalog_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_resourcecatalog_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_resourcecatalog_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_resourcecatalog_history_history_id_seq OWNED BY public.xnat_resourcecatalog_history.history_id;


--
-- Name: xnat_resourcecatalog_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_resourcecatalog_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_resourcecatalog_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_resourcecatalog_meta_data_meta_data_id_seq OWNED BY public.xnat_resourcecatalog_meta_data.meta_data_id;


--
-- Name: xnat_resourceseries; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_resourceseries (
    xnat_abstractresource_id integer DEFAULT 0 NOT NULL,
    path character varying(255) DEFAULT ''::character varying NOT NULL,
    pattern character varying(255) DEFAULT ''::character varying NOT NULL,
    count integer,
    name character varying(255),
    format character varying(255),
    description character varying(255),
    content character varying(255),
    cachepath character varying(255),
    resourceseries_info integer
);


ALTER TABLE public.xnat_resourceseries OWNER TO xnat;

--
-- Name: xnat_resourceseries_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_resourceseries_history (
    name character varying(255),
    change_user integer,
    cachepath character varying(255),
    previous_change_date timestamp without time zone,
    count integer,
    content character varying(255),
    pattern character varying(255),
    resourceseries_info integer,
    history_id integer NOT NULL,
    format character varying(255),
    description character varying(255),
    xnat_abstractresource_id integer,
    xft_version integer,
    change_date timestamp without time zone,
    path character varying(255),
    new_row_xnat_abstractresource_id integer
);


ALTER TABLE public.xnat_resourceseries_history OWNER TO xnat;

--
-- Name: xnat_resourceseries_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_resourceseries_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_resourceseries_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_resourceseries_history_history_id_seq OWNED BY public.xnat_resourceseries_history.history_id;


--
-- Name: xnat_resourceseries_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_resourceseries_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_resourceseries_meta_data OWNER TO xnat;

--
-- Name: xnat_resourceseries_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_resourceseries_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_resourceseries_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_resourceseries_meta_data_meta_data_id_seq OWNED BY public.xnat_resourceseries_meta_data.meta_data_id;


--
-- Name: xnat_rfscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_rfscandata_history (
    xft_version integer,
    xnat_imagescandata_id integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    rfscandata_info integer,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_rfscandata_history OWNER TO xnat;

--
-- Name: xnat_rfscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_rfscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_rfscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_rfscandata_history_history_id_seq OWNED BY public.xnat_rfscandata_history.history_id;


--
-- Name: xnat_rfscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_rfscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_rfscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_rfscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_rfscandata_meta_data.meta_data_id;


--
-- Name: xnat_rfsessiondata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_rfsessiondata_history (
    xft_version integer,
    rfsessiondata_info integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    id character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_rfsessiondata_history OWNER TO xnat;

--
-- Name: xnat_rfsessiondata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_rfsessiondata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_rfsessiondata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_rfsessiondata_history_history_id_seq OWNED BY public.xnat_rfsessiondata_history.history_id;


--
-- Name: xnat_rfsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_rfsessiondata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_rfsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_rfsessiondata_meta_data_meta_data_id_seq OWNED BY public.xnat_rfsessiondata_meta_data.meta_data_id;


--
-- Name: xnat_rtimagescandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_rtimagescandata_history (
    rtimagescandata_info integer,
    xft_version integer,
    xnat_imagescandata_id integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_rtimagescandata_history OWNER TO xnat;

--
-- Name: xnat_rtimagescandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_rtimagescandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_rtimagescandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_rtimagescandata_history_history_id_seq OWNED BY public.xnat_rtimagescandata_history.history_id;


--
-- Name: xnat_rtimagescandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_rtimagescandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_rtimagescandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_rtimagescandata_meta_data_meta_data_id_seq OWNED BY public.xnat_rtimagescandata_meta_data.meta_data_id;


--
-- Name: xnat_rtsessiondata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_rtsessiondata_history (
    rtsessiondata_info integer,
    xft_version integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    id character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_rtsessiondata_history OWNER TO xnat;

--
-- Name: xnat_rtsessiondata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_rtsessiondata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_rtsessiondata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_rtsessiondata_history_history_id_seq OWNED BY public.xnat_rtsessiondata_history.history_id;


--
-- Name: xnat_rtsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_rtsessiondata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_rtsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_rtsessiondata_meta_data_meta_data_id_seq OWNED BY public.xnat_rtsessiondata_meta_data.meta_data_id;


--
-- Name: xnat_scscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_scscandata_history (
    xft_version integer,
    xnat_imagescandata_id integer,
    change_user integer,
    change_date timestamp without time zone,
    scscandata_info integer,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_scscandata_history OWNER TO xnat;

--
-- Name: xnat_scscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_scscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_scscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_scscandata_history_history_id_seq OWNED BY public.xnat_scscandata_history.history_id;


--
-- Name: xnat_scscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_scscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_scscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_scscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_scscandata_meta_data.meta_data_id;


--
-- Name: xnat_segscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_segscandata_history (
    xft_version integer,
    xnat_imagescandata_id integer,
    change_user integer,
    change_date timestamp without time zone,
    segscandata_info integer,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_segscandata_history OWNER TO xnat;

--
-- Name: xnat_segscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_segscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_segscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_segscandata_history_history_id_seq OWNED BY public.xnat_segscandata_history.history_id;


--
-- Name: xnat_segscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_segscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_segscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_segscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_segscandata_meta_data.meta_data_id;


--
-- Name: xnat_smscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_smscandata_history (
    smscandata_info integer,
    xft_version integer,
    xnat_imagescandata_id integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_smscandata_history OWNER TO xnat;

--
-- Name: xnat_smscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_smscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_smscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_smscandata_history_history_id_seq OWNED BY public.xnat_smscandata_history.history_id;


--
-- Name: xnat_smscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_smscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_smscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_smscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_smscandata_meta_data.meta_data_id;


--
-- Name: xnat_smsessiondata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_smsessiondata_history (
    xft_version integer,
    smsessiondata_info integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    id character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_smsessiondata_history OWNER TO xnat;

--
-- Name: xnat_smsessiondata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_smsessiondata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_smsessiondata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_smsessiondata_history_history_id_seq OWNED BY public.xnat_smsessiondata_history.history_id;


--
-- Name: xnat_smsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_smsessiondata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_smsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_smsessiondata_meta_data_meta_data_id_seq OWNED BY public.xnat_smsessiondata_meta_data.meta_data_id;


--
-- Name: xnat_srscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_srscandata_history (
    srscandata_info integer,
    xft_version integer,
    xnat_imagescandata_id integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_srscandata_history OWNER TO xnat;

--
-- Name: xnat_srscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_srscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_srscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_srscandata_history_history_id_seq OWNED BY public.xnat_srscandata_history.history_id;


--
-- Name: xnat_srscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_srscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_srscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_srscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_srscandata_meta_data.meta_data_id;


--
-- Name: xnat_srsessiondata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_srsessiondata_history (
    xft_version integer,
    change_user integer,
    change_date timestamp without time zone,
    srsessiondata_info integer,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    id character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_srsessiondata_history OWNER TO xnat;

--
-- Name: xnat_srsessiondata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_srsessiondata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_srsessiondata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_srsessiondata_history_history_id_seq OWNED BY public.xnat_srsessiondata_history.history_id;


--
-- Name: xnat_srsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_srsessiondata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_srsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_srsessiondata_meta_data_meta_data_id_seq OWNED BY public.xnat_srsessiondata_meta_data.meta_data_id;


--
-- Name: xnat_statisticsdata; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_statisticsdata (
    xnat_abstractstatistics_id integer DEFAULT 0 NOT NULL,
    mean double precision,
    snr double precision,
    min double precision,
    max double precision,
    stddev double precision,
    no_of_voxels integer,
    statisticsdata_info integer
);


ALTER TABLE public.xnat_statisticsdata OWNER TO xnat;

--
-- Name: xnat_statisticsdata_addfield; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_statisticsdata_addfield (
    addfield character varying(255),
    name character varying(255),
    statisticsdata_addfield_info integer,
    xnat_statisticsdata_addfield_id integer NOT NULL,
    xnat_statisticsdata_xnat_abstractstatistics_id integer
);


ALTER TABLE public.xnat_statisticsdata_addfield OWNER TO xnat;

--
-- Name: xnat_statisticsdata_addfield_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_statisticsdata_addfield_history (
    xnat_statisticsdata_xnat_abstractstatistics_id integer,
    change_user integer,
    name character varying(255),
    statisticsdata_addfield_info integer,
    addfield character varying(255),
    previous_change_date timestamp without time zone,
    xnat_statisticsdata_addfield_id integer,
    history_id integer NOT NULL,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_statisticsdata_addfield_id integer
);


ALTER TABLE public.xnat_statisticsdata_addfield_history OWNER TO xnat;

--
-- Name: xnat_statisticsdata_addfield_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_statisticsdata_addfield_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_statisticsdata_addfield_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_statisticsdata_addfield_history_history_id_seq OWNED BY public.xnat_statisticsdata_addfield_history.history_id;


--
-- Name: xnat_statisticsdata_addfield_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_statisticsdata_addfield_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_statisticsdata_addfield_meta_data OWNER TO xnat;

--
-- Name: xnat_statisticsdata_addfield_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_statisticsdata_addfield_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_statisticsdata_addfield_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_statisticsdata_addfield_meta_data_meta_data_id_seq OWNED BY public.xnat_statisticsdata_addfield_meta_data.meta_data_id;


--
-- Name: xnat_statisticsdata_addfield_xnat_statisticsdata_addfield_i_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_statisticsdata_addfield_xnat_statisticsdata_addfield_i_seq OWNER TO xnat;

--
-- Name: xnat_statisticsdata_addfield_xnat_statisticsdata_addfield_i_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_statisticsdata_addfield_xnat_statisticsdata_addfield_i_seq OWNED BY public.xnat_statisticsdata_addfield.xnat_statisticsdata_addfield_id;


--
-- Name: xnat_statisticsdata_additionalstatistics; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_statisticsdata_additionalstatistics (
    additionalstatistics double precision,
    name character varying(255),
    statisticsdata_additionalstatistics_info integer,
    xnat_statisticsdata_additionalstatistics_id integer NOT NULL,
    xnat_statisticsdata_xnat_abstractstatistics_id integer
);


ALTER TABLE public.xnat_statisticsdata_additionalstatistics OWNER TO xnat;

--
-- Name: xnat_statisticsdata_additiona_xnat_statisticsdata_additiona_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_statisticsdata_additiona_xnat_statisticsdata_additiona_seq OWNER TO xnat;

--
-- Name: xnat_statisticsdata_additiona_xnat_statisticsdata_additiona_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_statisticsdata_additiona_xnat_statisticsdata_additiona_seq OWNED BY public.xnat_statisticsdata_additionalstatistics.xnat_statisticsdata_additionalstatistics_id;


--
-- Name: xnat_statisticsdata_additionalstatistics_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_statisticsdata_additionalstatistics_history (
    xnat_statisticsdata_xnat_abstractstatistics_id integer,
    change_user integer,
    name character varying(255),
    statisticsdata_additionalstatistics_info integer,
    previous_change_date timestamp without time zone,
    xnat_statisticsdata_additionalstatistics_id integer,
    additionalstatistics double precision,
    history_id integer NOT NULL,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_statisticsdata_additionalstatistics_id integer
);


ALTER TABLE public.xnat_statisticsdata_additionalstatistics_history OWNER TO xnat;

--
-- Name: xnat_statisticsdata_additionalstatistics_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_statisticsdata_additionalstatistics_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_statisticsdata_additionalstatistics_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_statisticsdata_additionalstatistics_history_history_id_seq OWNED BY public.xnat_statisticsdata_additionalstatistics_history.history_id;


--
-- Name: xnat_statisticsdata_additionalstatistics_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_statisticsdata_additionalstatistics_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_statisticsdata_additionalstatistics_meta_data OWNER TO xnat;

--
-- Name: xnat_statisticsdata_additionalstatistics_meta__meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_statisticsdata_additionalstatistics_meta__meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_statisticsdata_additionalstatistics_meta__meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_statisticsdata_additionalstatistics_meta__meta_data_id_seq OWNED BY public.xnat_statisticsdata_additionalstatistics_meta_data.meta_data_id;


--
-- Name: xnat_statisticsdata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_statisticsdata_history (
    change_user integer,
    statisticsdata_info integer,
    no_of_voxels integer,
    previous_change_date timestamp without time zone,
    min double precision,
    stddev double precision,
    history_id integer NOT NULL,
    max double precision,
    snr double precision,
    xnat_abstractstatistics_id integer,
    xft_version integer,
    change_date timestamp without time zone,
    mean double precision,
    new_row_xnat_abstractstatistics_id integer
);


ALTER TABLE public.xnat_statisticsdata_history OWNER TO xnat;

--
-- Name: xnat_statisticsdata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_statisticsdata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_statisticsdata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_statisticsdata_history_history_id_seq OWNED BY public.xnat_statisticsdata_history.history_id;


--
-- Name: xnat_statisticsdata_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_statisticsdata_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_statisticsdata_meta_data OWNER TO xnat;

--
-- Name: xnat_statisticsdata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_statisticsdata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_statisticsdata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_statisticsdata_meta_data_meta_data_id_seq OWNED BY public.xnat_statisticsdata_meta_data.meta_data_id;


--
-- Name: xnat_studyprotocol; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_studyprotocol (
    xnat_abstractprotocol_id integer DEFAULT 0 NOT NULL,
    studyprotocol_info integer
);


ALTER TABLE public.xnat_studyprotocol OWNER TO xnat;

--
-- Name: xnat_studyprotocol_condition; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_studyprotocol_condition (
    id character varying(255),
    name character varying(255),
    description character varying(255),
    studyprotocol_condition_info integer,
    xnat_studyprotocol_condition_id integer NOT NULL,
    acqconditions_condition_xnat_st_xnat_abstractprotocol_id integer
);


ALTER TABLE public.xnat_studyprotocol_condition OWNER TO xnat;

--
-- Name: xnat_studyprotocol_condition_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_studyprotocol_condition_history (
    change_user integer,
    name character varying(255),
    xnat_studyprotocol_condition_id integer,
    id character varying(255),
    previous_change_date timestamp without time zone,
    studyprotocol_condition_info integer,
    history_id integer NOT NULL,
    description character varying(255),
    acqconditions_condition_xnat_st_xnat_abstractprotocol_id integer,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_studyprotocol_condition_id integer
);


ALTER TABLE public.xnat_studyprotocol_condition_history OWNER TO xnat;

--
-- Name: xnat_studyprotocol_condition_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_studyprotocol_condition_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_studyprotocol_condition_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_studyprotocol_condition_history_history_id_seq OWNED BY public.xnat_studyprotocol_condition_history.history_id;


--
-- Name: xnat_studyprotocol_condition_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_studyprotocol_condition_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_studyprotocol_condition_meta_data OWNER TO xnat;

--
-- Name: xnat_studyprotocol_condition_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_studyprotocol_condition_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_studyprotocol_condition_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_studyprotocol_condition_meta_data_meta_data_id_seq OWNED BY public.xnat_studyprotocol_condition_meta_data.meta_data_id;


--
-- Name: xnat_studyprotocol_condition_xnat_studyprotocol_condition_i_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_studyprotocol_condition_xnat_studyprotocol_condition_i_seq OWNER TO xnat;

--
-- Name: xnat_studyprotocol_condition_xnat_studyprotocol_condition_i_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_studyprotocol_condition_xnat_studyprotocol_condition_i_seq OWNED BY public.xnat_studyprotocol_condition.xnat_studyprotocol_condition_id;


--
-- Name: xnat_studyprotocol_group; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_studyprotocol_group (
    id character varying(255),
    name character varying(255),
    description character varying(255),
    studyprotocol_group_info integer,
    xnat_studyprotocol_group_id integer NOT NULL,
    subjectgroups_group_xnat_studyp_xnat_abstractprotocol_id integer
);


ALTER TABLE public.xnat_studyprotocol_group OWNER TO xnat;

--
-- Name: xnat_studyprotocol_group_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_studyprotocol_group_history (
    change_user integer,
    name character varying(255),
    id character varying(255),
    previous_change_date timestamp without time zone,
    studyprotocol_group_info integer,
    subjectgroups_group_xnat_studyp_xnat_abstractprotocol_id integer,
    history_id integer NOT NULL,
    xnat_studyprotocol_group_id integer,
    description character varying(255),
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_studyprotocol_group_id integer
);


ALTER TABLE public.xnat_studyprotocol_group_history OWNER TO xnat;

--
-- Name: xnat_studyprotocol_group_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_studyprotocol_group_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_studyprotocol_group_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_studyprotocol_group_history_history_id_seq OWNED BY public.xnat_studyprotocol_group_history.history_id;


--
-- Name: xnat_studyprotocol_group_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_studyprotocol_group_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_studyprotocol_group_meta_data OWNER TO xnat;

--
-- Name: xnat_studyprotocol_group_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_studyprotocol_group_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_studyprotocol_group_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_studyprotocol_group_meta_data_meta_data_id_seq OWNED BY public.xnat_studyprotocol_group_meta_data.meta_data_id;


--
-- Name: xnat_studyprotocol_group_xnat_studyprotocol_group_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_studyprotocol_group_xnat_studyprotocol_group_id_seq OWNER TO xnat;

--
-- Name: xnat_studyprotocol_group_xnat_studyprotocol_group_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_studyprotocol_group_xnat_studyprotocol_group_id_seq OWNED BY public.xnat_studyprotocol_group.xnat_studyprotocol_group_id;


--
-- Name: xnat_studyprotocol_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_studyprotocol_history (
    xnat_abstractprotocol_id integer,
    studyprotocol_info integer,
    xft_version integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    new_row_xnat_abstractprotocol_id integer
);


ALTER TABLE public.xnat_studyprotocol_history OWNER TO xnat;

--
-- Name: xnat_studyprotocol_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_studyprotocol_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_studyprotocol_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_studyprotocol_history_history_id_seq OWNED BY public.xnat_studyprotocol_history.history_id;


--
-- Name: xnat_studyprotocol_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_studyprotocol_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_studyprotocol_meta_data OWNER TO xnat;

--
-- Name: xnat_studyprotocol_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_studyprotocol_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_studyprotocol_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_studyprotocol_meta_data_meta_data_id_seq OWNED BY public.xnat_studyprotocol_meta_data.meta_data_id;


--
-- Name: xnat_studyprotocol_session; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_studyprotocol_session (
    id character varying(255),
    name character varying(255),
    description character varying(255),
    studyprotocol_session_info integer,
    xnat_studyprotocol_session_id integer NOT NULL,
    imagesessiontypes_session_xnat__xnat_abstractprotocol_id integer
);


ALTER TABLE public.xnat_studyprotocol_session OWNER TO xnat;

--
-- Name: xnat_studyprotocol_session_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_studyprotocol_session_history (
    change_user integer,
    name character varying(255),
    id character varying(255),
    previous_change_date timestamp without time zone,
    imagesessiontypes_session_xnat__xnat_abstractprotocol_id integer,
    xnat_studyprotocol_session_id integer,
    history_id integer NOT NULL,
    studyprotocol_session_info integer,
    description character varying(255),
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_studyprotocol_session_id integer
);


ALTER TABLE public.xnat_studyprotocol_session_history OWNER TO xnat;

--
-- Name: xnat_studyprotocol_session_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_studyprotocol_session_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_studyprotocol_session_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_studyprotocol_session_history_history_id_seq OWNED BY public.xnat_studyprotocol_session_history.history_id;


--
-- Name: xnat_studyprotocol_session_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_studyprotocol_session_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_studyprotocol_session_meta_data OWNER TO xnat;

--
-- Name: xnat_studyprotocol_session_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_studyprotocol_session_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_studyprotocol_session_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_studyprotocol_session_meta_data_meta_data_id_seq OWNED BY public.xnat_studyprotocol_session_meta_data.meta_data_id;


--
-- Name: xnat_studyprotocol_session_xnat_studyprotocol_session_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_studyprotocol_session_xnat_studyprotocol_session_id_seq OWNER TO xnat;

--
-- Name: xnat_studyprotocol_session_xnat_studyprotocol_session_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_studyprotocol_session_xnat_studyprotocol_session_id_seq OWNED BY public.xnat_studyprotocol_session.xnat_studyprotocol_session_id;


--
-- Name: xnat_studyprotocol_variable; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_studyprotocol_variable (
    id character varying(255),
    name character varying(255),
    description character varying(255),
    studyprotocol_variable_info integer,
    xnat_studyprotocol_variable_id integer NOT NULL,
    subjectvariables_variable_xnat__xnat_abstractprotocol_id integer
);


ALTER TABLE public.xnat_studyprotocol_variable OWNER TO xnat;

--
-- Name: xnat_studyprotocol_variable_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_studyprotocol_variable_history (
    subjectvariables_variable_xnat__xnat_abstractprotocol_id integer,
    xnat_studyprotocol_variable_id integer,
    change_user integer,
    name character varying(255),
    id character varying(255),
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    studyprotocol_variable_info integer,
    description character varying(255),
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_studyprotocol_variable_id integer
);


ALTER TABLE public.xnat_studyprotocol_variable_history OWNER TO xnat;

--
-- Name: xnat_studyprotocol_variable_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_studyprotocol_variable_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_studyprotocol_variable_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_studyprotocol_variable_history_history_id_seq OWNED BY public.xnat_studyprotocol_variable_history.history_id;


--
-- Name: xnat_studyprotocol_variable_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_studyprotocol_variable_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_studyprotocol_variable_meta_data OWNER TO xnat;

--
-- Name: xnat_studyprotocol_variable_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_studyprotocol_variable_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_studyprotocol_variable_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_studyprotocol_variable_meta_data_meta_data_id_seq OWNED BY public.xnat_studyprotocol_variable_meta_data.meta_data_id;


--
-- Name: xnat_studyprotocol_variable_xnat_studyprotocol_variable_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_studyprotocol_variable_xnat_studyprotocol_variable_id_seq OWNER TO xnat;

--
-- Name: xnat_studyprotocol_variable_xnat_studyprotocol_variable_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_studyprotocol_variable_xnat_studyprotocol_variable_id_seq OWNED BY public.xnat_studyprotocol_variable.xnat_studyprotocol_variable_id;


--
-- Name: xnat_subjectassessordata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_subjectassessordata_history (
    change_user integer,
    id character varying(255),
    previous_change_date timestamp without time zone,
    subject_id character varying(255),
    history_id integer NOT NULL,
    age double precision,
    subjectassessordata_info integer,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_subjectassessordata_history OWNER TO xnat;

--
-- Name: xnat_subjectassessordata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectassessordata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_subjectassessordata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectassessordata_history_history_id_seq OWNED BY public.xnat_subjectassessordata_history.history_id;


--
-- Name: xnat_subjectassessordata_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_subjectassessordata_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_subjectassessordata_meta_data OWNER TO xnat;

--
-- Name: xnat_subjectassessordata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectassessordata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_subjectassessordata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectassessordata_meta_data_meta_data_id_seq OWNED BY public.xnat_subjectassessordata_meta_data.meta_data_id;


--
-- Name: xnat_subjectdata_addid; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_subjectdata_addid (
    addid character varying(255),
    name character varying(255),
    subjectdata_addid_info integer,
    xnat_subjectdata_addid_id integer NOT NULL,
    xnat_subjectdata_id character varying(255)
);


ALTER TABLE public.xnat_subjectdata_addid OWNER TO xnat;

--
-- Name: xnat_subjectdata_addid_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_subjectdata_addid_history (
    change_user integer,
    name character varying(255),
    subjectdata_addid_info integer,
    previous_change_date timestamp without time zone,
    addid character varying(255),
    xnat_subjectdata_id character varying(255),
    xnat_subjectdata_addid_id integer,
    history_id integer NOT NULL,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_subjectdata_addid_id integer
);


ALTER TABLE public.xnat_subjectdata_addid_history OWNER TO xnat;

--
-- Name: xnat_subjectdata_addid_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectdata_addid_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_subjectdata_addid_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectdata_addid_history_history_id_seq OWNED BY public.xnat_subjectdata_addid_history.history_id;


--
-- Name: xnat_subjectdata_addid_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_subjectdata_addid_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_subjectdata_addid_meta_data OWNER TO xnat;

--
-- Name: xnat_subjectdata_addid_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectdata_addid_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_subjectdata_addid_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectdata_addid_meta_data_meta_data_id_seq OWNED BY public.xnat_subjectdata_addid_meta_data.meta_data_id;


--
-- Name: xnat_subjectdata_addid_xnat_subjectdata_addid_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectdata_addid_xnat_subjectdata_addid_id_seq OWNER TO xnat;

--
-- Name: xnat_subjectdata_addid_xnat_subjectdata_addid_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectdata_addid_xnat_subjectdata_addid_id_seq OWNED BY public.xnat_subjectdata_addid.xnat_subjectdata_addid_id;


--
-- Name: xnat_subjectdata_field; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_subjectdata_field (
    field character varying(255),
    name character varying(255),
    subjectdata_field_info integer,
    xnat_subjectdata_field_id integer NOT NULL,
    fields_field_xnat_subjectdata_id character varying(255)
);


ALTER TABLE public.xnat_subjectdata_field OWNER TO xnat;

--
-- Name: xnat_subjectdata_field_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_subjectdata_field_history (
    change_user integer,
    name character varying(255),
    subjectdata_field_info integer,
    previous_change_date timestamp without time zone,
    xnat_subjectdata_field_id integer,
    fields_field_xnat_subjectdata_id character varying(255),
    history_id integer NOT NULL,
    field character varying(255),
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_subjectdata_field_id integer
);


ALTER TABLE public.xnat_subjectdata_field_history OWNER TO xnat;

--
-- Name: xnat_subjectdata_field_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectdata_field_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_subjectdata_field_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectdata_field_history_history_id_seq OWNED BY public.xnat_subjectdata_field_history.history_id;


--
-- Name: xnat_subjectdata_field_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_subjectdata_field_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_subjectdata_field_meta_data OWNER TO xnat;

--
-- Name: xnat_subjectdata_field_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectdata_field_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_subjectdata_field_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectdata_field_meta_data_meta_data_id_seq OWNED BY public.xnat_subjectdata_field_meta_data.meta_data_id;


--
-- Name: xnat_subjectdata_field_xnat_subjectdata_field_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectdata_field_xnat_subjectdata_field_id_seq OWNER TO xnat;

--
-- Name: xnat_subjectdata_field_xnat_subjectdata_field_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectdata_field_xnat_subjectdata_field_id_seq OWNED BY public.xnat_subjectdata_field.xnat_subjectdata_field_id;


--
-- Name: xnat_subjectdata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_subjectdata_history (
    src character varying(255),
    _group character varying(255),
    demographics_xnat_abstractdemographicdata_id integer,
    change_user integer,
    id character varying(255),
    initials character varying(255),
    investigator_xnat_investigatordata_id integer,
    previous_change_date timestamp without time zone,
    metadata_xnat_abstractsubjectmetadata_id integer,
    history_id integer NOT NULL,
    label character varying(255),
    project character varying(255),
    xft_version integer,
    change_date timestamp without time zone,
    subjectdata_info integer,
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_subjectdata_history OWNER TO xnat;

--
-- Name: xnat_subjectdata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectdata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_subjectdata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectdata_history_history_id_seq OWNED BY public.xnat_subjectdata_history.history_id;


--
-- Name: xnat_subjectdata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectdata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_subjectdata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectdata_meta_data_meta_data_id_seq OWNED BY public.xnat_subjectdata_meta_data.meta_data_id;



--
-- Name: xnat_subjectdata_resource; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_subjectdata_resource (
    xnat_subjectdata_id character varying NOT NULL,
    xnat_abstractresource_xnat_abstractresource_id integer NOT NULL,
    xnat_subjectdata_resource_id integer NOT NULL
);


ALTER TABLE public.xnat_subjectdata_resource OWNER TO xnat;


--
-- Name: xnat_subjectdata_resource_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_subjectdata_resource_history (
    xnat_subjectdata_id character varying,
    xnat_abstractresource_xnat_abstractresource_id integer,
    xnat_subjectdata_resource_id integer,
    history_id integer NOT NULL
);


ALTER TABLE public.xnat_subjectdata_resource_history OWNER TO xnat;

--
-- Name: xnat_subjectdata_resource_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectdata_resource_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_subjectdata_resource_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectdata_resource_history_history_id_seq OWNED BY public.xnat_subjectdata_resource_history.history_id;


--
-- Name: xnat_subjectdata_resource_xnat_subjectdata_resource_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectdata_resource_xnat_subjectdata_resource_id_seq OWNER TO xnat;

--
-- Name: xnat_subjectdata_resource_xnat_subjectdata_resource_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectdata_resource_xnat_subjectdata_resource_id_seq OWNED BY public.xnat_subjectdata_resource.xnat_subjectdata_resource_id;


--
-- Name: xnat_subjectmetadata; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_subjectmetadata (
    xnat_abstractsubjectmetadata_id integer DEFAULT 0 NOT NULL,
    cohort character varying(255),
    subjectmetadata_info integer
);


ALTER TABLE public.xnat_subjectmetadata OWNER TO xnat;

--
-- Name: xnat_subjectmetadata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_subjectmetadata_history (
    cohort character varying(255),
    xnat_abstractsubjectmetadata_id integer,
    change_user integer,
    previous_change_date timestamp without time zone,
    subjectmetadata_info integer,
    history_id integer NOT NULL,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_abstractsubjectmetadata_id integer
);


ALTER TABLE public.xnat_subjectmetadata_history OWNER TO xnat;

--
-- Name: xnat_subjectmetadata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectmetadata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_subjectmetadata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectmetadata_history_history_id_seq OWNED BY public.xnat_subjectmetadata_history.history_id;


--
-- Name: xnat_subjectmetadata_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_subjectmetadata_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_subjectmetadata_meta_data OWNER TO xnat;

--
-- Name: xnat_subjectmetadata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectmetadata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_subjectmetadata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectmetadata_meta_data_meta_data_id_seq OWNED BY public.xnat_subjectmetadata_meta_data.meta_data_id;


--
-- Name: xnat_subjectvariablesdata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_subjectvariablesdata_history (
    xft_version integer,
    change_user integer,
    subjectvariablesdata_info integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    id character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_subjectvariablesdata_history OWNER TO xnat;

--
-- Name: xnat_subjectvariablesdata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectvariablesdata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_subjectvariablesdata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectvariablesdata_history_history_id_seq OWNED BY public.xnat_subjectvariablesdata_history.history_id;


--
-- Name: xnat_subjectvariablesdata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectvariablesdata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_subjectvariablesdata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectvariablesdata_meta_data_meta_data_id_seq OWNED BY public.xnat_subjectvariablesdata_meta_data.meta_data_id;


--
-- Name: xnat_subjectvariablesdata_variable; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_subjectvariablesdata_variable (
    variable character varying(255),
    name character varying(255),
    subjectvariablesdata_variable_info integer,
    xnat_subjectvariablesdata_variable_id integer NOT NULL,
    variables_variable_xnat_subject_id character varying(255)
);


ALTER TABLE public.xnat_subjectvariablesdata_variable OWNER TO xnat;

--
-- Name: xnat_subjectvariablesdata_var_xnat_subjectvariablesdata_var_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectvariablesdata_var_xnat_subjectvariablesdata_var_seq OWNER TO xnat;

--
-- Name: xnat_subjectvariablesdata_var_xnat_subjectvariablesdata_var_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectvariablesdata_var_xnat_subjectvariablesdata_var_seq OWNED BY public.xnat_subjectvariablesdata_variable.xnat_subjectvariablesdata_variable_id;


--
-- Name: xnat_subjectvariablesdata_variable_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_subjectvariablesdata_variable_history (
    change_user integer,
    name character varying(255),
    previous_change_date timestamp without time zone,
    variable character varying(255),
    subjectvariablesdata_variable_info integer,
    history_id integer NOT NULL,
    xnat_subjectvariablesdata_variable_id integer,
    variables_variable_xnat_subject_id character varying(255),
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_subjectvariablesdata_variable_id integer
);


ALTER TABLE public.xnat_subjectvariablesdata_variable_history OWNER TO xnat;

--
-- Name: xnat_subjectvariablesdata_variable_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectvariablesdata_variable_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_subjectvariablesdata_variable_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectvariablesdata_variable_history_history_id_seq OWNED BY public.xnat_subjectvariablesdata_variable_history.history_id;


--
-- Name: xnat_subjectvariablesdata_variable_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_subjectvariablesdata_variable_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_subjectvariablesdata_variable_meta_data OWNER TO xnat;

--
-- Name: xnat_subjectvariablesdata_variable_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_subjectvariablesdata_variable_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_subjectvariablesdata_variable_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_subjectvariablesdata_variable_meta_data_meta_data_id_seq OWNED BY public.xnat_subjectvariablesdata_variable_meta_data.meta_data_id;


--
-- Name: xnat_usscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_usscandata_history (
    xft_version integer,
    usscandata_info integer,
    xnat_imagescandata_id integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_usscandata_history OWNER TO xnat;

--
-- Name: xnat_usscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_usscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_usscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_usscandata_history_history_id_seq OWNED BY public.xnat_usscandata_history.history_id;


--
-- Name: xnat_usscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_usscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_usscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_usscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_usscandata_meta_data.meta_data_id;


--
-- Name: xnat_ussessiondata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_ussessiondata_history (
    xft_version integer,
    change_user integer,
    change_date timestamp without time zone,
    ussessiondata_info integer,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    id character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_ussessiondata_history OWNER TO xnat;

--
-- Name: xnat_ussessiondata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_ussessiondata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_ussessiondata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_ussessiondata_history_history_id_seq OWNED BY public.xnat_ussessiondata_history.history_id;


--
-- Name: xnat_ussessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_ussessiondata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_ussessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_ussessiondata_meta_data_meta_data_id_seq OWNED BY public.xnat_ussessiondata_meta_data.meta_data_id;


--
-- Name: xnat_validationdata; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_validationdata (
    method character varying(255),
    date date,
    notes text,
    validated_by character varying(255),
    status character varying(255),
    validationdata_info integer,
    xnat_validationdata_id integer NOT NULL
);


ALTER TABLE public.xnat_validationdata OWNER TO xnat;

--
-- Name: xnat_validationdata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_validationdata_history (
    method character varying(255),
    change_user integer,
    date date,
    previous_change_date timestamp without time zone,
    status character varying(255),
    validationdata_info integer,
    validated_by character varying(255),
    notes text,
    history_id integer NOT NULL,
    xnat_validationdata_id integer,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_validationdata_id integer
);


ALTER TABLE public.xnat_validationdata_history OWNER TO xnat;

--
-- Name: xnat_validationdata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_validationdata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_validationdata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_validationdata_history_history_id_seq OWNED BY public.xnat_validationdata_history.history_id;


--
-- Name: xnat_validationdata_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_validationdata_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_validationdata_meta_data OWNER TO xnat;

--
-- Name: xnat_validationdata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_validationdata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_validationdata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_validationdata_meta_data_meta_data_id_seq OWNED BY public.xnat_validationdata_meta_data.meta_data_id;


--
-- Name: xnat_validationdata_xnat_validationdata_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_validationdata_xnat_validationdata_id_seq OWNER TO xnat;

--
-- Name: xnat_validationdata_xnat_validationdata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_validationdata_xnat_validationdata_id_seq OWNED BY public.xnat_validationdata.xnat_validationdata_id;


--
-- Name: xnat_voiceaudioscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_voiceaudioscandata_history (
    xft_version integer,
    xnat_imagescandata_id integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    voiceaudioscandata_info integer,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_voiceaudioscandata_history OWNER TO xnat;

--
-- Name: xnat_voiceaudioscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_voiceaudioscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_voiceaudioscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_voiceaudioscandata_history_history_id_seq OWNED BY public.xnat_voiceaudioscandata_history.history_id;


--
-- Name: xnat_voiceaudioscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_voiceaudioscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_voiceaudioscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_voiceaudioscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_voiceaudioscandata_meta_data.meta_data_id;


--
-- Name: xnat_volumetricregion; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_volumetricregion (
    name character varying(255),
    units character varying(255),
    voxels integer,
    hemisphere character varying(255),
    volumetricregion_info integer,
    xnat_volumetricregion_id integer NOT NULL
);


ALTER TABLE public.xnat_volumetricregion OWNER TO xnat;

--
-- Name: xnat_volumetricregion_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_volumetricregion_history (
    hemisphere character varying(255),
    change_user integer,
    name character varying(255),
    xnat_volumetricregion_id integer,
    previous_change_date timestamp without time zone,
    voxels integer,
    units character varying(255),
    history_id integer NOT NULL,
    volumetricregion_info integer,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_volumetricregion_id integer
);


ALTER TABLE public.xnat_volumetricregion_history OWNER TO xnat;

--
-- Name: xnat_volumetricregion_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_volumetricregion_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_volumetricregion_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_volumetricregion_history_history_id_seq OWNED BY public.xnat_volumetricregion_history.history_id;


--
-- Name: xnat_volumetricregion_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_volumetricregion_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_volumetricregion_meta_data OWNER TO xnat;

--
-- Name: xnat_volumetricregion_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_volumetricregion_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_volumetricregion_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_volumetricregion_meta_data_meta_data_id_seq OWNED BY public.xnat_volumetricregion_meta_data.meta_data_id;


--
-- Name: xnat_volumetricregion_subregion; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_volumetricregion_subregion (
    name character varying(255),
    voxels double precision,
    volumetricregion_subregion_info integer,
    xnat_volumetricregion_subregion_id integer NOT NULL,
    subregions_subregion_xnat_volum_xnat_volumetricregion_id integer
);


ALTER TABLE public.xnat_volumetricregion_subregion OWNER TO xnat;

--
-- Name: xnat_volumetricregion_subregi_xnat_volumetricregion_subregi_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_volumetricregion_subregi_xnat_volumetricregion_subregi_seq OWNER TO xnat;

--
-- Name: xnat_volumetricregion_subregi_xnat_volumetricregion_subregi_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_volumetricregion_subregi_xnat_volumetricregion_subregi_seq OWNED BY public.xnat_volumetricregion_subregion.xnat_volumetricregion_subregion_id;


--
-- Name: xnat_volumetricregion_subregion_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_volumetricregion_subregion_history (
    change_user integer,
    name character varying(255),
    subregions_subregion_xnat_volum_xnat_volumetricregion_id integer,
    previous_change_date timestamp without time zone,
    volumetricregion_subregion_info integer,
    voxels double precision,
    xnat_volumetricregion_subregion_id integer,
    history_id integer NOT NULL,
    xft_version integer,
    change_date timestamp without time zone,
    new_row_xnat_volumetricregion_subregion_id integer
);


ALTER TABLE public.xnat_volumetricregion_subregion_history OWNER TO xnat;

--
-- Name: xnat_volumetricregion_subregion_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_volumetricregion_subregion_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_volumetricregion_subregion_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_volumetricregion_subregion_history_history_id_seq OWNED BY public.xnat_volumetricregion_subregion_history.history_id;


--
-- Name: xnat_volumetricregion_subregion_meta_data; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_volumetricregion_subregion_meta_data (
    xft_version character varying(255),
    last_modified timestamp without time zone,
    status character varying(255),
    activation_date timestamp without time zone,
    row_last_modified timestamp without time zone,
    insert_date timestamp without time zone,
    activation_user_xdat_user_id integer,
    insert_user_xdat_user_id integer,
    origin character varying(255),
    modified integer,
    shareable integer,
    meta_data_id integer NOT NULL
);


ALTER TABLE public.xnat_volumetricregion_subregion_meta_data OWNER TO xnat;

--
-- Name: xnat_volumetricregion_subregion_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_volumetricregion_subregion_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_volumetricregion_subregion_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_volumetricregion_subregion_meta_data_meta_data_id_seq OWNED BY public.xnat_volumetricregion_subregion_meta_data.meta_data_id;


--
-- Name: xnat_volumetricregion_xnat_volumetricregion_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_volumetricregion_xnat_volumetricregion_id_seq OWNER TO xnat;

--
-- Name: xnat_volumetricregion_xnat_volumetricregion_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_volumetricregion_xnat_volumetricregion_id_seq OWNED BY public.xnat_volumetricregion.xnat_volumetricregion_id;


--
-- Name: xnat_xa3dscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_xa3dscandata_history (
    xft_version integer,
    xnat_imagescandata_id integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    xa3dscandata_info integer,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_xa3dscandata_history OWNER TO xnat;

--
-- Name: xnat_xa3dscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_xa3dscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_xa3dscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_xa3dscandata_history_history_id_seq OWNED BY public.xnat_xa3dscandata_history.history_id;


--
-- Name: xnat_xa3dscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_xa3dscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_xa3dscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_xa3dscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_xa3dscandata_meta_data.meta_data_id;


--
-- Name: xnat_xa3dsessiondata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_xa3dsessiondata_history (
    xft_version integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    xa3dsessiondata_info integer,
    id character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_xa3dsessiondata_history OWNER TO xnat;

--
-- Name: xnat_xa3dsessiondata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_xa3dsessiondata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_xa3dsessiondata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_xa3dsessiondata_history_history_id_seq OWNED BY public.xnat_xa3dsessiondata_history.history_id;


--
-- Name: xnat_xa3dsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_xa3dsessiondata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_xa3dsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_xa3dsessiondata_meta_data_meta_data_id_seq OWNED BY public.xnat_xa3dsessiondata_meta_data.meta_data_id;


--
-- Name: xnat_xascandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_xascandata_history (
    parameters_imagetype character varying(255),
    parameters_contrastbolus_xnat_contrastbolus_id integer,
    parameters_pixelres_y integer,
    parameters_pixelres_x integer,
    parameters_derivation character varying(255),
    parameters_pixelres_units character varying(255),
    change_date timestamp without time zone,
    xnat_imagescandata_id integer,
    change_user integer,
    xft_version integer,
    history_id integer NOT NULL,
    xascandata_info integer,
    parameters_fov_y integer,
    parameters_fov_x integer,
    parameters_orientation character varying(255),
    previous_change_date timestamp without time zone,
    parameters_options character varying(255),
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_xascandata_history OWNER TO xnat;

--
-- Name: xnat_xascandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_xascandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_xascandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_xascandata_history_history_id_seq OWNED BY public.xnat_xascandata_history.history_id;


--
-- Name: xnat_xascandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_xascandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_xascandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_xascandata_meta_data_meta_data_id_seq OWNED BY public.xnat_xascandata_meta_data.meta_data_id;


--
-- Name: xnat_xasessiondata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_xasessiondata_history (
    xft_version integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    xasessiondata_info integer,
    id character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_xasessiondata_history OWNER TO xnat;

--
-- Name: xnat_xasessiondata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_xasessiondata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_xasessiondata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_xasessiondata_history_history_id_seq OWNED BY public.xnat_xasessiondata_history.history_id;


--
-- Name: xnat_xasessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_xasessiondata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_xasessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_xasessiondata_meta_data_meta_data_id_seq OWNED BY public.xnat_xasessiondata_meta_data.meta_data_id;


--
-- Name: xnat_xcscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_xcscandata_history (
    xcscandata_info integer,
    xft_version integer,
    xnat_imagescandata_id integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_xcscandata_history OWNER TO xnat;

--
-- Name: xnat_xcscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_xcscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_xcscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_xcscandata_history_history_id_seq OWNED BY public.xnat_xcscandata_history.history_id;


--
-- Name: xnat_xcscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_xcscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_xcscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_xcscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_xcscandata_meta_data.meta_data_id;


--
-- Name: xnat_xcsessiondata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_xcsessiondata_history (
    xft_version integer,
    change_user integer,
    change_date timestamp without time zone,
    xcsessiondata_info integer,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    id character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_xcsessiondata_history OWNER TO xnat;

--
-- Name: xnat_xcsessiondata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_xcsessiondata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_xcsessiondata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_xcsessiondata_history_history_id_seq OWNED BY public.xnat_xcsessiondata_history.history_id;


--
-- Name: xnat_xcsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_xcsessiondata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_xcsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_xcsessiondata_meta_data_meta_data_id_seq OWNED BY public.xnat_xcsessiondata_meta_data.meta_data_id;


--
-- Name: xnat_xcvscandata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_xcvscandata_history (
    xcvscandata_info integer,
    xft_version integer,
    xnat_imagescandata_id integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    new_row_xnat_imagescandata_id integer
);


ALTER TABLE public.xnat_xcvscandata_history OWNER TO xnat;

--
-- Name: xnat_xcvscandata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_xcvscandata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_xcvscandata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_xcvscandata_history_history_id_seq OWNED BY public.xnat_xcvscandata_history.history_id;


--
-- Name: xnat_xcvscandata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_xcvscandata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_xcvscandata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_xcvscandata_meta_data_meta_data_id_seq OWNED BY public.xnat_xcvscandata_meta_data.meta_data_id;


--
-- Name: xnat_xcvsessiondata_history; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xnat_xcvsessiondata_history (
    xft_version integer,
    change_user integer,
    change_date timestamp without time zone,
    previous_change_date timestamp without time zone,
    history_id integer NOT NULL,
    xcvsessiondata_info integer,
    id character varying(255),
    new_row_id character varying(255)
);


ALTER TABLE public.xnat_xcvsessiondata_history OWNER TO xnat;

--
-- Name: xnat_xcvsessiondata_history_history_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_xcvsessiondata_history_history_id_seq OWNER TO xnat;

--
-- Name: xnat_xcvsessiondata_history_history_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_xcvsessiondata_history_history_id_seq OWNED BY public.xnat_xcvsessiondata_history.history_id;


--
-- Name: xnat_xcvsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xnat_xcvsessiondata_meta_data_meta_data_id_seq OWNER TO xnat;

--
-- Name: xnat_xcvsessiondata_meta_data_meta_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xnat_xcvsessiondata_meta_data_meta_data_id_seq OWNED BY public.xnat_xcvsessiondata_meta_data.meta_data_id;


--
-- Name: xs_item_cache; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xs_item_cache (
    elementname character varying(255) NOT NULL,
    ids character varying(255) NOT NULL,
    create_date timestamp without time zone DEFAULT now(),
    contents text
);


ALTER TABLE public.xs_item_cache OWNER TO xnat;

--
-- Name: xs_par_table; Type: TABLE; Schema: public; Owner: xnat
--

CREATE TABLE public.xs_par_table (
    par_id integer NOT NULL,
    proj_id character varying(255),
    level character varying(255),
    create_date timestamp without time zone DEFAULT now(),
    user_id integer,
    approval_date timestamp without time zone,
    approved boolean,
    approver_id integer,
    email character varying(255),
    guid character varying(64)
);


ALTER TABLE public.xs_par_table OWNER TO xnat;

--
-- Name: xs_par_table_par_id_seq; Type: SEQUENCE; Schema: public; Owner: xnat
--

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


ALTER TABLE public.xs_par_table_par_id_seq OWNER TO xnat;

--
-- Name: xs_par_table_par_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: xnat
--

ALTER SEQUENCE public.xs_par_table_par_id_seq OWNED BY public.xs_par_table.par_id;



--
-- Name: prearchive; Type: TABLE; Schema: xdat_search; Owner: xnat
--

CREATE TABLE xdat_search.prearchive (
    project character varying,
    "timestamp" character varying NOT NULL,
    lastmod timestamp without time zone,
    uploaded timestamp without time zone,
    scan_date timestamp without time zone,
    scan_time character varying,
    subject character varying,
    foldername character varying NOT NULL,
    name character varying,
    tag character varying,
    status character varying NOT NULL,
    url character varying NOT NULL,
    autoarchive character varying,
    prevent_anon boolean,
    prevent_auto_commit boolean,
    source character varying,
    visit character varying,
    protocol character varying,
    timezone character varying
);


ALTER TABLE xdat_search.prearchive OWNER TO xnat;


--
-- Name: xs_materialized_views; Type: TABLE; Schema: xdat_search; Owner: xnat
--

CREATE TABLE xdat_search.xs_materialized_views (
    table_name character varying(255),
    created timestamp without time zone DEFAULT now(),
    last_access timestamp without time zone DEFAULT now(),
    username character varying(255),
    search_id text,
    tag character varying(255),
    search_sql text,
    search_xml text
);


ALTER TABLE xdat_search.xs_materialized_views OWNER TO xnat;

--
-- Name: analytics id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.analytics ALTER COLUMN id SET DEFAULT nextval('public.analytics_id_seq'::regclass);


--
-- Name: arc_archivespecification arc_archivespecification_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_archivespecification ALTER COLUMN arc_archivespecification_id SET DEFAULT nextval('public.arc_archivespecification_arc_archivespecification_id_seq'::regclass);


--
-- Name: arc_archivespecification_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_archivespecification_history ALTER COLUMN history_id SET DEFAULT nextval('public.arc_archivespecification_history_history_id_seq'::regclass);


--
-- Name: arc_archivespecification_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_archivespecification_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.arc_archivespecification_meta_data_meta_data_id_seq'::regclass);


--
-- Name: arc_archivespecification_notification_type arc_archivespecification_notification_type_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_archivespecification_notification_type ALTER COLUMN arc_archivespecification_notification_type_id SET DEFAULT nextval('public.arc_archivespecification_noti_arc_archivespecification_noti_seq'::regclass);


--
-- Name: arc_archivespecification_notification_type_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_archivespecification_notification_type_history ALTER COLUMN history_id SET DEFAULT nextval('public.arc_archivespecification_notification_type_histo_history_id_seq'::regclass);


--
-- Name: arc_archivespecification_notification_type_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_archivespecification_notification_type_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.arc_archivespecification_notification_type_met_meta_data_id_seq'::regclass);


--
-- Name: arc_fieldspecification arc_fieldspecification_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_fieldspecification ALTER COLUMN arc_fieldspecification_id SET DEFAULT nextval('public.arc_fieldspecification_arc_fieldspecification_id_seq'::regclass);


--
-- Name: arc_fieldspecification_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_fieldspecification_history ALTER COLUMN history_id SET DEFAULT nextval('public.arc_fieldspecification_history_history_id_seq'::regclass);


--
-- Name: arc_fieldspecification_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_fieldspecification_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.arc_fieldspecification_meta_data_meta_data_id_seq'::regclass);


--
-- Name: arc_pathinfo arc_pathinfo_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_pathinfo ALTER COLUMN arc_pathinfo_id SET DEFAULT nextval('public.arc_pathinfo_arc_pathinfo_id_seq'::regclass);


--
-- Name: arc_pathinfo_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_pathinfo_history ALTER COLUMN history_id SET DEFAULT nextval('public.arc_pathinfo_history_history_id_seq'::regclass);


--
-- Name: arc_pathinfo_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_pathinfo_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.arc_pathinfo_meta_data_meta_data_id_seq'::regclass);


--
-- Name: arc_pipelinedata arc_pipelinedata_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_pipelinedata ALTER COLUMN arc_pipelinedata_id SET DEFAULT nextval('public.arc_pipelinedata_arc_pipelinedata_id_seq'::regclass);


--
-- Name: arc_pipelinedata_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_pipelinedata_history ALTER COLUMN history_id SET DEFAULT nextval('public.arc_pipelinedata_history_history_id_seq'::regclass);


--
-- Name: arc_pipelinedata_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_pipelinedata_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.arc_pipelinedata_meta_data_meta_data_id_seq'::regclass);


--
-- Name: arc_pipelineparameterdata arc_pipelineparameterdata_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_pipelineparameterdata ALTER COLUMN arc_pipelineparameterdata_id SET DEFAULT nextval('public.arc_pipelineparameterdata_arc_pipelineparameterdata_id_seq'::regclass);


--
-- Name: arc_pipelineparameterdata_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_pipelineparameterdata_history ALTER COLUMN history_id SET DEFAULT nextval('public.arc_pipelineparameterdata_history_history_id_seq'::regclass);


--
-- Name: arc_pipelineparameterdata_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_pipelineparameterdata_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.arc_pipelineparameterdata_meta_data_meta_data_id_seq'::regclass);


--
-- Name: arc_project arc_project_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_project ALTER COLUMN arc_project_id SET DEFAULT nextval('public.arc_project_arc_project_id_seq'::regclass);


--
-- Name: arc_project_descendant arc_project_descendant_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_project_descendant ALTER COLUMN arc_project_descendant_id SET DEFAULT nextval('public.arc_project_descendant_arc_project_descendant_id_seq'::regclass);


--
-- Name: arc_project_descendant_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_project_descendant_history ALTER COLUMN history_id SET DEFAULT nextval('public.arc_project_descendant_history_history_id_seq'::regclass);


--
-- Name: arc_project_descendant_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_project_descendant_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.arc_project_descendant_meta_data_meta_data_id_seq'::regclass);


--
-- Name: arc_project_descendant_pipeline_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_project_descendant_pipeline_history ALTER COLUMN history_id SET DEFAULT nextval('public.arc_project_descendant_pipeline_history_history_id_seq'::regclass);


--
-- Name: arc_project_descendant_pipeline_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_project_descendant_pipeline_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.arc_project_descendant_pipeline_meta_data_meta_data_id_seq'::regclass);


--
-- Name: arc_project_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_project_history ALTER COLUMN history_id SET DEFAULT nextval('public.arc_project_history_history_id_seq'::regclass);


--
-- Name: arc_project_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_project_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.arc_project_meta_data_meta_data_id_seq'::regclass);


--
-- Name: arc_project_pipeline_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_project_pipeline_history ALTER COLUMN history_id SET DEFAULT nextval('public.arc_project_pipeline_history_history_id_seq'::regclass);


--
-- Name: arc_project_pipeline_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_project_pipeline_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.arc_project_pipeline_meta_data_meta_data_id_seq'::regclass);


--
-- Name: arc_property arc_property_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_property ALTER COLUMN arc_property_id SET DEFAULT nextval('public.arc_property_arc_property_id_seq'::regclass);


--
-- Name: arc_property_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_property_history ALTER COLUMN history_id SET DEFAULT nextval('public.arc_property_history_history_id_seq'::regclass);


--
-- Name: arc_property_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.arc_property_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.arc_property_meta_data_meta_data_id_seq'::regclass);


--
-- Name: cat_catalog cat_catalog_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_catalog ALTER COLUMN cat_catalog_id SET DEFAULT nextval('public.cat_catalog_cat_catalog_id_seq'::regclass);


--
-- Name: cat_catalog_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_catalog_history ALTER COLUMN history_id SET DEFAULT nextval('public.cat_catalog_history_history_id_seq'::regclass);


--
-- Name: cat_catalog_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_catalog_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.cat_catalog_meta_data_meta_data_id_seq'::regclass);


--
-- Name: cat_catalog_metafield cat_catalog_metafield_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_catalog_metafield ALTER COLUMN cat_catalog_metafield_id SET DEFAULT nextval('public.cat_catalog_metafield_cat_catalog_metafield_id_seq'::regclass);


--
-- Name: cat_catalog_metafield_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_catalog_metafield_history ALTER COLUMN history_id SET DEFAULT nextval('public.cat_catalog_metafield_history_history_id_seq'::regclass);


--
-- Name: cat_catalog_metafield_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_catalog_metafield_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.cat_catalog_metafield_meta_data_meta_data_id_seq'::regclass);


--
-- Name: cat_catalog_tag cat_catalog_tag_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_catalog_tag ALTER COLUMN cat_catalog_tag_id SET DEFAULT nextval('public.cat_catalog_tag_cat_catalog_tag_id_seq'::regclass);


--
-- Name: cat_catalog_tag_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_catalog_tag_history ALTER COLUMN history_id SET DEFAULT nextval('public.cat_catalog_tag_history_history_id_seq'::regclass);


--
-- Name: cat_catalog_tag_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_catalog_tag_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.cat_catalog_tag_meta_data_meta_data_id_seq'::regclass);


--
-- Name: cat_dcmcatalog_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_dcmcatalog_history ALTER COLUMN history_id SET DEFAULT nextval('public.cat_dcmcatalog_history_history_id_seq'::regclass);


--
-- Name: cat_dcmcatalog_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_dcmcatalog_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.cat_dcmcatalog_meta_data_meta_data_id_seq'::regclass);


--
-- Name: cat_dcmentry_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_dcmentry_history ALTER COLUMN history_id SET DEFAULT nextval('public.cat_dcmentry_history_history_id_seq'::regclass);


--
-- Name: cat_dcmentry_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_dcmentry_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.cat_dcmentry_meta_data_meta_data_id_seq'::regclass);


--
-- Name: cat_entry cat_entry_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_entry ALTER COLUMN cat_entry_id SET DEFAULT nextval('public.cat_entry_cat_entry_id_seq'::regclass);


--
-- Name: cat_entry_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_entry_history ALTER COLUMN history_id SET DEFAULT nextval('public.cat_entry_history_history_id_seq'::regclass);


--
-- Name: cat_entry_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_entry_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.cat_entry_meta_data_meta_data_id_seq'::regclass);


--
-- Name: cat_entry_metafield cat_entry_metafield_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_entry_metafield ALTER COLUMN cat_entry_metafield_id SET DEFAULT nextval('public.cat_entry_metafield_cat_entry_metafield_id_seq'::regclass);


--
-- Name: cat_entry_metafield_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_entry_metafield_history ALTER COLUMN history_id SET DEFAULT nextval('public.cat_entry_metafield_history_history_id_seq'::regclass);


--
-- Name: cat_entry_metafield_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_entry_metafield_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.cat_entry_metafield_meta_data_meta_data_id_seq'::regclass);


--
-- Name: cat_entry_tag cat_entry_tag_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_entry_tag ALTER COLUMN cat_entry_tag_id SET DEFAULT nextval('public.cat_entry_tag_cat_entry_tag_id_seq'::regclass);


--
-- Name: cat_entry_tag_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_entry_tag_history ALTER COLUMN history_id SET DEFAULT nextval('public.cat_entry_tag_history_history_id_seq'::regclass);


--
-- Name: cat_entry_tag_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.cat_entry_tag_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.cat_entry_tag_meta_data_meta_data_id_seq'::regclass);


--
-- Name: img_assessor_in_resource img_assessor_in_resource_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.img_assessor_in_resource ALTER COLUMN img_assessor_in_resource_id SET DEFAULT nextval('public.img_assessor_in_resource_img_assessor_in_resource_id_seq'::regclass);


--
-- Name: img_assessor_in_resource_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.img_assessor_in_resource_history ALTER COLUMN history_id SET DEFAULT nextval('public.img_assessor_in_resource_history_history_id_seq'::regclass);


--
-- Name: img_assessor_out_resource img_assessor_out_resource_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.img_assessor_out_resource ALTER COLUMN img_assessor_out_resource_id SET DEFAULT nextval('public.img_assessor_out_resource_img_assessor_out_resource_id_seq'::regclass);


--
-- Name: img_assessor_out_resource_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.img_assessor_out_resource_history ALTER COLUMN history_id SET DEFAULT nextval('public.img_assessor_out_resource_history_history_id_seq'::regclass);


--
-- Name: pipe_pipelinedetails_element pipe_pipelinedetails_element_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.pipe_pipelinedetails_element ALTER COLUMN pipe_pipelinedetails_element_id SET DEFAULT nextval('public.pipe_pipelinedetails_element_pipe_pipelinedetails_element_i_seq'::regclass);


--
-- Name: pipe_pipelinedetails_element_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.pipe_pipelinedetails_element_history ALTER COLUMN history_id SET DEFAULT nextval('public.pipe_pipelinedetails_element_history_history_id_seq'::regclass);


--
-- Name: pipe_pipelinedetails_element_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.pipe_pipelinedetails_element_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.pipe_pipelinedetails_element_meta_data_meta_data_id_seq'::regclass);


--
-- Name: pipe_pipelinedetails_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.pipe_pipelinedetails_history ALTER COLUMN history_id SET DEFAULT nextval('public.pipe_pipelinedetails_history_history_id_seq'::regclass);


--
-- Name: pipe_pipelinedetails_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.pipe_pipelinedetails_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.pipe_pipelinedetails_meta_data_meta_data_id_seq'::regclass);


--
-- Name: pipe_pipelinedetails_parameter pipe_pipelinedetails_parameter_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.pipe_pipelinedetails_parameter ALTER COLUMN pipe_pipelinedetails_parameter_id SET DEFAULT nextval('public.pipe_pipelinedetails_paramete_pipe_pipelinedetails_paramete_seq'::regclass);


--
-- Name: pipe_pipelinedetails_parameter_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.pipe_pipelinedetails_parameter_history ALTER COLUMN history_id SET DEFAULT nextval('public.pipe_pipelinedetails_parameter_history_history_id_seq'::regclass);


--
-- Name: pipe_pipelinedetails_parameter_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.pipe_pipelinedetails_parameter_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.pipe_pipelinedetails_parameter_meta_data_meta_data_id_seq'::regclass);


--
-- Name: pipe_pipelinerepository pipe_pipelinerepository_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.pipe_pipelinerepository ALTER COLUMN pipe_pipelinerepository_id SET DEFAULT nextval('public.pipe_pipelinerepository_pipe_pipelinerepository_id_seq'::regclass);


--
-- Name: pipe_pipelinerepository_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.pipe_pipelinerepository_history ALTER COLUMN history_id SET DEFAULT nextval('public.pipe_pipelinerepository_history_history_id_seq'::regclass);


--
-- Name: pipe_pipelinerepository_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.pipe_pipelinerepository_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.pipe_pipelinerepository_meta_data_meta_data_id_seq'::regclass);


--
-- Name: prov_process prov_process_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.prov_process ALTER COLUMN prov_process_id SET DEFAULT nextval('public.prov_process_prov_process_id_seq'::regclass);


--
-- Name: prov_process_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.prov_process_history ALTER COLUMN history_id SET DEFAULT nextval('public.prov_process_history_history_id_seq'::regclass);


--
-- Name: prov_process_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.prov_process_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.prov_process_meta_data_meta_data_id_seq'::regclass);


--
-- Name: prov_processstep prov_processstep_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.prov_processstep ALTER COLUMN prov_processstep_id SET DEFAULT nextval('public.prov_processstep_prov_processstep_id_seq'::regclass);


--
-- Name: prov_processstep_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.prov_processstep_history ALTER COLUMN history_id SET DEFAULT nextval('public.prov_processstep_history_history_id_seq'::regclass);


--
-- Name: prov_processstep_library prov_processstep_library_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.prov_processstep_library ALTER COLUMN prov_processstep_library_id SET DEFAULT nextval('public.prov_processstep_library_prov_processstep_library_id_seq'::regclass);


--
-- Name: prov_processstep_library_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.prov_processstep_library_history ALTER COLUMN history_id SET DEFAULT nextval('public.prov_processstep_library_history_history_id_seq'::regclass);


--
-- Name: prov_processstep_library_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.prov_processstep_library_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.prov_processstep_library_meta_data_meta_data_id_seq'::regclass);


--
-- Name: prov_processstep_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.prov_processstep_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.prov_processstep_meta_data_meta_data_id_seq'::regclass);


--
-- Name: recon_in_resource recon_in_resource_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.recon_in_resource ALTER COLUMN recon_in_resource_id SET DEFAULT nextval('public.recon_in_resource_recon_in_resource_id_seq'::regclass);


--
-- Name: recon_in_resource_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.recon_in_resource_history ALTER COLUMN history_id SET DEFAULT nextval('public.recon_in_resource_history_history_id_seq'::regclass);


--
-- Name: recon_out_resource recon_out_resource_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.recon_out_resource ALTER COLUMN recon_out_resource_id SET DEFAULT nextval('public.recon_out_resource_recon_out_resource_id_seq'::regclass);


--
-- Name: recon_out_resource_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.recon_out_resource_history ALTER COLUMN history_id SET DEFAULT nextval('public.recon_out_resource_history_history_id_seq'::regclass);


--
-- Name: scr_screeningassessment_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.scr_screeningassessment_history ALTER COLUMN history_id SET DEFAULT nextval('public.scr_screeningassessment_history_history_id_seq'::regclass);


--
-- Name: scr_screeningassessment_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.scr_screeningassessment_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.scr_screeningassessment_meta_data_meta_data_id_seq'::regclass);


--
-- Name: scr_screeningscandata scr_screeningscandata_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.scr_screeningscandata ALTER COLUMN scr_screeningscandata_id SET DEFAULT nextval('public.scr_screeningscandata_scr_screeningscandata_id_seq'::regclass);


--
-- Name: scr_screeningscandata_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.scr_screeningscandata_history ALTER COLUMN history_id SET DEFAULT nextval('public.scr_screeningscandata_history_history_id_seq'::regclass);


--
-- Name: scr_screeningscandata_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.scr_screeningscandata_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.scr_screeningscandata_meta_data_meta_data_id_seq'::regclass);


--
-- Name: val_additionalval val_additionalval_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_additionalval ALTER COLUMN val_additionalval_id SET DEFAULT nextval('public.val_additionalval_val_additionalval_id_seq'::regclass);


--
-- Name: val_additionalval_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_additionalval_history ALTER COLUMN history_id SET DEFAULT nextval('public.val_additionalval_history_history_id_seq'::regclass);


--
-- Name: val_additionalval_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_additionalval_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.val_additionalval_meta_data_meta_data_id_seq'::regclass);


--
-- Name: val_protocoldata_comment val_protocoldata_comment_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_protocoldata_comment ALTER COLUMN val_protocoldata_comment_id SET DEFAULT nextval('public.val_protocoldata_comment_val_protocoldata_comment_id_seq'::regclass);


--
-- Name: val_protocoldata_comment_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_protocoldata_comment_history ALTER COLUMN history_id SET DEFAULT nextval('public.val_protocoldata_comment_history_history_id_seq'::regclass);


--
-- Name: val_protocoldata_comment_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_protocoldata_comment_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.val_protocoldata_comment_meta_data_meta_data_id_seq'::regclass);


--
-- Name: val_protocoldata_condition val_protocoldata_condition_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_protocoldata_condition ALTER COLUMN val_protocoldata_condition_id SET DEFAULT nextval('public.val_protocoldata_condition_val_protocoldata_condition_id_seq'::regclass);


--
-- Name: val_protocoldata_condition_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_protocoldata_condition_history ALTER COLUMN history_id SET DEFAULT nextval('public.val_protocoldata_condition_history_history_id_seq'::regclass);


--
-- Name: val_protocoldata_condition_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_protocoldata_condition_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.val_protocoldata_condition_meta_data_meta_data_id_seq'::regclass);


--
-- Name: val_protocoldata_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_protocoldata_history ALTER COLUMN history_id SET DEFAULT nextval('public.val_protocoldata_history_history_id_seq'::regclass);


--
-- Name: val_protocoldata_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_protocoldata_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.val_protocoldata_meta_data_meta_data_id_seq'::regclass);


--
-- Name: val_protocoldata_scan_check val_protocoldata_scan_check_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_protocoldata_scan_check ALTER COLUMN val_protocoldata_scan_check_id SET DEFAULT nextval('public.val_protocoldata_scan_check_val_protocoldata_scan_check_id_seq'::regclass);


--
-- Name: val_protocoldata_scan_check_comment val_protocoldata_scan_check_comment_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_protocoldata_scan_check_comment ALTER COLUMN val_protocoldata_scan_check_comment_id SET DEFAULT nextval('public.val_protocoldata_scan_check_c_val_protocoldata_scan_check_c_seq'::regclass);


--
-- Name: val_protocoldata_scan_check_comment_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_protocoldata_scan_check_comment_history ALTER COLUMN history_id SET DEFAULT nextval('public.val_protocoldata_scan_check_comment_history_history_id_seq'::regclass);


--
-- Name: val_protocoldata_scan_check_comment_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_protocoldata_scan_check_comment_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.val_protocoldata_scan_check_comment_meta_data_meta_data_id_seq'::regclass);


--
-- Name: val_protocoldata_scan_check_condition val_protocoldata_scan_check_condition_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_protocoldata_scan_check_condition ALTER COLUMN val_protocoldata_scan_check_condition_id SET DEFAULT nextval('public.val_protocoldata_scan_check_c_val_protocoldata_scan_check__seq1'::regclass);


--
-- Name: val_protocoldata_scan_check_condition_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_protocoldata_scan_check_condition_history ALTER COLUMN history_id SET DEFAULT nextval('public.val_protocoldata_scan_check_condition_history_history_id_seq'::regclass);


--
-- Name: val_protocoldata_scan_check_condition_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_protocoldata_scan_check_condition_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.val_protocoldata_scan_check_condition_meta_dat_meta_data_id_seq'::regclass);


--
-- Name: val_protocoldata_scan_check_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_protocoldata_scan_check_history ALTER COLUMN history_id SET DEFAULT nextval('public.val_protocoldata_scan_check_history_history_id_seq'::regclass);


--
-- Name: val_protocoldata_scan_check_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.val_protocoldata_scan_check_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.val_protocoldata_scan_check_meta_data_meta_data_id_seq'::regclass);


--
-- Name: wrk_abstractexecutionenvironment wrk_abstractexecutionenvironment_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.wrk_abstractexecutionenvironment ALTER COLUMN wrk_abstractexecutionenvironment_id SET DEFAULT nextval('public.wrk_abstractexecutionenvironm_wrk_abstractexecutionenvironm_seq'::regclass);


--
-- Name: wrk_abstractexecutionenvironment_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.wrk_abstractexecutionenvironment_history ALTER COLUMN history_id SET DEFAULT nextval('public.wrk_abstractexecutionenvironment_history_history_id_seq'::regclass);


--
-- Name: wrk_abstractexecutionenvironment_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.wrk_abstractexecutionenvironment_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.wrk_abstractexecutionenvironment_meta_data_meta_data_id_seq'::regclass);


--
-- Name: wrk_workflowdata wrk_workflowdata_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.wrk_workflowdata ALTER COLUMN wrk_workflowdata_id SET DEFAULT nextval('public.wrk_workflowdata_wrk_workflowdata_id_seq'::regclass);


--
-- Name: wrk_workflowdata_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.wrk_workflowdata_history ALTER COLUMN history_id SET DEFAULT nextval('public.wrk_workflowdata_history_history_id_seq'::regclass);


--
-- Name: wrk_workflowdata_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.wrk_workflowdata_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.wrk_workflowdata_meta_data_meta_data_id_seq'::regclass);


--
-- Name: wrk_xnatexecutionenvironment_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.wrk_xnatexecutionenvironment_history ALTER COLUMN history_id SET DEFAULT nextval('public.wrk_xnatexecutionenvironment_history_history_id_seq'::regclass);


--
-- Name: wrk_xnatexecutionenvironment_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.wrk_xnatexecutionenvironment_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.wrk_xnatexecutionenvironment_meta_data_meta_data_id_seq'::regclass);


--
-- Name: wrk_xnatexecutionenvironment_notify wrk_xnatexecutionenvironment_notify_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.wrk_xnatexecutionenvironment_notify ALTER COLUMN wrk_xnatexecutionenvironment_notify_id SET DEFAULT nextval('public.wrk_xnatexecutionenvironment__wrk_xnatexecutionenvironment__seq'::regclass);


--
-- Name: wrk_xnatexecutionenvironment_notify_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.wrk_xnatexecutionenvironment_notify_history ALTER COLUMN history_id SET DEFAULT nextval('public.wrk_xnatexecutionenvironment_notify_history_history_id_seq'::regclass);


--
-- Name: wrk_xnatexecutionenvironment_notify_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.wrk_xnatexecutionenvironment_notify_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.wrk_xnatexecutionenvironment_notify_meta_data_meta_data_id_seq'::regclass);


--
-- Name: wrk_xnatexecutionenvironment_parameter wrk_xnatexecutionenvironment_parameter_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.wrk_xnatexecutionenvironment_parameter ALTER COLUMN wrk_xnatexecutionenvironment_parameter_id SET DEFAULT nextval('public.wrk_xnatexecutionenvironment__wrk_xnatexecutionenvironment_seq1'::regclass);


--
-- Name: wrk_xnatexecutionenvironment_parameter_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.wrk_xnatexecutionenvironment_parameter_history ALTER COLUMN history_id SET DEFAULT nextval('public.wrk_xnatexecutionenvironment_parameter_history_history_id_seq'::regclass);


--
-- Name: wrk_xnatexecutionenvironment_parameter_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.wrk_xnatexecutionenvironment_parameter_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.wrk_xnatexecutionenvironment_parameter_meta_da_meta_data_id_seq'::regclass);


--
-- Name: xdat_a_xdat_action_type_allowe_xdat_role_type xdat_a_xdat_action_type_allowe_xdat_role_type_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_a_xdat_action_type_allowe_xdat_role_type ALTER COLUMN xdat_a_xdat_action_type_allowe_xdat_role_type_id SET DEFAULT nextval('public.xdat_a_xdat_action_type_allow_xdat_a_xdat_action_type_allow_seq'::regclass);


--
-- Name: xdat_a_xdat_action_type_allowe_xdat_role_type_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_a_xdat_action_type_allowe_xdat_role_type_history ALTER COLUMN history_id SET DEFAULT nextval('public.xdat_a_xdat_action_type_allowe_xdat_role_type_hi_history_id_seq'::regclass);


--
-- Name: xdat_access_log xdat_access_log_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_access_log ALTER COLUMN xdat_access_log_id SET DEFAULT nextval('public.xdat_access_log_xdat_access_log_id_seq'::regclass);


--
-- Name: xdat_access_log_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_access_log_history ALTER COLUMN history_id SET DEFAULT nextval('public.xdat_access_log_history_history_id_seq'::regclass);


--
-- Name: xdat_access_log_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_access_log_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.xdat_access_log_meta_data_meta_data_id_seq'::regclass);


--
-- Name: xdat_action_type_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_action_type_history ALTER COLUMN history_id SET DEFAULT nextval('public.xdat_action_type_history_history_id_seq'::regclass);


--
-- Name: xdat_action_type_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_action_type_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.xdat_action_type_meta_data_meta_data_id_seq'::regclass);


--
-- Name: xdat_change_info xdat_change_info_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_change_info ALTER COLUMN xdat_change_info_id SET DEFAULT nextval('public.xdat_change_info_xdat_change_info_id_seq'::regclass);


--
-- Name: xdat_change_info_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_change_info_history ALTER COLUMN history_id SET DEFAULT nextval('public.xdat_change_info_history_history_id_seq'::regclass);


--
-- Name: xdat_change_info_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_change_info_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.xdat_change_info_meta_data_meta_data_id_seq'::regclass);


--
-- Name: xdat_criteria xdat_criteria_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_criteria ALTER COLUMN xdat_criteria_id SET DEFAULT nextval('public.xdat_criteria_xdat_criteria_id_seq'::regclass);


--
-- Name: xdat_criteria_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_criteria_history ALTER COLUMN history_id SET DEFAULT nextval('public.xdat_criteria_history_history_id_seq'::regclass);


--
-- Name: xdat_criteria_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_criteria_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.xdat_criteria_meta_data_meta_data_id_seq'::regclass);


--
-- Name: xdat_criteria_set xdat_criteria_set_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_criteria_set ALTER COLUMN xdat_criteria_set_id SET DEFAULT nextval('public.xdat_criteria_set_xdat_criteria_set_id_seq'::regclass);


--
-- Name: xdat_criteria_set_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_criteria_set_history ALTER COLUMN history_id SET DEFAULT nextval('public.xdat_criteria_set_history_history_id_seq'::regclass);


--
-- Name: xdat_criteria_set_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_criteria_set_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.xdat_criteria_set_meta_data_meta_data_id_seq'::regclass);


--
-- Name: xdat_element_access xdat_element_access_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_element_access ALTER COLUMN xdat_element_access_id SET DEFAULT nextval('public.xdat_element_access_xdat_element_access_id_seq'::regclass);


--
-- Name: xdat_element_access_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_element_access_history ALTER COLUMN history_id SET DEFAULT nextval('public.xdat_element_access_history_history_id_seq'::regclass);


--
-- Name: xdat_element_access_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_element_access_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.xdat_element_access_meta_data_meta_data_id_seq'::regclass);


--
-- Name: xdat_element_access_secure_ip xdat_element_access_secure_ip_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_element_access_secure_ip ALTER COLUMN xdat_element_access_secure_ip_id SET DEFAULT nextval('public.xdat_element_access_secure_ip_xdat_element_access_secure_ip_seq'::regclass);


--
-- Name: xdat_element_access_secure_ip_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_element_access_secure_ip_history ALTER COLUMN history_id SET DEFAULT nextval('public.xdat_element_access_secure_ip_history_history_id_seq'::regclass);


--
-- Name: xdat_element_access_secure_ip_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_element_access_secure_ip_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.xdat_element_access_secure_ip_meta_data_meta_data_id_seq'::regclass);


--
-- Name: xdat_element_action_type xdat_element_action_type_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_element_action_type ALTER COLUMN xdat_element_action_type_id SET DEFAULT nextval('public.xdat_element_action_type_xdat_element_action_type_id_seq'::regclass);


--
-- Name: xdat_element_action_type_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_element_action_type_history ALTER COLUMN history_id SET DEFAULT nextval('public.xdat_element_action_type_history_history_id_seq'::regclass);


--
-- Name: xdat_element_action_type_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_element_action_type_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.xdat_element_action_type_meta_data_meta_data_id_seq'::regclass);


--
-- Name: xdat_element_security_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_element_security_history ALTER COLUMN history_id SET DEFAULT nextval('public.xdat_element_security_history_history_id_seq'::regclass);


--
-- Name: xdat_element_security_listing_action xdat_element_security_listing_action_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_element_security_listing_action ALTER COLUMN xdat_element_security_listing_action_id SET DEFAULT nextval('public.xdat_element_security_listing_xdat_element_security_listing_seq'::regclass);


--
-- Name: xdat_element_security_listing_action_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_element_security_listing_action_history ALTER COLUMN history_id SET DEFAULT nextval('public.xdat_element_security_listing_action_history_history_id_seq'::regclass);


--
-- Name: xdat_element_security_listing_action_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_element_security_listing_action_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.xdat_element_security_listing_action_meta_data_meta_data_id_seq'::regclass);


--
-- Name: xdat_element_security_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_element_security_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.xdat_element_security_meta_data_meta_data_id_seq'::regclass);


--
-- Name: xdat_field_mapping xdat_field_mapping_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_field_mapping ALTER COLUMN xdat_field_mapping_id SET DEFAULT nextval('public.xdat_field_mapping_xdat_field_mapping_id_seq'::regclass);


--
-- Name: xdat_field_mapping_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_field_mapping_history ALTER COLUMN history_id SET DEFAULT nextval('public.xdat_field_mapping_history_history_id_seq'::regclass);


--
-- Name: xdat_field_mapping_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_field_mapping_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.xdat_field_mapping_meta_data_meta_data_id_seq'::regclass);


--
-- Name: xdat_field_mapping_set xdat_field_mapping_set_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_field_mapping_set ALTER COLUMN xdat_field_mapping_set_id SET DEFAULT nextval('public.xdat_field_mapping_set_xdat_field_mapping_set_id_seq'::regclass);


--
-- Name: xdat_field_mapping_set_history history_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_field_mapping_set_history ALTER COLUMN history_id SET DEFAULT nextval('public.xdat_field_mapping_set_history_history_id_seq'::regclass);


--
-- Name: xdat_field_mapping_set_meta_data meta_data_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_field_mapping_set_meta_data ALTER COLUMN meta_data_id SET DEFAULT nextval('public.xdat_field_mapping_set_meta_data_meta_data_id_seq'::regclass);


--
-- Name: xdat_infoentry xdat_infoentry_id; Type: DEFAULT; Schema: public; Owner: xnat
--

ALTER TABLE ONLY public.xdat_infoentry ALTER COLUMN xdat_infoentry_id SET DEFAULT nextval('public.xdat_infoentry_xdat_infoentry_id_seq'::regclass);


--
