<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<database name="espon_schemaspy_april19" schema="public" type="PostgreSQL - 10.1">
   <tables>
      <table name="edp_core_tdta_contact" numRows="108" remarks="This table contains the various contact information such as name, phone, mail etc." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tdta_contact_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for contact" size="10" type="serial">
            <child column="contact_id" foreignKey="edp_core_trel_object_contact_id_3284cfa1_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_object_contact"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="name" nullable="false" remarks="Last name of contact - Mandatory, p.1.7.1.1 of the Specification" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="2" name="firstname" nullable="true" remarks="First name of contact - p.1.7.1.1 of the Specification" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="3" name="organisation" nullable="true" remarks="Organisation name of contact - Mandatory, p.1.7.1.2 of the Specification" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="4" name="email" nullable="false" remarks="Email address of contact - Mandatory, p.1.7.1.6 of the Specification" size="254" type="varchar"/>
         <column autoUpdated="false" digits="0" id="5" name="phone" nullable="false" remarks="Phone number with international prefix - Optional, p.1.7.1.5 of the Specification" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="6" name="position" nullable="true" remarks="Job position in the organisation - Optional, p.1.7.1.3 of the Specification" size="120" type="varchar"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tdta_contact_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="edp_core_tdta_data_item" numRows="4237269" remarks="The table containing all the values (numeric and text) related to indicators. Each record is also linked to geometries through the gid_id." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tdta_data_item_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for data items" size="10" type="serial">
            <child column="data_item_id" foreignKey="edp_core_trel_data_i_data_item_id_962d55d0_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_data_item_method"/>
            <child column="data_item_id" foreignKey="edp_core_trel_data_i_data_item_id_77beddf6_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_data_item_source"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="int_value" nullable="true" remarks="values related to the indicator (numerical integer)" size="10" type="int4"/>
         <column autoUpdated="false" digits="20" id="2" name="decimal_value" nullable="true" remarks="values related to the indicator (numerical with decimal)" size="40" type="numeric"/>
         <column autoUpdated="false" digits="0" id="3" name="txt_value" nullable="true" remarks="values related to the indicator (text format)" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="4" name="obj_id" nullable="true" remarks="Relation to the common object table" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tdta_data_i_obj_id_6a4606cb_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_object"/>
         </column>
         <column autoUpdated="false" digits="0" id="5" name="gid_id" nullable="true" remarks="Relation to the common GIS table (tta_gis)" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tdta_data_item_gid_id_714c93cc_fk_edp_core_tdta_gis_id" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_gis"/>
         </column>
         <column autoUpdated="false" digits="0" id="6" name="year_end" nullable="true" remarks="End year (4 digits) of data coverage" size="10" type="int4"/>
         <column autoUpdated="false" digits="0" id="7" name="year_start" nullable="true" remarks="Starting year (4 digits) of data coverage" size="10" type="int4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tdta_data_item_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_tdta_data_item_gid_id_714c93cc" unique="false">
            <column ascending="true" name="gid_id"/>
         </index>
         <index name="edp_core_tdta_data_item_obj_id_6a4606cb" unique="false">
            <column ascending="true" name="obj_id"/>
         </index>
      </table>
      <table name="edp_core_tdta_datafile" numRows="26" remarks="This table contains the links to the data file uploaded in the system." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_datafile_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for data file" size="10" type="serial"/>
         <column autoUpdated="false" digits="6" id="1" name="created" nullable="false" remarks="Creation date (upload date of the data file)" size="35" type="timestamptz"/>
         <column autoUpdated="false" digits="6" id="2" name="updated" nullable="false" remarks="Update date" size="35" type="timestamptz"/>
         <column autoUpdated="false" digits="0" id="3" name="file" nullable="false" remarks="Internal link to the uploaded XLS data file" size="100" type="varchar"/>
         <column autoUpdated="false" digits="0" id="4" name="dataset_id" nullable="false" remarks="Relation to the set object table (to the dataset)" size="10" type="int4">
            <parent column="tdta_object_ptr_id" foreignKey="edp_core_datafile_dataset_id_0b60df0f_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_set"/>
         </column>
         <column autoUpdated="false" digits="0" id="5" name="analysis" nullable="true" remarks="" size="2147483647" type="jsonb"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_datafile_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_datafile_dataset_id_key" unique="true">
            <column ascending="true" name="dataset_id"/>
         </index>
      </table>
      <table name="edp_core_tdta_gis" numRows="272639" remarks="This table contains all the polygon geometries (PostGIS format) corresponding to the various nomenclature levels and version such as NUTS 0 to 3 and LAU." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tdta_gis_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Id used for manage geometries" size="10" type="serial">
            <child column="gid_id" foreignKey="edp_core_tdta_data_item_gid_id_714c93cc_fk_edp_core_tdta_gis_id" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_data_item"/>
            <child column="gis_id" foreignKey="edp_core_trel_spatia_gis_id_4fbe30d5_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_spatial_ext_gis"/>
            <child column="child_tunit_id" foreignKey="edp_core_trel_tunit__child_tunit_id_6edcef19_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_tunit_hierarchy"/>
            <child column="parent_tunit_id" foreignKey="edp_core_trel_tunit__parent_tunit_id_82677822_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_tunit_hierarchy"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="geom" nullable="true" remarks="The geometry in PostGis (binary) format: the coordinates of polygons" size="2147483647" type="geometry"/>
         <column autoUpdated="false" digits="0" id="2" name="conformity_degree" nullable="true" remarks="" size="255" type="varchar"/>
         <column autoUpdated="false" digits="6" id="3" name="conformity_pub_date" nullable="true" remarks="" size="35" type="timestamptz"/>
         <column autoUpdated="false" digits="0" id="4" name="conformity_title" nullable="true" remarks="" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="5" name="level" nullable="true" remarks="Nomenclature level (1,2,3,4, eg.)" size="10" type="varchar"/>
         <column autoUpdated="false" digits="0" id="6" name="nomenclature_id" nullable="true" remarks="Relation to nomenclature type (NUTS, LAU, eg.)" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tdta_gis_nomenclature_id_b5dfb69a_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_nomenclature"/>
         </column>
         <column autoUpdated="false" digits="0" id="7" name="tunit_code" nullable="true" remarks="Id of each geometric object" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="8" name="tunit_name" nullable="true" remarks="Official geometric name in english" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="9" name="version" nullable="true" remarks="Nomenclature version (year)" size="10" type="int4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tdta_gis_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_tdta_gis_geom_gist" unique="false">
            <column ascending="true" name="geom"/>
         </index>
         <index name="edp_core_tdta_gis_level_nomenclature_id_ve_d5b339e1_uniq" unique="true">
            <column ascending="true" name="level"/>
            <column ascending="true" name="nomenclature_id"/>
            <column ascending="true" name="version"/>
            <column ascending="true" name="tunit_code"/>
         </index>
         <index name="edp_core_tdta_gis_nomenclature_id_b5dfb69a" unique="false">
            <column ascending="true" name="nomenclature_id"/>
         </index>
      </table>
      <table name="edp_core_tdta_indicator" numRows="838" remarks="This table stores information specific to indicator type object." schema="public" type="TABLE">
         <column autoUpdated="false" digits="0" id="0" name="tdta_object_ptr_id" nullable="false" remarks="Relation to the common object table" size="10" type="int4">
            <child column="indicator_id" foreignKey="edp_core_tdta_label_indicator_id_600af631_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_label"/>
            <child column="indicator_id" foreignKey="edp_core_tkey_indica_indicator_id_285c090d_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_indicator_year"/>
            <child column="Indicator_id" foreignKey="edp_core_trel_set_in_Indicator_id_7ea2c2b4_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_set_indicator"/>
            <parent column="id" foreignKey="edp_core_tdta_indica_tdta_object_ptr_id_54255254_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_object"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="code" nullable="true" remarks="Indicator code - Mandatory, p.1.5.1-3 of the Specification" size="100" type="varchar"/>
         <column autoUpdated="false" digits="0" id="2" name="dataitem_type_id" nullable="true" remarks="Relation to data item type (type identifier) - See p.3.4.3 of the specification!" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tdta_indica_dataitem_type_id_fa72a4d3_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_dataitem_type"/>
         </column>
         <column autoUpdated="false" digits="0" id="3" name="nattype_id" nullable="true" remarks="Relation to NAT type  - Mandatory, one of NAT type identifiers: CF, CS, IR, IC, IA, TG, TP, TS" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tdta_indica_nattype_id_76936bd9_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_nattype"/>
         </column>
         <column autoUpdated="false" digits="0" id="4" name="core_type_id" nullable="true" remarks="relation to core indicator type defined in M4D - Mandatory, p.TODO of the Specification" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tdta_indica_core_type_id_57caeca9_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_core_type"/>
         </column>
         <column autoUpdated="false" digits="0" id="5" name="type_id" nullable="false" remarks="Indicator type id linked to the value list indicator type (single, multi, dimension, class)" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tdta_indica_type_id_69da88e5_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_indicator_type"/>
         </column>
         <column autoUpdated="false" digits="0" id="6" name="is_standard_data" nullable="false" remarks="Identification flag true = standard data related to an internal nomenclature, false = non standard data" size="1" type="bool"/>
         <column autoUpdated="false" digits="0" id="7" name="method_description" nullable="true" remarks="Description of the calculation method used" size="2147483647" type="text"/>
         <column autoUpdated="false" digits="0" id="8" name="measure_nd_name" nullable="true" remarks="Numerator / Denominator Name - Mandatory (for numeric data, otherwise inexistent, p.1.5.4.1-2 of the Specification)" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="9" name="measure_nd_scale" nullable="true" remarks="Numerator / Denominator Scale - Mandatory (for numeric data, otherwise inexistent, p.1.5.4.3-4 of the Specification)" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="10" name="measure_ranking" nullable="false" remarks="Ranking - Mandatory (for numeric as well as enumerated data)" size="1" type="bool"/>
         <column autoUpdated="false" digits="0" id="11" name="calculation_date" nullable="true" remarks="Date of the indicator calculation" size="13" type="date"/>
         <column autoUpdated="false" digits="0" id="12" name="insertion_date" nullable="true" remarks="Date of the data insertion" size="13" type="date"/>
         <column autoUpdated="false" digits="0" id="13" name="update_date" nullable="true" remarks="Date of the last indicator update" size="13" type="date"/>
         <column autoUpdated="false" digits="0" id="14" name="years" nullable="true" remarks="List of years covered by the indicator" size="255" type="varchar"/>
         <primaryKey column="tdta_object_ptr_id" sequenceNumberInPK="1"/>
         <index name="edp_core_tdta_indicator_pkey" unique="true">
            <column ascending="true" name="tdta_object_ptr_id"/>
         </index>
         <index name="edp_core_tdta_indicator_core_type_id_57caeca9" unique="false">
            <column ascending="true" name="core_type_id"/>
         </index>
         <index name="edp_core_tdta_indicator_dataitem_type_id_fa72a4d3" unique="false">
            <column ascending="true" name="dataitem_type_id"/>
         </index>
         <index name="edp_core_tdta_indicator_nattype_id_76936bd9" unique="false">
            <column ascending="true" name="nattype_id"/>
         </index>
         <index name="edp_core_tdta_indicator_type_id_69da88e5" unique="false">
            <column ascending="true" name="type_id"/>
         </index>
      </table>
      <table name="edp_core_tdta_label" numRows="167" remarks="This table store the various labels that can be used in data." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tdta_label_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for value label" size="10" type="serial"/>
         <column autoUpdated="false" digits="0" id="1" name="name" nullable="true" remarks="Value label" size="120" type="varchar"/>
         <column autoUpdated="false" digits="0" id="2" name="description" nullable="true" remarks="Label description" size="2147483647" type="text"/>
         <column autoUpdated="false" digits="0" id="3" name="sequence" nullable="false" remarks="Number allowing tailored order" size="10" type="int4"/>
         <column autoUpdated="false" digits="0" id="4" name="indicator_id" nullable="true" remarks="" size="10" type="int4">
            <parent column="tdta_object_ptr_id" foreignKey="edp_core_tdta_label_indicator_id_600af631_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_indicator"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tdta_label_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_tdta_label_indicator_id_600af631" unique="false">
            <column ascending="true" name="indicator_id"/>
         </index>
      </table>
      <table name="edp_core_tdta_media" numRows="857" remarks="Table including the date of creation et modification of different media, their name and filename, together with category id and id of the corresponding object." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tdta_media_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial"/>
         <column autoUpdated="false" digits="6" id="1" name="created" nullable="false" remarks="" size="35" type="timestamptz"/>
         <column autoUpdated="false" digits="6" id="2" name="updated" nullable="false" remarks="" size="35" type="timestamptz"/>
         <column autoUpdated="false" digits="0" id="3" name="name" nullable="true" remarks="" size="100" type="varchar"/>
         <column autoUpdated="false" digits="0" id="4" name="file" nullable="true" remarks="" size="100" type="varchar"/>
         <column autoUpdated="false" digits="0" id="5" name="tdta_object_id" nullable="false" remarks="" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tdta_media_tdta_object_id_b90f06ee_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_object"/>
         </column>
         <column autoUpdated="false" digits="0" id="6" name="url" nullable="true" remarks="" size="2147483647" type="text"/>
         <column autoUpdated="false" digits="0" id="7" name="category_id" nullable="true" remarks="" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tdta_media_category_id_1c2c039c_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_media_category"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tdta_media_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_tdta_media_category_id_1c2c039c" unique="false">
            <column ascending="true" name="category_id"/>
         </index>
         <index name="edp_core_tdta_media_tdta_object_id_b90f06ee" unique="false">
            <column ascending="true" name="tdta_object_id"/>
         </index>
      </table>
      <table name="edp_core_tdta_method" numRows="265" remarks="This table describes methods that can be used for data items and datasets" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tdta_method_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for method" size="10" type="serial">
            <child column="method_id" foreignKey="edp_core_trel_data_i_method_id_c8d7b2e2_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_data_item_method"/>
            <child column="method_id" foreignKey="edp_core_trel_object_method_id_427c7d5d_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_object_method"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="flag" nullable="false" remarks="A letter (a, b, …)" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="2" name="description" nullable="true" remarks="Method description" size="2147483647" type="text"/>
         <column autoUpdated="false" digits="6" id="3" name="created" nullable="false" remarks="" size="35" type="timestamptz"/>
         <column autoUpdated="false" digits="6" id="4" name="updated" nullable="false" remarks="" size="35" type="timestamptz"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tdta_method_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="edp_core_tdta_object" numRows="977" remarks="tdta_object table is the main table. All types of object are described in this table for &quot;common&quot; attributes (including project, visibility, status, name, etc.)" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tdta_object_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="unique identifier of object" size="10" type="serial">
            <child column="obj_id" foreignKey="edp_core_tdta_data_i_obj_id_6a4606cb_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_data_item"/>
            <child column="tdta_object_ptr_id" foreignKey="edp_core_tdta_indica_tdta_object_ptr_id_54255254_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_indicator"/>
            <child column="tdta_object_id" foreignKey="edp_core_tdta_media_tdta_object_id_b90f06ee_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_media"/>
            <child column="tdta_object_ptr_id" foreignKey="edp_core_tdta_resour_tdta_object_ptr_id_702b5e60_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_resource"/>
            <child column="tdta_object_ptr_id" foreignKey="edp_core_tdta_datase_tdta_object_ptr_id_6ef4ca63_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_set"/>
            <child column="obj_id" foreignKey="edp_core_trel_object_obj_id_9eaab419_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_object_contact"/>
            <child column="obj_id" foreignKey="edp_core_trel_object_obj_id_84f285ff_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_object_keyword"/>
            <child column="obj_id" foreignKey="edp_core_trel_object_obj_id_eb1f80fe_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_object_method"/>
            <child column="obj_id" foreignKey="edp_core_trel_object_obj_id_f1b2c041_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_object_source"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="name" nullable="false" remarks="Object title" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="2" name="abstract" nullable="true" remarks="Summary describing the object - mandatory, p.1.3.1.3 of the Specification" size="2147483647" type="text"/>
         <column autoUpdated="false" digits="0" id="3" name="project_id" nullable="true" remarks="Relation to the project - Mandatory, p.1.3.1.2 of the Specification" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tdta_object_project_id_5053f842_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_project"/>
         </column>
         <column autoUpdated="false" digits="6" id="4" name="created" nullable="false" remarks="Automatical creation date of the object (Date of metadata creation (YYYY-MM-DD) - Mandatory, p.1.3.1.9 of the Specification" size="35" type="timestamptz"/>
         <column autoUpdated="false" digits="6" id="5" name="updated" nullable="false" remarks="Automatical update date of the object (YYYY-MM-DD)" size="35" type="timestamptz"/>
         <column autoUpdated="false" digits="0" id="6" name="period_from" nullable="true" remarks="temporal cover of the object (begining)" size="13" type="date"/>
         <column autoUpdated="false" digits="0" id="7" name="period_to" nullable="true" remarks="temporal cover of the object (end)" size="13" type="date"/>
         <column autoUpdated="false" digits="0" id="8" name="status_id" nullable="true" remarks="Status of the object (published, unpublished, archived, deleted) related to tkey_status value list" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tdta_object_status_id_eb58ec86_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_status"/>
         </column>
         <column autoUpdated="false" digits="0" id="9" name="constraint_access" nullable="true" remarks="Access constraint" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="10" name="constraint_other" nullable="true" remarks="Other constraint" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="11" name="constraint_class_id" nullable="true" remarks="classification constraint - Most common value, p.1.3.1.15.4 of the Specification" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tdta_object_constraint_class_id_95ffa7ad_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_constraint_class"/>
         </column>
         <column autoUpdated="false" digits="0" id="12" name="constraint_use_id" nullable="true" remarks="use contraint (copyright) - Mandatory, p.1.3.1.15 of the Specification" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tdta_object_constraint_use_id_751826cc_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_constraint_use"/>
         </column>
         <column autoUpdated="false" digits="0" id="13" name="spatial_ext_id" nullable="true" remarks="Relation to spatial extent (EU28, EU28+4) -" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tdta_object_spatial_ext_id_d51280b4_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_spatial_ext"/>
         </column>
         <column autoUpdated="false" digits="0" id="14" name="resource_uuid" nullable="true" remarks="Unique resource identifier - Mandatory, p.1.3.1.6 of the Specification" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="15" name="spatial_resolution" nullable="true" remarks="Free text to describe spatial resolution of the object" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="16" name="sequence" nullable="false" remarks="" size="10" type="int4"/>
         <column autoUpdated="false" digits="0" id="17" name="status_comment" nullable="true" remarks="" size="2147483647" type="text"/>
         <column autoUpdated="false" digits="6" id="18" name="publication_date" nullable="true" remarks="" size="35" type="timestamptz"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tdta_object_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_tdta_object_constraint_class_id_95ffa7ad" unique="false">
            <column ascending="true" name="constraint_class_id"/>
         </index>
         <index name="edp_core_tdta_object_constraint_use_id_751826cc" unique="false">
            <column ascending="true" name="constraint_use_id"/>
         </index>
         <index name="edp_core_tdta_object_projects_id_c18331e9" unique="false">
            <column ascending="true" name="project_id"/>
         </index>
         <index name="edp_core_tdta_object_spatial_ext_id_d51280b4" unique="false">
            <column ascending="true" name="spatial_ext_id"/>
         </index>
         <index name="edp_core_tdta_object_status_id_eb58ec86" unique="false">
            <column ascending="true" name="status_id"/>
         </index>
      </table>
      <table name="edp_core_tdta_project" numRows="23" remarks="This table contains information about the project." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tdta_project_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique project identifier" size="10" type="serial">
            <child column="project_id" foreignKey="edp_core_tdta_object_project_id_5053f842_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_object"/>
            <child column="project_id" foreignKey="edp_core_trel_user_p_project_id_65929a19_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_user_project"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="name" nullable="false" remarks="ESPON Project title - Mandatory, p.1.3.1.2 of the Specification" size="255" type="varchar"/>
         <column autoUpdated="false" digits="6" id="2" name="created" nullable="false" remarks="ESPON project" size="35" type="timestamptz"/>
         <column autoUpdated="false" digits="6" id="3" name="updated" nullable="false" remarks="ESPON project last update date" size="35" type="timestamptz"/>
         <column autoUpdated="false" digits="0" id="4" name="abstract" nullable="true" remarks="ESPON project description" size="2147483647" type="text"/>
         <column autoUpdated="false" digits="0" id="5" name="leader" nullable="true" remarks="ESPON responsible person name" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="6" name="acronym" nullable="true" remarks="ESPON project acronym when existing" size="20" type="varchar"/>
         <column autoUpdated="false" digits="0" id="7" name="id_olddb" nullable="true" remarks="ESPON Database 2013 project identity" size="10" type="int4"/>
         <column autoUpdated="false" digits="0" id="8" name="status_id" nullable="true" remarks="" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tdta_projec_status_id_43efd373_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_status"/>
         </column>
         <column autoUpdated="false" digits="0" id="9" name="url" nullable="true" remarks="" size="200" type="varchar"/>
         <column autoUpdated="false" digits="0" id="10" name="workflow_state" nullable="false" remarks="" size="20" type="varchar"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tdta_project_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_tdta_project_status_id_43efd373" unique="false">
            <column ascending="true" name="status_id"/>
         </index>
      </table>
      <table name="edp_core_tdta_resource" numRows="88" remarks="This table store information specific to resource type object (such as Mapkit, reports, tools)." schema="public" type="TABLE">
         <column autoUpdated="false" digits="0" id="0" name="format" nullable="false" remarks="Format of file" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="1" name="type_id" nullable="false" remarks="Resource type id linked to tkey_resource_type (MapKit, Report, e.g.)" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tdta_resour_type_id_949f7de1_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_resource_type"/>
         </column>
         <column autoUpdated="false" digits="0" id="2" name="tdta_object_ptr_id" nullable="false" remarks="Relation to common object table" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tdta_resour_tdta_object_ptr_id_702b5e60_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_object"/>
         </column>
         <primaryKey column="tdta_object_ptr_id" sequenceNumberInPK="1"/>
         <index name="edp_core_tdta_resource_pkey" unique="true">
            <column ascending="true" name="tdta_object_ptr_id"/>
         </index>
         <index name="edp_core_tdta_resource_type_id_949f7de1" unique="false">
            <column ascending="true" name="type_id"/>
         </index>
      </table>
      <table name="edp_core_tdta_set" numRows="51" remarks="This table store information specific to dataset type object as well as light groups of indicators." schema="public" type="TABLE">
         <column autoUpdated="false" digits="0" id="0" name="tdta_object_ptr_id" nullable="false" remarks="Relation to the common object table" size="10" type="int4">
            <child column="dataset_id" foreignKey="edp_core_datafile_dataset_id_0b60df0f_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_datafile"/>
            <child column="Set_id" foreignKey="edp_core_trel_set_in_Set_id_8cb77d05_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_set_indicator"/>
            <parent column="id" foreignKey="edp_core_tdta_datase_tdta_object_ptr_id_6ef4ca63_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_object"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="uri" nullable="true" remarks="Unique identifier of the dataset" size="100" type="varchar"/>
         <column autoUpdated="false" digits="0" id="2" name="lineage" nullable="true" remarks="Origin of the dataset - Mandatory, p.1.3.1.13 of the Specification" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="3" name="workflow_state" nullable="false" remarks="State of the object in the workflow from open until the publication" size="20" type="varchar"/>
         <column autoUpdated="false" digits="0" id="4" name="level" nullable="true" remarks="List of nomenclature levels used in a dataset" size="120" type="varchar"/>
         <column autoUpdated="false" digits="0" id="5" name="nomenclature_id" nullable="true" remarks="Nomenclature used in a dataset" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tdta_set_nomenclature_id_42ac6f44_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_nomenclature"/>
         </column>
         <column autoUpdated="false" digits="0" id="6" name="version" nullable="true" remarks="List of nomenclature versions used in a dataset" size="120" type="varchar"/>
         <column autoUpdated="false" digits="0" id="7" name="is_dataset" nullable="false" remarks="Flag identifying if the set is a dataset" size="1" type="bool"/>
         <column autoUpdated="false" digits="0" id="8" name="is_group" nullable="false" remarks="Flag identifying if the set is a group (light grouping)" size="1" type="bool"/>
         <primaryKey column="tdta_object_ptr_id" sequenceNumberInPK="1"/>
         <index name="edp_core_tdta_dataset_pkey" unique="true">
            <column ascending="true" name="tdta_object_ptr_id"/>
         </index>
         <index name="edp_core_tdta_dataset_nomenclature_id_b2757606" unique="false">
            <column ascending="true" name="nomenclature_id"/>
         </index>
      </table>
      <table name="edp_core_tdta_source" numRows="486" remarks="This table describes sources that can be used for data items in datasets." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tdta_source_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for source" size="10" type="serial">
            <child column="source_id" foreignKey="edp_core_trel_data_i_source_id_ab6c9da2_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_data_item_source"/>
            <child column="source_id" foreignKey="edp_core_trel_object_source_id_c7ae8a5b_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_object_source"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="flag" nullable="false" remarks="An integer (1….)" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="2" name="description" nullable="true" remarks="Source description" size="2147483647" type="text"/>
         <column autoUpdated="false" digits="6" id="3" name="source_date" nullable="false" remarks="Date of source - Publication date" size="35" type="timestamptz"/>
         <column autoUpdated="false" digits="0" id="4" name="source_url" nullable="true" remarks="in most case the URL of the providers website" size="255" type="varchar"/>
         <column autoUpdated="false" digits="6" id="5" name="created" nullable="false" remarks="" size="35" type="timestamptz"/>
         <column autoUpdated="false" digits="6" id="6" name="updated" nullable="false" remarks="" size="35" type="timestamptz"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tdta_source_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="edp_core_tkey_constraint_class" numRows="5" remarks="This is the value table for constraint access." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tkey_constraint_class_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="unique identifier for class constraint -" size="10" type="serial">
            <child column="constraint_class_id" foreignKey="edp_core_tdta_object_constraint_class_id_95ffa7ad_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_object"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="name" nullable="true" remarks="classification constraint - Most common value, p.1.3.1.15.4 of the Specification" size="120" type="varchar"/>
         <column autoUpdated="false" digits="0" id="2" name="sequence" nullable="false" remarks="Number allowing tailored order" size="10" type="int4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tkey_constraint_class_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="edp_core_tkey_constraint_use" numRows="8" remarks="This is the value table for use access." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tkey_constraint_use_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="unique identifier for use constraint" size="10" type="serial">
            <child column="constraint_use_id" foreignKey="edp_core_tdta_object_constraint_use_id_751826cc_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_object"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="name" nullable="true" remarks="Access constraint - Mandatory, p.1.3.1.15.2 of the Specification" size="120" type="varchar"/>
         <column autoUpdated="false" digits="0" id="2" name="sequence" nullable="false" remarks="Number allowing tailored order" size="10" type="int4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tkey_constraint_use_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="edp_core_tkey_contact_role" numRows="13" remarks="This is a value table for the various role that a contact can have (Resource Provider, custodian, owner, distributor, publisher, etc.)" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tkey_contact_role_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for contact role" size="10" type="serial">
            <child column="contact_role_id" foreignKey="edp_core_trel_object_contact_role_id_bba1a241_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_object_contact"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="contact_role" nullable="true" remarks="Contact role value - Mandatory, p.1.7.1.4 of the Specification" size="120" type="varchar"/>
         <column autoUpdated="false" digits="0" id="2" name="sequence" nullable="false" remarks="Number allowing tailored order" size="10" type="int4"/>
         <column autoUpdated="false" digits="0" id="3" name="context" nullable="true" remarks="Is this role used for data or metadata" size="20" type="varchar"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tkey_contact_role_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="edp_core_tkey_core_type" numRows="4" remarks="This is the value table containing possible value of core indicator type used in former M4D database (probably after 2013 data import, only two values will remain: core and not core!)" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tkey_core_type_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for core indicator type" size="10" type="serial">
            <child column="core_type_id" foreignKey="edp_core_tdta_indica_core_type_id_57caeca9_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_indicator"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="name" nullable="false" remarks="Core indicator type (used in M4D: in list, downloaded, etc.)" size="50" type="varchar"/>
         <column autoUpdated="false" digits="0" id="2" name="sequence" nullable="false" remarks="Number allowing tailored order" size="10" type="int4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tkey_core_type_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="edp_core_tkey_dataitem_type" numRows="7" remarks="This is the value table containing the data type such as integer, double, text." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tkey_dataitem_type_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for data item type" size="10" type="serial">
            <child column="dataitem_type_id" foreignKey="edp_core_tdta_indica_dataitem_type_id_fa72a4d3_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_indicator"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="name" nullable="true" remarks="Type identifier of data stored in data base (float, integer, text, etc.) - See p.3.4.3 of the specification!" size="120" type="varchar"/>
         <column autoUpdated="false" digits="0" id="2" name="description" nullable="true" remarks="Free text to describe the identifier type" size="2147483647" type="text"/>
         <column autoUpdated="false" digits="0" id="3" name="sequence" nullable="false" remarks="Number allowing tailored order" size="10" type="int4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tkey_dataitem_type_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="edp_core_tkey_gis_level" numRows="9" remarks="This table contains the administrative level of resolution resolution for the Nomenclatures" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tkey_gis_level_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial"/>
         <column autoUpdated="false" digits="0" id="1" name="level_id" nullable="false" remarks="ID of the level" size="10" type="varchar"/>
         <column autoUpdated="false" digits="0" id="2" name="level_name" nullable="false" remarks="Name of the level" size="2147483647" type="text"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tkey_gis_level_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="edp_core_tkey_indicator_type" numRows="4" remarks="This is the value table for the indicator types (single, multi, dimension, class)" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_trel_indicator_type_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for indicator type" size="10" type="serial">
            <child column="type_id" foreignKey="edp_core_tdta_indica_type_id_69da88e5_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_indicator"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="name" nullable="false" remarks="Indicator type (single, multi, dimension, class)" size="20" type="varchar"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_trel_indicator_type_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="edp_core_tkey_indicator_year" numRows="399" remarks="This table lists for each indicator the year containing values." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tkey_indicator_year_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial"/>
         <column autoUpdated="false" digits="0" id="1" name="value" nullable="false" remarks="the year containing the value" size="10" type="int4"/>
         <column autoUpdated="false" digits="0" id="2" name="indicator_id" nullable="false" remarks="id of indicator" size="10" type="int4">
            <parent column="tdta_object_ptr_id" foreignKey="edp_core_tkey_indica_indicator_id_285c090d_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_indicator"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tkey_indicator_year_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_tkey_indicator_year_indicator_id_285c090d" unique="false">
            <column ascending="true" name="indicator_id"/>
         </index>
      </table>
      <table name="edp_core_tkey_keyword" numRows="389" remarks="This is the relation table between keyword and objects." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tkey_keyword_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for keyword" size="10" type="serial">
            <child column="keyword_id" foreignKey="edp_core_trel_object_keyword_id_fc71f434_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_object_keyword"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="name" nullable="true" remarks="Keyword, Theme, Policy and topic" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="2" name="sequence" nullable="false" remarks="Number allowing tailored order" size="10" type="int4"/>
         <column autoUpdated="false" digits="0" id="3" name="keyword_set_id" nullable="true" remarks="Relation to keyword set" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_tkey_keywor_keyword_set_id_5ef2e627_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_keyword_set"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tkey_keyword_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_tkey_keyword_keyword_set_id_5ef2e627" unique="false">
            <column ascending="true" name="keyword_set_id"/>
         </index>
      </table>
      <table name="edp_core_tkey_keyword_set" numRows="8" remarks="This table includes keyword types such as indicator thems, dataset topics, GEMET Keywords, ESPON policies, etc." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tkey_keyword_set_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for keyword type set" size="10" type="serial">
            <child column="keyword_set_id" foreignKey="edp_core_tkey_keywor_keyword_set_id_5ef2e627_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_keyword"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="name" nullable="true" remarks="keyword type set (ESPON indicator Thems, Dataset Topics, GEMET keywords, ESPON policies, etc.) - For example p.1.5.6 of the Specification" size="120" type="varchar"/>
         <column autoUpdated="false" digits="6" id="2" name="pub_date" nullable="false" remarks="Keyword set Publication date" size="35" type="timestamptz"/>
         <column autoUpdated="false" digits="0" id="3" name="sequence" nullable="false" remarks="Number allowing tailored order" size="10" type="int4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tkey_keyword_set_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="edp_core_tkey_media_category" numRows="6" remarks="This table includes the typologies of media" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tkey_media_category_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial">
            <child column="category_id" foreignKey="edp_core_tdta_media_category_id_1c2c039c_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_media"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="name" nullable="false" remarks="name of the media" size="100" type="varchar"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tkey_media_category_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="edp_core_tkey_nattype" numRows="6" remarks="This is the value table containing the possible value of NAT type (Stock, Ratio, Rank, Typology, etc.)" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tkey_nattype_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for keyword" size="10" type="serial">
            <child column="nattype_id" foreignKey="edp_core_tdta_indica_nattype_id_76936bd9_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_indicator"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="name" nullable="true" remarks="NAT type (Stock, Ratio, etc.) - Mandatory, one of NAT type identifiers: CF, CS, IR, IC, IA, TG, TP, TS" size="120" type="varchar"/>
         <column autoUpdated="false" digits="0" id="2" name="sequence" nullable="false" remarks="Number allowing tailored order" size="10" type="int4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tkey_nattype_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="edp_core_tkey_nomenclature" numRows="10" remarks="This table includes the official names (EUROSTAT-GISCO) related to the nomenclatures (NUTS, LAU, UMZ, other)." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tkey_nomenclature_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Relation to the common GIS table (tta_gis) - Mandatory, p.1.4.2 of the Specification" size="10" type="serial">
            <child column="nomenclature_id" foreignKey="edp_core_tdta_gis_nomenclature_id_b5dfb69a_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_gis"/>
            <child column="nomenclature_id" foreignKey="edp_core_tdta_set_nomenclature_id_42ac6f44_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_set"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="nomenclature" nullable="true" remarks="Official name for NUTS and LAU as provided by Eurostat - Mandatory, p.1.4.2 of the Specification" size="120" type="varchar"/>
         <column autoUpdated="false" digits="0" id="2" name="sequence" nullable="false" remarks="Number allowing tailored order" size="10" type="int4"/>
         <column autoUpdated="false" digits="0" id="3" name="fullname" nullable="true" remarks="Complete name" size="120" type="varchar"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tkey_nomenclature_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="edp_core_tkey_resource_type" numRows="8" remarks="This value table includes the various possible type of resources (Mapkit, tool, report)." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tkey_resource_type_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for resource type" size="10" type="serial">
            <child column="type_id" foreignKey="edp_core_tdta_resour_type_id_949f7de1_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_resource"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="name" nullable="false" remarks="Resource type name (Mapkit, report, tool, e.g.)" size="255" type="varchar"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tkey_resource_type_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="edp_core_tkey_set_ind_type" numRows="3" remarks="This table contains the possible value of indicator type in the set object (Key indicator, background indicator, group member)" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tkey_dataset_ind_type_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier of indicator role in a set" size="10" type="serial">
            <child column="name_id" foreignKey="edp_core_trel_set_in_name_id_3d78778a_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_set_indicator"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="name" nullable="true" remarks="Relation type (key indicator, background indicator, group member)" size="120" type="varchar"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tkey_dataset_ind_type_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="edp_core_tkey_spatial_ext" numRows="9" remarks="This table contains information about spatial extent of the object (EU28, EU28+4)." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tkey_spatial_ext_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for spatial extent" size="10" type="serial">
            <child column="spatial_ext_id" foreignKey="edp_core_tdta_object_spatial_ext_id_d51280b4_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_object"/>
            <child column="spatial_ext_id" foreignKey="edp_core_trel_spatia_spatial_ext_id_ad8a9b88_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_trel_spatial_ext_gis"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="name" nullable="true" remarks="Spatial extent" size="120" type="varchar"/>
         <column autoUpdated="false" digits="6" id="2" name="coord_x1" nullable="true" remarks="Coordinate of bounding box" size="15" type="numeric"/>
         <column autoUpdated="false" digits="6" id="3" name="coord_x2" nullable="true" remarks="Coordinate of bounding box" size="15" type="numeric"/>
         <column autoUpdated="false" digits="6" id="4" name="coord_y1" nullable="true" remarks="Coordinate of bounding box" size="15" type="numeric"/>
         <column autoUpdated="false" digits="6" id="5" name="coord_y2" nullable="true" remarks="Coordinate of bounding box" size="15" type="numeric"/>
         <column autoUpdated="false" digits="0" id="6" name="sequence" nullable="false" remarks="Number allowing tailored order" size="10" type="int4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tkey_spatial_ext_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="edp_core_tkey_status" numRows="7" remarks="tkey_status is the value table of object status. This status value is very important in the various workflows and in the behaviour of the interface according to the user roles. Possible values are published, unpublished, archived and deleted. Specific dataset workflow state is part of datset table." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_tkey_status_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for object status" size="10" type="serial">
            <child column="status_id" foreignKey="edp_core_tdta_object_status_id_eb58ec86_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_object"/>
            <child column="status_id" foreignKey="edp_core_tdta_projec_status_id_43efd373_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_project"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="name" nullable="false" remarks="Status of the object in the workflow from open until the publication" size="255" type="varchar"/>
         <column autoUpdated="false" digits="0" id="2" name="sequence" nullable="false" remarks="Number allowing tailored order" size="10" type="int4"/>
         <column autoUpdated="false" digits="0" id="3" name="description" nullable="true" remarks="" size="2147483647" type="text"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_tkey_status_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="edp_core_trel_data_item_method" numRows="733292" remarks="This is the relation table between methods and data items." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_trel_data_item_method_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Relation to an indicator objects" size="10" type="serial"/>
         <column autoUpdated="false" digits="0" id="1" name="data_item_id" nullable="true" remarks="Relation to data items" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_data_i_data_item_id_962d55d0_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_data_item"/>
         </column>
         <column autoUpdated="false" digits="0" id="2" name="method_id" nullable="true" remarks="Relation to methods" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_data_i_method_id_c8d7b2e2_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_method"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_trel_data_item_method_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_trel_data_item__data_item_id_method_id_cf6ae523_uniq" unique="true">
            <column ascending="true" name="data_item_id"/>
            <column ascending="true" name="method_id"/>
         </index>
         <index name="edp_core_trel_data_item_method_data_item_id_962d55d0" unique="false">
            <column ascending="true" name="data_item_id"/>
         </index>
         <index name="edp_core_trel_data_item_method_method_id_c8d7b2e2" unique="false">
            <column ascending="true" name="method_id"/>
         </index>
      </table>
      <table name="edp_core_trel_data_item_source" numRows="3621263" remarks="This is the relation table between sources and data items." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_trel_data_item_source_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Relation to the object" size="10" type="serial"/>
         <column autoUpdated="false" digits="0" id="1" name="data_item_id" nullable="true" remarks="Relation to data items" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_data_i_data_item_id_77beddf6_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_data_item"/>
         </column>
         <column autoUpdated="false" digits="0" id="2" name="source_id" nullable="true" remarks="Relation to sources" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_data_i_source_id_ab6c9da2_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_source"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_trel_data_item_source_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_trel_data_item__data_item_id_source_id_35003dc3_uniq" unique="true">
            <column ascending="true" name="data_item_id"/>
            <column ascending="true" name="source_id"/>
         </index>
         <index name="edp_core_trel_data_item_source_data_item_id_77beddf6" unique="false">
            <column ascending="true" name="data_item_id"/>
         </index>
         <index name="edp_core_trel_data_item_source_source_id_ab6c9da2" unique="false">
            <column ascending="true" name="source_id"/>
         </index>
      </table>
      <table name="edp_core_trel_object_contact" numRows="1780" remarks="This is the relation table between contacts and objects, the contact role type is defined here for two different contexts (data or metadata)." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_trel_object_contact_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for relation" size="10" type="serial"/>
         <column autoUpdated="false" digits="0" id="1" name="contact_id" nullable="true" remarks="Relation to contact" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_object_contact_id_3284cfa1_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_contact"/>
         </column>
         <column autoUpdated="false" digits="0" id="2" name="contact_role_id" nullable="true" remarks="Relation to contact role - Mandatory, p.1.7.1.4 of the Specification" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_object_contact_role_id_bba1a241_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_contact_role"/>
         </column>
         <column autoUpdated="false" digits="0" id="3" name="obj_id" nullable="true" remarks="relation to object" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_object_obj_id_9eaab419_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_object"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_trel_object_contact_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_trel_object_con_contact_id_obj_id_contac_0552e593_uniq" unique="true">
            <column ascending="true" name="contact_id"/>
            <column ascending="true" name="obj_id"/>
            <column ascending="true" name="contact_role_id"/>
         </index>
         <index name="edp_core_trel_object_contact_contact_id_3284cfa1" unique="false">
            <column ascending="true" name="contact_id"/>
         </index>
         <index name="edp_core_trel_object_contact_contact_role_id_bba1a241" unique="false">
            <column ascending="true" name="contact_role_id"/>
         </index>
         <index name="edp_core_trel_object_contact_obj_id_9eaab419" unique="false">
            <column ascending="true" name="obj_id"/>
         </index>
      </table>
      <table name="edp_core_trel_object_keyword" numRows="2475" remarks="This is the relation table between keyword and objects." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_trel_object_keyword_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for relation" size="10" type="serial"/>
         <column autoUpdated="false" digits="0" id="1" name="keyword_id" nullable="true" remarks="Relation to Keywords" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_object_keyword_id_fc71f434_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_keyword"/>
         </column>
         <column autoUpdated="false" digits="0" id="2" name="obj_id" nullable="true" remarks="Relation to objects" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_object_obj_id_84f285ff_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_object"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_trel_object_keyword_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_trel_object_keyword_keyword_id_fc71f434" unique="false">
            <column ascending="true" name="keyword_id"/>
         </index>
         <index name="edp_core_trel_object_keyword_obj_id_84f285ff" unique="false">
            <column ascending="true" name="obj_id"/>
         </index>
         <index name="edp_core_trel_object_keyword_obj_id_keyword_id_548eb0ed_uniq" unique="true">
            <column ascending="true" name="obj_id"/>
            <column ascending="true" name="keyword_id"/>
         </index>
      </table>
      <table name="edp_core_trel_object_method" numRows="264" remarks="This is the relation table between methods and object" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_trel_object_method_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for relation" size="10" type="serial"/>
         <column autoUpdated="false" digits="0" id="1" name="method_id" nullable="true" remarks="Relation to Methods" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_object_method_id_427c7d5d_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_method"/>
         </column>
         <column autoUpdated="false" digits="0" id="2" name="obj_id" nullable="true" remarks="Relation to objects" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_object_obj_id_eb1f80fe_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_object"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_trel_object_method_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_trel_object_method_method_id_427c7d5d" unique="false">
            <column ascending="true" name="method_id"/>
         </index>
         <index name="edp_core_trel_object_method_obj_id_eb1f80fe" unique="false">
            <column ascending="true" name="obj_id"/>
         </index>
         <index name="edp_core_trel_object_method_obj_id_method_id_bbe60423_uniq" unique="true">
            <column ascending="true" name="obj_id"/>
            <column ascending="true" name="method_id"/>
         </index>
      </table>
      <table name="edp_core_trel_object_source" numRows="1270" remarks="This is the relation table between sources and object." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_trel_object_source_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for relation" size="10" type="serial"/>
         <column autoUpdated="false" digits="0" id="1" name="obj_id" nullable="true" remarks="Relation to objects" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_object_obj_id_f1b2c041_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_object"/>
         </column>
         <column autoUpdated="false" digits="0" id="2" name="source_id" nullable="true" remarks="Relation to sources" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_object_source_id_c7ae8a5b_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_source"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_trel_object_source_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_trel_object_source_obj_id_f1b2c041" unique="false">
            <column ascending="true" name="obj_id"/>
         </index>
         <index name="edp_core_trel_object_source_obj_id_source_id_bbeaa306_uniq" unique="true">
            <column ascending="true" name="obj_id"/>
            <column ascending="true" name="source_id"/>
         </index>
         <index name="edp_core_trel_object_source_source_id_c7ae8a5b" unique="false">
            <column ascending="true" name="source_id"/>
         </index>
      </table>
      <table name="edp_core_trel_relationship" numRows="679" remarks="This is the relation table allowing to designate the genealogy between t-indicators." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_trel_genealogy_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier of genealogy" size="10" type="serial"/>
         <column autoUpdated="false" digits="0" id="1" name="child_id" nullable="true" remarks="Relation to an t-indicator objects" size="10" type="int4"/>
         <column autoUpdated="false" digits="0" id="2" name="parent_id" nullable="true" remarks="Relation to an t-indicator objects" size="10" type="int4"/>
         <column autoUpdated="false" digits="0" id="3" name="type" nullable="false" remarks="Genealogy type (lineage or dimension)" size="20" type="varchar"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_trel_genealogy_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_trel_genealogy_child_id_5b13e468" unique="false">
            <column ascending="true" name="child_id"/>
         </index>
         <index name="edp_core_trel_genealogy_parent_id_b21b1e48" unique="false">
            <column ascending="true" name="parent_id"/>
         </index>
         <index name="edp_core_trel_genealogy_parent_id_child_id_type_862d5114_uniq" unique="true">
            <column ascending="true" name="parent_id"/>
            <column ascending="true" name="child_id"/>
            <column ascending="true" name="type"/>
         </index>
      </table>
      <table name="edp_core_trel_set_indicator" numRows="463" remarks="This is the relation table between set objects and their indicators objects." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_trel_dataset_indicator_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for relation" size="10" type="serial"/>
         <column autoUpdated="false" digits="0" id="1" name="name_id" nullable="true" remarks="Relation to a indicator role in set (tkey_set_ind_type)" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_set_in_name_id_3d78778a_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_set_ind_type"/>
         </column>
         <column autoUpdated="false" digits="0" id="2" name="Set_id" nullable="false" remarks="Relation to set" size="10" type="int4">
            <parent column="tdta_object_ptr_id" foreignKey="edp_core_trel_set_in_Set_id_8cb77d05_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_set"/>
         </column>
         <column autoUpdated="false" digits="0" id="3" name="Indicator_id" nullable="false" remarks="Relation to indicator" size="10" type="int4">
            <parent column="tdta_object_ptr_id" foreignKey="edp_core_trel_set_in_Indicator_id_7ea2c2b4_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_indicator"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_trel_dataset_indicator_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_trel_dataset_indicator_Dataset_id_67610174" unique="false">
            <column ascending="true" name="Set_id"/>
         </index>
         <index name="edp_core_trel_dataset_indicator_Indicator_id_2f3f57aa" unique="false">
            <column ascending="true" name="Indicator_id"/>
         </index>
         <index name="edp_core_trel_dataset_indicator_name_id_5f0e24ed" unique="false">
            <column ascending="true" name="name_id"/>
         </index>
      </table>
      <table name="edp_core_trel_spatial_ext_gis" numRows="527923" remarks="This table establish the spatial extension for each country grouped according to a specific category: eg EU 28, EU 28+ 4 etc." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_trel_spatial_ext_gis_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial"/>
         <column autoUpdated="false" digits="0" id="1" name="gis_id" nullable="false" remarks="ID related to nomenclatures IDs" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_spatia_gis_id_4fbe30d5_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_gis"/>
         </column>
         <column autoUpdated="false" digits="0" id="2" name="spatial_ext_id" nullable="false" remarks="ID related to spatial extents" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_spatia_spatial_ext_id_ad8a9b88_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tkey_spatial_ext"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_trel_spatial_ext_gis_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_trel_spatial_ext_gis_gis_id_4fbe30d5" unique="false">
            <column ascending="true" name="gis_id"/>
         </index>
         <index name="edp_core_trel_spatial_ext_gis_spatial_ext_id_ad8a9b88" unique="false">
            <column ascending="true" name="spatial_ext_id"/>
         </index>
      </table>
      <table name="edp_core_trel_tunit_hierarchy" numRows="10337" remarks="This table relates the different levels of hierarchy between the nomenclatures: e.g. a NUTS2 is a parent of NUTS3." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_trel_tunit_hierarchy_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for relation" size="10" type="serial"/>
         <column autoUpdated="false" digits="0" id="1" name="child_tunit_id" nullable="true" remarks="Relation to hierarchically lower nomenclature" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_tunit__child_tunit_id_6edcef19_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_gis"/>
         </column>
         <column autoUpdated="false" digits="0" id="2" name="parent_tunit_id" nullable="true" remarks="Relation to hierarchically superior nomenclature" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_tunit__parent_tunit_id_82677822_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_gis"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_trel_tunit_hierarchy_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_trel_tunit_hier_parent_tunit_id_child_tu_6aa7734c_uniq" unique="true">
            <column ascending="true" name="parent_tunit_id"/>
            <column ascending="true" name="child_tunit_id"/>
         </index>
         <index name="edp_core_trel_tunit_hierarchy_child_tunit_id_6edcef19" unique="false">
            <column ascending="true" name="child_tunit_id"/>
         </index>
         <index name="edp_core_trel_tunit_hierarchy_parent_tunit_id_82677822" unique="false">
            <column ascending="true" name="parent_tunit_id"/>
         </index>
      </table>
      <table name="edp_core_trel_user_project" numRows="13" remarks="This is the relation table between users and projects." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('edp_core_trel_user_project_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="Unique identifier for relation" size="10" type="serial"/>
         <column autoUpdated="false" digits="0" id="1" name="project_id" nullable="false" remarks="Relation to project id" size="10" type="int4">
            <parent column="id" foreignKey="edp_core_trel_user_p_project_id_65929a19_fk_edp_core_" implied="false" onDeleteCascade="false" schema="public" table="edp_core_tdta_project"/>
         </column>
         <column autoUpdated="false" digits="0" id="2" name="user_id" nullable="false" remarks="Relation to project members" size="10" type="int4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="edp_core_trel_user_project_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="edp_core_trel_user_project_Project_id_d8e2bb76" unique="false">
            <column ascending="true" name="project_id"/>
         </index>
         <index name="edp_core_trel_user_project_User_id_f1248725" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="geography_columns" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT current_database() AS f_table_catalog,&#10;    n.nspname AS f_table_schema,&#10;    c.relname AS f_table_name,&#10;    a.attname AS f_geography_column,&#10;    postgis_typmod_dims(a.atttypmod) AS coord_dimension,&#10;    postgis_typmod_srid(a.atttypmod) AS srid,&#10;    postgis_typmod_type(a.atttypmod) AS type&#10;   FROM pg_class c,&#10;    pg_attribute a,&#10;    pg_type t,&#10;    pg_namespace n&#10;  WHERE ((t.typname = 'geography'::name) AND (a.attisdropped = false) AND (a.atttypid = t.oid) AND (a.attrelid = c.oid) AND (c.relnamespace = n.oid) AND (c.relkind = ANY (ARRAY['r'::&quot;char&quot;, 'v'::&quot;char&quot;, 'm'::&quot;char&quot;, 'f'::&quot;char&quot;, 'p'::&quot;char&quot;])) AND (NOT pg_is_other_temp_schema(c.relnamespace)) AND has_table_privilege(c.oid, 'SELECT'::text));">
         <column autoUpdated="false" digits="0" id="0" name="f_table_catalog" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="1" name="f_table_schema" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="2" name="f_table_name" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="3" name="f_geography_column" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="4" name="coord_dimension" nullable="true" remarks="" size="10" type="int4"/>
         <column autoUpdated="false" digits="0" id="5" name="srid" nullable="true" remarks="" size="10" type="int4">
            <parent column="srid" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="spatial_ref_sys"/>
         </column>
         <column autoUpdated="false" digits="0" id="6" name="type" nullable="true" remarks="" size="2147483647" type="text"/>
      </table>
      <table name="geometry_columns" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT (current_database())::character varying(256) AS f_table_catalog,&#10;    n.nspname AS f_table_schema,&#10;    c.relname AS f_table_name,&#10;    a.attname AS f_geometry_column,&#10;    COALESCE(postgis_typmod_dims(a.atttypmod), sn.ndims, 2) AS coord_dimension,&#10;    COALESCE(NULLIF(postgis_typmod_srid(a.atttypmod), 0), sr.srid, 0) AS srid,&#10;    (replace(replace(COALESCE(NULLIF(upper(postgis_typmod_type(a.atttypmod)), 'GEOMETRY'::text), st.type, 'GEOMETRY'::text), 'ZM'::text, ''::text), 'Z'::text, ''::text))::character varying(30) AS type&#10;   FROM ((((((pg_class c&#10;     JOIN pg_attribute a ON (((a.attrelid = c.oid) AND (NOT a.attisdropped))))&#10;     JOIN pg_namespace n ON ((c.relnamespace = n.oid)))&#10;     JOIN pg_type t ON ((a.atttypid = t.oid)))&#10;     LEFT JOIN ( SELECT s.connamespace,&#10;            s.conrelid,&#10;            s.conkey,&#10;            replace(split_part(s.consrc, ''''::text, 2), ')'::text, ''::text) AS type&#10;           FROM pg_constraint s&#10;          WHERE (s.consrc ~~* '%geometrytype(% = %'::text)) st ON (((st.connamespace = n.oid) AND (st.conrelid = c.oid) AND (a.attnum = ANY (st.conkey)))))&#10;     LEFT JOIN ( SELECT s.connamespace,&#10;            s.conrelid,&#10;            s.conkey,&#10;            (replace(split_part(s.consrc, ' = '::text, 2), ')'::text, ''::text))::integer AS ndims&#10;           FROM pg_constraint s&#10;          WHERE (s.consrc ~~* '%ndims(% = %'::text)) sn ON (((sn.connamespace = n.oid) AND (sn.conrelid = c.oid) AND (a.attnum = ANY (sn.conkey)))))&#10;     LEFT JOIN ( SELECT s.connamespace,&#10;            s.conrelid,&#10;            s.conkey,&#10;            (replace(replace(split_part(s.consrc, ' = '::text, 2), ')'::text, ''::text), '('::text, ''::text))::integer AS srid&#10;           FROM pg_constraint s&#10;          WHERE (s.consrc ~~* '%srid(% = %'::text)) sr ON (((sr.connamespace = n.oid) AND (sr.conrelid = c.oid) AND (a.attnum = ANY (sr.conkey)))))&#10;  WHERE ((c.relkind = ANY (ARRAY['r'::&quot;char&quot;, 'v'::&quot;char&quot;, 'm'::&quot;char&quot;, 'f'::&quot;char&quot;, 'p'::&quot;char&quot;])) AND (NOT (c.relname = 'raster_columns'::name)) AND (t.typname = 'geometry'::name) AND (NOT pg_is_other_temp_schema(c.relnamespace)) AND has_table_privilege(c.oid, 'SELECT'::text));">
         <column autoUpdated="false" digits="0" id="0" name="f_table_catalog" nullable="true" remarks="" size="256" type="varchar"/>
         <column autoUpdated="false" digits="0" id="1" name="f_table_schema" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="2" name="f_table_name" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="3" name="f_geometry_column" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="4" name="coord_dimension" nullable="true" remarks="" size="10" type="int4"/>
         <column autoUpdated="false" digits="0" id="5" name="srid" nullable="true" remarks="" size="10" type="int4">
            <parent column="srid" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="spatial_ref_sys"/>
         </column>
         <column autoUpdated="false" digits="0" id="6" name="type" nullable="true" remarks="" size="30" type="varchar"/>
      </table>
      <table name="raster_columns" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT current_database() AS r_table_catalog,&#10;    n.nspname AS r_table_schema,&#10;    c.relname AS r_table_name,&#10;    a.attname AS r_raster_column,&#10;    COALESCE(_raster_constraint_info_srid(n.nspname, c.relname, a.attname), ( SELECT st_srid('010100000000000000000000000000000000000000'::geometry) AS st_srid)) AS srid,&#10;    _raster_constraint_info_scale(n.nspname, c.relname, a.attname, 'x'::bpchar) AS scale_x,&#10;    _raster_constraint_info_scale(n.nspname, c.relname, a.attname, 'y'::bpchar) AS scale_y,&#10;    _raster_constraint_info_blocksize(n.nspname, c.relname, a.attname, 'width'::text) AS blocksize_x,&#10;    _raster_constraint_info_blocksize(n.nspname, c.relname, a.attname, 'height'::text) AS blocksize_y,&#10;    COALESCE(_raster_constraint_info_alignment(n.nspname, c.relname, a.attname), false) AS same_alignment,&#10;    COALESCE(_raster_constraint_info_regular_blocking(n.nspname, c.relname, a.attname), false) AS regular_blocking,&#10;    _raster_constraint_info_num_bands(n.nspname, c.relname, a.attname) AS num_bands,&#10;    _raster_constraint_info_pixel_types(n.nspname, c.relname, a.attname) AS pixel_types,&#10;    _raster_constraint_info_nodata_values(n.nspname, c.relname, a.attname) AS nodata_values,&#10;    _raster_constraint_info_out_db(n.nspname, c.relname, a.attname) AS out_db,&#10;    _raster_constraint_info_extent(n.nspname, c.relname, a.attname) AS extent,&#10;    COALESCE(_raster_constraint_info_index(n.nspname, c.relname, a.attname), false) AS spatial_index&#10;   FROM pg_class c,&#10;    pg_attribute a,&#10;    pg_type t,&#10;    pg_namespace n&#10;  WHERE ((t.typname = 'raster'::name) AND (a.attisdropped = false) AND (a.atttypid = t.oid) AND (a.attrelid = c.oid) AND (c.relnamespace = n.oid) AND (c.relkind = ANY (ARRAY['r'::&quot;char&quot;, 'v'::&quot;char&quot;, 'm'::&quot;char&quot;, 'f'::&quot;char&quot;, 'p'::&quot;char&quot;])) AND (NOT pg_is_other_temp_schema(c.relnamespace)) AND has_table_privilege(c.oid, 'SELECT'::text));">
         <column autoUpdated="false" digits="0" id="0" name="r_table_catalog" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="1" name="r_table_schema" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="2" name="r_table_name" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="3" name="r_raster_column" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="4" name="srid" nullable="true" remarks="" size="10" type="int4">
            <parent column="srid" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="spatial_ref_sys"/>
         </column>
         <column autoUpdated="false" digits="17" id="5" name="scale_x" nullable="true" remarks="" size="17" type="float8"/>
         <column autoUpdated="false" digits="17" id="6" name="scale_y" nullable="true" remarks="" size="17" type="float8"/>
         <column autoUpdated="false" digits="0" id="7" name="blocksize_x" nullable="true" remarks="" size="10" type="int4"/>
         <column autoUpdated="false" digits="0" id="8" name="blocksize_y" nullable="true" remarks="" size="10" type="int4"/>
         <column autoUpdated="false" digits="0" id="9" name="same_alignment" nullable="true" remarks="" size="1" type="bool"/>
         <column autoUpdated="false" digits="0" id="10" name="regular_blocking" nullable="true" remarks="" size="1" type="bool"/>
         <column autoUpdated="false" digits="0" id="11" name="num_bands" nullable="true" remarks="" size="10" type="int4"/>
         <column autoUpdated="false" digits="0" id="12" name="pixel_types" nullable="true" remarks="" size="2147483647" type="_text"/>
         <column autoUpdated="false" digits="17" id="13" name="nodata_values" nullable="true" remarks="" size="17" type="_float8"/>
         <column autoUpdated="false" digits="0" id="14" name="out_db" nullable="true" remarks="" size="1" type="_bool"/>
         <column autoUpdated="false" digits="0" id="15" name="extent" nullable="true" remarks="" size="2147483647" type="geometry"/>
         <column autoUpdated="false" digits="0" id="16" name="spatial_index" nullable="true" remarks="" size="1" type="bool"/>
      </table>
      <table name="raster_overviews" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT current_database() AS o_table_catalog,&#10;    n.nspname AS o_table_schema,&#10;    c.relname AS o_table_name,&#10;    a.attname AS o_raster_column,&#10;    current_database() AS r_table_catalog,&#10;    (split_part(split_part(s.consrc, '''::name'::text, 1), ''''::text, 2))::name AS r_table_schema,&#10;    (split_part(split_part(s.consrc, '''::name'::text, 2), ''''::text, 2))::name AS r_table_name,&#10;    (split_part(split_part(s.consrc, '''::name'::text, 3), ''''::text, 2))::name AS r_raster_column,&#10;    (btrim(split_part(s.consrc, ','::text, 2)))::integer AS overview_factor&#10;   FROM pg_class c,&#10;    pg_attribute a,&#10;    pg_type t,&#10;    pg_namespace n,&#10;    pg_constraint s&#10;  WHERE ((t.typname = 'raster'::name) AND (a.attisdropped = false) AND (a.atttypid = t.oid) AND (a.attrelid = c.oid) AND (c.relnamespace = n.oid) AND ((c.relkind)::text = ANY ((ARRAY['r'::character(1), 'v'::character(1), 'm'::character(1), 'f'::character(1)])::text[])) AND (s.connamespace = n.oid) AND (s.conrelid = c.oid) AND (s.consrc ~~ '%_overview_constraint(%'::text) AND (NOT pg_is_other_temp_schema(c.relnamespace)) AND has_table_privilege(c.oid, 'SELECT'::text));">
         <column autoUpdated="false" digits="0" id="0" name="o_table_catalog" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="1" name="o_table_schema" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="2" name="o_table_name" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="3" name="o_raster_column" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="4" name="r_table_catalog" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="5" name="r_table_schema" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="6" name="r_table_name" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="7" name="r_raster_column" nullable="true" remarks="" size="2147483647" type="name"/>
         <column autoUpdated="false" digits="0" id="8" name="overview_factor" nullable="true" remarks="" size="10" type="int4"/>
      </table>
      <table name="spatial_ref_sys" numRows="5536" remarks="The spatial_ref_sys table is a PostGIS included and OGC compliant database table that lists over 5500 known spatial reference systems and details needed to transform/reproject between them." schema="public" type="TABLE">
         <column autoUpdated="false" digits="0" id="0" name="srid" nullable="false" remarks="" size="10" type="int4">
            <child column="srid" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="geography_columns"/>
            <child column="srid" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="geometry_columns"/>
            <child column="srid" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="raster_columns"/>
         </column>
         <column autoUpdated="false" digits="0" id="1" name="auth_name" nullable="true" remarks="" size="256" type="varchar"/>
         <column autoUpdated="false" digits="0" id="2" name="auth_srid" nullable="true" remarks="" size="10" type="int4"/>
         <column autoUpdated="false" digits="0" id="3" name="srtext" nullable="true" remarks="" size="2048" type="varchar"/>
         <column autoUpdated="false" digits="0" id="4" name="proj4text" nullable="true" remarks="" size="2048" type="varchar"/>
         <primaryKey column="srid" sequenceNumberInPK="1"/>
         <index name="spatial_ref_sys_pkey" unique="true">
            <column ascending="true" name="srid"/>
         </index>
      </table>
   </tables>
</database>
