<?xml version="1.0" encoding="UTF-8"?><database name="egdb3_11_7" schema="booking" type="PostgreSQL - 15.10 (Ubuntu 15.10-1.pgdg24.04+1)">
   <sequences>
      <sequence increment="1" name="reservation_attr_value_map_id_seq" startValue="1"/>
      <sequence increment="1" name="resource_attr_id_seq" startValue="1"/>
      <sequence increment="1" name="resource_attr_map_id_seq" startValue="1"/>
      <sequence increment="1" name="resource_attr_value_id_seq" startValue="1"/>
      <sequence increment="1" name="resource_id_seq" startValue="1"/>
      <sequence increment="1" name="resource_type_id_seq" startValue="1"/>
   </sequences>
   <tables>
      <table name="reservation" numRows="15" remarks="" schema="booking" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('money.billable_xact_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="bigserial" typeCode="-5">
            <child column="reservation" foreignKey="emergency_closing_reservation_reservation_fkey" implied="false" onDeleteCascade="true" schema="action" table="emergency_closing_reservation"/>
            <child column="reservation" foreignKey="reservation_transit_copy_reservation_fkey" implied="false" onDeleteCascade="false" schema="action" table="reservation_transit_copy"/>
            <child column="reservation" foreignKey="reservation_attr_value_map_reservation_fkey" implied="false" onDeleteCascade="true" schema="booking" table="reservation_attr_value_map"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="usr" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="booking_reservation_usr_fkey" implied="false" onDeleteCascade="false" schema="actor" table="usr"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="2" name="xact_start" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="xact_finish" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="unrecovered" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="5" name="request_time" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="start_time" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="end_time" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="capture_time" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="cancel_time" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="pickup_time" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="return_time" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="booking_interval" nullable="true" remarks="" size="49" type="interval" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="fine_interval" nullable="true" remarks="" size="49" type="interval" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="14" name="fine_amount" nullable="true" remarks="" size="8" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="15" name="max_fine" nullable="true" remarks="" size="8" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="target_resource_type" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="reservation_target_resource_type_fkey" implied="false" onDeleteCascade="true" schema="booking" table="resource_type"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="target_resource" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="reservation_target_resource_fkey" implied="false" onDeleteCascade="true" schema="booking" table="resource"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="current_resource" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="reservation_current_resource_fkey" implied="false" onDeleteCascade="true" schema="booking" table="resource"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="request_lib" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="reservation_request_lib_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="pickup_lib" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="reservation_pickup_lib_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="capture_staff" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="reservation_capture_staff_fkey" implied="false" onDeleteCascade="false" schema="actor" table="usr"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="22" name="email_notify" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="note" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="reservation_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="reservation_attr_value_map" remarks="" schema="booking" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('booking.reservation_attr_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="reservation" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="reservation_attr_value_map_reservation_fkey" implied="false" onDeleteCascade="true" schema="booking" table="reservation"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="attr_value" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="reservation_attr_value_map_attr_value_fkey" implied="false" onDeleteCascade="true" schema="booking" table="resource_attr_value"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="reservation_attr_value_map_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="bravm_logical_key" unique="true">
            <column ascending="true" name="reservation"/>
            <column ascending="true" name="attr_value"/>
         </index>
      </table>
      <table name="resource" numRows="63" remarks="" schema="booking" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('booking.resource_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="target_copy" foreignKey="artc_tc_fkey" implied="false" onDeleteCascade="true" schema="action" table="reservation_transit_copy"/>
            <child column="current_resource" foreignKey="reservation_current_resource_fkey" implied="false" onDeleteCascade="true" schema="booking" table="reservation"/>
            <child column="target_resource" foreignKey="reservation_target_resource_fkey" implied="false" onDeleteCascade="true" schema="booking" table="reservation"/>
            <child column="resource" foreignKey="resource_attr_map_resource_fkey" implied="false" onDeleteCascade="true" schema="booking" table="resource_attr_map"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="owner" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="resource_owner_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="type" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="resource_type_fkey" implied="false" onDeleteCascade="false" schema="booking" table="resource_type"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="overbook" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="barcode" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="deposit" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0.00" digits="2" id="6" name="deposit_amount" nullable="false" remarks="" size="8" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0.00" digits="2" id="7" name="user_fee" nullable="false" remarks="" size="8" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="resource_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="br_unique" unique="true">
            <column ascending="true" name="owner"/>
            <column ascending="true" name="barcode"/>
         </index>
      </table>
      <table name="resource_attr" remarks="" schema="booking" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('booking.resource_attr_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="resource_attr" foreignKey="resource_attr_map_resource_attr_fkey" implied="false" onDeleteCascade="true" schema="booking" table="resource_attr_map"/>
            <child column="attr" foreignKey="resource_attr_value_attr_fkey" implied="false" onDeleteCascade="false" schema="booking" table="resource_attr_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="owner" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="resource_attr_owner_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </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="resource_type" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="resource_attr_resource_type_fkey" implied="false" onDeleteCascade="true" schema="booking" table="resource_type"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="required" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="resource_attr_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="bra_name_once_per_type" unique="true">
            <column ascending="true" name="resource_type"/>
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="resource_attr_map" remarks="" schema="booking" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('booking.resource_attr_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="resource" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="resource_attr_map_resource_fkey" implied="false" onDeleteCascade="true" schema="booking" table="resource"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="resource_attr" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="resource_attr_map_resource_attr_fkey" implied="false" onDeleteCascade="true" schema="booking" table="resource_attr"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="value" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="resource_attr_map_value_fkey" implied="false" onDeleteCascade="false" schema="booking" table="resource_attr_value"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="resource_attr_map_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="bram_one_value_per_attr" unique="true">
            <column ascending="true" name="resource"/>
            <column ascending="true" name="resource_attr"/>
         </index>
      </table>
      <table name="resource_attr_value" remarks="" schema="booking" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('booking.resource_attr_value_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="attr_value" foreignKey="reservation_attr_value_map_attr_value_fkey" implied="false" onDeleteCascade="true" schema="booking" table="reservation_attr_value_map"/>
            <child column="value" foreignKey="resource_attr_map_value_fkey" implied="false" onDeleteCascade="false" schema="booking" table="resource_attr_map"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="owner" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="resource_attr_value_owner_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="attr" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="resource_attr_value_attr_fkey" implied="false" onDeleteCascade="false" schema="booking" table="resource_attr"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="valid_value" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="resource_attr_value_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="brav_logical_key" unique="true">
            <column ascending="true" name="owner"/>
            <column ascending="true" name="attr"/>
            <column ascending="true" name="valid_value"/>
         </index>
      </table>
      <table name="resource_type" remarks="" schema="booking" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('booking.resource_type_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="target_resource_type" foreignKey="reservation_target_resource_type_fkey" implied="false" onDeleteCascade="true" schema="booking" table="reservation"/>
            <child column="type" foreignKey="resource_type_fkey" implied="false" onDeleteCascade="false" schema="booking" table="resource"/>
            <child column="resource_type" foreignKey="resource_attr_resource_type_fkey" implied="false" onDeleteCascade="true" schema="booking" table="resource_attr"/>
         </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="elbow_room" nullable="true" remarks="" size="49" type="interval" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="fine_interval" nullable="true" remarks="" size="49" type="interval" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="0" digits="2" id="4" name="fine_amount" nullable="false" remarks="" size="8" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="5" name="max_fine" nullable="true" remarks="" size="8" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="owner" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="resource_type_owner_fkey" implied="false" onDeleteCascade="false" schema="actor" table="org_unit"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="7" name="catalog_item" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="8" name="transferable" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="record" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent column="id" foreignKey="resource_type_record_fkey" implied="false" onDeleteCascade="false" schema="biblio" table="record_entry"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="resource_type_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="brt_name_and_record_once_per_owner" unique="true">
            <column ascending="true" name="owner"/>
            <column ascending="true" name="name"/>
            <column ascending="true" name="record"/>
         </index>
      </table>
   </tables>
</database>
