<?xml version="1.0" encoding="UTF-8"?><database name="lampi" schema="koodisto" type="PostgreSQL - 17.4">
   <tables>
      <table catalog="lampi" name="koodi" remarks="" schema="koodisto" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="koodistouri" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="koodiuri" nullable="true" remarks="" size="2147483647" type="text" typeCode="12">
            <child catalog="lampi" column="alakoodiuri" foreignKey="relaatio_alakoodiuri_alakoodiversio_fkey" implied="false" onDeleteCascade="false" schema="koodisto" table="relaatio"/>
            <child catalog="lampi" column="ylakoodiuri" foreignKey="relaatio_ylakoodiuri_ylakoodiversio_fkey" implied="false" onDeleteCascade="false" schema="koodisto" table="relaatio"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="koodiarvo" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="koodiversio" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <child catalog="lampi" column="alakoodiversio" foreignKey="relaatio_alakoodiuri_alakoodiversio_fkey" implied="false" onDeleteCascade="false" schema="koodisto" table="relaatio"/>
            <child catalog="lampi" column="ylakoodiversio" foreignKey="relaatio_ylakoodiuri_ylakoodiversio_fkey" implied="false" onDeleteCascade="false" schema="koodisto" table="relaatio"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="tila" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="voimassaalkupvm" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="voimassaloppupvm" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="koodinimi_fi" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="koodinimi_sv" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="koodinimi_en" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="koodikuvaus_fi" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="koodikuvaus_sv" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="koodikuvaus_en" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="koodiversiocreated_at" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="koodiversioupdated_at" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <index name="koodi_koodiuri_koodiversio_key" unique="true">
            <column ascending="true" name="koodiuri"/>
            <column ascending="true" name="koodiversio"/>
         </index>
      </table>
      <table catalog="lampi" name="relaatio" remarks="" schema="koodisto" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ylakoodiuri" nullable="true" remarks="" size="2147483647" type="text" typeCode="12">
            <parent catalog="lampi" column="koodiuri" foreignKey="relaatio_ylakoodiuri_ylakoodiversio_fkey" implied="false" onDeleteCascade="false" schema="koodisto" table="koodi"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ylakoodiversio" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="lampi" column="koodiversio" foreignKey="relaatio_ylakoodiuri_ylakoodiversio_fkey" implied="false" onDeleteCascade="false" schema="koodisto" table="koodi"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="relaatiotyyppi" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="alakoodiuri" nullable="true" remarks="" size="2147483647" type="text" typeCode="12">
            <parent catalog="lampi" column="koodiuri" foreignKey="relaatio_alakoodiuri_alakoodiversio_fkey" implied="false" onDeleteCascade="false" schema="koodisto" table="koodi"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="alakoodiversio" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="lampi" column="koodiversio" foreignKey="relaatio_alakoodiuri_alakoodiversio_fkey" implied="false" onDeleteCascade="false" schema="koodisto" table="koodi"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="relaatioversio" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
      </table>
   </tables>
</database>
