<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<database name="rdr" schema="public" type="PostgreSQL - 14.24 (Debian 14.24-1.pgdg13+2)">
   <tables>
      <table name="alembic_version" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="version_num" nullable="false" remarks="" size="32" type="varchar" typeCode="12"/>
         <primaryKey column="version_num" sequenceNumberInPK="1"/>
         <index name="alembic_version_pkc" unique="true">
            <column ascending="true" name="version_num"/>
         </index>
      </table>
      <table name="alignment_file" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="read_file_set_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="read_file_set_id" foreignKey="alignment_file_read_file_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="read_file_set"/>
         </column>
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="1" name="alignment_file_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="assembly_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="assembly_id" foreignKey="alignment_file_assembly_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="assembly"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="file_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="file_id" foreignKey="alignment_file_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="file"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="alignment_task_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="alignment_task_id" foreignKey="alignment_file_alignment_task_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="alignment_task"/>
         </column>
         <primaryKey column="alignment_file_id" sequenceNumberInPK="1"/>
         <index name="alignment_file_pkey" unique="true">
            <column ascending="true" name="alignment_file_id"/>
         </index>
         <index name="ix_alignment_file_alignment_task_id" unique="false">
            <column ascending="true" name="alignment_task_id"/>
         </index>
         <index name="ix_alignment_file_assembly_id" unique="false">
            <column ascending="true" name="assembly_id"/>
         </index>
         <index name="ix_alignment_file_file_id" unique="false">
            <column ascending="true" name="file_id"/>
         </index>
         <index name="ix_alignment_file_read_file_set_id" unique="false">
            <column ascending="true" name="read_file_set_id"/>
         </index>
         <index name="uq_alignment_file_assembly_id_read_file_set_id_file_id" unique="true">
            <column ascending="true" name="assembly_id"/>
            <column ascending="true" name="read_file_set_id"/>
            <column ascending="true" name="file_id"/>
         </index>
      </table>
      <table name="alignment_task" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="alignment_task_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="alignment_task_id" foreignKey="alignment_file_alignment_task_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="alignment_file"/>
            <child column="alignment_task_id" foreignKey="run_alignment_task_alignment_task_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="run_alignment_task"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="run_grouping" nullable="false" remarks="" size="2147483647" type="run_grouping_type" typeCode="12"/>
         <primaryKey column="alignment_task_id" sequenceNumberInPK="1"/>
         <index name="alignment_task_pkey" unique="true">
            <column ascending="true" name="alignment_task_id"/>
         </index>
      </table>
      <table name="analysis_file" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="analysis_file_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="assembly_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="assembly_id" foreignKey="analysis_file_assembly_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="assembly"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="experiment_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="experiment_id" foreignKey="analysis_file_experiment_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="experiment"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="file_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="file_id" foreignKey="analysis_file_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="file"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="pipeline_metadata" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="analysis_type" nullable="false" remarks="" size="2147483647" type="analysis_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="handover" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="analysis_file_id" sequenceNumberInPK="1"/>
         <index name="analysis_file_pkey" unique="true">
            <column ascending="true" name="analysis_file_id"/>
         </index>
         <index name="ix_analysis_file_assembly_id" unique="false">
            <column ascending="true" name="assembly_id"/>
         </index>
         <index name="ix_analysis_file_experiment_id" unique="false">
            <column ascending="true" name="experiment_id"/>
         </index>
         <index name="ix_analysis_file_file_id" unique="false">
            <column ascending="true" name="file_id"/>
         </index>
         <index name="uq_analysis_file_assembly_id_experiment_id_analysis_type" unique="true">
            <column ascending="true" name="assembly_id"/>
            <column ascending="true" name="experiment_id"/>
            <column ascending="true" name="analysis_type"/>
         </index>
      </table>
      <table name="analysis_file_experiment_info" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" WITH signal_files AS (&#10;         SELECT analysis_file.analysis_file_id AS signal_analysis_file_id,&#10;            analysis_file.experiment_id AS signal_experiment_id,&#10;            assembly_1.assembly_id AS signal_assembly_id,&#10;            s3_object.key AS signal_key&#10;           FROM (((analysis_file&#10;             JOIN assembly assembly_1 ON ((analysis_file.assembly_id = assembly_1.assembly_id)))&#10;             JOIN file ON ((analysis_file.file_id = file.file_id)))&#10;             JOIN s3_object ON ((file.file_id = s3_object.file_id)))&#10;          WHERE (analysis_file.analysis_type = 'signal'::analysis_type)&#10;        ), atac_seq_peak_files AS (&#10;         SELECT analysis_file.analysis_file_id AS atac_seq_peak_analysis_file_id,&#10;            analysis_file.experiment_id AS atac_seq_peak_experiment_id,&#10;            assembly_1.assembly_id AS atac_seq_peak_assembly_id,&#10;            s3_object.key AS atac_seq_peak_key&#10;           FROM (((analysis_file&#10;             JOIN assembly assembly_1 ON ((analysis_file.assembly_id = assembly_1.assembly_id)))&#10;             JOIN file ON ((analysis_file.file_id = file.file_id)))&#10;             JOIN s3_object ON ((file.file_id = s3_object.file_id)))&#10;          WHERE (analysis_file.analysis_type = 'atac_seq_peaks'::analysis_type)&#10;        ), dnase_seq_peak_files AS (&#10;         SELECT analysis_file.analysis_file_id AS dnase_seq_peak_analysis_file_id,&#10;            analysis_file.experiment_id AS dnase_seq_peak_experiment_id,&#10;            assembly_1.assembly_id AS dnase_seq_peak_assembly_id,&#10;            s3_object.key AS dnase_seq_peak_key&#10;           FROM (((analysis_file&#10;             JOIN assembly assembly_1 ON ((analysis_file.assembly_id = assembly_1.assembly_id)))&#10;             JOIN file ON ((analysis_file.file_id = file.file_id)))&#10;             JOIN s3_object ON ((file.file_id = s3_object.file_id)))&#10;          WHERE (analysis_file.analysis_type = 'dnase_seq_peaks'::analysis_type)&#10;        ), chip_seq_narrow_peak_files AS (&#10;         SELECT analysis_file.analysis_file_id AS chip_seq_narrow_peak_analysis_file_id,&#10;            analysis_file.experiment_id AS chip_seq_narrow_peak_experiment_id,&#10;            assembly_1.assembly_id AS chip_seq_narrow_peak_assembly_id,&#10;            s3_object.key AS chip_seq_narrow_peak_key&#10;           FROM (((analysis_file&#10;             JOIN assembly assembly_1 ON ((analysis_file.assembly_id = assembly_1.assembly_id)))&#10;             JOIN file ON ((analysis_file.file_id = file.file_id)))&#10;             JOIN s3_object ON ((file.file_id = s3_object.file_id)))&#10;          WHERE (analysis_file.analysis_type = 'chip_seq_narrow_peaks'::analysis_type)&#10;        ), chip_seq_broad_peak_files AS (&#10;         SELECT analysis_file.analysis_file_id AS chip_seq_broad_peak_analysis_file_id,&#10;            analysis_file.experiment_id AS chip_seq_broad_peak_experiment_id,&#10;            assembly_1.assembly_id AS chip_seq_broad_peak_assembly_id,&#10;            s3_object.key AS chip_seq_broad_peak_key&#10;           FROM (((analysis_file&#10;             JOIN assembly assembly_1 ON ((analysis_file.assembly_id = assembly_1.assembly_id)))&#10;             JOIN file ON ((analysis_file.file_id = file.file_id)))&#10;             JOIN s3_object ON ((file.file_id = s3_object.file_id)))&#10;          WHERE (analysis_file.analysis_type = 'chip_seq_broad_peaks'::analysis_type)&#10;        ), chip_seq_gapped_peak_files AS (&#10;         SELECT analysis_file.analysis_file_id AS chip_seq_gapped_peak_analysis_file_id,&#10;            analysis_file.experiment_id AS chip_seq_gapped_peak_experiment_id,&#10;            assembly_1.assembly_id AS chip_seq_gapped_peak_assembly_id,&#10;            s3_object.key AS chip_seq_gapped_peak_key&#10;           FROM (((analysis_file&#10;             JOIN assembly assembly_1 ON ((analysis_file.assembly_id = assembly_1.assembly_id)))&#10;             JOIN file ON ((analysis_file.file_id = file.file_id)))&#10;             JOIN s3_object ON ((file.file_id = s3_object.file_id)))&#10;          WHERE (analysis_file.analysis_type = 'chip_seq_gapped_peaks'::analysis_type)&#10;        )&#10; SELECT experiment_signal_and_control_data_source.species_name,&#10;    experiment_signal_and_control_data_source.species_id,&#10;    experiment_signal_and_control_data_source.description,&#10;    experiment_signal_and_control_data_source.epigenome_group_id,&#10;    experiment_signal_and_control_data_source.epigenome_accession,&#10;    experiment_signal_and_control_data_source.epigenome_name,&#10;    experiment_signal_and_control_data_source.epigenome_description,&#10;    experiment_signal_and_control_data_source.epigenome_id,&#10;    experiment_signal_and_control_data_source.experiment_name,&#10;    experiment_signal_and_control_data_source.experiment_id,&#10;    experiment_signal_and_control_data_source.experiment_type,&#10;    experiment_signal_and_control_data_source.experiment_target_type,&#10;    experiment_signal_and_control_data_source.experiment_target,&#10;    experiment_signal_and_control_data_source.signal_replicate_set_accession,&#10;    experiment_signal_and_control_data_source.signal_replicate_set_id,&#10;    experiment_signal_and_control_data_source.control_replicate_set_accession,&#10;    experiment_signal_and_control_data_source.control_replicate_set_id,&#10;    assembly.ensembl_accession,&#10;    COALESCE(atac_seq_peak_files.atac_seq_peak_key, dnase_seq_peak_files.dnase_seq_peak_key) AS open_chromatin_peak,&#10;    chip_seq_narrow_peak_files.chip_seq_narrow_peak_key,&#10;    chip_seq_broad_peak_files.chip_seq_broad_peak_key,&#10;    chip_seq_gapped_peak_files.chip_seq_gapped_peak_key,&#10;    signal_files.signal_key&#10;   FROM (((((((experiment_signal_and_control_data_source&#10;     JOIN assembly ON ((experiment_signal_and_control_data_source.species_id = assembly.species_id)))&#10;     LEFT JOIN signal_files ON (((experiment_signal_and_control_data_source.experiment_id = signal_files.signal_experiment_id) AND (signal_files.signal_assembly_id = assembly.assembly_id))))&#10;     LEFT JOIN atac_seq_peak_files ON (((experiment_signal_and_control_data_source.experiment_id = atac_seq_peak_files.atac_seq_peak_experiment_id) AND (atac_seq_peak_files.atac_seq_peak_assembly_id = assembly.assembly_id))))&#10;     LEFT JOIN dnase_seq_peak_files ON (((experiment_signal_and_control_data_source.experiment_id = dnase_seq_peak_files.dnase_seq_peak_experiment_id) AND (dnase_seq_peak_files.dnase_seq_peak_assembly_id = assembly.assembly_id))))&#10;     LEFT JOIN chip_seq_narrow_peak_files ON (((experiment_signal_and_control_data_source.experiment_id = chip_seq_narrow_peak_files.chip_seq_narrow_peak_experiment_id) AND (chip_seq_narrow_peak_files.chip_seq_narrow_peak_assembly_id = assembly.assembly_id))))&#10;     LEFT JOIN chip_seq_broad_peak_files ON (((experiment_signal_and_control_data_source.experiment_id = chip_seq_broad_peak_files.chip_seq_broad_peak_experiment_id) AND (chip_seq_broad_peak_files.chip_seq_broad_peak_assembly_id = assembly.assembly_id))))&#10;     LEFT JOIN chip_seq_gapped_peak_files ON (((experiment_signal_and_control_data_source.experiment_id = chip_seq_gapped_peak_files.chip_seq_gapped_peak_experiment_id) AND (chip_seq_gapped_peak_files.chip_seq_gapped_peak_assembly_id = assembly.assembly_id))));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="species_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="species_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="species_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="species"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="epigenome_group_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_group_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="epigenome_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="epigenome_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="epigenome_description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="experiment_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="experiment_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="experiment_type" nullable="true" remarks="" size="2147483647" type="experiment_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="experiment_target_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="experiment_target" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="signal_replicate_set_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="signal_replicate_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="control_replicate_set_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="control_replicate_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ensembl_accession" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="open_chromatin_peak" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="chip_seq_narrow_peak_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="chip_seq_broad_peak_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="chip_seq_gapped_peak_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="signal_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="analysis_file_info_with_checks" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT analysis_file_experiment_info.species_name,&#10;    analysis_file_experiment_info.species_id,&#10;    analysis_file_experiment_info.description,&#10;    analysis_file_experiment_info.epigenome_group_id,&#10;    analysis_file_experiment_info.epigenome_accession,&#10;    analysis_file_experiment_info.epigenome_name,&#10;    analysis_file_experiment_info.epigenome_description,&#10;    analysis_file_experiment_info.epigenome_id,&#10;    analysis_file_experiment_info.experiment_name,&#10;    analysis_file_experiment_info.experiment_id,&#10;    analysis_file_experiment_info.experiment_type,&#10;    analysis_file_experiment_info.experiment_target_type,&#10;    analysis_file_experiment_info.experiment_target,&#10;    analysis_file_experiment_info.signal_replicate_set_accession,&#10;    analysis_file_experiment_info.signal_replicate_set_id,&#10;    analysis_file_experiment_info.control_replicate_set_accession,&#10;    analysis_file_experiment_info.control_replicate_set_id,&#10;    analysis_file_experiment_info.ensembl_accession,&#10;    analysis_file_experiment_info.open_chromatin_peak,&#10;    analysis_file_experiment_info.chip_seq_narrow_peak_key,&#10;    analysis_file_experiment_info.chip_seq_broad_peak_key,&#10;    analysis_file_experiment_info.chip_seq_gapped_peak_key,&#10;    analysis_file_experiment_info.signal_key,&#10;        CASE&#10;            WHEN ((analysis_file_experiment_info.experiment_type = 'chip_seq'::experiment_type) AND (analysis_file_experiment_info.chip_seq_narrow_peak_key IS NULL)) THEN 'Missing peaks file: ChIP-seq general case check'::text&#10;            WHEN ((analysis_file_experiment_info.experiment_target_type = ANY (ARRAY['H3K27me3'::text, 'H3K4me1'::text])) AND ((analysis_file_experiment_info.chip_seq_narrow_peak_key IS NULL) OR (analysis_file_experiment_info.chip_seq_broad_peak_key IS NULL) OR (analysis_file_experiment_info.chip_seq_gapped_peak_key IS NULL))) THEN 'Missing some of multiple peaks files expected: ChIP-seq check for broad histone marker cases'::text&#10;            WHEN ((analysis_file_experiment_info.experiment_target_type = ANY (ARRAY['atac_seq'::text, 'dnase_seq'::text])) AND (analysis_file_experiment_info.open_chromatin_peak IS NULL)) THEN 'Missing peaks: Open-chromatin case check'::text&#10;            ELSE 'Ok'::text&#10;        END AS beds_available,&#10;        CASE&#10;            WHEN (analysis_file_experiment_info.signal_key IS NULL) THEN 'Missing signal'::text&#10;            ELSE 'Ok'::text&#10;        END AS bigwig_available&#10;   FROM analysis_file_experiment_info;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="species_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="species_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="species_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="species"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="epigenome_group_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_group_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="epigenome_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="epigenome_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="epigenome_description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="experiment_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="experiment_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="experiment_type" nullable="true" remarks="" size="2147483647" type="experiment_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="experiment_target_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="experiment_target" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="signal_replicate_set_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="signal_replicate_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="control_replicate_set_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="control_replicate_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="ensembl_accession" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="open_chromatin_peak" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="chip_seq_narrow_peak_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="chip_seq_broad_peak_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="chip_seq_gapped_peak_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="signal_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="beds_available" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="bigwig_available" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="archive" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="website" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="2" name="archive_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="archive_id" foreignKey="data_source_archive_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="abbreviation" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <primaryKey column="archive_id" sequenceNumberInPK="1"/>
         <index name="archive_pkey" unique="true">
            <column ascending="true" name="archive_id"/>
         </index>
         <index name="archive_abbreviation_key" unique="true">
            <column ascending="true" name="abbreviation"/>
         </index>
         <index name="archive_name_website_key" unique="true">
            <column ascending="true" name="name"/>
            <column ascending="true" name="website"/>
         </index>
      </table>
      <table name="assembly" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ensembl_accession" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="1" name="assembly_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="assembly_id" foreignKey="alignment_file_assembly_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="alignment_file"/>
            <child column="assembly_id" foreignKey="analysis_file_assembly_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="analysis_file"/>
            <child column="assembly_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="base_epigenomes_replicates_and_files"/>
            <child column="assembly_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="curated_experiment_analysis_files"/>
            <child column="assembly_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="curated_experiment_metadata"/>
            <child column="assembly_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="curated_open_chromatin_assay_metadata"/>
            <child column="assembly_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_metadata"/>
            <child column="assembly_id" foreignKey="mask_file_assembly_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="mask_file"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="file_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="file_id" foreignKey="assembly_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="file"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="species_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="species_id" foreignKey="assembly_species_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="species"/>
         </column>
         <primaryKey column="assembly_id" sequenceNumberInPK="1"/>
         <index name="assembly_pkey" unique="true">
            <column ascending="true" name="assembly_id"/>
         </index>
         <index name="assembly_ensembl_accession_key" unique="true">
            <column ascending="true" name="ensembl_accession"/>
         </index>
         <index name="ix_assembly_file_id" unique="false">
            <column ascending="true" name="file_id"/>
         </index>
         <index name="ix_assembly_species_id" unique="false">
            <column ascending="true" name="species_id"/>
         </index>
      </table>
      <table name="atac_seq" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="experiment_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="experiment_id" foreignKey="atac_seq_experiment_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="experiment"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="replicate_set_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="atac_seq_replicate_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="library_preparation" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <primaryKey column="experiment_id" sequenceNumberInPK="1"/>
         <index name="atac_seq_pkey" unique="true">
            <column ascending="true" name="experiment_id"/>
         </index>
         <index name="uq_atac_seq_replicate_set_id" unique="true">
            <column ascending="true" name="replicate_set_id"/>
         </index>
      </table>
      <table name="barcode_file" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="barcode_file_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="run_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="run_id" foreignKey="barcode_file_run_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="run"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="file_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="file_id" foreignKey="barcode_file_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="file"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="barcode_file_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <primaryKey column="barcode_file_id" sequenceNumberInPK="1"/>
         <index name="barcode_file_pkey" unique="true">
            <column ascending="true" name="barcode_file_id"/>
         </index>
         <index name="ix_barcode_file_data_source_id" unique="false">
            <column ascending="true" name="data_source_id"/>
         </index>
         <index name="ix_barcode_file_file_id" unique="false">
            <column ascending="true" name="file_id"/>
         </index>
         <index name="ix_barcode_file_run_id" unique="false">
            <column ascending="true" name="run_id"/>
         </index>
      </table>
      <table name="base_epigenome_replicates" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" WITH metadata_epig_expr_with_ids AS (&#10;         SELECT DISTINCT me_1.epigenome_id,&#10;            me_1.experiment_type,&#10;            me_1.experiment_target,&#10;            me_1.data_source,&#10;            me_1.biosample_accession,&#10;            array_agg(DISTINCT me_1.material) AS material,&#10;            me_1.term,&#10;            me_1.term_ontology,&#10;            array_agg(DISTINCT me_1.sex) AS sex,&#10;            array_agg(DISTINCT me_1.life_stage) AS life_stage,&#10;            array_agg(DISTINCT me_1.age ORDER BY me_1.age) AS age,&#10;            array_agg(DISTINCT me_1.age_unit) AS age_unit,&#10;            me_1.species_name,&#10;            me_1.assembly_name&#10;           FROM curated_experiment_metadata me_1&#10;          WHERE (me_1.term &lt;&gt; 'iPS-18c'::text)&#10;          GROUP BY me_1.epigenome_id, me_1.term, me_1.term_ontology, me_1.experiment_type, me_1.experiment_target, me_1.data_source, me_1.biosample_accession, me_1.species_name, me_1.assembly_name&#10;        ), age_n_sex_preprocessing AS (&#10;         SELECT metadata_epig_expr_with_ids.epigenome_id,&#10;            metadata_epig_expr_with_ids.experiment_type,&#10;            metadata_epig_expr_with_ids.experiment_target,&#10;            metadata_epig_expr_with_ids.data_source,&#10;            metadata_epig_expr_with_ids.biosample_accession,&#10;            metadata_epig_expr_with_ids.material,&#10;            metadata_epig_expr_with_ids.term,&#10;            metadata_epig_expr_with_ids.term_ontology,&#10;            metadata_epig_expr_with_ids.sex,&#10;            metadata_epig_expr_with_ids.life_stage,&#10;            metadata_epig_expr_with_ids.age,&#10;            metadata_epig_expr_with_ids.age_unit,&#10;            metadata_epig_expr_with_ids.species_name,&#10;            metadata_epig_expr_with_ids.assembly_name,&#10;            ARRAY( SELECT unnest(&#10;                        CASE&#10;                            WHEN ('unknown'::text = ANY (metadata_epig_expr_with_ids.age)) THEN NULL::numeric[]&#10;                            ELSE (metadata_epig_expr_with_ids.age)::numeric[]&#10;                        END) AS unnest&#10;                  ORDER BY (unnest(&#10;                        CASE&#10;                            WHEN ('unknown'::text = ANY (metadata_epig_expr_with_ids.age)) THEN NULL::numeric[]&#10;                            ELSE (metadata_epig_expr_with_ids.age)::numeric[]&#10;                        END))) AS age_sorted,&#10;                CASE&#10;                    WHEN ('unknown'::text = ANY (metadata_epig_expr_with_ids.age)) THEN NULL::text&#10;                    WHEN ((('embryo'::text = ANY (metadata_epig_expr_with_ids.life_stage)) OR ('embryonic'::text = ANY (metadata_epig_expr_with_ids.life_stage))) AND ('day'::text = ANY (metadata_epig_expr_with_ids.age_unit))) THEN 'days post fertilisation'::text&#10;                    ELSE array_to_string(metadata_epig_expr_with_ids.age_unit, ', '::text)&#10;                END AS age_unit_processed,&#10;                CASE&#10;                    WHEN ((metadata_epig_expr_with_ids.sex)::text[] @&gt; ARRAY['unknown'::text]) THEN NULL::text&#10;                    WHEN ((metadata_epig_expr_with_ids.sex)::text[] @&gt; ARRAY['mixed'::text]) THEN NULL::text&#10;                    WHEN ((metadata_epig_expr_with_ids.sex)::text[] @&gt; ARRAY['male'::text, 'female'::text]) THEN NULL::text&#10;                    WHEN ((metadata_epig_expr_with_ids.sex)::text[] = ARRAY['male'::text]) THEN 'm'::text&#10;                    WHEN ((metadata_epig_expr_with_ids.sex)::text[] = ARRAY['female'::text]) THEN 'f'::text&#10;                    WHEN ((metadata_epig_expr_with_ids.sex)::text[] = ARRAY['phenotypic'::text]) THEN NULL::text&#10;                    ELSE 'Err: not contemplated case'::text&#10;                END AS sex_for_label&#10;           FROM metadata_epig_expr_with_ids&#10;        )&#10; SELECT asp.species_name,&#10;    asp.assembly_name,&#10;    asp.epigenome_id AS base_epigenome_id,&#10;    lower(array_to_string(asp.material, ', '::text)) AS material,&#10;    asp.term,&#10;        CASE&#10;            WHEN (asp.term &lt;&gt; 'embryo'::text) THEN asp.term&#10;            ELSE NULL::text&#10;        END AS term_for_label,&#10;    asp.term_ontology,&#10;    array_to_string(asp.sex, ', '::text) AS sex,&#10;    asp.sex_for_label,&#10;    array_to_string(asp.life_stage, ', '::text) AS life_stage,&#10;        CASE&#10;            WHEN (((asp.sex)::text[] @&gt; ARRAY['phenotypic'::text, 'unknown'::text]) AND (asp.term = 'embryo'::text)) THEN array_to_string(asp.life_stage, ', '::text)&#10;            ELSE NULL::text&#10;        END AS life_stage_for_label,&#10;        CASE&#10;            WHEN (array_length(asp.age_sorted, 1) = 1) THEN ((asp.age_sorted[1])::real)::text&#10;            ELSE NULL::text&#10;        END AS age_value,&#10;    array_to_string(asp.age_unit, ', '::text) AS age_unit,&#10;        CASE&#10;            WHEN ((asp.age_unit_processed &lt;&gt; ALL (ARRAY['days post fertilisation'::text, 'thermal time'::text])) AND (asp.age_sorted[1] &lt;&gt; (1)::numeric)) THEN concat(asp.age_unit_processed, 's')&#10;            ELSE asp.age_unit_processed&#10;        END AS modified_age_unit,&#10;        CASE&#10;            WHEN (array_length(asp.age_sorted, 1) = 1) THEN concat(((asp.age_sorted[1])::real)::text, ' ',&#10;            CASE&#10;                WHEN ((asp.age_unit_processed &lt;&gt; ALL (ARRAY['days post fertilisation'::text, 'thermal time'::text])) AND (asp.age_sorted[1] &lt;&gt; (1)::numeric)) THEN concat(asp.age_unit_processed, 's')&#10;                ELSE asp.age_unit_processed&#10;            END)&#10;            ELSE NULL::text&#10;        END AS extended_age,&#10;    ((&#10;        CASE&#10;            WHEN (array_length(asp.age_sorted, 1) IS NULL) THEN NULL::text&#10;            WHEN (array_length(asp.age_sorted, 1) = 1) THEN ((asp.age_sorted[1])::real)::text&#10;            ELSE concat(((asp.age_sorted[1])::real)::text, '-', ((asp.age_sorted[array_upper(asp.age_sorted, 1)])::real)::text)&#10;        END || ' '::text) ||&#10;        CASE asp.age_unit_processed&#10;            WHEN 'days post fertilisation'::text THEN 'dpf'::text&#10;            WHEN 'month'::text THEN 'mo'::text&#10;            WHEN 'year'::text THEN 'y'::text&#10;            WHEN 'week'::text THEN 'w'::text&#10;            WHEN 'day'::text THEN 'd'::text&#10;            WHEN 'thermal time'::text THEN 'tt'::text&#10;            ELSE asp.age_unit_processed&#10;        END) AS short_age,&#10;        CASE&#10;            WHEN (array_length(asp.age_sorted, 1) IS NULL) THEN NULL::text&#10;            WHEN (((asp.assembly_name)::text = 'GRCm39'::text) AND (array_to_string(asp.life_stage, ', '::text) = 'embryonic'::text)) THEN concat('E',&#10;            CASE&#10;                WHEN (array_length(asp.age_sorted, 1) = 1) THEN ((asp.age_sorted[1])::real)::text&#10;                ELSE concat(((asp.age_sorted[1])::real)::text, '-', ((asp.age_sorted[array_upper(asp.age_sorted, 1)])::real)::text)&#10;            END)&#10;            ELSE ((&#10;            CASE&#10;                WHEN (array_length(asp.age_sorted, 1) IS NULL) THEN NULL::text&#10;                WHEN (array_length(asp.age_sorted, 1) = 1) THEN ((asp.age_sorted[1])::real)::text&#10;                ELSE concat(((asp.age_sorted[1])::real)::text, '-', ((asp.age_sorted[array_upper(asp.age_sorted, 1)])::real)::text)&#10;            END || ' '::text) ||&#10;            CASE asp.age_unit_processed&#10;                WHEN 'days post fertilisation'::text THEN 'dpf'::text&#10;                WHEN 'month'::text THEN 'mo'::text&#10;                WHEN 'year'::text THEN 'y'::text&#10;                WHEN 'week'::text THEN 'w'::text&#10;                WHEN 'day'::text THEN 'd'::text&#10;                WHEN 'thermal time'::text THEN 'tt'::text&#10;                ELSE asp.age_unit_processed&#10;            END)&#10;        END AS age_for_label,&#10;    asp.experiment_type,&#10;    asp.experiment_target,&#10;    asp.biosample_accession,&#10;    asp.data_source&#10;   FROM age_n_sex_preprocessing asp;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="species_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="assembly_name" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="base_epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="material" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="term" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="term_for_label" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="term_ontology" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="sex" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="sex_for_label" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="life_stage" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="life_stage_for_label" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="age_value" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="age_unit" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="modified_age_unit" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="extended_age" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="short_age" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="age_for_label" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="experiment_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="experiment_target" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="biosample_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="data_source" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="base_epigenomes" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" WITH slims_before_agg AS (&#10;         SELECT curated_experiment_metadata.epigenome_id,&#10;                CASE&#10;                    WHEN (curated_experiment_metadata.organ_slims = ARRAY[]::text[]) THEN ARRAY['EMPTY'::text]&#10;                    WHEN (curated_experiment_metadata.organ_slims IS NULL) THEN ARRAY['UNANNOTATED'::text]&#10;                    ELSE curated_experiment_metadata.organ_slims&#10;                END AS organs_mod,&#10;                CASE&#10;                    WHEN (curated_experiment_metadata.system_slims = ARRAY[]::text[]) THEN ARRAY['EMPTY'::text]&#10;                    WHEN (curated_experiment_metadata.system_slims IS NULL) THEN ARRAY['UNANNOTATED'::text]&#10;                    ELSE curated_experiment_metadata.system_slims&#10;                END AS systems_mod&#10;           FROM curated_experiment_metadata&#10;        ), metadata_epig_with_ids AS (&#10;         SELECT DISTINCT curated_experiment_metadata.species_name,&#10;            curated_experiment_metadata.assembly_name,&#10;            curated_experiment_metadata.epigenome_name,&#10;            curated_experiment_metadata.epigenome_id,&#10;            curated_experiment_metadata.epigenome_description,&#10;            array_agg(DISTINCT curated_experiment_metadata.material) AS material,&#10;            curated_experiment_metadata.term,&#10;            curated_experiment_metadata.term_ontology,&#10;            unnest_2d_1d(array_agg(DISTINCT slims_before_agg.organs_mod)) AS organs,&#10;            unnest_2d_1d(array_agg(DISTINCT slims_before_agg.systems_mod)) AS systems,&#10;            array_agg(DISTINCT curated_experiment_metadata.sex) AS sex,&#10;            array_agg(DISTINCT curated_experiment_metadata.life_stage) AS life_stage,&#10;            array_agg(DISTINCT curated_experiment_metadata.age ORDER BY curated_experiment_metadata.age) AS age,&#10;            array_agg(DISTINCT curated_experiment_metadata.age_unit) AS age_unit&#10;           FROM (curated_experiment_metadata&#10;             JOIN slims_before_agg ON ((curated_experiment_metadata.epigenome_id = slims_before_agg.epigenome_id)))&#10;          GROUP BY curated_experiment_metadata.species_name, curated_experiment_metadata.assembly_name, curated_experiment_metadata.epigenome_name, curated_experiment_metadata.epigenome_id, curated_experiment_metadata.epigenome_description, curated_experiment_metadata.term, curated_experiment_metadata.term_ontology&#10;        ), slims_after_agg AS (&#10;         SELECT metadata_epig_with_ids_1.epigenome_id,&#10;                CASE&#10;                    WHEN (metadata_epig_with_ids_1.organs = ARRAY['EMPTY'::text]) THEN ARRAY[]::text[]&#10;                    WHEN (metadata_epig_with_ids_1.organs = ARRAY['UNANNOTATED'::text]) THEN NULL::text[]&#10;                    ELSE metadata_epig_with_ids_1.organs&#10;                END AS organs,&#10;                CASE&#10;                    WHEN (metadata_epig_with_ids_1.systems = ARRAY['EMPTY'::text]) THEN ARRAY[]::text[]&#10;                    WHEN (metadata_epig_with_ids_1.systems = ARRAY['UNANNOTATED'::text]) THEN NULL::text[]&#10;                    ELSE metadata_epig_with_ids_1.systems&#10;                END AS systems,&#10;                CASE&#10;                    WHEN ('unknown'::text = ANY (metadata_epig_with_ids_1.age)) THEN NULL::numeric[]&#10;                    ELSE (metadata_epig_with_ids_1.age)::numeric[]&#10;                END AS age,&#10;            metadata_epig_with_ids_1.age_unit&#10;           FROM metadata_epig_with_ids metadata_epig_with_ids_1&#10;        ), handle_age_after_agg AS (&#10;         SELECT metadata_epig_with_ids_1.epigenome_id,&#10;                CASE&#10;                    WHEN ('unknown'::text = ANY (metadata_epig_with_ids_1.age)) THEN NULL::numeric[]&#10;                    ELSE (metadata_epig_with_ids_1.age)::numeric[]&#10;                END AS age&#10;           FROM metadata_epig_with_ids metadata_epig_with_ids_1&#10;        ), sort_agg_age AS (&#10;         SELECT handle_age_after_agg.epigenome_id,&#10;            ARRAY( SELECT unnest(handle_age_after_agg.age) AS unnest&#10;                  ORDER BY (unnest(handle_age_after_agg.age))) AS age_sorted&#10;           FROM handle_age_after_agg&#10;        ), handle_sorted_age AS (&#10;         SELECT sort_agg_age.epigenome_id,&#10;                CASE&#10;                    WHEN (ARRAY[]::numeric[] = sort_agg_age.age_sorted) THEN NULL::text&#10;                    WHEN (array_length(sort_agg_age.age_sorted, 1) = 1) THEN ((sort_agg_age.age_sorted[1])::real)::text&#10;                    ELSE ((sort_agg_age.age_sorted)::real[])::text&#10;                END AS age&#10;           FROM sort_agg_age&#10;        ), handle_age_unit_after_agg AS (&#10;         SELECT metadata_epig_with_ids_1.epigenome_id,&#10;                CASE&#10;                    WHEN ('unknown'::text = ANY (metadata_epig_with_ids_1.age)) THEN NULL::text&#10;                    WHEN ((('embryo'::text = ANY (metadata_epig_with_ids_1.life_stage)) OR ('embryonic'::text = ANY (metadata_epig_with_ids_1.life_stage))) AND ('day'::text = ANY (metadata_epig_with_ids_1.age_unit))) THEN 'days post fertilisation'::text&#10;                    ELSE array_to_string(metadata_epig_with_ids_1.age_unit, ', '::text)&#10;                END AS age_unit&#10;           FROM metadata_epig_with_ids metadata_epig_with_ids_1&#10;        ), handle_age_unit_singular_plural AS (&#10;         SELECT handle_age_unit_after_agg.epigenome_id,&#10;                CASE&#10;                    WHEN ((handle_age_unit_after_agg.age_unit &lt;&gt; 'days post fertilisation'::text) AND (handle_age_unit_after_agg.age_unit &lt;&gt; 'thermal time'::text) AND (sort_agg_age.age_sorted[1] &lt;&gt; (1)::numeric)) THEN concat(handle_age_unit_after_agg.age_unit, 's')&#10;                    ELSE handle_age_unit_after_agg.age_unit&#10;                END AS age_unit&#10;           FROM (handle_age_unit_after_agg&#10;             JOIN sort_agg_age ON ((handle_age_unit_after_agg.epigenome_id = sort_agg_age.epigenome_id)))&#10;        ), age_range AS (&#10;         SELECT sort_agg_age.epigenome_id,&#10;                CASE&#10;                    WHEN (ARRAY[]::numeric[] = sort_agg_age.age_sorted) THEN NULL::text&#10;                    WHEN (array_length(sort_agg_age.age_sorted, 1) = 1) THEN ((sort_agg_age.age_sorted[1])::real)::text&#10;                    ELSE concat(((sort_agg_age.age_sorted[1])::real)::text, '-', ((sort_agg_age.age_sorted[array_upper(sort_agg_age.age_sorted, 1)])::real)::text)&#10;                END AS age_range&#10;           FROM sort_agg_age&#10;        ), shorten_age_unit AS (&#10;         SELECT handle_age_unit_after_agg.epigenome_id,&#10;                CASE&#10;                    WHEN (handle_age_unit_after_agg.age_unit = 'days post fertilisation'::text) THEN 'dpf'::text&#10;                    WHEN (handle_age_unit_after_agg.age_unit = 'month'::text) THEN 'mo'::text&#10;                    WHEN (handle_age_unit_after_agg.age_unit = 'year'::text) THEN 'y'::text&#10;                    WHEN (handle_age_unit_after_agg.age_unit = 'week'::text) THEN 'w'::text&#10;                    WHEN (handle_age_unit_after_agg.age_unit = 'day'::text) THEN 'd'::text&#10;                    WHEN (handle_age_unit_after_agg.age_unit = 'thermal time'::text) THEN 'tt'::text&#10;                    ELSE handle_age_unit_after_agg.age_unit&#10;                END AS short_age_unit&#10;           FROM handle_age_unit_after_agg&#10;        ), shorten_sex AS (&#10;         SELECT metadata_epig_with_ids_1.epigenome_id,&#10;                CASE&#10;                    WHEN ((metadata_epig_with_ids_1.sex)::text[] @&gt; ARRAY['unknown'::text]) THEN NULL::text&#10;                    WHEN ((metadata_epig_with_ids_1.sex)::text[] @&gt; ARRAY['mixed'::text]) THEN NULL::text&#10;                    WHEN ((metadata_epig_with_ids_1.sex)::text[] @&gt; ARRAY['male'::text, 'female'::text]) THEN NULL::text&#10;                    WHEN ((metadata_epig_with_ids_1.sex)::text[] = ARRAY['male'::text]) THEN 'm'::text&#10;                    WHEN ((metadata_epig_with_ids_1.sex)::text[] = ARRAY['female'::text]) THEN 'f'::text&#10;                    WHEN ((metadata_epig_with_ids_1.sex)::text[] = ARRAY['phenotypic'::text]) THEN NULL::text&#10;                    ELSE 'Err: not contemplated case'::text&#10;                END AS sex_for_label&#10;           FROM metadata_epig_with_ids metadata_epig_with_ids_1&#10;        ), lifestage_in_label AS (&#10;         SELECT metadata_epig_with_ids_1.epigenome_id,&#10;                CASE&#10;                    WHEN ((((metadata_epig_with_ids_1.sex)::text[] @&gt; ARRAY['phenotypic'::text]) OR ((metadata_epig_with_ids_1.sex)::text[] @&gt; ARRAY['unknown'::text])) AND (metadata_epig_with_ids_1.term = 'embryo'::text)) THEN metadata_epig_with_ids_1.life_stage&#10;                    ELSE NULL::text[]&#10;                END AS life_stage_info_for_label&#10;           FROM metadata_epig_with_ids metadata_epig_with_ids_1&#10;        )&#10; SELECT DISTINCT metadata_epig_with_ids.species_name,&#10;    metadata_epig_with_ids.assembly_name,&#10;    metadata_epig_with_ids.epigenome_id AS id,&#10;    lower(array_to_string(metadata_epig_with_ids.material, ', '::text)) AS material,&#10;    metadata_epig_with_ids.epigenome_name,&#10;    metadata_epig_with_ids.term,&#10;        CASE&#10;            WHEN (metadata_epig_with_ids.term &lt;&gt; 'embryo'::text) THEN metadata_epig_with_ids.term&#10;            ELSE NULL::text&#10;        END AS term_for_label,&#10;    metadata_epig_with_ids.term_ontology,&#10;    array_to_string(metadata_epig_with_ids.sex, ', '::text) AS sex,&#10;    shorten_sex.sex_for_label,&#10;    array_to_string(metadata_epig_with_ids.life_stage, ', '::text) AS life_stage,&#10;        CASE&#10;            WHEN ((((metadata_epig_with_ids.sex)::text[] @&gt; ARRAY['phenotypic'::text]) OR ((metadata_epig_with_ids.sex)::text[] @&gt; ARRAY['unknown'::text])) AND (metadata_epig_with_ids.term = 'embryo'::text)) THEN array_to_string(metadata_epig_with_ids.life_stage, ', '::text)&#10;            ELSE NULL::text&#10;        END AS life_stage_for_label,&#10;        CASE&#10;            WHEN (handle_sorted_age.age IS NULL) THEN NULL::text&#10;            ELSE concat(handle_sorted_age.age, ' ', handle_age_unit_singular_plural.age_unit)&#10;        END AS extended_age,&#10;        CASE&#10;            WHEN (handle_sorted_age.age IS NULL) THEN NULL::text&#10;            ELSE concat(age_range.age_range, ' ', shorten_age_unit.short_age_unit)&#10;        END AS age,&#10;        CASE&#10;            WHEN (((metadata_epig_with_ids.assembly_name)::text = 'GRCm39'::text) AND (array_to_string(metadata_epig_with_ids.life_stage, ', '::text) = 'embryonic'::text) AND (age_range.age_range IS NOT NULL)) THEN concat('E', age_range.age_range)&#10;            WHEN (handle_sorted_age.age IS NULL) THEN NULL::text&#10;            ELSE concat(age_range.age_range, ' ', shorten_age_unit.short_age_unit)&#10;        END AS age_for_label,&#10;    slims_after_agg.organs,&#10;    slims_after_agg.systems,&#10;    biosample_term_group.term_group AS tissue_group,&#10;    biosample_biological_group.biological_group,&#10;    biosample_sample_type.sample_type&#10;   FROM (((((((((metadata_epig_with_ids&#10;     JOIN handle_sorted_age ON ((metadata_epig_with_ids.epigenome_id = handle_sorted_age.epigenome_id)))&#10;     JOIN age_range ON ((metadata_epig_with_ids.epigenome_id = age_range.epigenome_id)))&#10;     JOIN handle_age_unit_singular_plural ON ((metadata_epig_with_ids.epigenome_id = handle_age_unit_singular_plural.epigenome_id)))&#10;     JOIN shorten_age_unit ON ((metadata_epig_with_ids.epigenome_id = shorten_age_unit.epigenome_id)))&#10;     JOIN slims_after_agg ON ((metadata_epig_with_ids.epigenome_id = slims_after_agg.epigenome_id)))&#10;     JOIN shorten_sex ON ((metadata_epig_with_ids.epigenome_id = shorten_sex.epigenome_id)))&#10;     JOIN biosample_term_group ON ((metadata_epig_with_ids.epigenome_id = biosample_term_group.epigenome_id)))&#10;     LEFT JOIN biosample_biological_group ON ((metadata_epig_with_ids.epigenome_id = biosample_biological_group.epigenome_id)))&#10;     LEFT JOIN biosample_sample_type ON ((metadata_epig_with_ids.epigenome_id = biosample_sample_type.epigenome_id)))&#10;  WHERE (((metadata_epig_with_ids.assembly_name)::text &lt;&gt; 'GRCg6a'::text) AND (metadata_epig_with_ids.term &lt;&gt; 'iPS-18c'::text));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="species_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="assembly_name" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="material" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="epigenome_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="term" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="term_for_label" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="term_ontology" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="sex" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="sex_for_label" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="life_stage" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="life_stage_for_label" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="extended_age" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="age" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="age_for_label" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="organs" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="systems" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="tissue_group" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="biological_group" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="sample_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="base_epigenomes_flat_payload" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" WITH species AS (&#10;         SELECT DISTINCT base_epigenomes.species_name&#10;           FROM base_epigenomes&#10;        )&#10; SELECT json_agg(json_build_object('species_name', species.species_name, 'base_epigenomes', ( SELECT json_agg(json_build_object('species_name', base_epigenomes.species_name, 'assembly_name', base_epigenomes.assembly_name, 'id', base_epigenomes.id, 'material', base_epigenomes.material, 'term', base_epigenomes.term, 'sex', base_epigenomes.sex, 'life_stage', base_epigenomes.life_stage, 'age', base_epigenomes.age_for_label, 'organs', base_epigenomes.organs, 'systems', base_epigenomes.systems, 'tissue_group', base_epigenomes.tissue_group, 'biological_group', base_epigenomes.biological_group, 'sample_type', base_epigenomes.sample_type)) AS json_agg&#10;           FROM base_epigenomes&#10;          WHERE (base_epigenomes.species_name = species.species_name)&#10;          GROUP BY base_epigenomes.species_name))) AS json_agg&#10;   FROM species;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="json_agg" nullable="true" remarks="" size="2147483647" type="json" typeCode="1111"/>
      </table>
      <table name="base_epigenomes_payload" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" WITH base_epigenome_objects AS (&#10;         SELECT base_epigenomes.species_name,&#10;            base_epigenomes.id,&#10;            json_build_object('id', base_epigenomes.id, 'material', base_epigenomes.material, 'term', json_build_object('value', base_epigenomes.term, 'ontology', json_build_object('curie', replace(base_epigenomes.term_ontology, '_'::text, ':'::text), 'url', concat('https://purl.obolibrary.org/obo/', base_epigenomes.term_ontology))), 'sex', base_epigenomes.sex, 'life_stage', json_build_object('value', base_epigenomes.life_stage, 'rank', NULL::integer), 'age',&#10;                CASE&#10;                    WHEN (base_epigenomes.age_for_label IS NULL) THEN NULL::json&#10;                    ELSE json_build_object('value', base_epigenomes.age_for_label, 'description', base_epigenomes.extended_age, 'rank', NULL::integer)&#10;                END, 'organs',&#10;                CASE&#10;                    WHEN (base_epigenomes.organs IS NULL) THEN NULL::json&#10;                    ELSE COALESCE(( SELECT json_agg(json_build_object('value', organ.value, 'ontology', json_build_object('curie', NULL::text, 'url', NULL::text)) ORDER BY organ.value) AS json_agg&#10;                       FROM unnest(base_epigenomes.organs) organ(value)), '[]'::json)&#10;                END, 'systems',&#10;                CASE&#10;                    WHEN (base_epigenomes.systems IS NULL) THEN NULL::json&#10;                    ELSE COALESCE(( SELECT json_agg(json_build_object('value', system.value, 'ontology', json_build_object('curie', NULL::text, 'url', NULL::text)) ORDER BY system.value) AS json_agg&#10;                       FROM unnest(base_epigenomes.systems) system(value)), '[]'::json)&#10;                END, 'tissue_group', json_build_object('value', base_epigenomes.tissue_group, 'ontology', json_build_object('curie', NULL::text, 'url', NULL::text)), 'biological_group', json_build_object('value', base_epigenomes.biological_group, 'ontology', json_build_object('curie', NULL::text, 'url', NULL::text)), 'sample_type', json_build_object('value', base_epigenomes.sample_type, 'ontology', json_build_object('curie', NULL::text, 'url', NULL::text))) AS base_epigenome&#10;           FROM base_epigenomes&#10;        ), species_base_epigenomes AS (&#10;         SELECT base_epigenome_objects.species_name,&#10;            json_agg(base_epigenome_objects.base_epigenome ORDER BY base_epigenome_objects.id) AS base_epigenomes&#10;           FROM base_epigenome_objects&#10;          GROUP BY base_epigenome_objects.species_name&#10;        )&#10; SELECT json_agg(json_build_object('species_name', species_base_epigenomes.species_name, 'base_epigenomes', species_base_epigenomes.base_epigenomes) ORDER BY species_base_epigenomes.species_name) AS json_agg&#10;   FROM species_base_epigenomes;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="json_agg" nullable="true" remarks="" size="2147483647" type="json" typeCode="1111"/>
      </table>
      <table name="base_epigenomes_replicates_and_files" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" WITH no_replicates AS (&#10;         SELECT base_epigenome_replicates_1.assembly_name,&#10;            base_epigenome_replicates_1.base_epigenome_id,&#10;            base_epigenome_replicates_1.experiment_type,&#10;            base_epigenome_replicates_1.experiment_target,&#10;            count(*) AS number_of_replicates&#10;           FROM base_epigenome_replicates base_epigenome_replicates_1&#10;          GROUP BY base_epigenome_replicates_1.assembly_name, base_epigenome_replicates_1.base_epigenome_id, base_epigenome_replicates_1.experiment_type, base_epigenome_replicates_1.experiment_target&#10;        )&#10; SELECT DISTINCT base_epigenome_replicates.species_name,&#10;    base_epigenome_replicates.assembly_name,&#10;    base_epigenome_replicates.base_epigenome_id,&#10;    base_epigenome_replicates.material,&#10;    base_epigenome_replicates.term,&#10;    base_epigenome_replicates.term_for_label,&#10;    base_epigenome_replicates.term_ontology,&#10;    base_epigenome_replicates.sex,&#10;    base_epigenome_replicates.sex_for_label,&#10;    base_epigenome_replicates.life_stage,&#10;    base_epigenome_replicates.life_stage_for_label,&#10;    base_epigenome_replicates.age_value,&#10;    base_epigenome_replicates.age_unit,&#10;    base_epigenome_replicates.modified_age_unit,&#10;    base_epigenome_replicates.extended_age,&#10;    base_epigenome_replicates.short_age,&#10;    base_epigenome_replicates.age_for_label,&#10;    base_epigenome_replicates.experiment_type,&#10;    base_epigenome_replicates.experiment_target,&#10;    base_epigenome_replicates.biosample_accession,&#10;    base_epigenome_replicates.data_source,&#10;    biosample_term_group.term_group,&#10;    no_replicates.number_of_replicates,&#10;    curated_experiment_analysis_files.experiment_id,&#10;    curated_experiment_analysis_files.assembly_id,&#10;    curated_experiment_analysis_files.open_chromatin_peak,&#10;    curated_experiment_analysis_files.chip_seq_gapped_peak_key,&#10;    curated_experiment_analysis_files.chip_seq_narrow_peak_key,&#10;    curated_experiment_analysis_files.signal_key,&#10;    biosample_biological_group.biological_group,&#10;    biosample_sample_type.sample_type&#10;   FROM ((((((curated_experiment_metadata&#10;     JOIN curated_experiment_analysis_files ON (((curated_experiment_metadata.experiment_id = curated_experiment_analysis_files.experiment_id) AND (curated_experiment_metadata.assembly_id = curated_experiment_analysis_files.assembly_id))))&#10;     JOIN base_epigenome_replicates ON (((curated_experiment_metadata.experiment_type = base_epigenome_replicates.experiment_type) AND (curated_experiment_metadata.experiment_target = base_epigenome_replicates.experiment_target) AND (curated_experiment_metadata.epigenome_id = base_epigenome_replicates.base_epigenome_id) AND ((curated_experiment_metadata.assembly_name)::text = (base_epigenome_replicates.assembly_name)::text) AND (curated_experiment_metadata.species_name = base_epigenome_replicates.species_name))))&#10;     JOIN no_replicates ON (((curated_experiment_metadata.experiment_type = no_replicates.experiment_type) AND (curated_experiment_metadata.experiment_target = no_replicates.experiment_target) AND (curated_experiment_metadata.epigenome_id = no_replicates.base_epigenome_id) AND ((curated_experiment_metadata.assembly_name)::text = (no_replicates.assembly_name)::text))))&#10;     JOIN biosample_term_group ON (((base_epigenome_replicates.base_epigenome_id = biosample_term_group.epigenome_id) AND (curated_experiment_metadata.epigenome_id = biosample_term_group.epigenome_id) AND (no_replicates.base_epigenome_id = biosample_term_group.epigenome_id))))&#10;     LEFT JOIN biosample_biological_group ON ((base_epigenome_replicates.base_epigenome_id = biosample_biological_group.epigenome_id)))&#10;     LEFT JOIN biosample_sample_type ON ((base_epigenome_replicates.base_epigenome_id = biosample_sample_type.epigenome_id)));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="species_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="assembly_name" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="base_epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="material" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="term" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="term_for_label" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="term_ontology" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="sex" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="sex_for_label" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="life_stage" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="life_stage_for_label" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="age_value" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="age_unit" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="modified_age_unit" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="extended_age" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="short_age" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="age_for_label" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="experiment_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="experiment_target" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="biosample_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="data_source" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="term_group" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="number_of_replicates" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="experiment_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="assembly_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="assembly_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="assembly"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="open_chromatin_peak" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="chip_seq_gapped_peak_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="chip_seq_narrow_peak_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="signal_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="biological_group" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="sample_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="biosample" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="biosample_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="biosample_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosample_data_source"/>
            <child column="biosample_id" foreignKey="biosample_set_biosample_biosample_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="biosample_set_biosample"/>
            <child column="biosample_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_metadata"/>
            <child column="biosample_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_metadata"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="biomaterial_type" nullable="false" remarks="" size="2147483647" type="biomaterial_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="term" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="data_source_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="biosample_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ontology_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="ontology_id" foreignKey="biosample_ontology_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="ontology"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="biosource_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="biosource_id" foreignKey="biosample_biosource_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="biosource"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="treatments" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="perturbed" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="disease_term_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="disease_term_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="health_status" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="genetic_modifications" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="alternative_data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="biosample_alternative_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="organ_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="cell_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="developmental_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="system_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="synonyms" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="age_at_collection" nullable="true" remarks="" size="2147483647" type="numrange" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="age_at_collection_unit" nullable="true" remarks="" size="2147483647" type="age_unit_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="time_post_fertilisation" nullable="true" remarks="" size="0" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="time_post_fertilisation_unit" nullable="true" remarks="" size="2147483647" type="time_post_fertilisation_unit_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="thermal_time" nullable="true" remarks="" size="0" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="life_stage_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="life_stage_id" foreignKey="biosample_life_stage_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="life_stage"/>
         </column>
         <primaryKey column="biosample_id" sequenceNumberInPK="1"/>
         <index name="biosample_pkey" unique="true">
            <column ascending="true" name="biosample_id"/>
         </index>
         <index name="ix_biosample_alternative_data_source_id" unique="false">
            <column ascending="true" name="alternative_data_source_id"/>
         </index>
         <index name="ix_biosample_biosource_id" unique="false">
            <column ascending="true" name="biosource_id"/>
         </index>
         <index name="ix_biosample_data_source_id" unique="false">
            <column ascending="true" name="data_source_id"/>
         </index>
         <index name="ix_biosample_life_stage_id" unique="false">
            <column ascending="true" name="life_stage_id"/>
         </index>
         <index name="ix_biosample_ontology_id" unique="false">
            <column ascending="true" name="ontology_id"/>
         </index>
      </table>
      <table name="biosample_biological_group" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" WITH classified AS (&#10;         SELECT metadata.epigenome_id,&#10;                CASE lower(metadata.material)&#10;                    WHEN 'cell line'::text THEN&#10;                    CASE&#10;                        WHEN (metadata.term = ANY (ARRAY['K562'::text, 'MEL'::text])) THEN 'blood and myeloid'::text&#10;                        WHEN (metadata.term = 'SK-N-SH'::text) THEN 'brain and nervous system'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['Caco-2'::text, 'HCT116'::text])) THEN 'intestine'::text&#10;                        WHEN (metadata.term = 'HEK293'::text) THEN 'kidney'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['A549'::text, 'PC-9'::text])) THEN 'lung'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['CH12.LX'::text, 'DND-41'::text, 'DOHH2'::text, 'GM06990'::text, 'GM12878'::text, 'KMS-11'::text, 'KOPT-K1'::text, 'Karpas-422'::text, 'Loucy'::text, 'MM.1S'::text, 'NCI-H929'::text, 'OCI-LY1'::text, 'OCI-LY3'::text, 'OCI-LY7'::text, 'SU-DHL-6'::text])) THEN 'lymphoid'::text&#10;                        WHEN (metadata.term = 'MCF-7'::text) THEN 'mammary gland'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['A673'::text, 'AG04450'::text, 'BJ'::text, 'GM23248'::text, 'IMR-90'::text, 'SK-N-MC'::text])) THEN 'mesenchymal and fibroblast'::text&#10;                        WHEN (metadata.term = 'Panc1'::text) THEN 'pancreas'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['ES-Bruce4'::text, 'ES-E14'::text, 'ES-I3'::text, 'GM23338'::text, 'H1'::text, 'H7'::text, 'H9'::text, 'HUES48'::text, 'HUES6'::text, 'HUES64'::text, 'NT2/D1'::text, 'iPS DF 19.11'::text, 'iPS DF 6.9'::text, 'iPS-18a'::text, 'iPS-20b'::text])) THEN 'pluripotent cells and models'::text&#10;                        WHEN (metadata.term = 'PC-3'::text) THEN 'prostate gland'::text&#10;                        WHEN (metadata.term = 'ACC112'::text) THEN 'salivary gland'::text&#10;                        WHEN (metadata.term = 'HeLa-S3'::text) THEN 'uterus'::text&#10;                        ELSE NULL::text&#10;                    END&#10;                    WHEN 'primary cell'::text THEN&#10;                    CASE&#10;                        WHEN (metadata.term = ANY (ARRAY['CD14-positive monocyte'::text, 'bone marrow macrophage'::text, 'common myeloid progenitor, CD34-positive'::text, 'mononuclear cell'::text, 'neutrophil'::text])) THEN 'blood and myeloid'::text&#10;                        WHEN (metadata.term = 'astrocyte'::text) THEN 'brain and nervous system'::text&#10;                        WHEN (metadata.term = 'kidney epithelial cell'::text) THEN 'kidney'::text&#10;                        WHEN (metadata.term = 'bronchial epithelial cell'::text) THEN 'lung'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['B cell'::text, 'T-cell'::text, 'natural killer cell'::text])) THEN 'lymphoid'::text&#10;                        WHEN (metadata.term = 'mammary epithelial cell'::text) THEN 'mammary gland'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['embryonic fibroblast'::text, 'fibroblast of dermis'::text, 'fibroblast of lung'::text, 'fibroblast of mammary gland'::text, 'foreskin fibroblast'::text, 'osteoblast'::text])) THEN 'mesenchymal and fibroblast'::text&#10;                        WHEN (metadata.term = 'skeletal muscle myoblast'::text) THEN 'musculature'::text&#10;                        WHEN (metadata.term = 'keratinocyte'::text) THEN 'skin'::text&#10;                        WHEN (metadata.term = 'endothelial cell of umbilical vein'::text) THEN 'vasculature'::text&#10;                        ELSE NULL::text&#10;                    END&#10;                    WHEN 'primary cell culture'::text THEN&#10;                    CASE&#10;                        WHEN (metadata.term = ANY (ARRAY['neural cell'::text, 'neural progenitor cell'::text, 'neuron'::text, 'neuronal stem cell'::text])) THEN 'brain and nervous system'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['ectodermal cell'::text, 'endodermal cell'::text, 'mesendoderm'::text, 'mesodermal cell'::text])) THEN 'embryo'::text&#10;                        WHEN (metadata.term = 'cardiac muscle cell'::text) THEN 'heart'::text&#10;                        WHEN (metadata.term = 'hepatocyte'::text) THEN 'liver'::text&#10;                        WHEN (metadata.term = 'mesenchymal stem cell'::text) THEN 'mesenchymal and fibroblast'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['myotube'::text, 'smooth muscle cell'::text])) THEN 'musculature'::text&#10;                        WHEN (metadata.term = 'trophoblast cell'::text) THEN 'placenta'::text&#10;                        ELSE NULL::text&#10;                    END&#10;                    WHEN 'primary tissue'::text THEN&#10;                    CASE&#10;                        WHEN (metadata.term = ANY (ARRAY['adipose tissue'::text, 'brown adipose tissue'::text, 'subcutaneous adipose tissue'::text])) THEN 'adipose tissue'::text&#10;                        WHEN (metadata.term = 'adrenal gland'::text) THEN 'adrenal gland'::text&#10;                        WHEN (metadata.term = 'bone marrow'::text) THEN 'blood and myeloid'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['brain'::text, 'cerebellum'::text, 'cortex'::text, 'cortical plate'::text, 'forebrain'::text, 'frontal cortex'::text, 'hindbrain'::text, 'hypothalamus'::text, 'midbrain'::text, 'neural tube'::text, 'olfactory bulb'::text, 'tibial nerve'::text])) THEN 'brain and nervous system'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['embryo'::text, 'embryonic facial prominence'::text, 'limb'::text])) THEN 'embryo'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['esophagus muscularis mucosa'::text, 'esophagus squamous epithelium'::text])) THEN 'esophagus'::text&#10;                        WHEN (metadata.term = 'gill filament'::text) THEN 'gill'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['gonad'::text, 'immature gonad'::text, 'testis'::text])) THEN 'gonad'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['heart'::text, 'heart left ventricle'::text, 'right atrium auricular region'::text])) THEN 'heart'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['Peyer''s patch'::text, 'ileum'::text, 'intestine'::text, 'large intestine'::text, 'sigmoid colon'::text, 'small intestine'::text, 'transverse colon'::text])) THEN 'intestine'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['kidney'::text, 'mesonephros'::text])) THEN 'kidney'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['liver'::text, 'lobe of liver'::text, 'right lobe of liver'::text])) THEN 'liver'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['left lung lobe'::text, 'lung'::text, 'upper lobe of left lung'::text])) THEN 'lung'::text&#10;                        WHEN (metadata.term = 'breast epithelium'::text) THEN 'mammary gland'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['fast muscle tissue'::text, 'gastrocnemius medialis'::text, 'gluteus medius'::text, 'hindlimb muscle'::text, 'longissimus dorsi muscle'::text, 'muscle of leg'::text, 'muscle of trunk'::text, 'psoas muscle'::text, 'skeletal muscle tissue'::text])) THEN 'musculature'::text&#10;                        WHEN (metadata.term = 'body of pancreas'::text) THEN 'pancreas'::text&#10;                        WHEN (metadata.term = 'placenta'::text) THEN 'placenta'::text&#10;                        WHEN (metadata.term = 'prostate gland'::text) THEN 'prostate gland'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['skin of back'::text, 'skin of body'::text])) THEN 'skin'::text&#10;                        WHEN (metadata.term = 'spleen'::text) THEN 'spleen'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['gastroesophageal sphincter'::text, 'stomach'::text])) THEN 'stomach'::text&#10;                        WHEN (metadata.term = 'thymus'::text) THEN 'thymus'::text&#10;                        WHEN (metadata.term = 'thyroid gland'::text) THEN 'thyroid gland'::text&#10;                        WHEN (metadata.term = 'trachea'::text) THEN 'trachea'::text&#10;                        WHEN (metadata.term = 'uterus'::text) THEN 'uterus'::text&#10;                        WHEN (metadata.term = 'vagina'::text) THEN 'vagina'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['ascending aorta'::text, 'thoracic aorta'::text, 'tibial artery'::text])) THEN 'vasculature'::text&#10;                        ELSE NULL::text&#10;                    END&#10;                    ELSE NULL::text&#10;                END AS biological_group&#10;           FROM curated_experiment_metadata metadata&#10;        )&#10; SELECT classified.epigenome_id,&#10;        CASE&#10;            WHEN (count(DISTINCT classified.biological_group) = 1) THEN min(classified.biological_group)&#10;            ELSE NULL::text&#10;        END AS biological_group&#10;   FROM classified&#10;  GROUP BY classified.epigenome_id;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="biological_group" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="biosample_data_source" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" WITH biosample_ds AS (&#10;         SELECT biosample_1.biosample_id,&#10;            data_source.accession AS biosample_accession&#10;           FROM (biosample biosample_1&#10;             LEFT JOIN data_source ON ((biosample_1.data_source_id = data_source.data_source_id)))&#10;        ), biosample_alternative_ds AS (&#10;         SELECT biosample_1.biosample_id,&#10;            data_source.accession AS biosample_alternative_accession&#10;           FROM (biosample biosample_1&#10;             LEFT JOIN data_source ON ((biosample_1.alternative_data_source_id = data_source.data_source_id)))&#10;        )&#10; SELECT biosample.biosample_id,&#10;    biosample.biomaterial_type,&#10;    biosample.term,&#10;    biosample.data_source_id,&#10;    biosample.ontology_id,&#10;    biosample.biosource_id,&#10;    biosample.treatments,&#10;    biosample.perturbed,&#10;    biosample.disease_term_id,&#10;    biosample.disease_term_name,&#10;    biosample.health_status,&#10;    biosample.genetic_modifications,&#10;    biosample.alternative_data_source_id,&#10;    biosample.organ_slims,&#10;    biosample.cell_slims,&#10;    biosample.developmental_slims,&#10;    biosample.system_slims,&#10;    biosample.synonyms,&#10;    biosample.age_at_collection,&#10;    biosample.age_at_collection_unit,&#10;    biosample.time_post_fertilisation,&#10;    biosample.time_post_fertilisation_unit,&#10;    biosample.thermal_time,&#10;    biosample.life_stage_id,&#10;    biosample_ds.biosample_accession,&#10;    biosample_alternative_ds.biosample_alternative_accession&#10;   FROM ((biosample&#10;     LEFT JOIN biosample_ds ON ((biosample.biosample_id = biosample_ds.biosample_id)))&#10;     LEFT JOIN biosample_alternative_ds ON ((biosample.biosample_id = biosample_alternative_ds.biosample_id)));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="biosample_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="biosample_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosample"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="biomaterial_type" nullable="true" remarks="" size="2147483647" type="biomaterial_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="term" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ontology_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="ontology_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="ontology"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="biosource_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="biosource_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosource"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="treatments" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="perturbed" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="disease_term_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="disease_term_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="health_status" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="genetic_modifications" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="alternative_data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="organ_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="cell_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="developmental_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="system_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="synonyms" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="age_at_collection" nullable="true" remarks="" size="2147483647" type="numrange" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="age_at_collection_unit" nullable="true" remarks="" size="2147483647" type="age_unit_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="time_post_fertilisation" nullable="true" remarks="" size="0" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="time_post_fertilisation_unit" nullable="true" remarks="" size="2147483647" type="time_post_fertilisation_unit_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="thermal_time" nullable="true" remarks="" size="0" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="life_stage_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="life_stage_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="life_stage"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="biosample_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="biosample_alternative_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="biosample_sample_type" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" WITH classified AS (&#10;         SELECT metadata.epigenome_id,&#10;                CASE lower(metadata.material)&#10;                    WHEN 'cell line'::text THEN&#10;                    CASE&#10;                        WHEN (metadata.term = ANY (ARRAY['A549'::text, 'A673'::text, 'CH12.LX'::text, 'Caco-2'::text, 'DND-41'::text, 'DOHH2'::text, 'HCT116'::text, 'HeLa-S3'::text, 'K562'::text, 'KMS-11'::text, 'KOPT-K1'::text, 'Karpas-422'::text, 'Loucy'::text, 'MCF-7'::text, 'MEL'::text, 'MM.1S'::text, 'NCI-H929'::text, 'NT2/D1'::text, 'OCI-LY1'::text, 'OCI-LY3'::text, 'OCI-LY7'::text, 'PC-3'::text, 'PC-9'::text, 'Panc1'::text, 'SK-N-MC'::text, 'SK-N-SH'::text, 'SU-DHL-6'::text])) THEN 'Cancer cell line'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['ES-Bruce4'::text, 'ES-E14'::text, 'ES-I3'::text, 'H1'::text, 'H7'::text, 'H9'::text, 'HUES48'::text, 'HUES6'::text, 'HUES64'::text])) THEN 'Embryonic stem cell line'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['AG04450'::text, 'BJ'::text, 'GM23248'::text, 'IMR-90'::text])) THEN 'Finite cell line'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['GM23338'::text, 'iPS DF 19.11'::text, 'iPS DF 6.9'::text, 'iPS-18a'::text, 'iPS-20b'::text])) THEN 'Induced pluripotent stem cell line'::text&#10;                        WHEN (metadata.term = ANY (ARRAY['ACC112'::text, 'GM06990'::text, 'GM12878'::text, 'HEK293'::text])) THEN 'Transformed cell line'::text&#10;                        ELSE NULL::text&#10;                    END&#10;                    WHEN 'primary cell'::text THEN&#10;                    CASE&#10;                        WHEN (metadata.term = ANY (ARRAY['B cell'::text, 'CD14-positive monocyte'::text, 'T-cell'::text, 'astrocyte'::text, 'bone marrow macrophage'::text, 'bronchial epithelial cell'::text, 'common myeloid progenitor, CD34-positive'::text, 'embryonic fibroblast'::text, 'endothelial cell of umbilical vein'::text, 'fibroblast of dermis'::text, 'fibroblast of lung'::text, 'fibroblast of mammary gland'::text, 'foreskin fibroblast'::text, 'keratinocyte'::text, 'kidney epithelial cell'::text, 'mammary epithelial cell'::text, 'mononuclear cell'::text, 'natural killer cell'::text, 'neutrophil'::text, 'osteoblast'::text, 'skeletal muscle myoblast'::text])) THEN 'Primary cells'::text&#10;                        ELSE NULL::text&#10;                    END&#10;                    WHEN 'primary cell culture'::text THEN&#10;                    CASE&#10;                        WHEN (metadata.term = ANY (ARRAY['cardiac muscle cell'::text, 'ectodermal cell'::text, 'endodermal cell'::text, 'hepatocyte'::text, 'mesenchymal stem cell'::text, 'mesendoderm'::text, 'mesodermal cell'::text, 'myotube'::text, 'neural cell'::text, 'neural progenitor cell'::text, 'neuron'::text, 'neuronal stem cell'::text, 'smooth muscle cell'::text, 'trophoblast cell'::text])) THEN 'In vitro differentiated cells'::text&#10;                        ELSE NULL::text&#10;                    END&#10;                    WHEN 'primary tissue'::text THEN&#10;                    CASE&#10;                        WHEN (metadata.term = ANY (ARRAY['Peyer''s patch'::text, 'adipose tissue'::text, 'adrenal gland'::text, 'ascending aorta'::text, 'body of pancreas'::text, 'bone marrow'::text, 'brain'::text, 'breast epithelium'::text, 'brown adipose tissue'::text, 'cerebellum'::text, 'cortex'::text, 'cortical plate'::text, 'embryo'::text, 'embryonic facial prominence'::text, 'esophagus muscularis mucosa'::text, 'esophagus squamous epithelium'::text, 'fast muscle tissue'::text, 'forebrain'::text, 'frontal cortex'::text, 'gastrocnemius medialis'::text, 'gastroesophageal sphincter'::text, 'gill filament'::text, 'gluteus medius'::text, 'gonad'::text, 'heart'::text, 'heart left ventricle'::text, 'hindbrain'::text, 'hindlimb muscle'::text, 'hypothalamus'::text, 'ileum'::text, 'immature gonad'::text, 'intestine'::text, 'kidney'::text, 'large intestine'::text, 'left lung lobe'::text, 'limb'::text, 'liver'::text, 'lobe of liver'::text, 'longissimus dorsi muscle'::text, 'lung'::text, 'mesonephros'::text, 'midbrain'::text, 'muscle of leg'::text, 'muscle of trunk'::text, 'neural tube'::text, 'olfactory bulb'::text, 'placenta'::text, 'prostate gland'::text, 'psoas muscle'::text, 'right atrium auricular region'::text, 'right lobe of liver'::text, 'sigmoid colon'::text, 'skeletal muscle tissue'::text, 'skin of back'::text, 'skin of body'::text, 'small intestine'::text, 'spleen'::text, 'stomach'::text, 'subcutaneous adipose tissue'::text, 'testis'::text, 'thoracic aorta'::text, 'thymus'::text, 'thyroid gland'::text, 'tibial artery'::text, 'tibial nerve'::text, 'trachea'::text, 'transverse colon'::text, 'upper lobe of left lung'::text, 'uterus'::text, 'vagina'::text])) THEN 'Primary tissue'::text&#10;                        ELSE NULL::text&#10;                    END&#10;                    ELSE NULL::text&#10;                END AS sample_type&#10;           FROM curated_experiment_metadata metadata&#10;        )&#10; SELECT classified.epigenome_id,&#10;        CASE&#10;            WHEN (count(DISTINCT classified.sample_type) = 1) THEN min(classified.sample_type)&#10;            ELSE NULL::text&#10;        END AS sample_type&#10;   FROM classified&#10;  GROUP BY classified.epigenome_id;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="sample_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="biosample_set" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="biosample_set_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="biosample_set_id" foreignKey="biosample_set_biosample_biosample_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="biosample_set_biosample"/>
            <child column="biosample_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosample_set_data_source"/>
            <child column="biosample_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_metadata"/>
            <child column="biosample_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_metadata"/>
            <child column="biosample_set_id" foreignKey="replicate_biosample_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="replicate"/>
            <child column="biosample_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="biosample_set_type" nullable="false" remarks="" size="2147483647" type="biosample_set_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="biosample_set_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <primaryKey column="biosample_set_id" sequenceNumberInPK="1"/>
         <index name="biosample_set_pkey" unique="true">
            <column ascending="true" name="biosample_set_id"/>
         </index>
         <index name="ix_biosample_set_data_source_id" unique="false">
            <column ascending="true" name="data_source_id"/>
         </index>
      </table>
      <table name="biosample_set_biosample" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="biosample_set_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="biosample_set_id" foreignKey="biosample_set_biosample_biosample_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="biosample_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="biosample_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="biosample_id" foreignKey="biosample_set_biosample_biosample_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="biosample"/>
         </column>
         <primaryKey column="biosample_set_id" sequenceNumberInPK="1"/>
         <primaryKey column="biosample_id" sequenceNumberInPK="2"/>
         <index name="biosample_set_biosample_pkey" unique="true">
            <column ascending="true" name="biosample_set_id"/>
            <column ascending="true" name="biosample_id"/>
         </index>
      </table>
      <table name="biosample_set_data_source" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT biosample_set.biosample_set_id,&#10;    biosample_set.biosample_set_type,&#10;    biosample_set.data_source_id,&#10;    data_source.accession&#10;   FROM (biosample_set&#10;     LEFT JOIN data_source ON ((biosample_set.data_source_id = data_source.data_source_id)));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="biosample_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="biosample_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosample_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="biosample_set_type" nullable="true" remarks="" size="2147483647" type="biosample_set_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="biosample_term_group" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT DISTINCT curated_experiment_metadata.epigenome_id,&#10;        CASE&#10;            WHEN ((curated_experiment_metadata.term ~~* '%terus%'::text) OR (array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* ANY (ARRAY['%prostate%'::text, '%vagina%'::text]))) THEN 'reproductive'::text&#10;            WHEN (array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* '%connective tissue%'::text) THEN 'connective tissue'::text&#10;            WHEN ((array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* '%blood%'::text) OR (array_to_string(curated_experiment_metadata.cell_slims, ','::text) ~~* '%B cell%'::text) OR ((array_to_string(curated_experiment_metadata.cell_slims, ','::text) ~~* '%hematopoietic%'::text) AND (curated_experiment_metadata.term !~~* '%bone marrow%'::text))) THEN 'blood'::text&#10;            WHEN (array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* '%bone marrow%'::text) THEN 'bone marrow'::text&#10;            WHEN (array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* '%tibial nerve%'::text) THEN 'limb'::text&#10;            WHEN (array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* '%blood vessel%'::text) THEN 'blood vessel'::text&#10;            WHEN ((curated_experiment_metadata.term ~~* '%skin%'::text) OR (array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* '%skin%'::text)) THEN 'skin'::text&#10;            WHEN (array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* '%embryo%'::text) THEN 'embryonic'::text&#10;            WHEN ((array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* '%liver%'::text) OR (curated_experiment_metadata.term ~~* '%liver%'::text)) THEN 'liver'::text&#10;            WHEN ((array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* '%kidney%'::text) OR (curated_experiment_metadata.term ~~* ANY (ARRAY['%kidney%'::text, '%mesonephros%'::text]))) THEN 'kidney'::text&#10;            WHEN (array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* '%epithel%'::text) THEN 'epithelium'::text&#10;            WHEN ((curated_experiment_metadata.term ~~* '%testis%'::text) OR (array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* '%testis%'::text)) THEN 'gonad'::text&#10;            WHEN (array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* '%endocrine%'::text) THEN 'endocrine gland'::text&#10;            WHEN ((array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* ANY (ARRAY['%spleen%'::text, '%thymus%'::text])) OR (curated_experiment_metadata.term ~~* ANY (ARRAY['%spleen%'::text, '%hymus%'::text]))) THEN 'immune organ'::text&#10;            WHEN (array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* '%stomach%'::text) THEN 'stomach'::text&#10;            WHEN ((curated_experiment_metadata.term ~~* '%muscle%'::text) OR (curated_experiment_metadata.term ~~* '%gluteus medius%'::text) OR (array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* ANY (ARRAY['%musculature%'::text, '%gluteus%'::text, '%skeletal%'::text, '%longissimus%'::text]))) THEN 'muscle'::text&#10;            WHEN ((array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* '%intestine%'::text) OR (curated_experiment_metadata.term ~~* ANY (ARRAY['%ileum%'::text, '%intestine%'::text]))) THEN 'intestine'::text&#10;            WHEN (array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* '%pancreas%'::text) THEN 'pancreas'::text&#10;            WHEN ((array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* '%lung%'::text) OR (curated_experiment_metadata.term ~~* '%lung%'::text)) THEN 'lung'::text&#10;            WHEN (curated_experiment_metadata.term ~~* '%tibial nerve%'::text) THEN 'limb'::text&#10;            WHEN ((curated_experiment_metadata.term ~~* '%heart%'::text) OR (array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* '%heart%'::text)) THEN 'heart'::text&#10;            WHEN (curated_experiment_metadata.term ~~* '%neuron%'::text) THEN 'neural cell'::text&#10;            WHEN ((curated_experiment_metadata.term ~~* '%brain%'::text) OR (array_to_string(curated_experiment_metadata.organ_slims, ','::text) ~~* '%brain%'::text) OR (curated_experiment_metadata.term ~~* ANY (ARRAY['%cortex%'::text, '%cerebellum%'::text, '%hypothalamus%'::text, '%neural progenitor%'::text]))) THEN 'brain'::text&#10;            WHEN (curated_experiment_metadata.term ~~* '%adipose%'::text) THEN 'adipose'::text&#10;            WHEN (curated_experiment_metadata.term = 'immature gonad'::text) THEN 'gonad'::text&#10;            ELSE curated_experiment_metadata.term&#10;        END AS term_group&#10;   FROM curated_experiment_metadata;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="term_group" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="biosource" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="biosource_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="biosource_id" foreignKey="biosample_biosource_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="biosample"/>
            <child column="biosource_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosample_data_source"/>
            <child column="biosource_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosource_data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="sex" nullable="false" remarks="" size="2147483647" type="sex_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="age_unit" nullable="true" remarks="" size="2147483647" type="age_unit_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="biosource_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="age" nullable="true" remarks="" size="2147483647" type="numrange" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="alternative_data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="biosource_alternative_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="life_stage_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="life_stage_id" foreignKey="biosource_life_stage_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="life_stage"/>
         </column>
         <primaryKey column="biosource_id" sequenceNumberInPK="1"/>
         <index name="biosource_pkey" unique="true">
            <column ascending="true" name="biosource_id"/>
         </index>
         <index name="ix_biosource_alternative_data_source_id" unique="false">
            <column ascending="true" name="alternative_data_source_id"/>
         </index>
         <index name="ix_biosource_data_source_id" unique="false">
            <column ascending="true" name="data_source_id"/>
         </index>
         <index name="ix_biosource_life_stage_id" unique="false">
            <column ascending="true" name="life_stage_id"/>
         </index>
      </table>
      <table name="biosource_data_source" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" WITH biosource_ds AS (&#10;         SELECT biosource_1.biosource_id,&#10;            data_source.accession AS biosource_accession&#10;           FROM (biosource biosource_1&#10;             LEFT JOIN data_source ON ((biosource_1.data_source_id = data_source.data_source_id)))&#10;        ), biosource_alternative_ds AS (&#10;         SELECT biosource_1.biosource_id,&#10;            data_source.accession AS biosource_alternative_accession&#10;           FROM (biosource biosource_1&#10;             LEFT JOIN data_source ON ((biosource_1.alternative_data_source_id = data_source.data_source_id)))&#10;        )&#10; SELECT biosource.biosource_id,&#10;    biosource.sex,&#10;    biosource.age_unit,&#10;    biosource.data_source_id,&#10;    biosource.age,&#10;    biosource.alternative_data_source_id,&#10;    biosource.life_stage_id,&#10;    biosource_ds.biosource_accession,&#10;    biosource_alternative_ds.biosource_alternative_accession&#10;   FROM ((biosource&#10;     LEFT JOIN biosource_ds ON ((biosource.biosource_id = biosource_ds.biosource_id)))&#10;     LEFT JOIN biosource_alternative_ds ON ((biosource.biosource_id = biosource_alternative_ds.biosource_id)));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="biosource_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="biosource_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosource"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="sex" nullable="true" remarks="" size="2147483647" type="sex_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="age_unit" nullable="true" remarks="" size="2147483647" type="age_unit_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="age" nullable="true" remarks="" size="2147483647" type="numrange" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="alternative_data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="life_stage_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="life_stage_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="life_stage"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="biosource_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="biosource_alternative_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="bucket" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="endpoint" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="2" name="bucket_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="bucket_id" foreignKey="s3_object_bucket_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="s3_object"/>
         </column>
         <primaryKey column="bucket_id" sequenceNumberInPK="1"/>
         <index name="bucket_pkey" unique="true">
            <column ascending="true" name="bucket_id"/>
         </index>
         <index name="bucket_name_endpoint_key" unique="true">
            <column ascending="true" name="name"/>
            <column ascending="true" name="endpoint"/>
         </index>
      </table>
      <table name="chip_seq" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="experiment_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="experiment_id" foreignKey="chip_seq_experiment_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="experiment"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="control" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="chip_seq_control_fkey" implied="false" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="signal" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="chip_seq_signal_fkey" implied="false" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="target_type" nullable="false" remarks="" size="2147483647" type="target_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="histone_target_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="histone_target_id" foreignKey="chip_seq_histone_target_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="histone_target"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="tf_target_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="tf_target_id" foreignKey="chip_seq_tf_target_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="tf_target"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="library_preparation" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <primaryKey column="experiment_id" sequenceNumberInPK="1"/>
         <index name="chip_seq_pkey" unique="true">
            <column ascending="true" name="experiment_id"/>
         </index>
         <index name="ix_chip_seq_control" unique="false">
            <column ascending="true" name="control"/>
         </index>
         <index name="ix_chip_seq_histone_target_id" unique="false">
            <column ascending="true" name="histone_target_id"/>
         </index>
         <index name="ix_chip_seq_tf_target_id" unique="false">
            <column ascending="true" name="tf_target_id"/>
         </index>
         <index name="uq_chip_seq_signal" unique="true">
            <column ascending="true" name="signal"/>
         </index>
      </table>
      <table name="curated_experiment_analysis_files" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" WITH signal_files AS (&#10;         SELECT analysis_file.analysis_file_id AS signal_analysis_file_id,&#10;            analysis_file.experiment_id AS signal_experiment_id,&#10;            assembly_1.assembly_id AS signal_assembly_id,&#10;            s3_object.key AS signal_key&#10;           FROM (((analysis_file&#10;             JOIN assembly assembly_1 ON ((analysis_file.assembly_id = assembly_1.assembly_id)))&#10;             JOIN file ON ((analysis_file.file_id = file.file_id)))&#10;             JOIN s3_object ON ((file.file_id = s3_object.file_id)))&#10;          WHERE (analysis_file.analysis_type = 'signal'::analysis_type)&#10;        ), atac_seq_peak_files AS (&#10;         SELECT analysis_file.analysis_file_id AS atac_seq_peak_analysis_file_id,&#10;            analysis_file.experiment_id AS atac_seq_peak_experiment_id,&#10;            assembly_1.assembly_id AS atac_seq_peak_assembly_id,&#10;            s3_object.key AS atac_seq_peak_key&#10;           FROM (((analysis_file&#10;             JOIN assembly assembly_1 ON ((analysis_file.assembly_id = assembly_1.assembly_id)))&#10;             JOIN file ON ((analysis_file.file_id = file.file_id)))&#10;             JOIN s3_object ON ((file.file_id = s3_object.file_id)))&#10;          WHERE (analysis_file.analysis_type = 'atac_seq_peaks'::analysis_type)&#10;        ), dnase_seq_peak_files AS (&#10;         SELECT analysis_file.analysis_file_id AS dnase_seq_peak_analysis_file_id,&#10;            analysis_file.experiment_id AS dnase_seq_peak_experiment_id,&#10;            assembly_1.assembly_id AS dnase_seq_peak_assembly_id,&#10;            s3_object.key AS dnase_seq_peak_key&#10;           FROM (((analysis_file&#10;             JOIN assembly assembly_1 ON ((analysis_file.assembly_id = assembly_1.assembly_id)))&#10;             JOIN file ON ((analysis_file.file_id = file.file_id)))&#10;             JOIN s3_object ON ((file.file_id = s3_object.file_id)))&#10;          WHERE (analysis_file.analysis_type = 'dnase_seq_peaks'::analysis_type)&#10;        ), chip_seq_narrow_peak_files AS (&#10;         SELECT analysis_file.analysis_file_id AS chip_seq_narrow_peak_analysis_file_id,&#10;            analysis_file.experiment_id AS chip_seq_narrow_peak_experiment_id,&#10;            assembly_1.assembly_id AS chip_seq_narrow_peak_assembly_id,&#10;            s3_object.key AS chip_seq_narrow_peak_key&#10;           FROM (((analysis_file&#10;             JOIN assembly assembly_1 ON ((analysis_file.assembly_id = assembly_1.assembly_id)))&#10;             JOIN file ON ((analysis_file.file_id = file.file_id)))&#10;             JOIN s3_object ON ((file.file_id = s3_object.file_id)))&#10;          WHERE (analysis_file.analysis_type = 'chip_seq_narrow_peaks'::analysis_type)&#10;        ), chip_seq_broad_peak_files AS (&#10;         SELECT analysis_file.analysis_file_id AS chip_seq_broad_peak_analysis_file_id,&#10;            analysis_file.experiment_id AS chip_seq_broad_peak_experiment_id,&#10;            assembly_1.assembly_id AS chip_seq_broad_peak_assembly_id,&#10;            s3_object.key AS chip_seq_broad_peak_key&#10;           FROM (((analysis_file&#10;             JOIN assembly assembly_1 ON ((analysis_file.assembly_id = assembly_1.assembly_id)))&#10;             JOIN file ON ((analysis_file.file_id = file.file_id)))&#10;             JOIN s3_object ON ((file.file_id = s3_object.file_id)))&#10;          WHERE (analysis_file.analysis_type = 'chip_seq_broad_peaks'::analysis_type)&#10;        ), chip_seq_gapped_peak_files AS (&#10;         SELECT analysis_file.analysis_file_id AS chip_seq_gapped_peak_analysis_file_id,&#10;            analysis_file.experiment_id AS chip_seq_gapped_peak_experiment_id,&#10;            assembly_1.assembly_id AS chip_seq_gapped_peak_assembly_id,&#10;            s3_object.key AS chip_seq_gapped_peak_key&#10;           FROM (((analysis_file&#10;             JOIN assembly assembly_1 ON ((analysis_file.assembly_id = assembly_1.assembly_id)))&#10;             JOIN file ON ((analysis_file.file_id = file.file_id)))&#10;             JOIN s3_object ON ((file.file_id = s3_object.file_id)))&#10;          WHERE (analysis_file.analysis_type = 'chip_seq_gapped_peaks'::analysis_type)&#10;        )&#10; SELECT DISTINCT curated_experiment_metadata.experiment_id,&#10;    curated_experiment_metadata.assembly_id,&#10;    COALESCE(atac_seq_peak_files.atac_seq_peak_key, dnase_seq_peak_files.dnase_seq_peak_key) AS open_chromatin_peak,&#10;    chip_seq_narrow_peak_files.chip_seq_narrow_peak_key,&#10;    chip_seq_broad_peak_files.chip_seq_broad_peak_key,&#10;    chip_seq_gapped_peak_files.chip_seq_gapped_peak_key,&#10;    signal_files.signal_key&#10;   FROM ((((((curated_experiment_metadata&#10;     LEFT JOIN signal_files ON (((curated_experiment_metadata.experiment_id = signal_files.signal_experiment_id) AND (signal_files.signal_assembly_id = curated_experiment_metadata.assembly_id))))&#10;     LEFT JOIN atac_seq_peak_files ON (((curated_experiment_metadata.experiment_id = atac_seq_peak_files.atac_seq_peak_experiment_id) AND (atac_seq_peak_files.atac_seq_peak_assembly_id = curated_experiment_metadata.assembly_id))))&#10;     LEFT JOIN dnase_seq_peak_files ON (((curated_experiment_metadata.experiment_id = dnase_seq_peak_files.dnase_seq_peak_experiment_id) AND (dnase_seq_peak_files.dnase_seq_peak_assembly_id = curated_experiment_metadata.assembly_id))))&#10;     LEFT JOIN chip_seq_narrow_peak_files ON (((curated_experiment_metadata.experiment_id = chip_seq_narrow_peak_files.chip_seq_narrow_peak_experiment_id) AND (chip_seq_narrow_peak_files.chip_seq_narrow_peak_assembly_id = curated_experiment_metadata.assembly_id))))&#10;     LEFT JOIN chip_seq_broad_peak_files ON (((curated_experiment_metadata.experiment_id = chip_seq_broad_peak_files.chip_seq_broad_peak_experiment_id) AND (chip_seq_broad_peak_files.chip_seq_broad_peak_assembly_id = curated_experiment_metadata.assembly_id))))&#10;     LEFT JOIN chip_seq_gapped_peak_files ON (((curated_experiment_metadata.experiment_id = chip_seq_gapped_peak_files.chip_seq_gapped_peak_experiment_id) AND (chip_seq_gapped_peak_files.chip_seq_gapped_peak_assembly_id = curated_experiment_metadata.assembly_id))));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="experiment_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="assembly_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="assembly_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="assembly"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="open_chromatin_peak" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="chip_seq_narrow_peak_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="chip_seq_broad_peak_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="chip_seq_gapped_peak_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="signal_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="curated_experiment_metadata" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT DISTINCT experiment_metadata.species_name,&#10;    experiment_metadata.epigenome_name,&#10;    experiment_metadata.name,&#10;    COALESCE(experiment_metadata.accession, experiment_metadata.biosample_accession) AS biosample_accession,&#10;    initcap(replace((experiment_metadata.biomaterial_type)::text, '_'::text, ' '::text)) AS material,&#10;        CASE&#10;            WHEN (experiment_metadata.biosample_term = ANY (ARRAY['Thymus'::text, 'Uterus'::text])) THEN lower(experiment_metadata.biosample_term)&#10;            ELSE experiment_metadata.biosample_term&#10;        END AS term,&#10;    concat(experiment_metadata.ontology_type, '_', experiment_metadata.curie) AS term_ontology,&#10;    experiment_metadata.organ_slims,&#10;    experiment_metadata.system_slims,&#10;        CASE&#10;            WHEN (experiment_metadata.experiment_type = 'atac_seq'::experiment_type) THEN 'ATAC-seq'::text&#10;            WHEN (experiment_metadata.experiment_type = 'dnase_seq'::experiment_type) THEN 'DNase-seq'::text&#10;            WHEN (experiment_metadata.experiment_type = 'chip_seq'::experiment_type) THEN 'ChIP-seq'::text&#10;            ELSE NULL::text&#10;        END AS experiment_type,&#10;        CASE&#10;            WHEN (experiment_metadata.experiment_target_type = 'atac_seq'::text) THEN 'open chromatin'::text&#10;            WHEN (experiment_metadata.experiment_target_type = 'dnase_seq'::text) THEN 'open chromatin'::text&#10;            WHEN (experiment_metadata.experiment_target_type = 'tf'::text) THEN 'transcription factor'::text&#10;            WHEN (experiment_metadata.experiment_target_type = 'histone'::text) THEN 'histone'::text&#10;            ELSE NULL::text&#10;        END AS experiment_target_type,&#10;        CASE&#10;            WHEN ((experiment_metadata.experiment_target = 'atac_seq'::text) OR (experiment_metadata.experiment_target = 'dnase_seq'::text)) THEN 'open chromatin'::text&#10;            ELSE experiment_metadata.experiment_target&#10;        END AS experiment_target,&#10;    experiment_metadata.sex,&#10;    COALESCE(experiment_metadata.life_stage_term, 'unknown'::text) AS life_stage,&#10;        CASE&#10;            WHEN (experiment_metadata.thermal_time IS NOT NULL) THEN (round(experiment_metadata.thermal_time, 2))::text&#10;            WHEN (lower(COALESCE(experiment_metadata.age_at_collection, experiment_metadata.age)) = upper(COALESCE(experiment_metadata.age_at_collection, experiment_metadata.age))) THEN (lower(COALESCE(experiment_metadata.age_at_collection, experiment_metadata.age)))::text&#10;            WHEN (lower(COALESCE(experiment_metadata.age_at_collection, experiment_metadata.age)) &lt;&gt; upper(COALESCE(experiment_metadata.age_at_collection, experiment_metadata.age))) THEN concat(lower(COALESCE(experiment_metadata.age_at_collection, experiment_metadata.age)), '-', upper(COALESCE(experiment_metadata.age_at_collection, experiment_metadata.age)))&#10;            ELSE 'unknown'::text&#10;        END AS age,&#10;        CASE&#10;            WHEN (experiment_metadata.thermal_time IS NOT NULL) THEN 'thermal time'::text&#10;            ELSE (COALESCE(experiment_metadata.age_at_collection_unit, experiment_metadata.age_unit))::text&#10;        END AS age_unit,&#10;    COALESCE(experiment_metadata.replicate_set_accession, experiment_metadata.replicate_accession) AS data_source,&#10;    experiment_metadata.assembly_name,&#10;    experiment_metadata.experiment_id,&#10;    experiment_metadata.epigenome_id,&#10;    experiment_metadata.epigenome_description,&#10;    experiment_metadata.cell_slims,&#10;    experiment_metadata.species_id,&#10;    experiment_metadata.assembly_id&#10;   FROM (experiment_metadata&#10;     JOIN analysis_file ON (((experiment_metadata.experiment_id = analysis_file.experiment_id) AND (analysis_file.assembly_id = experiment_metadata.assembly_id))))&#10;  WHERE ((analysis_file.handover = true) AND (experiment_metadata.replicate_set_type = 'signal'::text) AND (analysis_file.analysis_type = ANY (ARRAY['chip_seq_broad_peaks'::analysis_type, 'chip_seq_gapped_peaks'::analysis_type, 'chip_seq_narrow_peaks'::analysis_type, 'dnase_seq_peaks'::analysis_type, 'atac_seq_peaks'::analysis_type])) AND (experiment_metadata.biomaterial_type IS NOT NULL));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="species_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="epigenome_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="biosample_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="material" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="term" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="term_ontology" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="organ_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="system_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="experiment_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="experiment_target_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="experiment_target" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="sex" nullable="true" remarks="" size="2147483647" type="sex_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="life_stage" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="age" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="age_unit" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="data_source" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="assembly_name" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="experiment_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="epigenome_description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="cell_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="species_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="species_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="species"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="assembly_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="assembly_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="assembly"/>
         </column>
      </table>
      <table name="curated_open_chromatin_assay_metadata" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT DISTINCT experiment_metadata.species_name,&#10;    experiment_metadata.epigenome_name,&#10;    experiment_metadata.name,&#10;    COALESCE(experiment_metadata.accession, experiment_metadata.biosample_accession) AS biosample_accession,&#10;    initcap(replace((experiment_metadata.biomaterial_type)::text, '_'::text, ' '::text)) AS material,&#10;        CASE&#10;            WHEN (experiment_metadata.biosample_term = ANY (ARRAY['Thymus'::text, 'Uterus'::text])) THEN lower(experiment_metadata.biosample_term)&#10;            ELSE experiment_metadata.biosample_term&#10;        END AS term,&#10;    concat(experiment_metadata.ontology_type, '_', experiment_metadata.curie) AS term_ontology,&#10;    experiment_metadata.organ_slims,&#10;    experiment_metadata.system_slims,&#10;        CASE&#10;            WHEN (experiment_metadata.experiment_type = 'atac_seq'::experiment_type) THEN 'ATAC-seq'::text&#10;            WHEN (experiment_metadata.experiment_type = 'dnase_seq'::experiment_type) THEN 'DNase-seq'::text&#10;            WHEN (experiment_metadata.experiment_type = 'chip_seq'::experiment_type) THEN 'ChIP-seq'::text&#10;            ELSE NULL::text&#10;        END AS experiment_type,&#10;        CASE&#10;            WHEN (experiment_metadata.experiment_target_type = 'atac_seq'::text) THEN 'open chromatin'::text&#10;            WHEN (experiment_metadata.experiment_target_type = 'dnase_seq'::text) THEN 'open chromatin'::text&#10;            WHEN (experiment_metadata.experiment_target_type = 'tf'::text) THEN 'transcription factor'::text&#10;            WHEN (experiment_metadata.experiment_target_type = 'histone'::text) THEN 'histone'::text&#10;            ELSE NULL::text&#10;        END AS experiment_target_type,&#10;        CASE&#10;            WHEN ((experiment_metadata.experiment_target = 'atac_seq'::text) OR (experiment_metadata.experiment_target = 'dnase_seq'::text)) THEN 'open chromatin'::text&#10;            ELSE experiment_metadata.experiment_target&#10;        END AS experiment_target,&#10;    experiment_metadata.sex,&#10;    COALESCE(experiment_metadata.life_stage_term, 'unknown'::text) AS life_stage,&#10;        CASE&#10;            WHEN (experiment_metadata.thermal_time IS NOT NULL) THEN (round(experiment_metadata.thermal_time, 2))::text&#10;            WHEN (lower(COALESCE(experiment_metadata.age_at_collection, experiment_metadata.age)) = upper(COALESCE(experiment_metadata.age_at_collection, experiment_metadata.age))) THEN (lower(COALESCE(experiment_metadata.age_at_collection, experiment_metadata.age)))::text&#10;            WHEN (lower(COALESCE(experiment_metadata.age_at_collection, experiment_metadata.age)) &lt;&gt; upper(COALESCE(experiment_metadata.age_at_collection, experiment_metadata.age))) THEN concat(lower(COALESCE(experiment_metadata.age_at_collection, experiment_metadata.age)), '-', upper(COALESCE(experiment_metadata.age_at_collection, experiment_metadata.age)))&#10;            ELSE 'unknown'::text&#10;        END AS age,&#10;        CASE&#10;            WHEN (experiment_metadata.thermal_time IS NOT NULL) THEN 'thermal time'::text&#10;            ELSE (COALESCE(experiment_metadata.age_at_collection_unit, experiment_metadata.age_unit))::text&#10;        END AS age_unit,&#10;    COALESCE(experiment_metadata.replicate_set_accession, experiment_metadata.replicate_accession) AS data_source,&#10;    experiment_metadata.assembly_name,&#10;    experiment_metadata.experiment_id,&#10;    experiment_metadata.epigenome_id,&#10;    experiment_metadata.epigenome_description,&#10;    experiment_metadata.cell_slims,&#10;    experiment_metadata.species_id,&#10;    experiment_metadata.assembly_id&#10;   FROM (experiment_metadata&#10;     JOIN analysis_file ON (((experiment_metadata.experiment_id = analysis_file.experiment_id) AND (analysis_file.assembly_id = experiment_metadata.assembly_id))))&#10;  WHERE ((analysis_file.handover = true) AND (experiment_metadata.replicate_set_type = 'signal'::text) AND (analysis_file.analysis_type = ANY (ARRAY['dnase_seq_peaks'::analysis_type, 'atac_seq_peaks'::analysis_type])) AND (experiment_metadata.biomaterial_type IS NOT NULL) AND (experiment_metadata.experiment_id &lt;&gt; ALL (ARRAY['d19b02d2-d571-4ba8-9f24-b875fa3c69f5'::uuid, 'd67055dd-893e-48dc-bf80-3c7540e1fb7a'::uuid, '32f3f1f1-1a50-4a87-8cc7-582a52213689'::uuid])));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="species_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="epigenome_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="biosample_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="material" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="term" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="term_ontology" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="organ_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="system_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="experiment_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="experiment_target_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="experiment_target" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="sex" nullable="true" remarks="" size="2147483647" type="sex_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="life_stage" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="age" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="age_unit" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="data_source" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="assembly_name" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="experiment_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="epigenome_description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="cell_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="species_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="species_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="species"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="assembly_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="assembly_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="assembly"/>
         </column>
      </table>
      <table name="data_source" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="data_source_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="data_source_id" foreignKey="barcode_file_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="barcode_file"/>
            <child column="alternative_data_source_id" foreignKey="biosample_alternative_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="biosample"/>
            <child column="data_source_id" foreignKey="biosample_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="biosample"/>
            <child column="alternative_data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosample_data_source"/>
            <child column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosample_data_source"/>
            <child column="data_source_id" foreignKey="biosample_set_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="biosample_set"/>
            <child column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosample_set_data_source"/>
            <child column="alternative_data_source_id" foreignKey="biosource_alternative_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="biosource"/>
            <child column="data_source_id" foreignKey="biosource_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="biosource"/>
            <child column="alternative_data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosource_data_source"/>
            <child column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosource_data_source"/>
            <child column="alternative_data_source_id" foreignKey="epigenome_alternative_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="epigenome"/>
            <child column="data_source_id" foreignKey="epigenome_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="epigenome"/>
            <child column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome_data_source"/>
            <child column="data_source_id" foreignKey="epigenome_group_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="epigenome_group"/>
            <child column="data_source_id" foreignKey="experiment_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="experiment"/>
            <child column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_control_data_source"/>
            <child column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_control_target_info"/>
            <child column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_data_source"/>
            <child column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_metadata"/>
            <child column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_signal_data_source"/>
            <child column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_signal_target_info"/>
            <child column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_target_info"/>
            <child column="data_source_id" foreignKey="file_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="file"/>
            <child column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="library_data_source"/>
            <child column="data_source_id" foreignKey="read_file_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="read_file"/>
            <child column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_data_source"/>
            <child column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_metadata"/>
            <child column="data_source_id" foreignKey="read_file_set_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="read_file_set"/>
            <child column="data_source_id" foreignKey="replicate_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="replicate"/>
            <child column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_data_source"/>
            <child column="data_source_id" foreignKey="replicate_set_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="replicate_set"/>
            <child column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_set_data_source"/>
            <child column="data_source_id" foreignKey="run_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="run"/>
            <child column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="run_accession"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="accession" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="first_public" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="last_updated" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="archive_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="archive_id" foreignKey="data_source_archive_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="archive"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="request_payload" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="data_source_type" nullable="true" remarks="" size="2147483647" type="data_source_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="registration_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="data_source_id" sequenceNumberInPK="1"/>
         <index name="data_source_pkey" unique="true">
            <column ascending="true" name="data_source_id"/>
         </index>
         <index name="ix_data_source_accession" unique="false">
            <column ascending="true" name="accession"/>
         </index>
         <index name="ix_data_source_archive_id" unique="false">
            <column ascending="true" name="archive_id"/>
         </index>
      </table>
      <table name="dnase_seq" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="experiment_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="experiment_id" foreignKey="dnase_seq_experiment_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="experiment"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="replicate_set_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="dnase_seq_replicate_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <primaryKey column="experiment_id" sequenceNumberInPK="1"/>
         <index name="dnase_seq_pkey" unique="true">
            <column ascending="true" name="experiment_id"/>
         </index>
         <index name="uq_dnase_seq_replicate_set_id" unique="true">
            <column ascending="true" name="replicate_set_id"/>
         </index>
      </table>
      <table name="epigenome" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="2" name="epigenome_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="analysis_file_experiment_info"/>
            <child column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="analysis_file_info_with_checks"/>
            <child column="base_epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="base_epigenome_replicates"/>
            <child column="base_epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="base_epigenomes_replicates_and_files"/>
            <child column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosample_biological_group"/>
            <child column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosample_sample_type"/>
            <child column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosample_term_group"/>
            <child column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="curated_experiment_metadata"/>
            <child column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="curated_open_chromatin_assay_metadata"/>
            <child column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome_data_source"/>
            <child column="epigenome_id" foreignKey="experiment_epigenome_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="experiment"/>
            <child column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_control_data_source"/>
            <child column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_control_target_info"/>
            <child column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_data_source"/>
            <child column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_metadata"/>
            <child column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_signal_and_control_data_source"/>
            <child column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_signal_data_source"/>
            <child column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_signal_target_info"/>
            <child column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_target_info"/>
            <child column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_metadata"/>
            <child column="epigenome_id" foreignKey="track_epigenome_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="track"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="epigenome_group_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_group_id" foreignKey="epigenome_epigenome_group_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="epigenome_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="species_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="species_id" foreignKey="epigenome_species_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="species"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="epigenome_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="alternative_data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="epigenome_alternative_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <primaryKey column="epigenome_id" sequenceNumberInPK="1"/>
         <index name="epigenome_pkey" unique="true">
            <column ascending="true" name="epigenome_id"/>
         </index>
         <index name="ix_epigenome_alternative_data_source_id" unique="false">
            <column ascending="true" name="alternative_data_source_id"/>
         </index>
         <index name="ix_epigenome_data_source_id" unique="false">
            <column ascending="true" name="data_source_id"/>
         </index>
         <index name="ix_epigenome_epigenome_group_id" unique="false">
            <column ascending="true" name="epigenome_group_id"/>
         </index>
         <index name="ix_epigenome_species_id" unique="false">
            <column ascending="true" name="species_id"/>
         </index>
      </table>
      <table name="epigenome_data_source" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT epigenome.name,&#10;    epigenome.description,&#10;    epigenome.epigenome_id,&#10;    epigenome.epigenome_group_id,&#10;    epigenome.species_id,&#10;    epigenome.data_source_id,&#10;    data_source.accession AS epigenome_accession&#10;   FROM (epigenome&#10;     LEFT JOIN data_source ON ((epigenome.data_source_id = data_source.data_source_id)));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="epigenome_group_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_group_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="species_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="species_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="species"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="epigenome_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="epigenome_group" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="description" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="1" name="epigenome_group_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="epigenome_group_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="analysis_file_experiment_info"/>
            <child column="epigenome_group_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="analysis_file_info_with_checks"/>
            <child column="epigenome_group_id" foreignKey="epigenome_epigenome_group_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="epigenome"/>
            <child column="epigenome_group_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome_data_source"/>
            <child column="epigenome_group_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_metadata"/>
            <child column="epigenome_group_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_signal_and_control_data_source"/>
            <child column="epigenome_group_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_metadata"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="epigenome_group_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <primaryKey column="epigenome_group_id" sequenceNumberInPK="1"/>
         <index name="epigenome_group_pkey" unique="true">
            <column ascending="true" name="epigenome_group_id"/>
         </index>
         <index name="ix_epigenome_group_data_source_id" unique="false">
            <column ascending="true" name="data_source_id"/>
         </index>
      </table>
      <table name="experiment" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="experiment_type" nullable="false" remarks="" size="2147483647" type="experiment_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="epigenome_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="experiment_epigenome_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="3" name="experiment_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="experiment_id" foreignKey="analysis_file_experiment_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="analysis_file"/>
            <child column="experiment_id" foreignKey="atac_seq_experiment_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="atac_seq"/>
            <child column="experiment_id" foreignKey="chip_seq_experiment_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="chip_seq"/>
            <child column="experiment_id" foreignKey="dnase_seq_experiment_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="dnase_seq"/>
            <child column="experiment_id" foreignKey="multiome_experiment_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="multiome"/>
            <child column="experiment_id" foreignKey="rna_seq_experiment_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="rna_seq"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="experiment_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <primaryKey column="experiment_id" sequenceNumberInPK="1"/>
         <index name="experiment_pkey" unique="true">
            <column ascending="true" name="experiment_id"/>
         </index>
         <index name="ix_experiment_data_source_id" unique="false">
            <column ascending="true" name="data_source_id"/>
         </index>
         <index name="ix_experiment_epigenome_id" unique="false">
            <column ascending="true" name="epigenome_id"/>
         </index>
      </table>
      <table name="experiment_control_data_source" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT experiment_control_target_info.name,&#10;    experiment_control_target_info.experiment_type,&#10;    experiment_control_target_info.epigenome_id,&#10;    experiment_control_target_info.experiment_id,&#10;    experiment_control_target_info.data_source_id,&#10;    experiment_control_target_info.replicate_set_id,&#10;    experiment_control_target_info.replicate_set_type,&#10;    experiment_control_target_info.experiment_target_type,&#10;    experiment_control_target_info.experiment_target,&#10;    replicate_set_data_source.replicate_set_accession&#10;   FROM (experiment_control_target_info&#10;     LEFT JOIN replicate_set_data_source ON ((experiment_control_target_info.replicate_set_id = replicate_set_data_source.replicate_set_id)));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="experiment_type" nullable="true" remarks="" size="2147483647" type="experiment_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="experiment_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="replicate_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="replicate_set_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="experiment_target_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="experiment_target" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="replicate_set_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="experiment_control_target_info" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT experiment.name,&#10;    experiment.experiment_type,&#10;    experiment.epigenome_id,&#10;    experiment.experiment_id,&#10;    experiment.data_source_id,&#10;    replicate_set.replicate_set_id,&#10;    'control'::text AS replicate_set_type,&#10;    NULL::text AS experiment_target_type,&#10;    NULL::text AS experiment_target&#10;   FROM ((experiment&#10;     JOIN chip_seq ON ((experiment.experiment_id = chip_seq.experiment_id)))&#10;     JOIN replicate_set ON ((chip_seq.control = replicate_set.replicate_set_id)));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="experiment_type" nullable="true" remarks="" size="2147483647" type="experiment_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="experiment_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="replicate_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="replicate_set_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="experiment_target_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="experiment_target" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="experiment_data_source" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT experiment_signal_data_source.name,&#10;    experiment_signal_data_source.experiment_type,&#10;    experiment_signal_data_source.epigenome_id,&#10;    experiment_signal_data_source.experiment_id,&#10;    experiment_signal_data_source.data_source_id,&#10;    experiment_signal_data_source.replicate_set_id,&#10;    experiment_signal_data_source.replicate_set_type,&#10;    experiment_signal_data_source.experiment_target_type,&#10;    experiment_signal_data_source.experiment_target,&#10;    experiment_signal_data_source.replicate_set_accession&#10;   FROM experiment_signal_data_source&#10;UNION ALL&#10; SELECT experiment_control_data_source.name,&#10;    experiment_control_data_source.experiment_type,&#10;    experiment_control_data_source.epigenome_id,&#10;    experiment_control_data_source.experiment_id,&#10;    experiment_control_data_source.data_source_id,&#10;    experiment_control_data_source.replicate_set_id,&#10;    experiment_control_data_source.replicate_set_type,&#10;    experiment_control_data_source.experiment_target_type,&#10;    experiment_control_data_source.experiment_target,&#10;    experiment_control_data_source.replicate_set_accession&#10;   FROM experiment_control_data_source;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="experiment_type" nullable="true" remarks="" size="2147483647" type="experiment_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="experiment_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="replicate_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="replicate_set_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="experiment_target_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="experiment_target" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="replicate_set_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="experiment_metadata" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT species.name AS species_name,&#10;    species.species_id,&#10;    epigenome_group.description AS epigenome_group_description,&#10;    epigenome_group.epigenome_group_id,&#10;    epigenome_data_source.epigenome_accession,&#10;    epigenome_data_source.name AS epigenome_name,&#10;    epigenome_data_source.description AS epigenome_description,&#10;    experiment_data_source.name,&#10;    experiment_data_source.experiment_type,&#10;    experiment_data_source.epigenome_id,&#10;    experiment_data_source.experiment_id,&#10;    experiment_data_source.data_source_id,&#10;    experiment_data_source.replicate_set_id,&#10;    experiment_data_source.replicate_set_type,&#10;    experiment_data_source.experiment_target_type,&#10;    experiment_data_source.experiment_target,&#10;    experiment_data_source.replicate_set_accession,&#10;    replicate_data_source.replicate_id,&#10;    replicate_data_source.replicate_accession,&#10;    replicate_data_source.biosample_set_id,&#10;    biosample_set_data_source.biosample_set_type,&#10;    biosample_set_data_source.accession,&#10;    biosample_data_source.biosample_id,&#10;    biosample_data_source.biosample_accession,&#10;    biosample_data_source.biosample_alternative_accession,&#10;    biosample_data_source.biomaterial_type,&#10;    biosample_data_source.term AS biosample_term,&#10;    biosample_data_source.ontology_id,&#10;    ontology.ontology_type,&#10;    ontology.curie,&#10;    biosample_data_source.organ_slims,&#10;    biosample_data_source.cell_slims,&#10;    biosample_data_source.developmental_slims,&#10;    biosample_data_source.system_slims,&#10;    biosample_data_source.synonyms,&#10;    life_stage_with_ontology.life_stage_id,&#10;    life_stage_with_ontology.life_stage_term,&#10;    life_stage_with_ontology.life_stage_ontology_relation,&#10;    life_stage_with_ontology.life_stage_ontology_id,&#10;    life_stage_with_ontology.life_stage_ontology_type,&#10;    life_stage_with_ontology.life_stage_ontology_curie,&#10;    biosample_data_source.age_at_collection,&#10;    biosample_data_source.age_at_collection_unit,&#10;    biosample_data_source.time_post_fertilisation,&#10;    biosample_data_source.time_post_fertilisation_unit,&#10;    biosample_data_source.thermal_time,&#10;    biosample_data_source.perturbed,&#10;    biosample_data_source.treatments,&#10;    biosample_data_source.health_status,&#10;    biosample_data_source.disease_term_id,&#10;    biosample_data_source.disease_term_name,&#10;    biosample_data_source.genetic_modifications,&#10;    biosource_data_source.biosource_accession,&#10;    biosource_data_source.biosource_alternative_accession,&#10;    biosource_data_source.age,&#10;    biosource_data_source.age_unit,&#10;    biosource_data_source.sex,&#10;    assembly.ensembl_accession AS assembly_name,&#10;    assembly.assembly_id&#10;   FROM ((((((((((((species&#10;     JOIN assembly ON ((species.species_id = assembly.species_id)))&#10;     JOIN epigenome_data_source ON ((species.species_id = epigenome_data_source.species_id)))&#10;     JOIN epigenome_group ON ((epigenome_data_source.epigenome_group_id = epigenome_group.epigenome_group_id)))&#10;     JOIN experiment_data_source ON ((epigenome_data_source.epigenome_id = experiment_data_source.epigenome_id)))&#10;     JOIN replicate_set ON ((experiment_data_source.replicate_set_id = replicate_set.replicate_set_id)))&#10;     JOIN replicate_data_source ON ((replicate_set.replicate_set_id = replicate_data_source.replicate_set_id)))&#10;     LEFT JOIN biosample_set_data_source ON ((replicate_data_source.biosample_set_id = biosample_set_data_source.biosample_set_id)))&#10;     LEFT JOIN biosample_set_biosample ON ((biosample_set_data_source.biosample_set_id = biosample_set_biosample.biosample_set_id)))&#10;     LEFT JOIN biosample_data_source ON ((biosample_set_biosample.biosample_id = biosample_data_source.biosample_id)))&#10;     LEFT JOIN ontology ON ((biosample_data_source.ontology_id = ontology.ontology_id)))&#10;     LEFT JOIN biosource_data_source ON ((biosample_data_source.biosource_id = biosource_data_source.biosource_id)))&#10;     LEFT JOIN life_stage_with_ontology ON (((biosample_data_source.life_stage_id = life_stage_with_ontology.life_stage_id) OR (biosource_data_source.life_stage_id = life_stage_with_ontology.life_stage_id))));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="species_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="species_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="species_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="species"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="epigenome_group_description" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="epigenome_group_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_group_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="epigenome_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="epigenome_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="epigenome_description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="experiment_type" nullable="true" remarks="" size="2147483647" type="experiment_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="experiment_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="replicate_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="replicate_set_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="experiment_target_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="experiment_target" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="replicate_set_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="replicate_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="replicate_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="biosample_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="biosample_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosample_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="biosample_set_type" nullable="true" remarks="" size="2147483647" type="biosample_set_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="biosample_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="biosample_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosample"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="biosample_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="biosample_alternative_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="biomaterial_type" nullable="true" remarks="" size="2147483647" type="biomaterial_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="biosample_term" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="ontology_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="ontology_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="ontology"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="ontology_type" nullable="true" remarks="" size="2147483647" type="ontology_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="curie" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="organ_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="cell_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="developmental_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="system_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="synonyms" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="life_stage_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="life_stage_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="life_stage"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="life_stage_term" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="life_stage_ontology_relation" nullable="true" remarks="" size="2147483647" type="ontology_relation_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="life_stage_ontology_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="ontology_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="ontology"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="life_stage_ontology_type" nullable="true" remarks="" size="2147483647" type="ontology_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="life_stage_ontology_curie" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="age_at_collection" nullable="true" remarks="" size="2147483647" type="numrange" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="age_at_collection_unit" nullable="true" remarks="" size="2147483647" type="age_unit_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="time_post_fertilisation" nullable="true" remarks="" size="0" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="time_post_fertilisation_unit" nullable="true" remarks="" size="2147483647" type="time_post_fertilisation_unit_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="thermal_time" nullable="true" remarks="" size="0" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="perturbed" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="treatments" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="health_status" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="disease_term_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="disease_term_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="genetic_modifications" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="biosource_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="biosource_alternative_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="age" nullable="true" remarks="" size="2147483647" type="numrange" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="age_unit" nullable="true" remarks="" size="2147483647" type="age_unit_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="sex" nullable="true" remarks="" size="2147483647" type="sex_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="assembly_name" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="assembly_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="assembly_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="assembly"/>
         </column>
      </table>
      <table name="experiment_signal_and_control_data_source" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT species.name AS species_name,&#10;    species.species_id,&#10;    epigenome_group.description,&#10;    epigenome_group.epigenome_group_id,&#10;    epigenome_data_source.epigenome_accession,&#10;    epigenome_data_source.name AS epigenome_name,&#10;    epigenome_data_source.description AS epigenome_description,&#10;    epigenome_data_source.epigenome_id,&#10;    experiment_signal_data_source.name AS experiment_name,&#10;    experiment_signal_data_source.experiment_id,&#10;    experiment_signal_data_source.experiment_type,&#10;    experiment_signal_data_source.experiment_target_type,&#10;    experiment_signal_data_source.experiment_target,&#10;    experiment_signal_data_source.replicate_set_accession AS signal_replicate_set_accession,&#10;    experiment_signal_data_source.replicate_set_id AS signal_replicate_set_id,&#10;    experiment_control_data_source.replicate_set_accession AS control_replicate_set_accession,&#10;    experiment_control_data_source.replicate_set_id AS control_replicate_set_id&#10;   FROM ((((species&#10;     JOIN epigenome_data_source ON ((species.species_id = epigenome_data_source.species_id)))&#10;     JOIN epigenome_group ON ((epigenome_data_source.epigenome_group_id = epigenome_group.epigenome_group_id)))&#10;     JOIN experiment_signal_data_source ON ((epigenome_data_source.epigenome_id = experiment_signal_data_source.epigenome_id)))&#10;     LEFT JOIN experiment_control_data_source ON ((experiment_signal_data_source.experiment_id = experiment_control_data_source.experiment_id)));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="species_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="species_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="species_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="species"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="epigenome_group_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_group_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="epigenome_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="epigenome_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="epigenome_description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="experiment_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="experiment_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="experiment_type" nullable="true" remarks="" size="2147483647" type="experiment_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="experiment_target_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="experiment_target" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="signal_replicate_set_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="signal_replicate_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="control_replicate_set_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="control_replicate_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
      </table>
      <table name="experiment_signal_data_source" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT experiment_signal_target_info.name,&#10;    experiment_signal_target_info.experiment_type,&#10;    experiment_signal_target_info.epigenome_id,&#10;    experiment_signal_target_info.experiment_id,&#10;    experiment_signal_target_info.data_source_id,&#10;    experiment_signal_target_info.replicate_set_id,&#10;    experiment_signal_target_info.replicate_set_type,&#10;    experiment_signal_target_info.experiment_target_type,&#10;    experiment_signal_target_info.experiment_target,&#10;    replicate_set_data_source.replicate_set_accession&#10;   FROM (experiment_signal_target_info&#10;     LEFT JOIN replicate_set_data_source ON ((experiment_signal_target_info.replicate_set_id = replicate_set_data_source.replicate_set_id)));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="experiment_type" nullable="true" remarks="" size="2147483647" type="experiment_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="experiment_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="replicate_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="replicate_set_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="experiment_target_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="experiment_target" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="replicate_set_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="experiment_signal_target_info" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT experiment.name,&#10;    experiment.experiment_type,&#10;    experiment.epigenome_id,&#10;    experiment.experiment_id,&#10;    experiment.data_source_id,&#10;    replicate_set.replicate_set_id,&#10;    'signal'::text AS replicate_set_type,&#10;    COALESCE((chip_seq.target_type)::text, (experiment.experiment_type)::text) AS experiment_target_type,&#10;    COALESCE((histone_target.name)::text, (tf_target.name)::text, (experiment.experiment_type)::text) AS experiment_target&#10;   FROM ((((((experiment&#10;     LEFT JOIN atac_seq ON ((experiment.experiment_id = atac_seq.experiment_id)))&#10;     LEFT JOIN dnase_seq ON ((experiment.experiment_id = dnase_seq.experiment_id)))&#10;     LEFT JOIN chip_seq ON ((experiment.experiment_id = chip_seq.experiment_id)))&#10;     LEFT JOIN replicate_set ON (((atac_seq.replicate_set_id = replicate_set.replicate_set_id) OR (dnase_seq.replicate_set_id = replicate_set.replicate_set_id) OR (chip_seq.signal = replicate_set.replicate_set_id))))&#10;     LEFT JOIN histone_target ON ((chip_seq.histone_target_id = histone_target.histone_target_id)))&#10;     LEFT JOIN tf_target ON ((chip_seq.tf_target_id = tf_target.tf_target_id)));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="experiment_type" nullable="true" remarks="" size="2147483647" type="experiment_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="experiment_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="replicate_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="replicate_set_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="experiment_target_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="experiment_target" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="experiment_target_info" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT experiment_signal_target_info.name,&#10;    experiment_signal_target_info.experiment_type,&#10;    experiment_signal_target_info.epigenome_id,&#10;    experiment_signal_target_info.experiment_id,&#10;    experiment_signal_target_info.data_source_id,&#10;    experiment_signal_target_info.replicate_set_id,&#10;    experiment_signal_target_info.replicate_set_type,&#10;    experiment_signal_target_info.experiment_target_type,&#10;    experiment_signal_target_info.experiment_target&#10;   FROM experiment_signal_target_info&#10;UNION ALL&#10; SELECT experiment_control_target_info.name,&#10;    experiment_control_target_info.experiment_type,&#10;    experiment_control_target_info.epigenome_id,&#10;    experiment_control_target_info.experiment_id,&#10;    experiment_control_target_info.data_source_id,&#10;    experiment_control_target_info.replicate_set_id,&#10;    experiment_control_target_info.replicate_set_type,&#10;    experiment_control_target_info.experiment_target_type,&#10;    experiment_control_target_info.experiment_target&#10;   FROM experiment_control_target_info;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="experiment_type" nullable="true" remarks="" size="2147483647" type="experiment_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="experiment_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="replicate_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="replicate_set_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="experiment_target_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="experiment_target" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="file" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="basename" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="file_type" nullable="false" remarks="" size="2147483647" type="file_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="size" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="md5sum" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="4" name="file_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="file_id" foreignKey="alignment_file_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="alignment_file"/>
            <child column="file_id" foreignKey="analysis_file_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="analysis_file"/>
            <child column="file_id" foreignKey="assembly_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="assembly"/>
            <child column="file_id" foreignKey="barcode_file_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="barcode_file"/>
            <child column="file_id" foreignKey="inclusion_list_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="inclusion_list"/>
            <child column="file_id" foreignKey="mask_file_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="mask_file"/>
            <child column="file_id" foreignKey="posix_file_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="posix_file"/>
            <child column="file_id" foreignKey="public_url_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="public_url"/>
            <child column="file_id" foreignKey="read_file_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="read_file"/>
            <child column="file_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_data_source"/>
            <child column="file_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_metadata"/>
            <child column="file_id" foreignKey="s3_object_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="s3_object"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="execution_metadata" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="file_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="imported" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="file_systems" nullable="true" remarks="" size="2147483647" type="_file_system_type" typeCode="2003"/>
         <primaryKey column="file_id" sequenceNumberInPK="1"/>
         <index name="file_pkey" unique="true">
            <column ascending="true" name="file_id"/>
         </index>
         <index name="ix_file_data_source_id" unique="false">
            <column ascending="true" name="data_source_id"/>
         </index>
      </table>
      <table name="histone_target" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="histone_target_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="histone_target_id" foreignKey="chip_seq_histone_target_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="chip_seq"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="histone_target_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="mark_type" nullable="false" remarks="" size="2147483647" type="mark_type" typeCode="12"/>
         <primaryKey column="histone_target_id" sequenceNumberInPK="1"/>
         <index name="histone_target_pkey" unique="true">
            <column ascending="true" name="histone_target_id"/>
         </index>
         <index name="histone_target_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="inclusion_list" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="inclusion_list_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="chemistry" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="file_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="file_id" foreignKey="inclusion_list_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="file"/>
         </column>
         <primaryKey column="inclusion_list_id" sequenceNumberInPK="1"/>
         <index name="inclusion_list_pkey" unique="true">
            <column ascending="true" name="inclusion_list_id"/>
         </index>
         <index name="ix_inclusion_list_file_id" unique="false">
            <column ascending="true" name="file_id"/>
         </index>
      </table>
      <table name="library_data_source" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT read_file_set.read_file_set_id,&#10;    read_file_set.data_source_id,&#10;    data_source.accession AS library_accession&#10;   FROM (read_file_set&#10;     LEFT JOIN data_source ON ((read_file_set.data_source_id = data_source.data_source_id)));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="read_file_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="read_file_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="library_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="life_stage" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="life_stage_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="life_stage_id" foreignKey="biosample_life_stage_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="biosample"/>
            <child column="life_stage_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosample_data_source"/>
            <child column="life_stage_id" foreignKey="biosource_life_stage_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="biosource"/>
            <child column="life_stage_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosource_data_source"/>
            <child column="life_stage_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_metadata"/>
            <child column="life_stage_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="life_stage_with_ontology"/>
            <child column="life_stage_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_metadata"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="term" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ontology_relation" nullable="false" remarks="" size="2147483647" type="ontology_relation_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ontology_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="ontology_id" foreignKey="life_stage_ontology_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="ontology"/>
         </column>
         <primaryKey column="life_stage_id" sequenceNumberInPK="1"/>
         <index name="life_stage_pkey" unique="true">
            <column ascending="true" name="life_stage_id"/>
         </index>
         <index name="ix_life_stage_ontology_id" unique="false">
            <column ascending="true" name="ontology_id"/>
         </index>
         <index name="life_stage_term_ontology_relation_ontology_id_key" unique="true">
            <column ascending="true" name="term"/>
            <column ascending="true" name="ontology_id"/>
            <column ascending="true" name="ontology_relation"/>
         </index>
      </table>
      <table name="life_stage_with_ontology" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT life_stage.life_stage_id,&#10;    life_stage.term AS life_stage_term,&#10;    life_stage.ontology_relation AS life_stage_ontology_relation,&#10;    life_stage.ontology_id AS life_stage_ontology_id,&#10;    ontology.ontology_type AS life_stage_ontology_type,&#10;    ontology.curie AS life_stage_ontology_curie&#10;   FROM (life_stage&#10;     JOIN ontology ON ((life_stage.ontology_id = ontology.ontology_id)));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="life_stage_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="life_stage_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="life_stage"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="life_stage_term" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="life_stage_ontology_relation" nullable="true" remarks="" size="2147483647" type="ontology_relation_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="life_stage_ontology_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="ontology_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="ontology"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="life_stage_ontology_type" nullable="true" remarks="" size="2147483647" type="ontology_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="life_stage_ontology_curie" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="mask_file" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="mask_file_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="assembly_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="assembly_id" foreignKey="mask_file_assembly_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="assembly"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="file_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="file_id" foreignKey="mask_file_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="file"/>
         </column>
         <primaryKey column="mask_file_id" sequenceNumberInPK="1"/>
         <index name="mask_file_pkey" unique="true">
            <column ascending="true" name="mask_file_id"/>
         </index>
         <index name="ix_mask_file_assembly_id" unique="false">
            <column ascending="true" name="assembly_id"/>
         </index>
         <index name="ix_mask_file_file_id" unique="false">
            <column ascending="true" name="file_id"/>
         </index>
         <index name="mask_file_assembly_id_file_id_key" unique="true">
            <column ascending="true" name="assembly_id"/>
            <column ascending="true" name="file_id"/>
         </index>
      </table>
      <table name="metadata_dimensions" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" WITH base_epigenomes AS MATERIALIZED (&#10;         SELECT base_epigenomes.species_name,&#10;            base_epigenomes.assembly_name,&#10;            base_epigenomes.id,&#10;            base_epigenomes.material,&#10;            base_epigenomes.epigenome_name,&#10;            base_epigenomes.term,&#10;            base_epigenomes.term_for_label,&#10;            base_epigenomes.term_ontology,&#10;            base_epigenomes.sex,&#10;            base_epigenomes.sex_for_label,&#10;            base_epigenomes.life_stage,&#10;            base_epigenomes.life_stage_for_label,&#10;            base_epigenomes.extended_age,&#10;            base_epigenomes.age,&#10;            base_epigenomes.age_for_label,&#10;            base_epigenomes.organs,&#10;            base_epigenomes.systems,&#10;            base_epigenomes.tissue_group,&#10;            base_epigenomes.biological_group,&#10;            base_epigenomes.sample_type&#10;           FROM public.base_epigenomes&#10;        ), species AS (&#10;         SELECT DISTINCT base_epigenomes.species_name&#10;           FROM base_epigenomes&#10;        ), assemblies AS (&#10;         SELECT base_epigenomes.species_name,&#10;            array_agg(DISTINCT base_epigenomes.assembly_name) AS assemblies&#10;           FROM base_epigenomes&#10;          GROUP BY base_epigenomes.species_name&#10;        ), base_epigenome_terms AS (&#10;         SELECT DISTINCT base_epigenomes.species_name,&#10;            base_epigenomes.term,&#10;            base_epigenomes.term_ontology&#10;           FROM base_epigenomes&#10;        ), base_epigeome_age AS (&#10;         SELECT DISTINCT base_epigenomes.species_name,&#10;            base_epigenomes.age_for_label AS age,&#10;            base_epigenomes.extended_age&#10;           FROM base_epigenomes&#10;          WHERE (base_epigenomes.age IS NOT NULL)&#10;        ), base_epigenome_organ AS (&#10;         SELECT DISTINCT base_epigenomes.species_name,&#10;            unnest(base_epigenomes.organs) AS organ&#10;           FROM base_epigenomes&#10;        ), base_epigenome_system AS (&#10;         SELECT DISTINCT base_epigenomes.species_name,&#10;            unnest(base_epigenomes.systems) AS system&#10;           FROM base_epigenomes&#10;        ), base_epigenome_tissue_group AS (&#10;         SELECT DISTINCT base_epigenomes.species_name,&#10;            base_epigenomes.tissue_group&#10;           FROM base_epigenomes&#10;        ), base_epigenome_biological_group AS (&#10;         SELECT DISTINCT base_epigenomes.species_name,&#10;            base_epigenomes.biological_group&#10;           FROM base_epigenomes&#10;          WHERE (base_epigenomes.biological_group IS NOT NULL)&#10;        ), base_epigenome_sample_type AS (&#10;         SELECT DISTINCT base_epigenomes.species_name,&#10;            base_epigenomes.sample_type&#10;           FROM base_epigenomes&#10;          WHERE (base_epigenomes.sample_type IS NOT NULL)&#10;        ), filter_menu AS (&#10;         SELECT DISTINCT base_epigenomes.species_name,&#10;                CASE&#10;                    WHEN ((base_epigenomes.organs IS NULL) AND (base_epigenomes.systems IS NULL)) THEN (json_build_array(json_build_array('term'), json_build_array('tissue_group'), json_build_array('biological_group'), json_build_array('sample_type'), json_build_array('sex'), json_build_array('life_stage'), json_build_array('material')))::jsonb&#10;                    ELSE (json_build_array(json_build_array('term'), json_build_array('tissue_group'), json_build_array('biological_group'), json_build_array('sample_type'), json_build_array('organs'), json_build_array('systems'), json_build_array('sex'), json_build_array('life_stage'), json_build_array('material')))::jsonb&#10;                END AS filter_layout&#10;           FROM base_epigenomes&#10;        ), table_layout AS (&#10;         SELECT DISTINCT base_epigenomes.species_name,&#10;            (json_build_array('tissue_group', 'term', 'life_stage', 'age', 'sex', 'material'))::jsonb AS layout&#10;           FROM base_epigenomes&#10;        ), optional AS (&#10;         SELECT DISTINCT base_epigenomes.species_name,&#10;                CASE&#10;                    WHEN ((base_epigenomes.organs IS NULL) AND (base_epigenomes.systems IS NULL)) THEN (json_build_array('biological_group', 'sample_type'))::jsonb&#10;                    ELSE (json_build_array('organs', 'systems', 'biological_group', 'sample_type'))::jsonb&#10;                END AS dimensions&#10;           FROM base_epigenomes&#10;        ), collapsible AS (&#10;         SELECT DISTINCT base_epigenomes.species_name,&#10;            (json_build_array('sex', 'life_stage', 'age'))::jsonb AS dimensions&#10;           FROM base_epigenomes&#10;        ), filterable AS (&#10;         SELECT DISTINCT base_epigenomes.species_name,&#10;                CASE&#10;                    WHEN ((base_epigenomes.organs IS NULL) AND (base_epigenomes.systems IS NULL)) THEN (json_build_array('material', 'tissue_group', 'biological_group', 'sample_type', 'sex', 'term', 'life_stage'))::jsonb&#10;                    ELSE (json_build_array('material', 'tissue_group', 'biological_group', 'sample_type', 'sex', 'term', 'life_stage', 'organs', 'systems'))::jsonb&#10;                END AS dimensions&#10;           FROM base_epigenomes&#10;        ), sortable AS (&#10;         SELECT DISTINCT base_epigenomes.species_name,&#10;                CASE&#10;                    WHEN ((base_epigenomes.organs IS NULL) AND (base_epigenomes.systems IS NULL)) THEN (json_build_array('term', 'tissue_group', 'biological_group', 'sample_type', 'life_stage', 'sex', 'material'))::jsonb&#10;                    ELSE (json_build_array('tissue_group', 'biological_group', 'sample_type', 'organs', 'life_stage', 'sex', 'material', 'term', 'systems'))::jsonb&#10;                END AS dimensions&#10;           FROM base_epigenomes&#10;        ), zero_counts_visible AS (&#10;         SELECT DISTINCT base_epigenomes.species_name,&#10;                CASE&#10;                    WHEN ((base_epigenomes.organs IS NULL) AND (base_epigenomes.systems IS NULL)) THEN (json_build_array('material'))::jsonb&#10;                    ELSE (json_build_array('material', 'systems'))::jsonb&#10;                END AS dimensions&#10;           FROM base_epigenomes&#10;        ), species_dimensions AS (&#10;         SELECT json_build_object('species_name', species.species_name, 'assemblies', ( SELECT assemblies.assemblies&#10;                   FROM assemblies&#10;                  WHERE (assemblies.species_name = species.species_name)), 'ui_spec', json_build_object('filter_layout', ( SELECT filter_menu.filter_layout&#10;                   FROM filter_menu&#10;                  WHERE (filter_menu.species_name = species.species_name)), 'table_layout', ( SELECT table_layout.layout&#10;                   FROM table_layout&#10;                  WHERE (table_layout.species_name = species.species_name)), 'optional', ( SELECT optional.dimensions&#10;                   FROM optional&#10;                  WHERE (optional.species_name = species.species_name)), 'collapsible', ( SELECT collapsible.dimensions&#10;                   FROM collapsible&#10;                  WHERE (collapsible.species_name = species.species_name)), 'default_collapsed_by', json_build_array('age', 'sex'), 'filterable', ( SELECT filterable.dimensions&#10;                   FROM filterable&#10;                  WHERE (filterable.species_name = species.species_name)), 'sortable', ( SELECT sortable.dimensions&#10;                   FROM sortable&#10;                  WHERE (sortable.species_name = species.species_name)), 'zero_counts_visible', ( SELECT zero_counts_visible.dimensions&#10;                   FROM zero_counts_visible&#10;                  WHERE (zero_counts_visible.species_name = species.species_name))), 'dimensions', json_build_object('material', json_build_object('name', 'Biosample material', 'type', 'categorical', 'values', ( SELECT json_agg(DISTINCT b.material) AS json_agg&#10;                   FROM base_epigenomes b&#10;                  WHERE (b.species_name = species.species_name)), 'default_set', json_build_object('type', 'exclude', 'values',&#10;                CASE&#10;                    WHEN (species.species_name = ANY (ARRAY['Homo sapiens'::text, 'Mus musculus'::text])) THEN json_build_array('cell line')&#10;                    ELSE json_build_array()&#10;                END)), 'sex', json_build_object('name', 'Sex', 'type', 'categorical', 'values', ( SELECT json_agg(DISTINCT b.sex) AS json_agg&#10;                   FROM base_epigenomes b&#10;                  WHERE (b.species_name = species.species_name)), 'default_set', json_build_object('type', 'exclude', 'values', json_build_array())), 'term', json_build_object('name', 'Biosample term', 'type', 'categorical_with_ontology', 'values', ( SELECT json_agg(json_build_object('value', t.term, 'ontology', json_build_object('curie', replace(t.term_ontology, '_'::text, ':'::text), 'url', concat('https://purl.obolibrary.org/obo/', t.term_ontology)))) AS json_agg&#10;                   FROM base_epigenome_terms t&#10;                  WHERE (t.species_name = species.species_name)), 'default_set', json_build_object('type', 'exclude', 'values', json_build_array())), 'life_stage', json_build_object('name', 'Life stage', 'type', 'categorical', 'values', ( SELECT json_agg(DISTINCT b.life_stage) AS json_agg&#10;                   FROM base_epigenomes b&#10;                  WHERE (b.species_name = species.species_name)), 'default_set', json_build_object('type', 'exclude', 'values', json_build_array())), 'age', json_build_object('name', 'Age', 'type', 'categorical_with_description', 'values', ( SELECT json_agg(json_build_object('value', a.age, 'description', a.extended_age)) AS json_agg&#10;                   FROM base_epigeome_age a&#10;                  WHERE (a.species_name = species.species_name)), 'default_set', json_build_object('type', 'exclude', 'values', json_build_array())), 'organs', json_build_object('name', 'Organ', 'type', 'categorical_with_ontology', 'values', ( SELECT json_agg(json_build_object('value', o.organ, 'ontology', json_build_object('curie', NULL::unknown, 'url', NULL::unknown))) AS json_agg&#10;                   FROM base_epigenome_organ o&#10;                  WHERE (o.species_name = species.species_name)), 'default_set', json_build_object('type', 'exclude', 'values', json_build_array())), 'systems', json_build_object('name', 'System', 'type', 'categorical_with_ontology', 'values', ( SELECT json_agg(json_build_object('value', s.system, 'ontology', json_build_object('curie', NULL::unknown, 'url', NULL::unknown))) AS json_agg&#10;                   FROM base_epigenome_system s&#10;                  WHERE (s.species_name = species.species_name)), 'default_set', json_build_object('type', 'exclude', 'values', json_build_array())), 'tissue_group', json_build_object('name', 'Tissue group', 'type', 'categorical_with_ontology', 'values', ( SELECT json_agg(json_build_object('value', t.tissue_group, 'ontology', json_build_object('curie', NULL::unknown, 'url', NULL::unknown))) AS json_agg&#10;                   FROM base_epigenome_tissue_group t&#10;                  WHERE (t.species_name = species.species_name)), 'default_set', json_build_object('type', 'exclude', 'values', json_build_array())), 'biological_group', json_build_object('name', 'Biological group', 'type', 'categorical_with_ontology', 'values', ( SELECT json_agg(json_build_object('value', c.biological_group, 'ontology', json_build_object('curie', NULL::text, 'url', NULL::text)) ORDER BY c.biological_group) AS json_agg&#10;                   FROM base_epigenome_biological_group c&#10;                  WHERE (c.species_name = species.species_name)), 'default_set', json_build_object('type', 'exclude', 'values', json_build_array())), 'sample_type', json_build_object('name', 'Sample type', 'type', 'categorical', 'values', ( SELECT json_agg(c.sample_type ORDER BY c.sample_type) AS json_agg&#10;                   FROM base_epigenome_sample_type c&#10;                  WHERE (c.species_name = species.species_name)), 'default_set', json_build_object('type', 'exclude', 'values', json_build_array())))) AS payload&#10;           FROM species&#10;        )&#10; SELECT jsonb_pretty((json_agg(species_dimensions.payload))::jsonb) AS species_dimensions&#10;   FROM species_dimensions;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="species_dimensions" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="metadata_override" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="metadata_override_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="accession" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="original_values" nullable="false" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="edited_values" nullable="false" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <primaryKey column="metadata_override_id" sequenceNumberInPK="1"/>
         <index name="metadata_override_pkey" unique="true">
            <column ascending="true" name="metadata_override_id"/>
         </index>
         <index name="ix_metadata_override_accession" unique="false">
            <column ascending="true" name="accession"/>
         </index>
      </table>
      <table name="multiome" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="experiment_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="experiment_id" foreignKey="multiome_experiment_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="experiment"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="sn_atac_seq_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="multiome_sn_atac_seq_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="sn_rna_seq_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="multiome_sn_rna_seq_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="library_preparation" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <primaryKey column="experiment_id" sequenceNumberInPK="1"/>
         <index name="multiome_pkey" unique="true">
            <column ascending="true" name="experiment_id"/>
         </index>
         <index name="multiome_sn_atac_seq_id_key" unique="true">
            <column ascending="true" name="sn_atac_seq_id"/>
         </index>
         <index name="multiome_sn_rna_seq_id_key" unique="true">
            <column ascending="true" name="sn_rna_seq_id"/>
         </index>
      </table>
      <table name="ontology" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="ontology_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="ontology_id" foreignKey="biosample_ontology_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="biosample"/>
            <child column="ontology_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosample_data_source"/>
            <child column="life_stage_ontology_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_metadata"/>
            <child column="ontology_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_metadata"/>
            <child column="ontology_id" foreignKey="life_stage_ontology_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="life_stage"/>
            <child column="life_stage_ontology_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="life_stage_with_ontology"/>
            <child column="life_stage_ontology_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_metadata"/>
            <child column="ontology_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_metadata"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ontology_type" nullable="false" remarks="" size="2147483647" type="ontology_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="curie" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="ontology_id" sequenceNumberInPK="1"/>
         <index name="ontology_pkey" unique="true">
            <column ascending="true" name="ontology_id"/>
         </index>
         <index name="ontology_ontology_type_curie_key" unique="true">
            <column ascending="true" name="ontology_type"/>
            <column ascending="true" name="curie"/>
         </index>
      </table>
      <table name="open_chromatin_base_epigenome" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" WITH slims_before_agg AS (&#10;         SELECT curated_open_chromatin_assay_metadata.epigenome_id,&#10;                CASE&#10;                    WHEN (curated_open_chromatin_assay_metadata.organ_slims = ARRAY[]::text[]) THEN ARRAY['EMPTY'::text]&#10;                    WHEN (curated_open_chromatin_assay_metadata.organ_slims IS NULL) THEN ARRAY['UNANNOTATED'::text]&#10;                    ELSE curated_open_chromatin_assay_metadata.organ_slims&#10;                END AS organs_mod,&#10;                CASE&#10;                    WHEN (curated_open_chromatin_assay_metadata.system_slims = ARRAY[]::text[]) THEN ARRAY['EMPTY'::text]&#10;                    WHEN (curated_open_chromatin_assay_metadata.system_slims IS NULL) THEN ARRAY['UNANNOTATED'::text]&#10;                    ELSE curated_open_chromatin_assay_metadata.system_slims&#10;                END AS systems_mod&#10;           FROM curated_open_chromatin_assay_metadata&#10;        ), metadata_epig_with_ids AS (&#10;         SELECT DISTINCT curated_open_chromatin_assay_metadata.species_name,&#10;            curated_open_chromatin_assay_metadata.assembly_name,&#10;            curated_open_chromatin_assay_metadata.epigenome_name,&#10;            curated_open_chromatin_assay_metadata.epigenome_id,&#10;            curated_open_chromatin_assay_metadata.epigenome_description,&#10;            array_agg(DISTINCT curated_open_chromatin_assay_metadata.material) AS material,&#10;            curated_open_chromatin_assay_metadata.term,&#10;            curated_open_chromatin_assay_metadata.term_ontology,&#10;            unnest_2d_1d(array_agg(DISTINCT slims_before_agg.organs_mod)) AS organs,&#10;            unnest_2d_1d(array_agg(DISTINCT slims_before_agg.systems_mod)) AS systems,&#10;            array_agg(DISTINCT curated_open_chromatin_assay_metadata.sex) AS sex,&#10;            array_agg(DISTINCT curated_open_chromatin_assay_metadata.life_stage) AS life_stage,&#10;            array_agg(DISTINCT curated_open_chromatin_assay_metadata.age ORDER BY curated_open_chromatin_assay_metadata.age) AS age,&#10;            array_agg(DISTINCT curated_open_chromatin_assay_metadata.age_unit) AS age_unit&#10;           FROM (curated_open_chromatin_assay_metadata&#10;             JOIN slims_before_agg ON ((curated_open_chromatin_assay_metadata.epigenome_id = slims_before_agg.epigenome_id)))&#10;          GROUP BY curated_open_chromatin_assay_metadata.species_name, curated_open_chromatin_assay_metadata.assembly_name, curated_open_chromatin_assay_metadata.epigenome_name, curated_open_chromatin_assay_metadata.epigenome_id, curated_open_chromatin_assay_metadata.epigenome_description, curated_open_chromatin_assay_metadata.term, curated_open_chromatin_assay_metadata.term_ontology&#10;        ), slims_after_agg AS (&#10;         SELECT metadata_epig_with_ids_1.epigenome_id,&#10;                CASE&#10;                    WHEN (metadata_epig_with_ids_1.organs = ARRAY['EMPTY'::text]) THEN ARRAY[]::text[]&#10;                    WHEN (metadata_epig_with_ids_1.organs = ARRAY['UNANNOTATED'::text]) THEN NULL::text[]&#10;                    ELSE metadata_epig_with_ids_1.organs&#10;                END AS organs,&#10;                CASE&#10;                    WHEN (metadata_epig_with_ids_1.systems = ARRAY['EMPTY'::text]) THEN ARRAY[]::text[]&#10;                    WHEN (metadata_epig_with_ids_1.systems = ARRAY['UNANNOTATED'::text]) THEN NULL::text[]&#10;                    ELSE metadata_epig_with_ids_1.systems&#10;                END AS systems,&#10;                CASE&#10;                    WHEN ('unknown'::text = ANY (metadata_epig_with_ids_1.age)) THEN NULL::numeric[]&#10;                    ELSE (metadata_epig_with_ids_1.age)::numeric[]&#10;                END AS age,&#10;            metadata_epig_with_ids_1.age_unit&#10;           FROM metadata_epig_with_ids metadata_epig_with_ids_1&#10;        ), handle_age_after_agg AS (&#10;         SELECT metadata_epig_with_ids_1.epigenome_id,&#10;                CASE&#10;                    WHEN ('unknown'::text = ANY (metadata_epig_with_ids_1.age)) THEN NULL::numeric[]&#10;                    ELSE (metadata_epig_with_ids_1.age)::numeric[]&#10;                END AS age&#10;           FROM metadata_epig_with_ids metadata_epig_with_ids_1&#10;        ), sort_agg_age AS (&#10;         SELECT handle_age_after_agg.epigenome_id,&#10;            ARRAY( SELECT unnest(handle_age_after_agg.age) AS unnest&#10;                  ORDER BY (unnest(handle_age_after_agg.age))) AS age_sorted&#10;           FROM handle_age_after_agg&#10;        ), handle_sorted_age AS (&#10;         SELECT sort_agg_age.epigenome_id,&#10;                CASE&#10;                    WHEN (ARRAY[]::numeric[] = sort_agg_age.age_sorted) THEN NULL::text&#10;                    WHEN (array_length(sort_agg_age.age_sorted, 1) = 1) THEN ((sort_agg_age.age_sorted[1])::real)::text&#10;                    ELSE ((sort_agg_age.age_sorted)::real[])::text&#10;                END AS age&#10;           FROM sort_agg_age&#10;        ), handle_age_unit_after_agg AS (&#10;         SELECT metadata_epig_with_ids_1.epigenome_id,&#10;                CASE&#10;                    WHEN ('unknown'::text = ANY (metadata_epig_with_ids_1.age)) THEN NULL::text&#10;                    WHEN ((('embryo'::text = ANY (metadata_epig_with_ids_1.life_stage)) OR ('embryonic'::text = ANY (metadata_epig_with_ids_1.life_stage))) AND ('day'::text = ANY (metadata_epig_with_ids_1.age_unit))) THEN 'days post fertilisation'::text&#10;                    ELSE array_to_string(metadata_epig_with_ids_1.age_unit, ', '::text)&#10;                END AS age_unit&#10;           FROM metadata_epig_with_ids metadata_epig_with_ids_1&#10;        ), handle_age_unit_singular_plural AS (&#10;         SELECT handle_age_unit_after_agg.epigenome_id,&#10;                CASE&#10;                    WHEN ((handle_age_unit_after_agg.age_unit &lt;&gt; 'days post fertilisation'::text) AND (handle_age_unit_after_agg.age_unit &lt;&gt; 'thermal time'::text) AND (sort_agg_age.age_sorted[1] &lt;&gt; (1)::numeric)) THEN concat(handle_age_unit_after_agg.age_unit, 's')&#10;                    ELSE handle_age_unit_after_agg.age_unit&#10;                END AS age_unit&#10;           FROM (handle_age_unit_after_agg&#10;             JOIN sort_agg_age ON ((handle_age_unit_after_agg.epigenome_id = sort_agg_age.epigenome_id)))&#10;        ), age_range AS (&#10;         SELECT sort_agg_age.epigenome_id,&#10;                CASE&#10;                    WHEN (ARRAY[]::numeric[] = sort_agg_age.age_sorted) THEN NULL::text&#10;                    WHEN (array_length(sort_agg_age.age_sorted, 1) = 1) THEN ((sort_agg_age.age_sorted[1])::real)::text&#10;                    ELSE concat(((sort_agg_age.age_sorted[1])::real)::text, '-', ((sort_agg_age.age_sorted[array_upper(sort_agg_age.age_sorted, 1)])::real)::text)&#10;                END AS age_range&#10;           FROM sort_agg_age&#10;        ), shorten_age_unit AS (&#10;         SELECT handle_age_unit_after_agg.epigenome_id,&#10;                CASE&#10;                    WHEN (handle_age_unit_after_agg.age_unit = 'days post fertilisation'::text) THEN 'dpf'::text&#10;                    WHEN (handle_age_unit_after_agg.age_unit = 'month'::text) THEN 'mo'::text&#10;                    WHEN (handle_age_unit_after_agg.age_unit = 'year'::text) THEN 'y'::text&#10;                    WHEN (handle_age_unit_after_agg.age_unit = 'week'::text) THEN 'w'::text&#10;                    WHEN (handle_age_unit_after_agg.age_unit = 'day'::text) THEN 'd'::text&#10;                    WHEN (handle_age_unit_after_agg.age_unit = 'thermal time'::text) THEN 'tt'::text&#10;                    ELSE handle_age_unit_after_agg.age_unit&#10;                END AS short_age_unit&#10;           FROM handle_age_unit_after_agg&#10;        ), shorten_sex AS (&#10;         SELECT metadata_epig_with_ids_1.epigenome_id,&#10;                CASE&#10;                    WHEN ((metadata_epig_with_ids_1.sex)::text[] @&gt; ARRAY['unknown'::text]) THEN NULL::text&#10;                    WHEN ((metadata_epig_with_ids_1.sex)::text[] @&gt; ARRAY['mixed'::text]) THEN NULL::text&#10;                    WHEN ((metadata_epig_with_ids_1.sex)::text[] @&gt; ARRAY['male'::text, 'female'::text]) THEN NULL::text&#10;                    WHEN ((metadata_epig_with_ids_1.sex)::text[] = ARRAY['male'::text]) THEN 'm'::text&#10;                    WHEN ((metadata_epig_with_ids_1.sex)::text[] = ARRAY['female'::text]) THEN 'f'::text&#10;                    WHEN ((metadata_epig_with_ids_1.sex)::text[] = ARRAY['phenotypic'::text]) THEN NULL::text&#10;                    ELSE 'Err: not contemplated case'::text&#10;                END AS sex_for_label&#10;           FROM metadata_epig_with_ids metadata_epig_with_ids_1&#10;        ), lifestage_in_label AS (&#10;         SELECT metadata_epig_with_ids_1.epigenome_id,&#10;                CASE&#10;                    WHEN ((((metadata_epig_with_ids_1.sex)::text[] @&gt; ARRAY['phenotypic'::text]) OR ((metadata_epig_with_ids_1.sex)::text[] @&gt; ARRAY['unknown'::text])) AND (metadata_epig_with_ids_1.term = 'embryo'::text)) THEN metadata_epig_with_ids_1.life_stage&#10;                    ELSE NULL::text[]&#10;                END AS life_stage_info_for_label&#10;           FROM metadata_epig_with_ids metadata_epig_with_ids_1&#10;        )&#10; SELECT DISTINCT metadata_epig_with_ids.species_name,&#10;    metadata_epig_with_ids.assembly_name,&#10;    metadata_epig_with_ids.epigenome_id AS id,&#10;    lower(array_to_string(metadata_epig_with_ids.material, ', '::text)) AS material,&#10;    metadata_epig_with_ids.epigenome_name,&#10;    metadata_epig_with_ids.term,&#10;        CASE&#10;            WHEN (metadata_epig_with_ids.term &lt;&gt; 'embryo'::text) THEN metadata_epig_with_ids.term&#10;            ELSE NULL::text&#10;        END AS term_for_label,&#10;    metadata_epig_with_ids.term_ontology,&#10;    array_to_string(metadata_epig_with_ids.sex, ', '::text) AS sex,&#10;    shorten_sex.sex_for_label,&#10;    array_to_string(metadata_epig_with_ids.life_stage, ', '::text) AS life_stage,&#10;        CASE&#10;            WHEN ((((metadata_epig_with_ids.sex)::text[] @&gt; ARRAY['phenotypic'::text]) OR ((metadata_epig_with_ids.sex)::text[] @&gt; ARRAY['unknown'::text])) AND (metadata_epig_with_ids.term = 'embryo'::text)) THEN array_to_string(metadata_epig_with_ids.life_stage, ', '::text)&#10;            ELSE NULL::text&#10;        END AS life_stage_for_label,&#10;        CASE&#10;            WHEN (handle_sorted_age.age IS NULL) THEN NULL::text&#10;            ELSE concat(handle_sorted_age.age, ' ', handle_age_unit_singular_plural.age_unit)&#10;        END AS extended_age,&#10;        CASE&#10;            WHEN (handle_sorted_age.age IS NULL) THEN NULL::text&#10;            ELSE concat(age_range.age_range, ' ', shorten_age_unit.short_age_unit)&#10;        END AS age,&#10;        CASE&#10;            WHEN (((metadata_epig_with_ids.assembly_name)::text = 'GRCm39'::text) AND (array_to_string(metadata_epig_with_ids.life_stage, ', '::text) = 'embryonic'::text) AND (age_range.age_range IS NOT NULL)) THEN concat('E', age_range.age_range)&#10;            WHEN (handle_sorted_age.age IS NULL) THEN NULL::text&#10;            ELSE concat(age_range.age_range, ' ', shorten_age_unit.short_age_unit)&#10;        END AS age_for_label,&#10;    slims_after_agg.organs,&#10;    slims_after_agg.systems,&#10;    biosample_term_group.term_group AS tissue_group,&#10;    biosample_biological_group.biological_group,&#10;    biosample_sample_type.sample_type&#10;   FROM (((((((((metadata_epig_with_ids&#10;     JOIN handle_sorted_age ON ((metadata_epig_with_ids.epigenome_id = handle_sorted_age.epigenome_id)))&#10;     JOIN age_range ON ((metadata_epig_with_ids.epigenome_id = age_range.epigenome_id)))&#10;     JOIN handle_age_unit_singular_plural ON ((metadata_epig_with_ids.epigenome_id = handle_age_unit_singular_plural.epigenome_id)))&#10;     JOIN shorten_age_unit ON ((metadata_epig_with_ids.epigenome_id = shorten_age_unit.epigenome_id)))&#10;     JOIN slims_after_agg ON ((metadata_epig_with_ids.epigenome_id = slims_after_agg.epigenome_id)))&#10;     JOIN shorten_sex ON ((metadata_epig_with_ids.epigenome_id = shorten_sex.epigenome_id)))&#10;     JOIN biosample_term_group ON ((metadata_epig_with_ids.epigenome_id = biosample_term_group.epigenome_id)))&#10;     LEFT JOIN biosample_biological_group ON ((metadata_epig_with_ids.epigenome_id = biosample_biological_group.epigenome_id)))&#10;     LEFT JOIN biosample_sample_type ON ((metadata_epig_with_ids.epigenome_id = biosample_sample_type.epigenome_id)))&#10;  WHERE (((metadata_epig_with_ids.assembly_name)::text &lt;&gt; 'ARS-UCD1.3'::text) AND ((metadata_epig_with_ids.assembly_name)::text &lt;&gt; 'GRCg6a'::text) AND (metadata_epig_with_ids.term &lt;&gt; 'iPS-18c'::text));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="species_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="assembly_name" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="material" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="epigenome_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="term" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="term_for_label" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="term_ontology" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="sex" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="sex_for_label" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="life_stage" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="life_stage_for_label" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="extended_age" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="age" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="age_for_label" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="organs" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="systems" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="tissue_group" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="biological_group" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="sample_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="posix_file" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="posix_file_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="path" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="file_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="file_id" foreignKey="posix_file_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="file"/>
         </column>
         <primaryKey column="posix_file_id" sequenceNumberInPK="1"/>
         <index name="posix_file_pkey" unique="true">
            <column ascending="true" name="posix_file_id"/>
         </index>
         <index name="ix_posix_file_file_id" unique="false">
            <column ascending="true" name="file_id"/>
         </index>
      </table>
      <table name="public_url" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="public_url_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="url" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="file_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="file_id" foreignKey="public_url_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="file"/>
         </column>
         <primaryKey column="public_url_id" sequenceNumberInPK="1"/>
         <index name="public_url_pkey" unique="true">
            <column ascending="true" name="public_url_id"/>
         </index>
         <index name="ix_public_url_file_id" unique="false">
            <column ascending="true" name="file_id"/>
         </index>
      </table>
      <table name="quality_annotation" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="quality_annotation_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="accession" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="quality_annotation_type" nullable="false" remarks="" size="2147483647" type="quality_annotation_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="details" nullable="false" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <primaryKey column="quality_annotation_id" sequenceNumberInPK="1"/>
         <index name="quality_annotation_pkey" unique="true">
            <column ascending="true" name="quality_annotation_id"/>
         </index>
         <index name="accession_date_details_key" unique="true">
            <column ascending="true" name="accession"/>
            <column ascending="true" name="date"/>
            <column ascending="true" name="details"/>
         </index>
         <index name="ix_quality_annotation_accession" unique="false">
            <column ascending="true" name="accession"/>
         </index>
      </table>
      <table name="read_file" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="split_order" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="technical_replicate" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="2" name="read_file_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="read_file_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="read_file_set_id" foreignKey="read_file_read_file_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="read_file_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="file_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="file_id" foreignKey="read_file_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="file"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="read_count" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="base_count" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="paired_order" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="run_order" nullable="true" remarks="" size="2147483647" type="run_order_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="run_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="run_id" foreignKey="read_file_run_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="run"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="read_file_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <primaryKey column="read_file_id" sequenceNumberInPK="1"/>
         <index name="read_file_pkey" unique="true">
            <column ascending="true" name="read_file_id"/>
         </index>
         <index name="ix_read_file_data_source_id" unique="false">
            <column ascending="true" name="data_source_id"/>
         </index>
         <index name="ix_read_file_file_id" unique="false">
            <column ascending="true" name="file_id"/>
         </index>
         <index name="ix_read_file_read_file_set_id" unique="false">
            <column ascending="true" name="read_file_set_id"/>
         </index>
         <index name="ix_read_file_run_id" unique="false">
            <column ascending="true" name="run_id"/>
         </index>
      </table>
      <table name="read_file_data_source" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT read_file.split_order,&#10;    read_file.technical_replicate,&#10;    read_file.read_file_id,&#10;    read_file.read_file_set_id,&#10;    read_file.file_id,&#10;    read_file.read_count,&#10;    read_file.base_count,&#10;    read_file.paired_order,&#10;    read_file.run_order,&#10;    read_file.run_id,&#10;    read_file.data_source_id,&#10;    data_source.accession AS read_file_accession&#10;   FROM (read_file&#10;     LEFT JOIN data_source ON ((read_file.data_source_id = data_source.data_source_id)));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="split_order" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="technical_replicate" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="read_file_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="read_file_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="read_file_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="file_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="file_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="file"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="read_count" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="base_count" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="paired_order" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="run_order" nullable="true" remarks="" size="2147483647" type="run_order_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="run_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="run_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="run"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="read_file_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="read_file_metadata" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT DISTINCT experiment_metadata.species_name,&#10;    experiment_metadata.species_id,&#10;    experiment_metadata.epigenome_group_description,&#10;    experiment_metadata.epigenome_group_id,&#10;    experiment_metadata.epigenome_accession,&#10;    experiment_metadata.epigenome_name,&#10;    experiment_metadata.epigenome_description,&#10;    experiment_metadata.name,&#10;    experiment_metadata.experiment_type,&#10;    experiment_metadata.epigenome_id,&#10;    experiment_metadata.experiment_id,&#10;    experiment_metadata.data_source_id,&#10;    experiment_metadata.replicate_set_id,&#10;    experiment_metadata.replicate_set_type,&#10;    experiment_metadata.experiment_target_type,&#10;    experiment_metadata.experiment_target,&#10;    experiment_metadata.replicate_set_accession,&#10;    experiment_metadata.replicate_id,&#10;    experiment_metadata.replicate_accession,&#10;    experiment_metadata.biosample_set_id,&#10;    experiment_metadata.biosample_set_type,&#10;    experiment_metadata.accession,&#10;    experiment_metadata.biosample_id,&#10;    experiment_metadata.biosample_accession,&#10;    experiment_metadata.biosample_alternative_accession,&#10;    experiment_metadata.biomaterial_type,&#10;    experiment_metadata.biosample_term,&#10;    experiment_metadata.ontology_id,&#10;    experiment_metadata.ontology_type,&#10;    experiment_metadata.curie,&#10;    experiment_metadata.organ_slims,&#10;    experiment_metadata.cell_slims,&#10;    experiment_metadata.developmental_slims,&#10;    experiment_metadata.system_slims,&#10;    experiment_metadata.synonyms,&#10;    experiment_metadata.life_stage_id,&#10;    experiment_metadata.life_stage_term,&#10;    experiment_metadata.life_stage_ontology_relation,&#10;    experiment_metadata.life_stage_ontology_id,&#10;    experiment_metadata.life_stage_ontology_type,&#10;    experiment_metadata.life_stage_ontology_curie,&#10;    experiment_metadata.age_at_collection,&#10;    experiment_metadata.age_at_collection_unit,&#10;    experiment_metadata.time_post_fertilisation,&#10;    experiment_metadata.time_post_fertilisation_unit,&#10;    experiment_metadata.thermal_time,&#10;    experiment_metadata.perturbed,&#10;    experiment_metadata.treatments,&#10;    experiment_metadata.health_status,&#10;    experiment_metadata.disease_term_id,&#10;    experiment_metadata.disease_term_name,&#10;    experiment_metadata.genetic_modifications,&#10;    experiment_metadata.biosource_accession,&#10;    experiment_metadata.biosource_alternative_accession,&#10;    experiment_metadata.age,&#10;    experiment_metadata.age_unit,&#10;    experiment_metadata.sex,&#10;    library_data_source.library_accession,&#10;    library_data_source.read_file_set_id,&#10;    run_accession.technical_replicate,&#10;    run_accession.run_type,&#10;    run_accession.read_length,&#10;    run_accession.read_count,&#10;    run_accession.run_id,&#10;    read_file_data_source.run_order,&#10;    read_file_data_source.read_file_accession,&#10;    read_file_data_source.read_file_id,&#10;    file.file_id,&#10;    file.size,&#10;    file.md5sum,&#10;    public_url.url,&#10;    run_accession.run_accession,&#10;    s3_object.key&#10;   FROM (((((((experiment_metadata&#10;     JOIN replicate ON (((experiment_metadata.replicate_id = replicate.replicate_id) AND (replicate.biosample_set_id = experiment_metadata.biosample_set_id))))&#10;     JOIN library_data_source ON ((replicate.read_file_set_id = library_data_source.read_file_set_id)))&#10;     JOIN run_accession ON ((library_data_source.read_file_set_id = run_accession.read_file_set_id)))&#10;     JOIN read_file_data_source ON ((run_accession.run_id = read_file_data_source.run_id)))&#10;     JOIN file ON ((read_file_data_source.file_id = file.file_id)))&#10;     LEFT JOIN public_url ON ((file.file_id = public_url.file_id)))&#10;     LEFT JOIN s3_object ON ((file.file_id = s3_object.file_id)));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="species_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="species_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="species_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="species"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="epigenome_group_description" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="epigenome_group_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_group_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="epigenome_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="epigenome_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="epigenome_description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="experiment_type" nullable="true" remarks="" size="2147483647" type="experiment_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="epigenome_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="experiment_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="replicate_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="replicate_set_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="experiment_target_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="experiment_target" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="replicate_set_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="replicate_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="replicate_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="biosample_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="biosample_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosample_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="biosample_set_type" nullable="true" remarks="" size="2147483647" type="biosample_set_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="biosample_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="biosample_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosample"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="biosample_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="biosample_alternative_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="biomaterial_type" nullable="true" remarks="" size="2147483647" type="biomaterial_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="biosample_term" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="ontology_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="ontology_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="ontology"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="ontology_type" nullable="true" remarks="" size="2147483647" type="ontology_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="curie" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="organ_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="cell_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="developmental_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="system_slims" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="synonyms" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="life_stage_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="life_stage_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="life_stage"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="life_stage_term" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="life_stage_ontology_relation" nullable="true" remarks="" size="2147483647" type="ontology_relation_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="life_stage_ontology_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="ontology_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="ontology"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="life_stage_ontology_type" nullable="true" remarks="" size="2147483647" type="ontology_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="life_stage_ontology_curie" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="age_at_collection" nullable="true" remarks="" size="2147483647" type="numrange" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="age_at_collection_unit" nullable="true" remarks="" size="2147483647" type="age_unit_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="time_post_fertilisation" nullable="true" remarks="" size="0" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="time_post_fertilisation_unit" nullable="true" remarks="" size="2147483647" type="time_post_fertilisation_unit_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="thermal_time" nullable="true" remarks="" size="0" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="perturbed" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="treatments" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="health_status" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="disease_term_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="disease_term_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="genetic_modifications" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="52" name="biosource_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="biosource_alternative_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="age" nullable="true" remarks="" size="2147483647" type="numrange" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="age_unit" nullable="true" remarks="" size="2147483647" type="age_unit_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="56" name="sex" nullable="true" remarks="" size="2147483647" type="sex_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="57" name="library_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="58" name="read_file_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="read_file_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="technical_replicate" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="run_type" nullable="true" remarks="" size="2147483647" type="run_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="61" name="read_length" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="read_count" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="run_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="run_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="run"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="run_order" nullable="true" remarks="" size="2147483647" type="run_order_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="65" name="read_file_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="66" name="read_file_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="67" name="file_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="file_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="file"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="68" name="size" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="69" name="md5sum" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="70" name="url" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="71" name="run_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="72" name="key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="read_file_set" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="read_file_set_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="read_file_set_id" foreignKey="alignment_file_read_file_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="alignment_file"/>
            <child column="read_file_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="library_data_source"/>
            <child column="read_file_set_id" foreignKey="read_file_read_file_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="read_file"/>
            <child column="read_file_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_data_source"/>
            <child column="read_file_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_metadata"/>
            <child column="read_file_set_id" foreignKey="replicate_read_file_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="replicate"/>
            <child column="read_file_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_data_source"/>
            <child column="read_file_set_id" foreignKey="run_read_file_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="run"/>
            <child column="read_file_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="run_accession"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="read_file_set_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <primaryKey column="read_file_set_id" sequenceNumberInPK="1"/>
         <index name="read_file_set_pkey" unique="true">
            <column ascending="true" name="read_file_set_id"/>
         </index>
         <index name="ix_read_file_set_data_source_id" unique="false">
            <column ascending="true" name="data_source_id"/>
         </index>
      </table>
      <table name="replicate" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="read_file_set_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="read_file_set_id" foreignKey="replicate_read_file_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="read_file_set"/>
         </column>
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="1" name="replicate_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="replicate_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_metadata"/>
            <child column="replicate_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_metadata"/>
            <child column="replicate_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="replicate_set_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="replicate_replicate_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="replicate_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="biosample_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="biosample_set_id" foreignKey="replicate_biosample_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="biosample_set"/>
         </column>
         <primaryKey column="replicate_id" sequenceNumberInPK="1"/>
         <index name="replicate_pkey" unique="true">
            <column ascending="true" name="replicate_id"/>
         </index>
         <index name="ix_replicate_biosample_set_id" unique="false">
            <column ascending="true" name="biosample_set_id"/>
         </index>
         <index name="ix_replicate_data_source_id" unique="false">
            <column ascending="true" name="data_source_id"/>
         </index>
         <index name="ix_replicate_read_file_set_id" unique="false">
            <column ascending="true" name="read_file_set_id"/>
         </index>
         <index name="ix_replicate_replicate_set_id" unique="false">
            <column ascending="true" name="replicate_set_id"/>
         </index>
      </table>
      <table name="replicate_data_source" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT replicate.read_file_set_id,&#10;    replicate.replicate_id,&#10;    replicate.replicate_set_id,&#10;    replicate.data_source_id,&#10;    replicate.biosample_set_id,&#10;    data_source.accession AS replicate_accession&#10;   FROM (replicate&#10;     LEFT JOIN data_source ON ((replicate.data_source_id = data_source.data_source_id)));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="read_file_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="read_file_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="replicate_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="replicate_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="biosample_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="biosample_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="biosample_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="replicate_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="replicate_set" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="replicate_set_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="control_replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="analysis_file_experiment_info"/>
            <child column="signal_replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="analysis_file_experiment_info"/>
            <child column="control_replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="analysis_file_info_with_checks"/>
            <child column="signal_replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="analysis_file_info_with_checks"/>
            <child column="replicate_set_id" foreignKey="atac_seq_replicate_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="atac_seq"/>
            <child column="control" foreignKey="chip_seq_control_fkey" implied="false" onDeleteCascade="false" schema="public" table="chip_seq"/>
            <child column="signal" foreignKey="chip_seq_signal_fkey" implied="false" onDeleteCascade="false" schema="public" table="chip_seq"/>
            <child column="replicate_set_id" foreignKey="dnase_seq_replicate_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="dnase_seq"/>
            <child column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_control_data_source"/>
            <child column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_control_target_info"/>
            <child column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_data_source"/>
            <child column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_metadata"/>
            <child column="control_replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_signal_and_control_data_source"/>
            <child column="signal_replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_signal_and_control_data_source"/>
            <child column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_signal_data_source"/>
            <child column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_signal_target_info"/>
            <child column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_target_info"/>
            <child column="sn_atac_seq_id" foreignKey="multiome_sn_atac_seq_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="multiome"/>
            <child column="sn_rna_seq_id" foreignKey="multiome_sn_rna_seq_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="multiome"/>
            <child column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_metadata"/>
            <child column="replicate_set_id" foreignKey="replicate_replicate_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="replicate"/>
            <child column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_data_source"/>
            <child column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_set_data_source"/>
            <child column="replicate_set_id" foreignKey="rna_seq_replicate_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="rna_seq"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="replicate_set_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <primaryKey column="replicate_set_id" sequenceNumberInPK="1"/>
         <index name="replicate_set_pkey" unique="true">
            <column ascending="true" name="replicate_set_id"/>
         </index>
         <index name="ix_replicate_set_data_source_id" unique="false">
            <column ascending="true" name="data_source_id"/>
         </index>
      </table>
      <table name="replicate_set_data_source" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT replicate_set.replicate_set_id,&#10;    replicate_set.data_source_id,&#10;    data_source.accession AS replicate_set_accession&#10;   FROM (replicate_set&#10;     LEFT JOIN data_source ON ((replicate_set.data_source_id = data_source.data_source_id)));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="replicate_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="replicate_set_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="rna_seq" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="experiment_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="experiment_id" foreignKey="rna_seq_experiment_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="experiment"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="replicate_set_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="replicate_set_id" foreignKey="rna_seq_replicate_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="replicate_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="library_preparation" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <primaryKey column="experiment_id" sequenceNumberInPK="1"/>
         <index name="rna_seq_pkey" unique="true">
            <column ascending="true" name="experiment_id"/>
         </index>
         <index name="rna_seq_replicate_set_id_key" unique="true">
            <column ascending="true" name="replicate_set_id"/>
         </index>
      </table>
      <table name="run" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="run_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="run_id" foreignKey="barcode_file_run_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="barcode_file"/>
            <child column="run_id" foreignKey="read_file_run_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="read_file"/>
            <child column="run_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_data_source"/>
            <child column="run_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_metadata"/>
            <child column="run_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="run_accession"/>
            <child column="run_id" foreignKey="run_alignment_task_run_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="run_alignment_task"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="read_length" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="read_file_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="read_file_set_id" foreignKey="run_read_file_set_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="read_file_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="run_data_source_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="read_count" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="technical_replicate" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="run_type" nullable="false" remarks="" size="2147483647" type="run_type" typeCode="12"/>
         <primaryKey column="run_id" sequenceNumberInPK="1"/>
         <index name="run_pkey" unique="true">
            <column ascending="true" name="run_id"/>
         </index>
         <index name="ix_run_data_source_id" unique="false">
            <column ascending="true" name="data_source_id"/>
         </index>
         <index name="ix_run_read_file_set_id" unique="false">
            <column ascending="true" name="read_file_set_id"/>
         </index>
         <index name="uq_run_read_file_set_id_technical_replicate" unique="true">
            <column ascending="true" name="read_file_set_id"/>
            <column ascending="true" name="technical_replicate"/>
         </index>
      </table>
      <table name="run_accession" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT run.run_id,&#10;    run.run_type,&#10;    run.read_length,&#10;    run.read_file_set_id,&#10;    run.data_source_id,&#10;    run.read_count,&#10;    run.technical_replicate,&#10;    data_source.accession AS run_accession&#10;   FROM (run&#10;     LEFT JOIN data_source ON ((run.data_source_id = data_source.data_source_id)));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="run_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="run_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="run"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="run_type" nullable="true" remarks="" size="2147483647" type="run_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="read_length" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="read_file_set_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="read_file_set_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="data_source_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="data_source_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="data_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="read_count" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="technical_replicate" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="run_accession" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="run_alignment_task" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="run_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="run_id" foreignKey="run_alignment_task_run_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="run"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="alignment_task_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="alignment_task_id" foreignKey="run_alignment_task_alignment_task_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="alignment_task"/>
         </column>
         <primaryKey column="run_id" sequenceNumberInPK="1"/>
         <primaryKey column="alignment_task_id" sequenceNumberInPK="2"/>
         <index name="run_alignment_task_pkey" unique="true">
            <column ascending="true" name="run_id"/>
            <column ascending="true" name="alignment_task_id"/>
         </index>
      </table>
      <table name="s3_object" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="s3_object_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="key" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="bucket_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="bucket_id" foreignKey="s3_object_bucket_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="bucket"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="file_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="file_id" foreignKey="s3_object_file_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="file"/>
         </column>
         <primaryKey column="s3_object_id" sequenceNumberInPK="1"/>
         <index name="s3_object_pkey" unique="true">
            <column ascending="true" name="s3_object_id"/>
         </index>
         <index name="ix_s3_object_bucket_id" unique="false">
            <column ascending="true" name="bucket_id"/>
         </index>
         <index name="ix_s3_object_file_id" unique="false">
            <column ascending="true" name="file_id"/>
         </index>
      </table>
      <table name="species" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="1" name="species_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="species_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="analysis_file_experiment_info"/>
            <child column="species_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="analysis_file_info_with_checks"/>
            <child column="species_id" foreignKey="assembly_species_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="assembly"/>
            <child column="species_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="curated_experiment_metadata"/>
            <child column="species_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="curated_open_chromatin_assay_metadata"/>
            <child column="species_id" foreignKey="epigenome_species_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="epigenome"/>
            <child column="species_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="epigenome_data_source"/>
            <child column="species_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_metadata"/>
            <child column="species_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="experiment_signal_and_control_data_source"/>
            <child column="species_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="read_file_metadata"/>
         </column>
         <primaryKey column="species_id" sequenceNumberInPK="1"/>
         <index name="species_pkey" unique="true">
            <column ascending="true" name="species_id"/>
         </index>
      </table>
      <table name="tf_target" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="0" name="tf_target_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <child column="tf_target_id" foreignKey="chip_seq_tf_target_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="chip_seq"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="tf_target_type" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="gene_stable_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="tf_target_id" sequenceNumberInPK="1"/>
         <index name="tf_target_pkey" unique="true">
            <column ascending="true" name="tf_target_id"/>
         </index>
         <index name="tf_target_name_gene_stable_id_key" unique="true">
            <column ascending="true" name="name"/>
            <column ascending="true" name="gene_stable_id"/>
         </index>
      </table>
      <table name="track" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="metadata" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="epigenome_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111">
            <parent column="epigenome_id" foreignKey="track_epigenome_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="epigenome"/>
         </column>
         <column autoUpdated="false" defaultValue="gen_random_uuid()" digits="0" id="2" name="track_id" nullable="false" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <primaryKey column="track_id" sequenceNumberInPK="1"/>
         <index name="track_pkey" unique="true">
            <column ascending="true" name="track_id"/>
         </index>
         <index name="ix_track_epigenome_id" unique="false">
            <column ascending="true" name="epigenome_id"/>
         </index>
      </table>
   </tables>
   <routines>
      <routine dataAccess="MODIFIES" deterministic="true" name="unnest_2d_1d(anyarray, OUT a anyarray)" returnType="SETOF anyarray" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="plpgsql"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN" type="anyarray"/>
            <parameter mode="OUT" name="a" type="anyarray"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="false" name="uuid_generate_v1()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="false" name="uuid_generate_v1mc()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_generate_v3(namespace uuid, name text)" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN" name="namespace" type="uuid"/>
            <parameter mode="IN" name="name" type="text"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="false" name="uuid_generate_v4()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_generate_v5(namespace uuid, name text)" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN" name="namespace" type="uuid"/>
            <parameter mode="IN" name="name" type="text"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_nil()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_ns_dns()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_ns_oid()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_ns_url()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_ns_x500()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
   </routines>
</database>
