<?xml version="1.0" encoding="UTF-8"?><database name="egdb3_12_9" schema="config" type="PostgreSQL - 15.10 (Ubuntu 15.10-1.pgdg24.04+1)">
   <sequences>
      <sequence increment="1" name="barcode_completion_id_seq" startValue="1"/>
      <sequence increment="1" name="best_hold_order_id_seq" startValue="1"/>
      <sequence increment="1" name="bib_source_id_seq" startValue="1"/>
      <sequence increment="1" name="biblio_fingerprint_id_seq" startValue="1"/>
      <sequence increment="1" name="billing_type_id_seq" startValue="1"/>
      <sequence increment="1" name="carousel_type_id_seq" startValue="1"/>
      <sequence increment="1" name="circ_limit_group_id_seq" startValue="1"/>
      <sequence increment="1" name="circ_limit_set_circ_mod_map_id_seq" startValue="1"/>
      <sequence increment="1" name="circ_limit_set_copy_loc_map_id_seq" startValue="1"/>
      <sequence increment="1" name="circ_limit_set_group_map_id_seq" startValue="1"/>
      <sequence increment="1" name="circ_limit_set_id_seq" startValue="1"/>
      <sequence increment="1" name="circ_matrix_limit_set_map_id_seq" startValue="1"/>
      <sequence increment="1" name="circ_matrix_matchpoint_id_seq" startValue="1"/>
      <sequence increment="1" name="circ_matrix_weights_id_seq" startValue="1"/>
      <sequence increment="1" name="coded_value_map_id_seq" startValue="1"/>
      <sequence increment="1" name="copy_alert_type_id_seq" startValue="1"/>
      <sequence increment="1" name="copy_status_id_seq" startValue="1"/>
      <sequence increment="1" name="filter_dialog_filter_set_id_seq" startValue="1"/>
      <sequence increment="1" name="floating_group_id_seq" startValue="1"/>
      <sequence increment="1" name="floating_group_member_id_seq" startValue="1"/>
      <sequence increment="1" name="geolocation_service_id_seq" startValue="1"/>
      <sequence increment="1" name="hard_due_date_id_seq" startValue="1"/>
      <sequence increment="1" name="hard_due_date_values_id_seq" startValue="1"/>
      <sequence increment="1" name="hold_matrix_matchpoint_id_seq" startValue="1"/>
      <sequence increment="1" name="hold_matrix_weights_id_seq" startValue="1"/>
      <sequence increment="1" name="hold_type_id_seq" startValue="1"/>
      <sequence increment="1" name="i18n_core_id_seq" startValue="1"/>
      <sequence increment="1" name="identification_type_id_seq" startValue="1"/>
      <sequence increment="1" name="idl_field_doc_id_seq" startValue="1"/>
      <sequence increment="1" name="index_normalizer_id_seq" startValue="1"/>
      <sequence increment="1" name="marc21_ff_pos_map_id_seq" startValue="1"/>
      <sequence increment="1" name="marc21_physical_characteristic_subfield_map_id_seq" startValue="1"/>
      <sequence increment="1" name="marc21_physical_characteristic_value_map_id_seq" startValue="1"/>
      <sequence increment="1" name="marc_field_id_seq" startValue="1"/>
      <sequence increment="1" name="marc_format_id_seq" startValue="1"/>
      <sequence increment="1" name="marc_subfield_id_seq" startValue="1"/>
      <sequence increment="1" name="metabib_class_ts_map_id_seq" startValue="1"/>
      <sequence increment="1" name="metabib_field_id_seq" startValue="1"/>
      <sequence increment="1" name="metabib_field_index_norm_map_id_seq" startValue="1"/>
      <sequence increment="1" name="metabib_field_ts_map_id_seq" startValue="1"/>
      <sequence increment="1" name="metabib_field_virtual_map_id_seq" startValue="1"/>
      <sequence increment="1" name="net_access_level_id_seq" startValue="1"/>
      <sequence increment="1" name="non_cataloged_type_id_seq" startValue="1"/>
      <sequence increment="1" name="openathens_identity_id_seq" startValue="1"/>
      <sequence increment="1" name="openathens_name_field_id_seq" startValue="1"/>
      <sequence increment="1" name="openathens_uid_field_id_seq" startValue="1"/>
      <sequence increment="1" name="org_unit_setting_type_log_id_seq" startValue="1"/>
      <sequence increment="1" name="print_template_id_seq" startValue="1"/>
      <sequence increment="1" name="record_attr_index_norm_map_id_seq" startValue="1"/>
      <sequence increment="1" name="remote_account_id_seq" startValue="1"/>
      <sequence increment="1" name="rule_age_hold_protect_id_seq" startValue="1"/>
      <sequence increment="1" name="rule_circ_duration_id_seq" startValue="1"/>
      <sequence increment="1" name="rule_max_fine_id_seq" startValue="1"/>
      <sequence increment="1" name="rule_recurring_fine_id_seq" startValue="1"/>
      <sequence increment="1" name="sms_carrier_id_seq" startValue="1"/>
      <sequence increment="1" name="standing_id_seq" startValue="1"/>
      <sequence increment="1" name="standing_penalty_id_seq" startValue="1"/>
      <sequence increment="1" name="ui_staff_portal_page_entry_id_seq" startValue="1"/>
      <sequence increment="1" name="usr_activity_type_id_seq" startValue="1"/>
      <sequence increment="1" name="weight_assoc_id_seq" startValue="1"/>
      <sequence increment="1" name="z3950_attr_id_seq" startValue="1"/>
      <sequence increment="1" name="z3950_index_field_map_id_seq" startValue="1"/>
      <sequence increment="1" name="z3950_source_credentials_id_seq" startValue="1"/>
   </sequences>
   <tables>
      <table name="audience_map" numRows="0" remarks="" schema="config" type="VIEW" viewSql=" SELECT coded_value_map.code,&#10;    coded_value_map.value,&#10;    coded_value_map.description&#10;   FROM config.coded_value_map&#10;  WHERE (coded_value_map.ctype = 'audience'::text);">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="code" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="value" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="barcode_completion" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.barcode_completion_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="1" name="active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="org_unit" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="config_barcode_completion_org_unit_fkey" implied="false" onDeleteCascade="true" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="prefix" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="suffix" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="5" name="length" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="padding" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="7" name="padding_end" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="8" name="asset" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="9" name="actor" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="barcode_completion_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="best_hold_order" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.best_hold_order_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="pprox" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="hprox" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="owning_lib_to_home_lib_prox" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="aprox" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="approx" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="priority" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="cut" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="depth" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="htime" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="rtime" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="shtime" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="best_hold_order_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="best_hold_order_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <checkConstraint constraint="(((pprox IS NOT NULL) OR (hprox IS NOT NULL) OR (owning_lib_to_home_lib_prox IS NOT NULL) OR (aprox IS NOT NULL) OR (priority IS NOT NULL) OR (cut IS NOT NULL) OR (depth IS NOT NULL) OR (htime IS NOT NULL) OR (rtime IS NOT NULL)))" name="best_hold_order_check"/>
      </table>
      <table name="bib_level_map" numRows="0" remarks="" schema="config" type="VIEW" viewSql=" SELECT coded_value_map.code,&#10;    coded_value_map.value&#10;   FROM config.coded_value_map&#10;  WHERE (coded_value_map.ctype = 'bib_level'::text);">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="code" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="value" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="bib_source" remarks="This is table is used to set up the relative &quot;quality&quot; of each&#10;MARC source, such as OCLC.  Also identifies &quot;transcendant&quot; sources,&#10;i.e., sources of bib records that should display in the OPAC&#10;even if no copies or located URIs are attached. Also indicates if&#10;the source is allowed to have actual copies on its bibs. Volumes&#10;for targeted URIs are unaffected by this setting." schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.bib_source_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="src_filter" foreignKey="badge_src_filter_fkey" implied="false" onDeleteCascade="false" schema="rating" table="badge"/>
            <child column="bib_source" foreignKey="queued_bib_record_bib_source_fkey" implied="false" onDeleteCascade="false" schema="vandelay" table="queued_bib_record"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="quality" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="source" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="transcendant" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="4" name="can_have_copies" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="bib_source_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="bib_source_source_key" unique="true">
            <column ascending="true" name="source"/>
         </index>
         <checkConstraint constraint="(((quality &gt;= 0) AND (quality &lt;= 100)))" name="bib_source_quality_check"/>
      </table>
      <table name="biblio_fingerprint" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.biblio_fingerprint_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="xpath" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="first_word" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="'marcxml'::text" digits="0" id="4" name="format" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="biblio_fingerprint_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="billing_type" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.billing_type_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="btype" foreignKey="billing_btype_fkey" implied="false" onDeleteCascade="false" schema="money" table="billing"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="owner" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="config_billing_type_owner_fkey" implied="false" onDeleteCascade="true" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="2" id="3" name="default_price" nullable="true" remarks="" size="6" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="billing_type_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="billing_type_once_per_lib" unique="true">
            <column ascending="true" name="name"/>
            <column ascending="true" name="owner"/>
         </index>
      </table>
      <table name="carousel_type" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.carousel_type_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="type" foreignKey="carousel_type_fkey" implied="false" onDeleteCascade="false" schema="container" table="carousel"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="2" name="automatic" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="filter_by_age" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="filter_by_copy_owning_lib" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="filter_by_copy_location" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="carousel_type_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="circ_limit_group" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.circ_limit_group_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="limit_group" foreignKey="circulation_limit_group_map_limit_group_fkey" implied="false" onDeleteCascade="true" schema="action" table="circulation_limit_group_map"/>
            <child column="limit_group" foreignKey="circ_limit_set_group_map_limit_group_fkey" implied="false" onDeleteCascade="true" schema="config" table="circ_limit_set_group_map"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="circ_limit_group_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="circ_limit_group_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="circ_limit_set" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.circ_limit_set_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="limit_set" foreignKey="circ_limit_set_circ_mod_map_limit_set_fkey" implied="false" onDeleteCascade="true" schema="config" table="circ_limit_set_circ_mod_map"/>
            <child column="limit_set" foreignKey="circ_limit_set_copy_loc_map_limit_set_fkey" implied="false" onDeleteCascade="true" schema="config" table="circ_limit_set_copy_loc_map"/>
            <child column="limit_set" foreignKey="circ_limit_set_group_map_limit_set_fkey" implied="false" onDeleteCascade="true" schema="config" table="circ_limit_set_group_map"/>
            <child column="limit_set" foreignKey="circ_matrix_limit_set_map_limit_set_fkey" implied="false" onDeleteCascade="true" schema="config" table="circ_matrix_limit_set_map"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="owning_lib" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="circ_limit_set_owning_lib_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="items_out" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="4" name="depth" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="global" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="circ_limit_set_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="circ_limit_set_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="circ_limit_set_circ_mod_map" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.circ_limit_set_circ_mod_map_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="limit_set" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="circ_limit_set_circ_mod_map_limit_set_fkey" implied="false" onDeleteCascade="true" schema="config" table="circ_limit_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="circ_mod" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="code" foreignKey="circ_limit_set_circ_mod_map_circ_mod_fkey" implied="false" onDeleteCascade="true" schema="config" table="circ_modifier"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="circ_limit_set_circ_mod_map_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="cm_once_per_set" unique="true">
            <column ascending="true" name="limit_set"/>
            <column ascending="true" name="circ_mod"/>
         </index>
      </table>
      <table name="circ_limit_set_copy_loc_map" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.circ_limit_set_copy_loc_map_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="limit_set" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="circ_limit_set_copy_loc_map_limit_set_fkey" implied="false" onDeleteCascade="true" schema="config" table="circ_limit_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="copy_loc" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="circ_limit_set_copy_loc_map_copy_loc_fkey" implied="false" onDeleteCascade="true" schema="asset" table="copy_location"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="circ_limit_set_copy_loc_map_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="cl_once_per_set" unique="true">
            <column ascending="true" name="limit_set"/>
            <column ascending="true" name="copy_loc"/>
         </index>
      </table>
      <table name="circ_limit_set_group_map" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.circ_limit_set_group_map_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="limit_set" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="circ_limit_set_group_map_limit_set_fkey" implied="false" onDeleteCascade="true" schema="config" table="circ_limit_set"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="limit_group" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="circ_limit_set_group_map_limit_group_fkey" implied="false" onDeleteCascade="true" schema="config" table="circ_limit_group"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="check_only" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="circ_limit_set_group_map_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="clg_once_per_set" unique="true">
            <column ascending="true" name="limit_set"/>
            <column ascending="true" name="limit_group"/>
         </index>
      </table>
      <table name="circ_matrix_limit_set_map" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.circ_matrix_limit_set_map_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="matchpoint" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="circ_matrix_limit_set_map_matchpoint_fkey" implied="false" onDeleteCascade="true" schema="config" table="circ_matrix_matchpoint"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="limit_set" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="circ_matrix_limit_set_map_limit_set_fkey" implied="false" onDeleteCascade="true" schema="config" table="circ_limit_set"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="fallthrough" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="4" name="active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="circ_matrix_limit_set_map_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="circ_limit_set_once_per_matchpoint" unique="true">
            <column ascending="true" name="matchpoint"/>
            <column ascending="true" name="limit_set"/>
         </index>
      </table>
      <table name="circ_matrix_matchpoint" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.circ_matrix_matchpoint_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="matchpoint" foreignKey="circ_matrix_limit_set_map_matchpoint_fkey" implied="false" onDeleteCascade="true" schema="config" table="circ_matrix_limit_set_map"/>
         </column>
         <column autoUpdated="false" defaultValue="true" digits="0" id="1" name="active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="org_unit" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="circ_matrix_matchpoint_org_unit_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="grp" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="circ_matrix_matchpoint_grp_fkey" implied="false" onDeleteCascade="false" schema="permission" table="grp_tree"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="circ_modifier" nullable="true" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="code" foreignKey="circ_matrix_matchpoint_circ_modifier_fkey" implied="false" onDeleteCascade="false" schema="config" table="circ_modifier"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="copy_location" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="circ_matrix_matchpoint_copy_location_fkey" implied="false" onDeleteCascade="false" schema="asset" table="copy_location"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="marc_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="marc_form" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="marc_bib_level" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="marc_vr_format" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="copy_circ_lib" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="circ_matrix_matchpoint_copy_circ_lib_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="copy_owning_lib" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="circ_matrix_matchpoint_copy_owning_lib_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="user_home_ou" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="circ_matrix_matchpoint_user_home_ou_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="ref_flag" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="juvenile_flag" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="is_renewal" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="16" name="usr_age_lower_bound" nullable="true" remarks="" size="49" type="interval" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="17" name="usr_age_upper_bound" nullable="true" remarks="" size="49" type="interval" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="18" name="item_age" nullable="true" remarks="" size="49" type="interval" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="circulate" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="duration_rule" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="circ_matrix_matchpoint_duration_rule_fkey" implied="false" onDeleteCascade="false" schema="config" table="rule_circ_duration"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="recurring_fine_rule" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="circ_matrix_matchpoint_recurring_fine_rule_fkey" implied="false" onDeleteCascade="false" schema="config" table="rule_recurring_fine"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="max_fine_rule" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="circ_matrix_matchpoint_max_fine_rule_fkey" implied="false" onDeleteCascade="false" schema="config" table="rule_max_fine"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="hard_due_date" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="circ_matrix_matchpoint_hard_due_date_fkey" implied="false" onDeleteCascade="false" schema="config" table="hard_due_date"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="renewals" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="25" name="grace_period" nullable="true" remarks="" size="49" type="interval" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="script_test" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="27" name="total_copy_hold_ratio" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="28" name="available_copy_hold_ratio" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="30" name="renew_extends_due_date" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="31" name="renew_extend_min_interval" nullable="true" remarks="" size="49" type="interval" typeCode="1111"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="circ_matrix_matchpoint_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="ccmm_once_per_paramset" unique="true">
            <column ascending="true" name="org_unit"/>
            <column ascending="true" name="grp"/>
         </index>
      </table>
      <table name="circ_matrix_weights" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.circ_matrix_weights_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="circ_weights" foreignKey="weight_assoc_circ_weights_fkey" implied="false" onDeleteCascade="false" schema="config" table="weight_assoc"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="2" name="org_unit" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="3" name="grp" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="4" name="circ_modifier" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="5" name="copy_location" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="6" name="marc_type" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="7" name="marc_form" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="8" name="marc_bib_level" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="9" name="marc_vr_format" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="10" name="copy_circ_lib" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="11" name="copy_owning_lib" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="12" name="user_home_ou" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="13" name="ref_flag" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="14" name="juvenile_flag" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="15" name="is_renewal" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="16" name="usr_age_lower_bound" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="17" name="usr_age_upper_bound" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="18" name="item_age" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="circ_matrix_weights_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="circ_matrix_weights_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="circ_modifier" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="code" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="circ_modifier" foreignKey="distribution_formula_entry_circ_modifier_fkey" implied="false" onDeleteCascade="false" schema="acq" table="distribution_formula_entry"/>
            <child column="circ_modifier" foreignKey="lineitem_detail_circ_modifier_fkey" implied="false" onDeleteCascade="false" schema="acq" table="lineitem_detail"/>
            <child column="circ_mod" foreignKey="actor_org_unit_proximity_adjustment_circ_mod_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit_proximity_adjustment"/>
            <child column="circ_modifier" foreignKey="circ_mod_fkey" implied="false" onDeleteCascade="false" schema="asset" table="copy"/>
            <child column="original_circ_modifier" foreignKey="original_circ_mod_fkey" implied="false" onDeleteCascade="false" schema="asset" table="course_module_course_materials"/>
            <child column="circ_mod" foreignKey="circ_limit_set_circ_mod_map_circ_mod_fkey" implied="false" onDeleteCascade="true" schema="config" table="circ_limit_set_circ_mod_map"/>
            <child column="circ_modifier" foreignKey="circ_matrix_matchpoint_circ_modifier_fkey" implied="false" onDeleteCascade="false" schema="config" table="circ_matrix_matchpoint"/>
            <child column="circ_modifier" foreignKey="hold_matrix_matchpoint_circ_modifier_fkey" implied="false" onDeleteCascade="false" schema="config" table="hold_matrix_matchpoint"/>
            <child column="circ_mod_filter" foreignKey="badge_circ_mod_filter_fkey" implied="false" onDeleteCascade="false" schema="rating" table="badge"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="sip2_media_type" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="4" name="magnetic_media" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="avg_wait_time" nullable="true" remarks="" size="49" type="interval" typeCode="1111"/>
         <primaryKey column="code" sequenceNumberInPK="1"/>
         <index name="circ_modifier_pkey" unique="true">
            <column ascending="true" name="code"/>
         </index>
         <index name="circ_modifier_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="coded_value_map" numRows="3251" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.coded_value_map_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="coded_value" foreignKey="composite_attr_entry_definition_coded_value_fkey" implied="false" onDeleteCascade="true" schema="config" table="composite_attr_entry_definition"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ctype" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="name" foreignKey="coded_value_map_ctype_fkey" implied="false" onDeleteCascade="true" schema="config" table="record_attr_definition"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="value" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="5" name="opac_visible" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="search_label" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="7" name="is_simple" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="concept_uri" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="coded_value_map_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="config_coded_value_map_ctype_idx" unique="false">
            <column ascending="true" name="ctype"/>
         </index>
      </table>
      <table name="composite_attr_entry_definition" numRows="176" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="coded_value" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="composite_attr_entry_definition_coded_value_fkey" implied="false" onDeleteCascade="true" schema="config" table="coded_value_map"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="definition" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="coded_value" sequenceNumberInPK="1"/>
         <index name="composite_attr_entry_definition_pkey" unique="true">
            <column ascending="true" name="coded_value"/>
         </index>
      </table>
      <table name="copy_alert_type" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.copy_alert_type_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="alert_type" foreignKey="copy_alert_suppress_alert_type_fkey" implied="false" onDeleteCascade="true" schema="actor" table="copy_alert_suppress"/>
            <child column="alert_type" foreignKey="copy_alert_alert_type_fkey" implied="false" onDeleteCascade="true" schema="asset" table="copy_alert"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="scope_org" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="copy_alert_type_scope_org_fkey" implied="false" onDeleteCascade="true" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="true" digits="0" id="2" name="active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="state" nullable="true" remarks="" size="2147483647" type="&quot;config&quot;.&quot;copy_alert_type_state&quot;" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="event" nullable="true" remarks="" size="2147483647" type="&quot;config&quot;.&quot;copy_alert_type_event&quot;" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="in_renew" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="7" name="invert_location" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="at_circ" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="at_owning" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="next_status" nullable="true" remarks="" size="10" type="_int4" typeCode="2003"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="copy_alert_type_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="copy_alert_type_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="copy_status" remarks="Copy Statuses&#10;&#10;The available copy statuses, and whether a copy in that&#10;status is available for hold request capture.  0 (zero) is&#10;the only special number in this set, meaning that the item&#10;is available for immediate checkout, and is counted as available&#10;in the OPAC.&#10;&#10;Statuses with an ID below 100 are not removable, and have special&#10;meaning in the code.  Do not change them except to translate the&#10;textual name.&#10;&#10;You may add and remove statuses above 100, and these can be used&#10;to remove items from normal circulation without affecting the rest&#10;of the copy's values or its location." schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.copy_status_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="copy_status" foreignKey="transit_copy_copy_status_fkey" implied="false" onDeleteCascade="false" schema="action" table="transit_copy"/>
            <child column="status" foreignKey="copy_status_fkey" implied="false" onDeleteCascade="false" schema="asset" table="copy"/>
            <child column="status" foreignKey="copy_template_status_fkey" implied="false" onDeleteCascade="false" schema="asset" table="copy_template"/>
            <child column="original_status" foreignKey="course_module_course_materials_original_status_fkey" implied="false" onDeleteCascade="false" schema="asset" table="course_module_course_materials"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="2" name="holdable" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="opac_visible" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="copy_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="restrict_copy_delete" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="is_available" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="7" name="hopeless_prone" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="copy_status_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="copy_status_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="copy_tag_type" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="code" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="tag_type" foreignKey="copy_tag_tag_type_fkey" implied="false" onDeleteCascade="true" schema="asset" table="copy_tag"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="owner" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="copy_tag_type_owner_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <primaryKey column="code" sequenceNumberInPK="1"/>
         <index name="copy_tag_type_pkey" unique="true">
            <column ascending="true" name="code"/>
         </index>
         <index name="config_copy_tag_type_owner_idx" unique="false">
            <column ascending="true" name="owner"/>
         </index>
      </table>
      <table name="db_patch_dependencies" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="db_patch" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="supersedes" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="deprecates" nullable="true" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <primaryKey column="db_patch" sequenceNumberInPK="1"/>
         <index name="db_patch_dependencies_pkey" unique="true">
            <column ascending="true" name="db_patch"/>
         </index>
      </table>
      <table name="display_field_map" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="field" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="display_field_map_field_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_field"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="2" name="multi" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="name" sequenceNumberInPK="1"/>
         <index name="display_field_map_pkey" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="filter_dialog_filter_set" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.filter_dialog_filter_set_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="owning_lib" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="config_filter_dialog_filter_set_owning_lib_fkey" implied="false" onDeleteCascade="true" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="creator" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="config_filter_dialog_filter_set_creator_fkey" implied="false" onDeleteCascade="true" schema="actor" table="usr"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="4" name="create_time" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="interface" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="key" foreignKey="filter_dialog_filter_set_interface_fkey" implied="false" onDeleteCascade="false" schema="config" table="filter_dialog_interface"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="filters" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="filter_dialog_filter_set_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="cfdfs_name_once_per_lib" unique="true">
            <column ascending="true" name="name"/>
            <column ascending="true" name="owning_lib"/>
         </index>
         <checkConstraint constraint="(is_json(filters))" name="config_filter_dialog_filter_set_filters_check"/>
      </table>
      <table name="filter_dialog_interface" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="key" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="interface" foreignKey="filter_dialog_filter_set_interface_fkey" implied="false" onDeleteCascade="false" schema="config" table="filter_dialog_filter_set"/>
            <child column="api_key" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="config" table="geolocation_service"/>
            <child column="api_key" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="config" table="openathens_identity"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="key" sequenceNumberInPK="1"/>
         <index name="filter_dialog_interface_pkey" unique="true">
            <column ascending="true" name="key"/>
         </index>
      </table>
      <table name="floating_group" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.floating_group_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="floating" foreignKey="asset_copy_floating_fkey" implied="false" onDeleteCascade="false" schema="asset" table="copy"/>
            <child column="floating" foreignKey="asset_copy_template_floating_fkey" implied="false" onDeleteCascade="false" schema="asset" table="copy_template"/>
            <child column="floating_group" foreignKey="floating_group_member_floating_group_fkey" implied="false" onDeleteCascade="false" schema="config" table="floating_group_member"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="2" name="manual" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="floating_group_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="floating_group_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="floating_group_member" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.floating_group_member_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="floating_group" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="floating_group_member_floating_group_fkey" implied="false" onDeleteCascade="false" schema="config" table="floating_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="org_unit" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="floating_group_member_org_unit_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="0" digits="0" id="3" name="stop_depth" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="max_depth" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="exclude" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="floating_group_member_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="geolocation_service" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.geolocation_service_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="active" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="owner" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="cgs_owner_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="service_code" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="api_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="key" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="config" table="filter_dialog_interface"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="geolocation_service_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="global_flag" numRows="59" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="value" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="2" name="enabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="name" sequenceNumberInPK="1"/>
         <index name="global_flag_pkey" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="hard_due_date" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.hard_due_date_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="hard_due_date" foreignKey="circ_matrix_matchpoint_hard_due_date_fkey" implied="false" onDeleteCascade="false" schema="config" table="circ_matrix_matchpoint"/>
            <child column="hard_due_date" foreignKey="hard_due_date_values_hard_due_date_fkey" implied="false" onDeleteCascade="false" schema="config" table="hard_due_date_values"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="ceiling_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="forceto" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="owner" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="hard_due_date_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="hard_due_date_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="hard_due_date_values" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.hard_due_date_values_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="hard_due_date" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="hard_due_date_values_hard_due_date_fkey" implied="false" onDeleteCascade="false" schema="config" table="hard_due_date"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="ceiling_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="active_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="hard_due_date_values_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="hold_matrix_matchpoint" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.hold_matrix_matchpoint_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="1" name="active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="2" name="strict_ou_match" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="user_home_ou" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="hold_matrix_matchpoint_user_home_ou_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="request_ou" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="hold_matrix_matchpoint_request_ou_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="pickup_ou" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="hold_matrix_matchpoint_pickup_ou_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="item_owning_ou" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="hold_matrix_matchpoint_item_owning_ou_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="item_circ_ou" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="hold_matrix_matchpoint_item_circ_ou_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="usr_grp" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="hold_matrix_matchpoint_usr_grp_fkey" implied="false" onDeleteCascade="false" schema="permission" table="grp_tree"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="requestor_grp" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="hold_matrix_matchpoint_requestor_grp_fkey" implied="false" onDeleteCascade="false" schema="permission" table="grp_tree"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="circ_modifier" nullable="true" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="code" foreignKey="hold_matrix_matchpoint_circ_modifier_fkey" implied="false" onDeleteCascade="false" schema="config" table="circ_modifier"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="marc_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="marc_form" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="marc_bib_level" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="marc_vr_format" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="juvenile_flag" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="ref_flag" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="17" name="item_age" nullable="true" remarks="" size="49" type="interval" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="18" name="holdable" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="19" name="distance_is_from_owner" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="transit_range" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="hold_matrix_matchpoint_transit_range_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit_type"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="max_holds" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="22" name="include_frozen_holds" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="23" name="stop_blocked_user" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="age_hold_protect_rule" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="hold_matrix_matchpoint_age_hold_protect_rule_fkey" implied="false" onDeleteCascade="false" schema="config" table="rule_age_hold_protect"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="hold_matrix_matchpoint_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="chmm_once_per_paramset" unique="true"/>
      </table>
      <table name="hold_matrix_weights" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.hold_matrix_weights_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="hold_weights" foreignKey="weight_assoc_hold_weights_fkey" implied="false" onDeleteCascade="false" schema="config" table="weight_assoc"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="2" name="user_home_ou" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="3" name="request_ou" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="4" name="pickup_ou" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="5" name="item_owning_ou" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="6" name="item_circ_ou" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="7" name="usr_grp" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="8" name="requestor_grp" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="9" name="circ_modifier" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="10" name="marc_type" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="11" name="marc_form" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="12" name="marc_bib_level" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="13" name="marc_vr_format" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="14" name="juvenile_flag" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="15" name="ref_flag" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="16" name="item_age" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="hold_matrix_weights_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="hold_matrix_weights_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="hold_type" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.hold_type_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="hold_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="hold_type" foreignKey="hold_request_hold_type_fkey" implied="false" onDeleteCascade="false" schema="action" table="hold_request"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <index name="hold_type_hold_type_key" unique="true">
            <column ascending="true" name="hold_type"/>
         </index>
      </table>
      <table name="i18n_core" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.i18n_core_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="bigserial" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="fq_field" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="identity_value" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="translation" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="code" foreignKey="i18n_core_translation_fkey" implied="false" onDeleteCascade="true" schema="config" table="i18n_locale"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="string" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="i18n_core_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="i18n_identity" unique="true">
            <column ascending="true" name="fq_field"/>
            <column ascending="true" name="identity_value"/>
            <column ascending="true" name="translation"/>
         </index>
      </table>
      <table name="i18n_locale" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="code" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="locale" foreignKey="alternate_template_locale_fkey" implied="false" onDeleteCascade="false" schema="action_trigger" table="alternate_template"/>
            <child column="locale" foreignKey="usr_locale_fkey" implied="false" onDeleteCascade="false" schema="actor" table="usr"/>
            <child column="translation" foreignKey="i18n_core_translation_fkey" implied="false" onDeleteCascade="true" schema="config" table="i18n_core"/>
            <child column="locale" foreignKey="print_template_locale_fkey" implied="false" onDeleteCascade="false" schema="config" table="print_template"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="marc_code" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="rtl" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="code" sequenceNumberInPK="1"/>
         <index name="i18n_locale_pkey" unique="true">
            <column ascending="true" name="code"/>
         </index>
         <index name="i18n_locale_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="identification_type" remarks="Types of valid patron identification.&#10;&#10;Each patron must display at least one valid form of identification&#10;in order to get a library card.  This table lists those forms." schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.identification_type_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="ident_type" foreignKey="usr_ident_type_fkey" implied="false" onDeleteCascade="false" schema="actor" table="usr"/>
            <child column="ident_type2" foreignKey="usr_ident_type2_fkey" implied="false" onDeleteCascade="false" schema="actor" table="usr"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="identification_type_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="identification_type_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="idl_field_doc" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.idl_field_doc_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="bigserial" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="fm_class" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="field" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="owner" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="idl_field_doc_owner_fkey" implied="false" onDeleteCascade="true" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="string" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="idl_field_doc_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idl_field_doc_identity" unique="true">
            <column ascending="true" name="fm_class"/>
            <column ascending="true" name="field"/>
            <column ascending="true" name="owner"/>
         </index>
      </table>
      <table name="index_normalizer" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.index_normalizer_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="norm" foreignKey="heading_field_norm_map_norm_fkey" implied="false" onDeleteCascade="true" schema="authority" table="heading_field_norm_map"/>
            <child column="norm" foreignKey="metabib_field_index_norm_map_norm_fkey" implied="false" onDeleteCascade="true" schema="config" table="metabib_field_index_norm_map"/>
            <child column="norm" foreignKey="record_attr_index_norm_map_norm_fkey" implied="false" onDeleteCascade="true" schema="config" table="record_attr_index_norm_map"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="func" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="4" name="param_count" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="index_normalizer_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="index_normalizer_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="internal_flag" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="value" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="2" name="enabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="name" sequenceNumberInPK="1"/>
         <index name="internal_flag_pkey" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="item_form_map" numRows="0" remarks="" schema="config" type="VIEW" viewSql=" SELECT coded_value_map.code,&#10;    coded_value_map.value&#10;   FROM config.coded_value_map&#10;  WHERE (coded_value_map.ctype = 'item_form'::text);">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="code" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="value" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="item_type_map" numRows="0" remarks="" schema="config" type="VIEW" viewSql=" SELECT coded_value_map.code,&#10;    coded_value_map.value&#10;   FROM config.coded_value_map&#10;  WHERE (coded_value_map.ctype = 'item_type'::text);">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="code" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="value" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="language_map" numRows="0" remarks="" schema="config" type="VIEW" viewSql=" SELECT coded_value_map.code,&#10;    coded_value_map.value&#10;   FROM config.coded_value_map&#10;  WHERE (coded_value_map.ctype = 'item_lang'::text);">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="code" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="value" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="lit_form_map" numRows="0" remarks="" schema="config" type="VIEW" viewSql=" SELECT coded_value_map.code,&#10;    coded_value_map.value,&#10;    coded_value_map.description&#10;   FROM config.coded_value_map&#10;  WHERE (coded_value_map.ctype = 'lit_form'::text);">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="code" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="value" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="marc21_ff_pos_map" numRows="295" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.marc21_ff_pos_map_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="fixed_field" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="tag" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="rec_type" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="start_pos" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="length" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="' '::text" digits="0" id="6" name="default_val" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="marc21_ff_pos_map_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="marc21_physical_characteristic_subfield_map" numRows="76" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.marc21_physical_characteristic_subfield_map_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="ptype_subfield" foreignKey="marc21_physical_characteristic_value_map_ptype_subfield_fkey" implied="false" onDeleteCascade="false" schema="config" table="marc21_physical_characteristic_value_map"/>
            <child column="phys_char_sf" foreignKey="record_attr_definition_phys_char_sf_fkey" implied="false" onDeleteCascade="false" schema="config" table="record_attr_definition"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ptype_key" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="ptype_key" foreignKey="marc21_physical_characteristic_subfield_map_ptype_key_fkey" implied="false" onDeleteCascade="true" schema="config" table="marc21_physical_characteristic_type_map"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="subfield" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="start_pos" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="length" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="marc21_physical_characteristic_subfield_map_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="marc21_physical_characteristic_type_map" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ptype_key" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="ptype_key" foreignKey="marc21_physical_characteristic_subfield_map_ptype_key_fkey" implied="false" onDeleteCascade="true" schema="config" table="marc21_physical_characteristic_subfield_map"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="ptype_key" sequenceNumberInPK="1"/>
         <index name="marc21_physical_characteristic_type_map_pkey" unique="true">
            <column ascending="true" name="ptype_key"/>
         </index>
      </table>
      <table name="marc21_physical_characteristic_value_map" numRows="626" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.marc21_physical_characteristic_value_map_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="value" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ptype_subfield" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="marc21_physical_characteristic_value_map_ptype_subfield_fkey" implied="false" onDeleteCascade="false" schema="config" table="marc21_physical_characteristic_subfield_map"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="marc21_physical_characteristic_value_map_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="marc21_rec_type_map" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="code" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="type_val" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="blvl_val" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="code" sequenceNumberInPK="1"/>
         <index name="marc21_rec_type_map_pkey" unique="true">
            <column ascending="true" name="code"/>
         </index>
      </table>
      <table name="marc_field" numRows="391" remarks="This table stores a list of MARC fields recognized by the Evergreen&#10;instance.  Note that we're not aiming for completely generic ISO2709&#10;support: we're assuming things like three characters for a tag,&#10;one-character subfield labels, two indicators per variable data field,&#10;and the like, all of which are technically specializations of ISO2709.&#10;&#10;Of particular significance is the owner column; if it's set to a null&#10;value, the field definition is assumed to come from a national&#10;standards body; if it's set to a non-null value, the field definition&#10;is an OU-level addition to or override of the standard." schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.marc_field_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="marc_format" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="marc_field_marc_format_fkey" implied="false" onDeleteCascade="false" schema="config" table="marc_format"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="marc_record_type" nullable="false" remarks="" size="2147483647" type="&quot;config&quot;.&quot;marc_record_type&quot;" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="tag" nullable="false" remarks="" size="3" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="fixed_field" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="repeatable" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="mandatory" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="hidden" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="owner" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="config_marc_field_owner_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="marc_field_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="config_marc_field_owner_idx" unique="false">
            <column ascending="true" name="owner"/>
         </index>
         <index name="config_marc_field_tag_idx" unique="false">
            <column ascending="true" name="tag"/>
         </index>
         <index name="config_standard_marc_tags_are_unique" unique="true">
            <column ascending="true" name="marc_format"/>
            <column ascending="true" name="marc_record_type"/>
            <column ascending="true" name="tag"/>
         </index>
         <checkConstraint constraint="(((owner IS NOT NULL) OR ((owner IS NULL) AND (repeatable IS NOT NULL) AND (mandatory IS NOT NULL) AND (hidden IS NOT NULL))))" name="config_standard_marc_tags_are_fully_specified"/>
      </table>
      <table name="marc_field_for_ou" numRows="0" remarks="" schema="config" type="VIEW" viewSql=" WITH RECURSIVE ou_marc_fields(id, marc_format, marc_record_type, tag, name, description, fixed_field, repeatable, mandatory, hidden, owner, depth) AS (&#10;         SELECT marc_field.id,&#10;            marc_field.marc_format,&#10;            marc_field.marc_record_type,&#10;            marc_field.tag,&#10;            marc_field.name,&#10;            marc_field.description,&#10;            marc_field.fixed_field,&#10;            marc_field.repeatable,&#10;            marc_field.mandatory,&#10;            marc_field.hidden,&#10;            marc_field.owner,&#10;            0 AS &quot;?column?&quot;&#10;           FROM config.marc_field&#10;          WHERE (marc_field.owner IS NULL)&#10;        UNION&#10;         SELECT marc_field.id,&#10;            marc_field.marc_format,&#10;            marc_field.marc_record_type,&#10;            marc_field.tag,&#10;            marc_field.name,&#10;            marc_field.description,&#10;            marc_field.fixed_field,&#10;            marc_field.repeatable,&#10;            marc_field.mandatory,&#10;            marc_field.hidden,&#10;            marc_field.owner,&#10;            0&#10;           FROM config.marc_field&#10;          WHERE (NOT (ARRAY[(marc_field.marc_format)::text, (marc_field.marc_record_type)::text, (marc_field.tag)::text] IN ( SELECT ARRAY[(marc_field_1.marc_format)::text, (marc_field_1.marc_record_type)::text, (marc_field_1.tag)::text] AS &quot;array&quot;&#10;                   FROM config.marc_field marc_field_1&#10;                  WHERE (marc_field_1.owner IS NULL))))&#10;        UNION&#10;         SELECT c.id,&#10;            c.marc_format,&#10;            c.marc_record_type,&#10;            c.tag,&#10;            COALESCE(c.name, p.name) AS &quot;coalesce&quot;,&#10;            COALESCE(c.description, p.description) AS &quot;coalesce&quot;,&#10;            COALESCE(c.fixed_field, p.fixed_field) AS &quot;coalesce&quot;,&#10;            COALESCE(c.repeatable, p.repeatable) AS &quot;coalesce&quot;,&#10;            COALESCE(c.mandatory, p.mandatory) AS &quot;coalesce&quot;,&#10;            COALESCE(c.hidden, p.hidden) AS &quot;coalesce&quot;,&#10;            c.owner,&#10;            (p.depth + 1)&#10;           FROM ((config.marc_field c&#10;             JOIN ou_marc_fields p USING (marc_format, marc_record_type, tag))&#10;             JOIN actor.org_unit aou ON ((c.owner = aou.id)))&#10;          WHERE ((aou.parent_ou = p.owner) OR ((aou.parent_ou IS NULL) AND (p.owner IS NULL)))&#10;        )&#10; SELECT ou_marc_fields.id,&#10;    ou_marc_fields.marc_format,&#10;    ou_marc_fields.marc_record_type,&#10;    ou_marc_fields.tag,&#10;    ou_marc_fields.name,&#10;    ou_marc_fields.description,&#10;    ou_marc_fields.fixed_field,&#10;    ou_marc_fields.repeatable,&#10;    ou_marc_fields.mandatory,&#10;    ou_marc_fields.hidden,&#10;    ou_marc_fields.owner,&#10;    ou_marc_fields.depth&#10;   FROM ou_marc_fields;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="marc_format" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="marc_record_type" nullable="true" remarks="" size="2147483647" type="&quot;config&quot;.&quot;marc_record_type&quot;" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="tag" nullable="true" remarks="" size="3" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="fixed_field" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="repeatable" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="mandatory" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="hidden" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="owner" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="depth" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
      </table>
      <table name="marc_format" remarks="List of MARC formats supported by this Evergreen&#10;database. This exists primarily as a hook for future&#10;support of UNIMARC, though whether that will ever&#10;happen remains to be seen." schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.marc_format_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="marc_format" foreignKey="marc_field_marc_format_fkey" implied="false" onDeleteCascade="false" schema="config" table="marc_field"/>
            <child column="marc_format" foreignKey="marc_subfield_marc_format_fkey" implied="false" onDeleteCascade="false" schema="config" table="marc_subfield"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="code" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="marc_format_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="marc_subfield" numRows="3781" remarks="This table stores the list of subfields recognized by this Evergreen&#10;instance.  As with config.marc_field, of particular significance is the&#10;owner column; if it's set to a null value, the subfield definition is&#10;assumed to come from a national standards body; if it's set to a non-null&#10;value, the subfield definition is an OU-level addition to or override&#10;of the standard." schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.marc_subfield_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="marc_format" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="marc_subfield_marc_format_fkey" implied="false" onDeleteCascade="false" schema="config" table="marc_format"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="marc_record_type" nullable="false" remarks="" size="2147483647" type="&quot;config&quot;.&quot;marc_record_type&quot;" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="tag" nullable="false" remarks="" size="3" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="code" nullable="false" remarks="" size="1" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="repeatable" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="mandatory" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="hidden" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="value_ctype" nullable="true" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="name" foreignKey="marc_subfield_value_ctype_fkey" implied="false" onDeleteCascade="false" schema="config" table="record_attr_definition"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="owner" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="config_marc_subfield_owner_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="marc_subfield_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="config_marc_subfield_tag_code_idx" unique="false">
            <column ascending="true" name="tag"/>
            <column ascending="true" name="code"/>
         </index>
         <index name="config_standard_marc_subfields_are_unique" unique="true">
            <column ascending="true" name="marc_format"/>
            <column ascending="true" name="marc_record_type"/>
            <column ascending="true" name="tag"/>
            <column ascending="true" name="code"/>
         </index>
         <checkConstraint constraint="(((owner IS NOT NULL) OR ((owner IS NULL) AND (repeatable IS NOT NULL) AND (mandatory IS NOT NULL) AND (hidden IS NOT NULL))))" name="config_standard_marc_subfields_are_fully_specified"/>
      </table>
      <table name="marc_subfield_for_ou" numRows="0" remarks="" schema="config" type="VIEW" viewSql=" WITH RECURSIVE ou_marc_subfields(id, marc_format, marc_record_type, tag, code, description, repeatable, mandatory, hidden, value_ctype, owner, depth) AS (&#10;         SELECT marc_subfield.id,&#10;            marc_subfield.marc_format,&#10;            marc_subfield.marc_record_type,&#10;            marc_subfield.tag,&#10;            marc_subfield.code,&#10;            marc_subfield.description,&#10;            marc_subfield.repeatable,&#10;            marc_subfield.mandatory,&#10;            marc_subfield.hidden,&#10;            marc_subfield.value_ctype,&#10;            marc_subfield.owner,&#10;            0 AS &quot;?column?&quot;&#10;           FROM config.marc_subfield&#10;          WHERE (marc_subfield.owner IS NULL)&#10;        UNION&#10;         SELECT marc_subfield.id,&#10;            marc_subfield.marc_format,&#10;            marc_subfield.marc_record_type,&#10;            marc_subfield.tag,&#10;            marc_subfield.code,&#10;            marc_subfield.description,&#10;            marc_subfield.repeatable,&#10;            marc_subfield.mandatory,&#10;            marc_subfield.hidden,&#10;            marc_subfield.value_ctype,&#10;            marc_subfield.owner,&#10;            0&#10;           FROM config.marc_subfield&#10;          WHERE (NOT (ARRAY[(marc_subfield.marc_format)::text, (marc_subfield.marc_record_type)::text, (marc_subfield.tag)::text, (marc_subfield.code)::text] IN ( SELECT ARRAY[(marc_subfield_1.marc_format)::text, (marc_subfield_1.marc_record_type)::text, (marc_subfield_1.tag)::text, (marc_subfield_1.code)::text] AS &quot;array&quot;&#10;                   FROM config.marc_subfield marc_subfield_1&#10;                  WHERE (marc_subfield_1.owner IS NULL))))&#10;        UNION&#10;         SELECT c.id,&#10;            c.marc_format,&#10;            c.marc_record_type,&#10;            c.tag,&#10;            c.code,&#10;            COALESCE(c.description, p.description) AS &quot;coalesce&quot;,&#10;            COALESCE(c.repeatable, p.repeatable) AS &quot;coalesce&quot;,&#10;            COALESCE(c.mandatory, p.mandatory) AS &quot;coalesce&quot;,&#10;            COALESCE(c.hidden, p.hidden) AS &quot;coalesce&quot;,&#10;            COALESCE(c.value_ctype, p.value_ctype) AS &quot;coalesce&quot;,&#10;            c.owner,&#10;            (p.depth + 1)&#10;           FROM ((config.marc_subfield c&#10;             JOIN ou_marc_subfields p USING (marc_format, marc_record_type, tag, code))&#10;             JOIN actor.org_unit aou ON ((c.owner = aou.id)))&#10;          WHERE ((aou.parent_ou = p.owner) OR ((aou.parent_ou IS NULL) AND (p.owner IS NULL)))&#10;        )&#10; SELECT ou_marc_subfields.id,&#10;    ou_marc_subfields.marc_format,&#10;    ou_marc_subfields.marc_record_type,&#10;    ou_marc_subfields.tag,&#10;    ou_marc_subfields.code,&#10;    ou_marc_subfields.description,&#10;    ou_marc_subfields.repeatable,&#10;    ou_marc_subfields.mandatory,&#10;    ou_marc_subfields.hidden,&#10;    ou_marc_subfields.value_ctype,&#10;    ou_marc_subfields.owner,&#10;    ou_marc_subfields.depth&#10;   FROM ou_marc_subfields;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="marc_format" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="marc_record_type" nullable="true" remarks="" size="2147483647" type="&quot;config&quot;.&quot;marc_record_type&quot;" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="tag" nullable="true" remarks="" size="3" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="code" nullable="true" remarks="" size="1" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="repeatable" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="mandatory" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="hidden" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="value_ctype" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="owner" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="depth" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
      </table>
      <table name="metabib_class" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="field_class" foreignKey="metabib_class_ts_map_field_class_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_class_ts_map"/>
            <child column="field_class" foreignKey="metabib_field_field_class_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_field"/>
            <child column="field_class" foreignKey="metabib_search_alias_field_class_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_search_alias"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="2" name="buoyant" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="restrict" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="combined" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="1.0" digits="0" id="5" name="a_weight" nullable="false" remarks="" size="0" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0.4" digits="0" id="6" name="b_weight" nullable="false" remarks="" size="0" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0.2" digits="0" id="7" name="c_weight" nullable="false" remarks="" size="0" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0.1" digits="0" id="8" name="d_weight" nullable="false" remarks="" size="0" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="9" name="variant_authority_suggestion" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="10" name="symspell_transfer_case" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="11" name="symspell_skip_correct" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="2" digits="0" id="12" name="symspell_suggestion_verbosity" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="2" digits="0" id="13" name="max_phrase_edit_distance" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="5" digits="0" id="14" name="suggestion_word_option_count" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="'-1'::integer" digits="0" id="15" name="max_suggestions" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="16" name="low_result_threshold" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="17" name="min_suggestion_use_threshold" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="18" name="soundex_weight" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="19" name="pg_trgm_weight" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="20" name="keyboard_distance_weight" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="name" sequenceNumberInPK="1"/>
         <index name="metabib_class_pkey" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <index name="metabib_class_label_key" unique="true">
            <column ascending="true" name="label"/>
         </index>
      </table>
      <table name="metabib_class_ts_map" remarks="Text Search Configs for metabib class indexing&#10;&#10;This table contains text search config definitions for&#10;storing index_vector values." schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.metabib_class_ts_map_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="field_class" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="name" foreignKey="metabib_class_ts_map_field_class_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_class"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ts_config" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="metabib_class_ts_map_ts_config_fkey" implied="false" onDeleteCascade="false" schema="config" table="ts_config_list"/>
         </column>
         <column autoUpdated="false" defaultValue="true" digits="0" id="3" name="active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="'C'::bpchar" digits="0" id="4" name="index_weight" nullable="false" remarks="" size="1" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="index_lang" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="search_lang" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="7" name="always" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="metabib_class_ts_map_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <checkConstraint constraint="((index_weight = ANY (ARRAY['A'::bpchar, 'B'::bpchar, 'C'::bpchar, 'D'::bpchar])))" name="metabib_class_ts_map_index_weight_check"/>
      </table>
      <table name="metabib_field" numRows="53" remarks="XPath used for record indexing ingest&#10;&#10;This table contains the XPath used to chop up MODS into its&#10;indexable parts.  Each XPath entry is named and assigned to&#10;a &quot;class&quot; of either title, subject, author, keyword, series&#10;or identifier." schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.metabib_field_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="metabib_field" foreignKey="control_set_bib_field_metabib_field_map_metabib_field_fkey" implied="false" onDeleteCascade="true" schema="authority" table="control_set_bib_field_metabib_field_map"/>
            <child column="field" foreignKey="display_field_map_field_fkey" implied="false" onDeleteCascade="false" schema="config" table="display_field_map"/>
            <child column="field" foreignKey="metabib_field_index_norm_map_field_fkey" implied="false" onDeleteCascade="true" schema="config" table="metabib_field_index_norm_map"/>
            <child column="metabib_field" foreignKey="metabib_field_ts_map_metabib_field_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_field_ts_map"/>
            <child column="real" foreignKey="metabib_field_virtual_map_real_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_field_virtual_map"/>
            <child column="virtual" foreignKey="metabib_field_virtual_map_virtual_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_field_virtual_map"/>
            <child column="field" foreignKey="metabib_search_alias_field_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_search_alias"/>
            <child column="metabib_field" foreignKey="z3950_index_field_map_metabib_field_fkey" implied="false" onDeleteCascade="false" schema="config" table="z3950_index_field_map"/>
            <child column="field" foreignKey="metabib_author_field_entry_field_pkey" implied="false" onDeleteCascade="true" schema="metabib" table="author_field_entry"/>
            <child column="def" foreignKey="browse_entry_def_map_def_fkey" implied="false" onDeleteCascade="false" schema="metabib" table="browse_entry_def_map"/>
            <child column="field" foreignKey="metabib_identifier_field_entry_field_pkey" implied="false" onDeleteCascade="true" schema="metabib" table="identifier_field_entry"/>
            <child column="field" foreignKey="metabib_keyword_field_entry_field_pkey" implied="false" onDeleteCascade="true" schema="metabib" table="keyword_field_entry"/>
            <child column="field" foreignKey="metabib_series_field_entry_field_pkey" implied="false" onDeleteCascade="true" schema="metabib" table="series_field_entry"/>
            <child column="field" foreignKey="metabib_subject_field_entry_field_pkey" implied="false" onDeleteCascade="true" schema="metabib" table="subject_field_entry"/>
            <child column="field" foreignKey="metabib_title_field_entry_field_pkey" implied="false" onDeleteCascade="true" schema="metabib" table="title_field_entry"/>
            <child column="field" foreignKey="relevance_adjustment_field_fkey" implied="false" onDeleteCascade="false" schema="search" table="relevance_adjustment"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="field_class" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="name" foreignKey="metabib_field_field_class_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_class"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="xpath" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="5" name="weight" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="'mods33'::text" digits="0" id="6" name="format" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="name" foreignKey="metabib_field_format_fkey" implied="false" onDeleteCascade="false" schema="config" table="xml_transform"/>
         </column>
         <column autoUpdated="false" defaultValue="true" digits="0" id="7" name="search_field" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="8" name="facet_field" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="9" name="browse_field" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="10" name="browse_nocase" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="browse_xpath" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="browse_sort_xpath" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="facet_xpath" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="display_xpath" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="authority_xpath" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="joiner" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="17" name="restrict" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="18" name="display_field" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="metabib_field_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="config_metabib_field_class_name_idx" unique="true">
            <column ascending="true" name="field_class"/>
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="metabib_field_index_norm_map" numRows="115" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.metabib_field_index_norm_map_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="field" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="metabib_field_index_norm_map_field_fkey" implied="false" onDeleteCascade="true" schema="config" table="metabib_field"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="norm" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="metabib_field_index_norm_map_norm_fkey" implied="false" onDeleteCascade="true" schema="config" table="index_normalizer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="params" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="4" name="pos" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="metabib_field_index_norm_map_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="metabib_field_ts_map" remarks="Text Search Configs for metabib field indexing&#10;&#10;This table contains text search config definitions for&#10;storing index_vector values." schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.metabib_field_ts_map_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="metabib_field" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="metabib_field_ts_map_metabib_field_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_field"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ts_config" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="metabib_field_ts_map_ts_config_fkey" implied="false" onDeleteCascade="false" schema="config" table="ts_config_list"/>
         </column>
         <column autoUpdated="false" defaultValue="true" digits="0" id="3" name="active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="'C'::bpchar" digits="0" id="4" name="index_weight" nullable="false" remarks="" size="1" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="index_lang" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="search_lang" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="metabib_field_ts_map_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <checkConstraint constraint="((index_weight = ANY (ARRAY['A'::bpchar, 'B'::bpchar, 'C'::bpchar, 'D'::bpchar])))" name="metabib_field_ts_map_index_weight_check"/>
      </table>
      <table name="metabib_field_virtual_map" numRows="40" remarks="Maps between real (physically extracted) index definitions&#10;and virtual (target sync, no required extraction of its own)&#10;index definitions.&#10;&#10;The virtual side may not extract any data of its own, but&#10;will collect data from all of the real fields.  This reduces&#10;extraction (ingest) overhead by eliminating duplcated extraction,&#10;and allows for searching across novel combinations of fields, such&#10;as names used as either subjects or authors.  By preserving this&#10;mapping rather than defining duplicate extractions, information&#10;about the originating, &quot;real&quot; index definitions can be used&#10;in interesting ways, such as highlighting in search results." schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.metabib_field_virtual_map_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="real" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="metabib_field_virtual_map_real_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_field"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="virtual" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="metabib_field_virtual_map_virtual_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_field"/>
         </column>
         <column autoUpdated="false" defaultValue="1" digits="0" id="3" name="weight" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="metabib_field_virtual_map_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="metabib_search_alias" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="alias" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="field_class" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="name" foreignKey="metabib_search_alias_field_class_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_class"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="field" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="metabib_search_alias_field_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_field"/>
         </column>
         <primaryKey column="alias" sequenceNumberInPK="1"/>
         <index name="metabib_search_alias_pkey" unique="true">
            <column ascending="true" name="alias"/>
         </index>
      </table>
      <table name="net_access_level" remarks="Patron Network Access level&#10;&#10;This will be used to inform the in-library firewall of how much&#10;internet access the using patron should be allowed." schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.net_access_level_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="net_access_level" foreignKey="usr_net_access_level_fkey" implied="false" onDeleteCascade="false" schema="actor" table="usr"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="net_access_level_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="net_access_level_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="non_cataloged_type" remarks="Types of valid non-cataloged items." schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.non_cataloged_type_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="item_type" foreignKey="non_cat_in_house_use_item_type_fkey" implied="false" onDeleteCascade="false" schema="action" table="non_cat_in_house_use"/>
            <child column="item_type" foreignKey="non_cataloged_circulation_item_type_fkey" implied="false" onDeleteCascade="false" schema="action" table="non_cataloged_circulation"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="owning_lib" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'14 days'::interval" digits="6" id="3" name="circ_duration" nullable="false" remarks="" size="49" type="interval" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="in_house" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="non_cataloged_type_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="noncat_once_per_lib" unique="true">
            <column ascending="true" name="owning_lib"/>
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="openathens_identity" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.openathens_identity_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="1" name="active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="org_unit" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="config_openathens_identity_ou_fkey" implied="false" onDeleteCascade="true" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="api_key" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="key" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="config" table="filter_dialog_interface"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="connection_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="config" table="ts_config_list"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="connection_uri" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="6" name="auto_signon_enabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="7" name="auto_signout_enabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="8" name="unique_identifier" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="openathens_identity_unique_identifier_fkey" implied="false" onDeleteCascade="false" schema="config" table="openathens_uid_field"/>
         </column>
         <column autoUpdated="false" defaultValue="1" digits="0" id="9" name="display_name" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="openathens_identity_display_name_fkey" implied="false" onDeleteCascade="false" schema="config" table="openathens_name_field"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="10" name="release_prefix" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="11" name="release_first_given_name" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="12" name="release_second_given_name" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="13" name="release_family_name" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="14" name="release_suffix" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="15" name="release_email" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="16" name="release_home_ou" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="17" name="release_barcode" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="openathens_identity_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="openathens_name_field" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.openathens_name_field_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="display_name" foreignKey="openathens_identity_display_name_fkey" implied="false" onDeleteCascade="false" schema="config" table="openathens_identity"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="openathens_name_field_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="openathens_uid_field" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.openathens_uid_field_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="unique_identifier" foreignKey="openathens_identity_unique_identifier_fkey" implied="false" onDeleteCascade="false" schema="config" table="openathens_identity"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="openathens_uid_field_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="org_unit_setting_type" numRows="436" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="name" foreignKey="org_unit_setting_name_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit_setting"/>
            <child column="field_name" foreignKey="org_unit_setting_type_log_field_name_fkey" implied="false" onDeleteCascade="false" schema="config" table="org_unit_setting_type_log"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="grp" nullable="true" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="name" foreignKey="org_unit_setting_type_grp_fkey" implied="false" onDeleteCascade="false" schema="config" table="settings_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'string'::text" digits="0" id="4" name="datatype" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="fm_class" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="view_perm" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="view_perm_fkey" implied="false" onDeleteCascade="false" schema="permission" table="perm_list"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="update_perm" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="update_perm_fkey" implied="false" onDeleteCascade="false" schema="permission" table="perm_list"/>
         </column>
         <primaryKey column="name" sequenceNumberInPK="1"/>
         <index name="org_unit_setting_type_pkey" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <index name="org_unit_setting_type_label_key" unique="true">
            <column ascending="true" name="label"/>
         </index>
         <checkConstraint constraint="((((datatype = 'link'::text) AND (fm_class IS NOT NULL)) OR ((datatype &lt;&gt; 'link'::text) AND (fm_class IS NULL))))" name="coust_no_empty_link"/>
         <checkConstraint constraint="((datatype = ANY (ARRAY['bool'::text, 'integer'::text, 'float'::text, 'currency'::text, 'interval'::text, 'date'::text, 'string'::text, 'object'::text, 'array'::text, 'link'::text])))" name="coust_valid_datatype"/>
      </table>
      <table name="org_unit_setting_type_log" remarks="Org Unit setting Logs&#10;&#10;This table contains the most recent changes to each setting &#10;in actor.org_unit_setting, allowing for mistakes to be undone.&#10;This is NOT meant to be an auditor, but rather an undo/redo." schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.org_unit_setting_type_log_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="bigserial" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="1" name="date_applied" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="org" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="config_org_unit_setting_type_log_fkey" implied="false" onDeleteCascade="true" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="original_value" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="new_value" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="field_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="name" foreignKey="org_unit_setting_type_log_field_name_fkey" implied="false" onDeleteCascade="false" schema="config" table="org_unit_setting_type"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="org_unit_setting_type_log_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="print_template" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.print_template_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="owner" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="cpt_owner_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="locale" nullable="true" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="code" foreignKey="print_template_locale_fkey" implied="false" onDeleteCascade="false" schema="config" table="i18n_locale"/>
         </column>
         <column autoUpdated="false" defaultValue="'text/html'::text" digits="0" id="6" name="content_type" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="template" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="print_template_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="label_once_per_lib" unique="true">
            <column ascending="true" name="owner"/>
            <column ascending="true" name="label"/>
         </index>
         <index name="name_once_per_lib" unique="true">
            <column ascending="true" name="owner"/>
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="record_attr_definition" numRows="820" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="sorter" foreignKey="browse_axis_sorter_fkey" implied="false" onDeleteCascade="true" schema="authority" table="browse_axis"/>
            <child column="ctype" foreignKey="coded_value_map_ctype_fkey" implied="false" onDeleteCascade="true" schema="config" table="coded_value_map"/>
            <child column="value_ctype" foreignKey="marc_subfield_value_ctype_fkey" implied="false" onDeleteCascade="false" schema="config" table="marc_subfield"/>
            <child column="attr" foreignKey="record_attr_index_norm_map_attr_fkey" implied="false" onDeleteCascade="true" schema="config" table="record_attr_index_norm_map"/>
            <child column="record_attr" foreignKey="z3950_index_field_map_record_attr_fkey" implied="false" onDeleteCascade="false" schema="config" table="z3950_index_field_map"/>
            <child column="attr" foreignKey="record_sorter_attr_fkey" implied="false" onDeleteCascade="true" schema="metabib" table="record_sorter"/>
            <child column="attr" foreignKey="uncontrolled_record_attr_value_attr_fkey" implied="false" onDeleteCascade="false" schema="metabib" table="uncontrolled_record_attr_value"/>
            <child column="svf" foreignKey="match_set_point_svf_fkey" implied="false" onDeleteCascade="false" schema="vandelay" table="match_set_point"/>
            <child column="svf" foreignKey="match_set_quality_svf_fkey" implied="false" onDeleteCascade="false" schema="vandelay" table="match_set_quality"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="3" name="multi" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="4" name="filter" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="sorter" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="composite" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="tag" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="sf_list" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="joiner" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="xpath" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="format" nullable="true" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="name" foreignKey="record_attr_definition_format_fkey" implied="false" onDeleteCascade="true" schema="config" table="xml_transform"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="start_pos" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="string_len" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="fixed_field" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="phys_char_sf" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="record_attr_definition_phys_char_sf_fkey" implied="false" onDeleteCascade="false" schema="config" table="marc21_physical_characteristic_subfield_map"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="vocabulary" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="name" sequenceNumberInPK="1"/>
         <index name="record_attr_definition_pkey" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="record_attr_index_norm_map" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.record_attr_index_norm_map_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="attr" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="name" foreignKey="record_attr_index_norm_map_attr_fkey" implied="false" onDeleteCascade="true" schema="config" table="record_attr_definition"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="norm" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="record_attr_index_norm_map_norm_fkey" implied="false" onDeleteCascade="true" schema="config" table="index_normalizer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="params" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="4" name="pos" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="record_attr_index_norm_map_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="remote_account" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.remote_account_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="host" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="username" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="password" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="account" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="path" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="owner" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="config_remote_account_owner_fkey" implied="false" onDeleteCascade="true" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="last_activity" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="remote_account_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="remoteauth_profile" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="context_org" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="remoteauth_profile_context_org_fkey" implied="false" onDeleteCascade="true" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="enabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="perm" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="remoteauth_profile_perm_fkey" implied="false" onDeleteCascade="false" schema="permission" table="perm_list"/>
         </column>
         <column autoUpdated="false" defaultValue="true" digits="0" id="5" name="restrict_to_org" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="allow_inactive" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="7" name="allow_expired" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="block_list" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="usr_activity_type" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="remoteauth_profile_usr_activity_type_fkey" implied="false" onDeleteCascade="false" schema="config" table="usr_activity_type"/>
         </column>
         <primaryKey column="name" sequenceNumberInPK="1"/>
         <index name="remoteauth_profile_pkey" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="rule_age_hold_protect" remarks="Hold Item Age Protection rules&#10;&#10;A hold request can only capture new(ish) items when they are&#10;within a particular proximity of the pickup_lib of the request.&#10;The proximity ('prox' column) is calculated by counting&#10;the number of tree edges between the pickup_lib and either the&#10;owning_lib or circ_lib of the copy that could fulfill the hold,&#10;as determined by the distance_is_from_owner value of the hold matrix&#10;rule controlling the hold request." schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.rule_age_hold_protect_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="age_hold_protect_rule" foreignKey="hold_matrix_matchpoint_age_hold_protect_rule_fkey" implied="false" onDeleteCascade="false" schema="config" table="hold_matrix_matchpoint"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="age" nullable="false" remarks="" size="49" type="interval" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="prox" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="rule_age_hold_protect_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="rule_age_hold_protect_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <checkConstraint constraint="((name ~ '^\w+$'::text))" name="rule_age_hold_protect_name_check"/>
      </table>
      <table name="rule_circ_duration" remarks="Circulation Duration rules&#10;&#10;Each circulation is given a duration based on one of these rules." schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.rule_circ_duration_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="duration_rule" foreignKey="circ_matrix_matchpoint_duration_rule_fkey" implied="false" onDeleteCascade="false" schema="config" table="circ_matrix_matchpoint"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="extended" nullable="false" remarks="" size="49" type="interval" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="normal" nullable="false" remarks="" size="49" type="interval" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="shrt" nullable="false" remarks="" size="49" type="interval" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="max_renewals" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="max_auto_renewals" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="rule_circ_duration_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="rule_circ_duration_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <checkConstraint constraint="((name ~ '^\w+$'::text))" name="rule_circ_duration_name_check"/>
      </table>
      <table name="rule_max_fine" remarks="Circulation Max Fine rules&#10;&#10;Each circulation is given a maximum fine based on one of&#10;these rules." schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.rule_max_fine_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="max_fine_rule" foreignKey="circ_matrix_matchpoint_max_fine_rule_fkey" implied="false" onDeleteCascade="false" schema="config" table="circ_matrix_matchpoint"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="2" name="amount" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="is_percent" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="rule_max_fine_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="rule_max_fine_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <checkConstraint constraint="((name ~ '^\w+$'::text))" name="rule_max_fine_name_check"/>
      </table>
      <table name="rule_recurring_fine" remarks="Circulation Recurring Fine rules&#10;&#10;Each circulation is given a recurring fine amount based on one of&#10;these rules.  Note that it is recommended to run the fine generator&#10;(from cron) at least as frequently as the lowest recurrence interval&#10;used by your circulation rules so that accrued fines will be up&#10;to date." schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.rule_recurring_fine_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="recurring_fine_rule" foreignKey="circ_matrix_matchpoint_recurring_fine_rule_fkey" implied="false" onDeleteCascade="false" schema="config" table="circ_matrix_matchpoint"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="2" name="high" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="3" name="normal" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="4" name="low" nullable="false" remarks="" size="6" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="'1 day'::interval" digits="6" id="5" name="recurrence_interval" nullable="false" remarks="" size="49" type="interval" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="'1 day'::interval" digits="6" id="6" name="grace_period" nullable="false" remarks="" size="49" type="interval" typeCode="1111"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="rule_recurring_fine_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="rule_recurring_fine_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <checkConstraint constraint="((name ~ '^\w+$'::text))" name="rule_recurring_fine_name_check"/>
      </table>
      <table name="settings_group" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="grp" foreignKey="org_unit_setting_type_grp_fkey" implied="false" onDeleteCascade="false" schema="config" table="org_unit_setting_type"/>
            <child column="grp" foreignKey="usr_setting_type_grp_fkey" implied="false" onDeleteCascade="false" schema="config" table="usr_setting_type"/>
            <child column="grp" foreignKey="workstation_setting_type_grp_fkey" implied="false" onDeleteCascade="false" schema="config" table="workstation_setting_type"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="name" sequenceNumberInPK="1"/>
         <index name="settings_group_pkey" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <index name="settings_group_label_key" unique="true">
            <column ascending="true" name="label"/>
         </index>
      </table>
      <table name="sms_carrier" numRows="67" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.sms_carrier_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="sms_carrier" foreignKey="hold_request_sms_carrier_fkey" implied="false" onDeleteCascade="false" schema="action" table="hold_request"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="region" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="email_gateway" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="4" name="active" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="sms_carrier_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="standing" remarks="Patron Standings&#10;&#10;This table contains the values that can be applied to a patron&#10;by a staff member.  These values should not be changed, other&#10;than for translation, as the ID column is currently a &quot;magic&#10;number&quot; in the source. :(" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.standing_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="standing" foreignKey="usr_standing_fkey" implied="false" onDeleteCascade="false" schema="actor" table="usr"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="value" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="standing_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="standing_value_key" unique="true">
            <column ascending="true" name="value"/>
         </index>
      </table>
      <table name="standing_penalty" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.standing_penalty_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="standing_penalty" foreignKey="usr_standing_penalty_standing_penalty_fkey" implied="false" onDeleteCascade="true" schema="actor" table="usr_standing_penalty"/>
            <child column="penalty" foreignKey="grp_penalty_threshold_penalty_fkey" implied="false" onDeleteCascade="true" schema="permission" table="grp_penalty_threshold"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="block_list" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="staff_alert" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="org_depth" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ignore_proximity" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="standing_penalty_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="standing_penalty_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="ts_config_list" remarks="Full Text Configs&#10;&#10;A list of full text configs with names and descriptions." schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="ts_config" foreignKey="metabib_class_ts_map_ts_config_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_class_ts_map"/>
            <child column="ts_config" foreignKey="metabib_field_ts_map_ts_config_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_field_ts_map"/>
            <child column="connection_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="config" table="openathens_identity"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="ts_config_list_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="ui_staff_portal_page_entry" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.ui_staff_portal_page_entry_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="page_col" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="col_pos" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="entry_type" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="code" foreignKey="cusppe_entry_type_fkey" implied="false" onDeleteCascade="true" schema="config" table="ui_staff_portal_page_entry_type"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="label" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="image_url" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="target_url" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="entry_text" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="owner" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="cusppe_owner_fkey" implied="false" onDeleteCascade="true" schema="actor" table="org_unit"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="ui_staff_portal_page_entry_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="ui_staff_portal_page_entry_type" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="code" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="entry_type" foreignKey="cusppe_entry_type_fkey" implied="false" onDeleteCascade="true" schema="config" table="ui_staff_portal_page_entry"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="code" sequenceNumberInPK="1"/>
         <index name="ui_staff_portal_page_entry_type_pkey" unique="true">
            <column ascending="true" name="code"/>
         </index>
      </table>
      <table name="upgrade_log" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="version" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="1" name="install_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="applied_to" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="version" sequenceNumberInPK="1"/>
         <index name="upgrade_log_pkey" unique="true">
            <column ascending="true" name="version"/>
         </index>
      </table>
      <table name="usr_activity_type" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.usr_activity_type_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="etype" foreignKey="usr_activity_etype_fkey" implied="false" onDeleteCascade="false" schema="actor" table="usr_activity"/>
            <child column="usr_activity_type" foreignKey="remoteauth_profile_usr_activity_type_fkey" implied="false" onDeleteCascade="false" schema="config" table="remoteauth_profile"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="ewho" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ewhat" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ehow" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="egroup" nullable="false" remarks="" size="2147483647" type="&quot;config&quot;.&quot;usr_activity_group&quot;" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="6" name="enabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="7" name="transient" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="usr_activity_type_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="unique_wwh" unique="true"/>
         <checkConstraint constraint="((COALESCE(ewho, ewhat, ehow) IS NOT NULL))" name="one_of_wwh"/>
      </table>
      <table name="usr_setting_type" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="opt_in_setting" foreignKey="event_definition_opt_in_setting_fkey" implied="false" onDeleteCascade="false" schema="action_trigger" table="event_definition"/>
            <child column="name" foreignKey="usr_setting_name_fkey" implied="false" onDeleteCascade="true" schema="actor" table="usr_setting"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="1" name="opac_visible" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="grp" nullable="true" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="name" foreignKey="usr_setting_type_grp_fkey" implied="false" onDeleteCascade="false" schema="config" table="settings_group"/>
         </column>
         <column autoUpdated="false" defaultValue="'string'::text" digits="0" id="5" name="datatype" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="fm_class" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="reg_default" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="name" sequenceNumberInPK="1"/>
         <index name="usr_setting_type_pkey" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <index name="usr_setting_type_label_key" unique="true">
            <column ascending="true" name="label"/>
         </index>
         <checkConstraint constraint="((((datatype = 'link'::text) AND (fm_class IS NOT NULL)) OR ((datatype &lt;&gt; 'link'::text) AND (fm_class IS NULL))))" name="coust_no_empty_link"/>
         <checkConstraint constraint="((datatype = ANY (ARRAY['bool'::text, 'integer'::text, 'float'::text, 'currency'::text, 'interval'::text, 'date'::text, 'string'::text, 'object'::text, 'array'::text, 'link'::text])))" name="coust_valid_datatype"/>
      </table>
      <table name="videorecording_format_map" numRows="0" remarks="" schema="config" type="VIEW" viewSql=" SELECT coded_value_map.code,&#10;    coded_value_map.value&#10;   FROM config.coded_value_map&#10;  WHERE (coded_value_map.ctype = 'vr_format'::text);">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="code" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="value" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="weight_assoc" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.weight_assoc_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="org_unit" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="weight_assoc_org_unit_fkey" implied="false" onDeleteCascade="true" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="circ_weights" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="weight_assoc_circ_weights_fkey" implied="false" onDeleteCascade="false" schema="config" table="circ_matrix_weights"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="hold_weights" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="weight_assoc_hold_weights_fkey" implied="false" onDeleteCascade="false" schema="config" table="hold_matrix_weights"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="weight_assoc_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="cwa_one_active_per_ou" unique="true">
            <column ascending="true" name="org_unit"/>
         </index>
      </table>
      <table name="workstation_setting_type" numRows="326" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="name" foreignKey="workstation_setting_name_fkey" implied="false" onDeleteCascade="true" schema="actor" table="workstation_setting"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="grp" nullable="true" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="name" foreignKey="workstation_setting_type_grp_fkey" implied="false" onDeleteCascade="false" schema="config" table="settings_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'string'::text" digits="0" id="4" name="datatype" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="fm_class" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="name" sequenceNumberInPK="1"/>
         <index name="workstation_setting_type_pkey" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <index name="workstation_setting_type_label_key" unique="true">
            <column ascending="true" name="label"/>
         </index>
         <checkConstraint constraint="((((datatype = 'link'::text) AND (fm_class IS NOT NULL)) OR ((datatype &lt;&gt; 'link'::text) AND (fm_class IS NULL))))" name="cwst_no_empty_link"/>
         <checkConstraint constraint="((datatype = ANY (ARRAY['bool'::text, 'integer'::text, 'float'::text, 'currency'::text, 'interval'::text, 'date'::text, 'string'::text, 'object'::text, 'array'::text, 'link'::text])))" name="cwst_valid_datatype"/>
      </table>
      <table name="xml_transform" remarks="" schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="format" foreignKey="heading_field_format_fkey" implied="false" onDeleteCascade="false" schema="authority" table="heading_field"/>
            <child column="format" foreignKey="metabib_field_format_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_field"/>
            <child column="format" foreignKey="record_attr_definition_format_fkey" implied="false" onDeleteCascade="true" schema="config" table="record_attr_definition"/>
            <child column="transform" foreignKey="bre_output_layout_transform_fkey" implied="false" onDeleteCascade="true" schema="unapi" table="bre_output_layout"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="namespace_uri" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="prefix" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="xslt" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="name" sequenceNumberInPK="1"/>
         <index name="xml_transform_pkey" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="z3950_attr" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.z3950_attr_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="z3950_attr" foreignKey="z3950_index_field_map_z3950_attr_fkey" implied="false" onDeleteCascade="false" schema="config" table="z3950_index_field_map"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="source" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="name" foreignKey="z3950_attr_source_fkey" implied="false" onDeleteCascade="true" schema="config" table="z3950_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="code" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="format" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="6" name="truncation" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="z3950_attr_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="z_code_format_once_per_source" unique="true">
            <column ascending="true" name="code"/>
            <column ascending="true" name="format"/>
            <column ascending="true" name="source"/>
         </index>
      </table>
      <table name="z3950_index_field_map" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.z3950_index_field_map_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="metabib_field" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="z3950_index_field_map_metabib_field_fkey" implied="false" onDeleteCascade="false" schema="config" table="metabib_field"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="record_attr" nullable="true" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="name" foreignKey="z3950_index_field_map_record_attr_fkey" implied="false" onDeleteCascade="false" schema="config" table="record_attr_definition"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="z3950_attr" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="z3950_index_field_map_z3950_attr_fkey" implied="false" onDeleteCascade="false" schema="config" table="z3950_attr"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="z3950_attr_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="z3950_index_field_map_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <checkConstraint constraint="(((z3950_attr IS NOT NULL) OR (z3950_attr_type IS NOT NULL)))" name="attr_or_attr_type"/>
         <checkConstraint constraint="(((metabib_field IS NOT NULL) OR (record_attr IS NOT NULL)))" name="metabib_field_or_record_attr"/>
      </table>
      <table name="z3950_source" remarks="Z39.50 Sources&#10;&#10;Each row in this table represents a database searchable via Z39.50." schema="config" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="source" foreignKey="z3950_attr_source_fkey" implied="false" onDeleteCascade="true" schema="config" table="z3950_attr"/>
            <child column="source" foreignKey="z3950_source_credentials_source_fkey" implied="false" onDeleteCascade="true" schema="config" table="z3950_source_credentials"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="label" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="host" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="port" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="db" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'FI'::text" digits="0" id="5" name="record_format" nullable="false" remarks="Z39.50 element set." size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'usmarc'::text" digits="0" id="6" name="transmission_format" nullable="false" remarks="Z39.50 preferred record syntax.." size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="7" name="auth" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="use_perm" nullable="true" remarks="If set, this permission is required for the source to be listed in the staff&#10;client Z39.50 interface.  Similar to permission.grp_tree.application_perm." size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="use_perm_fkey" implied="false" onDeleteCascade="false" schema="permission" table="perm_list"/>
         </column>
         <primaryKey column="name" sequenceNumberInPK="1"/>
         <index name="z3950_source_pkey" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <index name="z3950_source_label_key" unique="true">
            <column ascending="true" name="label"/>
         </index>
      </table>
      <table name="z3950_source_credentials" remarks="" schema="config" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('config.z3950_source_credentials_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="owner" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="z3950_source_creds_owner_fkey" implied="false" onDeleteCascade="true" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="source" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="name" foreignKey="z3950_source_credentials_source_fkey" implied="false" onDeleteCascade="true" schema="config" table="z3950_source"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="username" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="password" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="z3950_source_credentials_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="czsc_source_once_per_lib" unique="true">
            <column ascending="true" name="source"/>
            <column ascending="true" name="owner"/>
         </index>
      </table>
   </tables>
   <routines>
      <routine dataAccess="MODIFIES" deterministic="false" name="interval_to_seconds(interval_string text)" returnType="integer" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="plpgsql"><![CDATA[BEGIN
	RETURN config.interval_to_seconds( interval_string::INTERVAL );
END;]]></definition>
         <parameters>
            <parameter mode="IN" name="interval_string" type="text"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="false" name="interval_to_seconds(interval_val interval)" returnType="integer" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="plpgsql"><![CDATA[BEGIN
	RETURN EXTRACT( EPOCH FROM interval_val );
END;]]></definition>
         <parameters>
            <parameter mode="IN" name="interval_val" type="interval"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="false" name="ou_marc_fields(marc_format integer, marc_record_type config.marc_record_type, ou integer)" returnType="SETOF config.marc_field" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="sql"><![CDATA[SELECT id, marc_format, marc_record_type, tag, name, description, fixed_field, repeatable, mandatory, hidden, owner
    FROM (
        SELECT id, marc_format, marc_record_type, tag, name, description,
              fixed_field, repeatable, mandatory, hidden, owner, depth,
              MAX(depth) OVER (PARTITION BY marc_format, marc_record_type, tag) AS winner
        FROM config.marc_field_for_ou
        WHERE (owner IS NULL
               OR owner IN (SELECT id FROM actor.org_unit_ancestors($3)))
        AND   marc_format = $1
        AND   marc_record_type = $2
    ) AS s
    WHERE depth = winner
    AND not hidden;]]></definition>
         <parameters>
            <parameter mode="IN" name="marc_format" type="integer"/>
            <parameter mode="IN" name="marc_record_type" type="config.marc_record_type"/>
            <parameter mode="IN" name="ou" type="integer"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="false" name="ou_marc_subfields(marc_format integer, marc_record_type config.marc_record_type, ou integer)" returnType="SETOF config.marc_subfield" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="sql"><![CDATA[SELECT id, marc_format, marc_record_type, tag, code, description, repeatable, mandatory,
           hidden, value_ctype, owner
    FROM (
        SELECT id, marc_format, marc_record_type, tag, code, description,
              repeatable, mandatory, hidden, value_ctype, owner, depth,
              MAX(depth) OVER (PARTITION BY marc_format, marc_record_type, tag, code) AS winner
        FROM config.marc_subfield_for_ou
        WHERE (owner IS NULL
               OR owner IN (SELECT id FROM actor.org_unit_ancestors($3)))
        AND   marc_format = $1
        AND   marc_record_type = $2
    ) AS s
    WHERE depth = winner
    AND not hidden;]]></definition>
         <parameters>
            <parameter mode="IN" name="marc_format" type="integer"/>
            <parameter mode="IN" name="marc_record_type" type="config.marc_record_type"/>
            <parameter mode="IN" name="ou" type="integer"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="false" name="setting_is_user_or_ws()" returnType="trigger" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="plpgsql"><![CDATA[BEGIN

    IF TG_TABLE_NAME = 'usr_setting_type' THEN
        PERFORM TRUE FROM config.workstation_setting_type cwst
            WHERE cwst.name = NEW.name;
        IF NOT FOUND THEN
            RETURN NULL;
        END IF;
    END IF;

    IF TG_TABLE_NAME = 'workstation_setting_type' THEN
        PERFORM TRUE FROM config.usr_setting_type cust
            WHERE cust.name = NEW.name;
        IF NOT FOUND THEN
            RETURN NULL;
        END IF;
    END IF;

    RAISE EXCEPTION 
        '% Cannot be used as both a user setting and a workstation setting.', 
        NEW.name;
END;]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="false" name="update_coded_value_map(in_ctype text, in_code text, in_value text, in_description text DEFAULT NULL::text, in_opac_visible boolean DEFAULT NULL::boolean, in_search_label text DEFAULT NULL::text, in_is_simple boolean DEFAULT NULL::boolean, add_only boolean DEFAULT false)" returnType="void" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="plpgsql"><![CDATA[DECLARE
    current_row config.coded_value_map%ROWTYPE;
BEGIN
    -- Look for a current value
    SELECT INTO current_row * FROM config.coded_value_map WHERE ctype = in_ctype AND code = in_code;
    -- If we have one..
    IF FOUND AND NOT add_only THEN
        -- Update anything we were handed
        current_row.value := COALESCE(current_row.value, in_value);
        current_row.description := COALESCE(current_row.description, in_description);
        current_row.opac_visible := COALESCE(current_row.opac_visible, in_opac_visible);
        current_row.search_label := COALESCE(current_row.search_label, in_search_label);
        current_row.is_simple := COALESCE(current_row.is_simple, in_is_simple);
        UPDATE config.coded_value_map
            SET
                value = current_row.value,
                description = current_row.description,
                opac_visible = current_row.opac_visible,
                search_label = current_row.search_label,
                is_simple = current_row.is_simple
            WHERE id = current_row.id;
    ELSE
        INSERT INTO config.coded_value_map(ctype, code, value, description, opac_visible, search_label, is_simple) VALUES
            (in_ctype, in_code, in_value, in_description, COALESCE(in_opac_visible, TRUE), in_search_label, COALESCE(in_is_simple, FALSE));
    END IF;
END;]]></definition>
         <parameters>
            <parameter mode="IN" name="in_ctype" type="text"/>
            <parameter mode="IN" name="in_code" type="text"/>
            <parameter mode="IN" name="in_value" type="text"/>
            <parameter mode="IN" name="in_description" type="text"/>
            <parameter mode="IN" name="in_opac_visible" type="boolean"/>
            <parameter mode="IN" name="in_search_label" type="text"/>
            <parameter mode="IN" name="in_is_simple" type="boolean"/>
            <parameter mode="IN" name="add_only" type="boolean"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="false" name="update_hard_due_dates()" returnType="integer" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="plpgsql"><![CDATA[DECLARE
    temp_value  config.hard_due_date_values%ROWTYPE;
    updated     INT := 0;
BEGIN
    FOR temp_value IN
      SELECT  DISTINCT ON (hard_due_date) *
        FROM  config.hard_due_date_values
        WHERE active_date <= NOW() -- We've passed (or are at) the rollover time
        ORDER BY hard_due_date, active_date DESC -- Latest (nearest to us) active time
   LOOP
        UPDATE  config.hard_due_date
          SET   ceiling_date = temp_value.ceiling_date
          WHERE id = temp_value.hard_due_date
                AND ceiling_date <> temp_value.ceiling_date -- Time is equal if we've already updated the chdd
                AND temp_value.ceiling_date >= NOW(); -- Don't update ceiling dates to the past

        IF FOUND THEN
            updated := updated + 1;
        END IF;
    END LOOP;

    RETURN updated;
END;]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="false" name="z3950_source_credentials_apply(src text, org integer, uname text, passwd text)" returnType="void" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="plpgsql"><![CDATA[BEGIN
    PERFORM 1 FROM config.z3950_source_credentials
        WHERE owner = org AND source = src;

    IF FOUND THEN
        IF COALESCE(uname, '') = '' AND COALESCE(passwd, '') = '' THEN
            DELETE FROM config.z3950_source_credentials 
                WHERE owner = org AND source = src;
        ELSE 
            UPDATE config.z3950_source_credentials 
                SET username = uname, password = passwd
                WHERE owner = org AND source = src;
        END IF;
    ELSE
        IF COALESCE(uname, '') <> '' OR COALESCE(passwd, '') <> '' THEN
            INSERT INTO config.z3950_source_credentials
                (source, owner, username, password) 
                VALUES (src, org, uname, passwd);
        END IF;
    END IF;
END;]]></definition>
         <parameters>
            <parameter mode="IN" name="src" type="text"/>
            <parameter mode="IN" name="org" type="integer"/>
            <parameter mode="IN" name="uname" type="text"/>
            <parameter mode="IN" name="passwd" type="text"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="false" name="z3950_source_credentials_lookup(source text, owner integer)" returnType="config.z3950_source_credentials" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="sql"><![CDATA[SELECT creds.* 
    FROM config.z3950_source_credentials creds
        JOIN actor.org_unit aou ON (aou.id = creds.owner)
        JOIN actor.org_unit_type aout ON (aout.id = aou.ou_type)
    WHERE creds.source = $1 AND creds.owner IN ( 
        SELECT id FROM actor.org_unit_ancestors($2) 
    )
    ORDER BY aout.depth DESC LIMIT 1;]]></definition>
         <parameters>
            <parameter mode="IN" name="source" type="text"/>
            <parameter mode="IN" name="owner" type="integer"/>
         </parameters>
      </routine>
   </routines>
</database>
