<?xml version="1.0" encoding="UTF-8"?><database name="public" schema="public" type="PostgreSQL - 16.10 (Debian 16.10-1.pgdg13+1)">
   <sequences>
      <sequence increment="1" name="config_row_id_seq" startValue="1"/>
   </sequences>
   <tables>
      <table name="config" remarks="General JSON Configuration and Data Values.&#10;Defined  Data Formats:&#10;  Currently None" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config_row_id_seq'::regclass)" digits="0" id="0" name="row_id" nullable="false" remarks="Synthetic unique key. &#10;Always lookup using `cardano.follower.preview`" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="id1" nullable="false" remarks="The primary ID of the config." size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="id2" nullable="false" remarks="The secondary ID of the config.&#10;Must be defined, use &quot;&quot; if not required." size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="id3" nullable="false" remarks="The tertiary ID of the config.&#10;Must be defined, use &quot;&quot; if not required." size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="value" nullable="true" remarks="The configuration value in JSON format." size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="value_schema" nullable="true" remarks="The Schema the Config Value conforms to.&#10;The `value` field must conform to this schema." size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="config_value_schema_fkey" implied="false" onDeleteCascade="true" schema="public" table="json_schema_type"/>
         </column>
         <primaryKey column="row_id" sequenceNumberInPK="1"/>
         <index name="config_pkey" unique="true">
            <column ascending="true" name="row_id"/>
         </index>
         <index name="config_idx" unique="true">
            <column ascending="true" name="id1"/>
            <column ascending="true" name="id2"/>
            <column ascending="true" name="id3"/>
         </index>
      </table>
      <table name="json_schema_type" remarks="Library of defined json schemas used to validate JSONB field contents." schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="Synthetic Unique ID for each json_schema_type (UUIDv4).&#10;Must match the `UUID` component of the $id URI inside the schema." size="2147483647" type="uuid" typeCode="1111">
            <child column="value_schema" foreignKey="config_value_schema_fkey" implied="false" onDeleteCascade="true" schema="public" table="config"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="type" nullable="false" remarks="The type of the json schema type.&#10;eg. &quot;event&quot;&#10;Must match the `type` component of the $id URI inside the schema." size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="The name of the json schema type.&#10;eg. &quot;catalyst_v1&quot;&#10;Must match the `name` component of the $id URI inside the schema." size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="schema" nullable="false" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="json_schema_type_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="json_schema_type_idx" unique="false">
            <column ascending="true" name="type"/>
         </index>
         <index name="json_schema_type_name_idx" unique="true">
            <column ascending="true" name="type"/>
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="refinery_schema_history" remarks="History of Schema Updates to the Database.&#10;Managed by the `refinery` cli tool." schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="version" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="applied_on" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="checksum" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <primaryKey column="version" sequenceNumberInPK="1"/>
         <index name="refinery_schema_history_pkey" unique="true">
            <column ascending="true" name="version"/>
         </index>
      </table>
      <table name="signed_docs" remarks="Storage for Signed Documents." schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="The Signed Documents Document ID (ULID)." size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ver" nullable="false" remarks="The Signed Documents Document Version Number (ULID)." size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="type" nullable="false" remarks="The Signed Document type identifier." size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="authors" nullable="false" remarks="The Primary Author`s list of the Signed Document." size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="metadata" nullable="true" remarks="Extra metadata extracted from the Signed Document, and encoded as JSON." size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="payload" nullable="true" remarks="IF the document has a compressed json payload, the uncompressed json payload is stored here." size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="raw" nullable="false" remarks="The RAW unaltered signed document, including its signatures, and full COSE envelope." size="2147483647" type="bytea" typeCode="-2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <primaryKey column="ver" sequenceNumberInPK="2"/>
         <index name="pk" unique="true">
            <column ascending="true" name="id"/>
            <column ascending="true" name="ver"/>
         </index>
         <index name="idx_signed_docs_authors" unique="false">
            <column ascending="true" name="authors"/>
         </index>
         <index name="idx_signed_docs_metadata" unique="false">
            <column ascending="true" name="metadata"/>
         </index>
         <index name="idx_signed_docs_payload" unique="false">
            <column ascending="true" name="payload"/>
         </index>
         <index name="idx_signed_docs_type" unique="false">
            <column ascending="true" name="type"/>
         </index>
         <index name="idx_signed_docs_type_authors" unique="false">
            <column ascending="true" name="type"/>
            <column ascending="true" name="authors"/>
         </index>
      </table>
   </tables>
</database>
