<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<database name="brinks" schema="public" type="PostgreSQL - 15.8 (Debian 15.8-1.pgdg110+1)">
   <sequences>
      <sequence increment="1" name="api_bankaccount_id_seq" startValue="1"/>
      <sequence increment="1" name="api_certifiedcart_id_seq" startValue="1"/>
      <sequence increment="1" name="api_certifiedcart_vouchers_id_seq" startValue="1"/>
      <sequence increment="1" name="api_chest_id_seq" startValue="1"/>
      <sequence increment="1" name="api_clause_id_seq" startValue="1"/>
      <sequence increment="1" name="api_clientbinnacle_id_seq" startValue="1"/>
      <sequence increment="1" name="api_company_id_seq" startValue="1"/>
      <sequence increment="1" name="api_companycontact_id_seq" startValue="1"/>
      <sequence increment="1" name="api_contract_id_seq" startValue="1"/>
      <sequence increment="1" name="api_crew_id_seq" startValue="1"/>
      <sequence increment="1" name="api_currency_id_seq" startValue="1"/>
      <sequence increment="1" name="api_currencydetail_id_seq" startValue="1"/>
      <sequence increment="1" name="api_department_id_seq" startValue="1"/>
      <sequence increment="1" name="api_depositform_id_seq" startValue="1"/>
      <sequence increment="1" name="api_depositformdetail_id_seq" startValue="1"/>
      <sequence increment="1" name="api_detailinvoice_id_seq" startValue="1"/>
      <sequence increment="1" name="api_division_employees_id_seq" startValue="1"/>
      <sequence increment="1" name="api_division_id_seq" startValue="1"/>
      <sequence increment="1" name="api_documentserviceorder_id_seq" startValue="1"/>
      <sequence increment="1" name="api_employee_id_seq" startValue="1"/>
      <sequence increment="1" name="api_exchange_id_seq" startValue="1"/>
      <sequence increment="1" name="api_guide_id_seq" startValue="1"/>
      <sequence increment="1" name="api_guide_vouchers_id_seq" startValue="1"/>
      <sequence increment="1" name="api_headinvoice_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalbankaccount_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalcertifiedcart_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalchest_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalclause_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalclientbinnacle_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalcompany_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalcompanycontact_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalcontract_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalcrew_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalcurrency_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalcurrencydetail_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaldepartment_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaldepositform_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaldepositformdetail_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaldetailinvoice_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaldivision_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaldocumentserviceorder_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalemployee_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalexchange_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalguide_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalheadinvoice_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicallocation_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalnotification_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaloffice_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalorigindestination_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalpackage_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalpasswordsetting_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalposition_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalproductandservice_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalproductpart_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalquotation_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalquotetemplate_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalrate_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalreportoperation_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalreportrequest_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalsegmentcompany_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalserviceorder_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalstock_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalstockserial_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalstocktransaction_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalstocktransactiondetail_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaltourdetail_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaltypechest_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaltypecompany_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaltypecontract_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaltypecurrency_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaltypedivision_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaltypeguide_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaltypelocation_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaltypeproducttransaction_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaltypeserviceorder_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaluserpassword_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicaluserprofile_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalvehicle_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalvoucher_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_historicalzone_history_id_seq" startValue="1"/>
      <sequence increment="1" name="api_location_id_seq" startValue="1"/>
      <sequence increment="1" name="api_notification_id_seq" startValue="1"/>
      <sequence increment="1" name="api_office_id_seq" startValue="1"/>
      <sequence increment="1" name="api_origindestination_id_seq" startValue="1"/>
      <sequence increment="1" name="api_packing_id_seq" startValue="1"/>
      <sequence increment="1" name="api_passwordsetting_id_seq" startValue="1"/>
      <sequence increment="1" name="api_position_id_seq" startValue="1"/>
      <sequence increment="1" name="api_productandservice_id_seq" startValue="1"/>
      <sequence increment="1" name="api_productpart_id_seq" startValue="1"/>
      <sequence increment="1" name="api_quotation_id_seq" startValue="1"/>
      <sequence increment="1" name="api_quotetemplate_id_seq" startValue="1"/>
      <sequence increment="1" name="api_rate_id_seq" startValue="1"/>
      <sequence increment="1" name="api_reportoperation_employees_close_id_seq" startValue="1"/>
      <sequence increment="1" name="api_reportoperation_employees_open_id_seq" startValue="1"/>
      <sequence increment="1" name="api_reportoperation_id_seq" startValue="1"/>
      <sequence increment="1" name="api_reportrequest_id_seq" startValue="1"/>
      <sequence increment="1" name="api_segmentcompany_id_seq" startValue="1"/>
      <sequence increment="1" name="api_serviceorder_id_seq" startValue="1"/>
      <sequence increment="1" name="api_stock_id_seq" startValue="1"/>
      <sequence increment="1" name="api_stockserial_id_seq" startValue="1"/>
      <sequence increment="1" name="api_stocktransaction_id_seq" startValue="1"/>
      <sequence increment="1" name="api_stocktransactiondetail_id_seq" startValue="1"/>
      <sequence increment="1" name="api_tourdetail_id_seq" startValue="1"/>
      <sequence increment="1" name="api_typechest_id_seq" startValue="1"/>
      <sequence increment="1" name="api_typecompany_id_seq" startValue="1"/>
      <sequence increment="1" name="api_typecontract_id_seq" startValue="1"/>
      <sequence increment="1" name="api_typecurrency_id_seq" startValue="1"/>
      <sequence increment="1" name="api_typedivision_id_seq" startValue="1"/>
      <sequence increment="1" name="api_typeguide_id_seq" startValue="1"/>
      <sequence increment="1" name="api_typelocation_id_seq" startValue="1"/>
      <sequence increment="1" name="api_typeproducttransaction_id_seq" startValue="1"/>
      <sequence increment="1" name="api_typeserviceorder_id_seq" startValue="1"/>
      <sequence increment="1" name="api_userpassword_id_seq" startValue="1"/>
      <sequence increment="1" name="api_userprofile_id_seq" startValue="1"/>
      <sequence increment="1" name="api_vehicle_id_seq" startValue="1"/>
      <sequence increment="1" name="api_voucher_id_seq" startValue="1"/>
      <sequence increment="1" name="api_voucher_packings_id_seq" startValue="1"/>
      <sequence increment="1" name="api_zone_id_seq" startValue="1"/>
      <sequence increment="1" name="auth_group_id_seq" startValue="1"/>
      <sequence increment="1" name="auth_group_permissions_id_seq" startValue="1"/>
      <sequence increment="1" name="auth_permission_id_seq" startValue="1"/>
      <sequence increment="1" name="auth_user_groups_id_seq" startValue="1"/>
      <sequence increment="1" name="auth_user_id_seq" startValue="1"/>
      <sequence increment="1" name="auth_user_user_permissions_id_seq" startValue="1"/>
      <sequence increment="1" name="django_admin_log_id_seq" startValue="1"/>
      <sequence increment="1" name="django_content_type_id_seq" startValue="1"/>
      <sequence increment="1" name="django_migrations_id_seq" startValue="1"/>
      <sequence increment="1" name="django_site_id_seq" startValue="1"/>
      <sequence increment="1" name="moderation_moderatedobject_id_seq" startValue="1"/>
   </sequences>
   <tables>
      <table name="api_bankaccount" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_bankaccount_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="bank_account_id" foreignKey="api_depositform_bank_account_id_0f36d31d_fk_api_bankaccount_id" implied="false" onDeleteCascade="false" schema="public" table="api_depositform"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="bank_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_bankaccount_bank_id_15746933_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_company"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="account" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_bankaccount_company_id_48ada75d_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_company"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_bankaccount_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_bankaccount_bank_id_15746933" unique="false">
            <column ascending="true" name="bank_id"/>
         </index>
         <index name="api_bankaccount_company_id_48ada75d" unique="false">
            <column ascending="true" name="company_id"/>
         </index>
      </table>
      <table name="api_certifiedcart" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_certifiedcart_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="certifiedcart_id" foreignKey="api_certifiedcart_vo_certifiedcart_id_0dbb218b_fk_api_certi" implied="false" onDeleteCascade="false" schema="public" table="api_certifiedcart_vouchers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="verificated" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="division_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_certifiedcart_division_id_4f344b14_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_division"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="division_last_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_certifiedcart_division_last_id_8c64f4db_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_division"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_certifiedcart_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_certifiedcart_code_f2848d44_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_certifiedcart_code_f2848d44_uniq" unique="true">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_certifiedcart_division_id_4f344b14" unique="false">
            <column ascending="true" name="division_id"/>
         </index>
         <index name="api_certifiedcart_division_last_id_8c64f4db" unique="false">
            <column ascending="true" name="division_last_id"/>
         </index>
      </table>
      <table name="api_certifiedcart_vouchers" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_certifiedcart_vouchers_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="certifiedcart_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_certifiedcart_vo_certifiedcart_id_0dbb218b_fk_api_certi" implied="false" onDeleteCascade="false" schema="public" table="api_certifiedcart"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="voucher_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_certifiedcart_vo_voucher_id_0eddd71d_fk_api_vouch" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_certifiedcart_vouchers_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_certifiedcart_vouche_certifiedcart_id_voucher_7399d39e_uniq" unique="true">
            <column ascending="true" name="certifiedcart_id"/>
            <column ascending="true" name="voucher_id"/>
         </index>
         <index name="api_certifiedcart_vouchers_certifiedcart_id_0dbb218b" unique="false">
            <column ascending="true" name="certifiedcart_id"/>
         </index>
         <index name="api_certifiedcart_vouchers_voucher_id_0eddd71d" unique="false">
            <column ascending="true" name="voucher_id"/>
         </index>
      </table>
      <table name="api_chest" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_chest_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="3" name="rental" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="4" name="risk" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="5" name="cost_risk" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="6" name="key_custody" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="service_order_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_chest_service_order_id_0291f7e1_fk_api_serviceorder_id" implied="false" onDeleteCascade="false" schema="public" table="api_serviceorder"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="type_chest_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_chest_type_chest_id_6bb3c494_fk_api_typechest_id" implied="false" onDeleteCascade="false" schema="public" table="api_typechest"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="location_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_chest_location_id_9348aee0_fk_api_location_id" implied="false" onDeleteCascade="false" schema="public" table="api_location"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="code_lock" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="13" name="cost_key_custody" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="14" name="cost_lock" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="is_included_package" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_chest_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_chest_code_504a15e9_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_chest_code_key" unique="true">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_chest_location_id_9348aee0" unique="false">
            <column ascending="true" name="location_id"/>
         </index>
         <index name="api_chest_service_order_id_0291f7e1" unique="false">
            <column ascending="true" name="service_order_id"/>
         </index>
         <index name="api_chest_type_chest_id_6bb3c494" unique="false">
            <column ascending="true" name="type_chest_id"/>
         </index>
      </table>
      <table name="api_clause" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_clause_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_clause_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_clause_code_8fa9bacd_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_clause_code_key" unique="true">
            <column ascending="true" name="code"/>
         </index>
      </table>
      <table name="api_clientbinnacle" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_clientbinnacle_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="note" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="hour" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_clientbinnacle_company_id_9ca7f97b_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_company"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="employee_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_clientbinnacle_employee_id_cbae5b3b_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_clientbinnacle_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_clientbinnacle_company_id_9ca7f97b" unique="false">
            <column ascending="true" name="company_id"/>
         </index>
         <index name="api_clientbinnacle_employee_id_cbae5b3b" unique="false">
            <column ascending="true" name="employee_id"/>
         </index>
      </table>
      <table name="api_company" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_company_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="bank_id" foreignKey="api_bankaccount_bank_id_15746933_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_bankaccount"/>
            <child column="company_id" foreignKey="api_bankaccount_company_id_48ada75d_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_bankaccount"/>
            <child column="company_id" foreignKey="api_clientbinnacle_company_id_9ca7f97b_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_clientbinnacle"/>
            <child column="company_id" foreignKey="api_companycontact_company_id_27c3dbbc_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_companycontact"/>
            <child column="company_id" foreignKey="api_contract_company_id_e37b23ce_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_contract"/>
            <child column="company_id" foreignKey="api_location_company_id_525b3e76_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_location"/>
            <child column="company_id" foreignKey="api_office_company_id_a316f95c_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_office"/>
            <child column="company_id" foreignKey="api_quotation_company_id_a137cb30_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_quotation"/>
            <child column="company_id" foreignKey="api_serviceorder_company_id_3a05c0da_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_serviceorder"/>
            <child column="company_id" foreignKey="api_voucher_company_id_fb2f06b9_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="code_brinks" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="identification_number" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="name" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="alias" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="abbreviation" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="email" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="phone" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="web" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="address" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="is_carrier" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="is_financial_institution" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="16" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="segment_company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_company_segment_company_id_ec5b004f_fk_api_segme" implied="false" onDeleteCascade="false" schema="public" table="api_segmentcompany"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="type_company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_company_type_company_id_49ad1971_fk_api_typecompany_id" implied="false" onDeleteCascade="false" schema="public" table="api_typecompany"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="is_commercial_institution" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="is_government_institution" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="logo" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="dubious_reputation" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="office_belongs_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_company_office_belongs_id_703e4dff_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_office"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_company_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_company_code_136012f2_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_company_code_key" unique="true">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_company_identification_number_6ec712cf_like" unique="false">
            <column ascending="true" name="identification_number"/>
         </index>
         <index name="api_company_identification_number_key" unique="true">
            <column ascending="true" name="identification_number"/>
         </index>
         <index name="api_company_name_16600b64_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_company_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_company_office_belongs_id_703e4dff" unique="false">
            <column ascending="true" name="office_belongs_id"/>
         </index>
         <index name="api_company_segment_company_id_ec5b004f" unique="false">
            <column ascending="true" name="segment_company_id"/>
         </index>
         <index name="api_company_type_company_id_49ad1971" unique="false">
            <column ascending="true" name="type_company_id"/>
         </index>
      </table>
      <table name="api_companycontact" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_companycontact_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="company_contact_id" foreignKey="api_headinvoice_company_contact_id_afc2640f_fk_api_compa" implied="false" onDeleteCascade="false" schema="public" table="api_headinvoice"/>
            <child column="company_contact_id" foreignKey="api_serviceorder_company_contact_id_1d8fb9c2_fk_api_compa" implied="false" onDeleteCascade="false" schema="public" table="api_serviceorder"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="phone" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="mobile" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="address" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="employee_position" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="email" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_companycontact_company_id_27c3dbbc_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_company"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_companycontact_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_companycontact_company_id_27c3dbbc" unique="false">
            <column ascending="true" name="company_id"/>
         </index>
      </table>
      <table name="api_contract" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_contract_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="contract_id" foreignKey="api_headinvoice_contract_id_24da26be_fk_api_contract_id" implied="false" onDeleteCascade="false" schema="public" table="api_headinvoice"/>
            <child column="contract_id" foreignKey="api_serviceorder_contract_id_401abf6a_fk_api_contract_id" implied="false" onDeleteCascade="false" schema="public" table="api_serviceorder"/>
            <child column="contract_id" foreignKey="api_voucher_contract_id_ee5118f8_fk_api_contract_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_contract_company_id_e37b23ce_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_company"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="type_contract_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_contract_type_contract_id_7fbf244a_fk_api_typecontract_id" implied="false" onDeleteCascade="false" schema="public" table="api_typecontract"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="end_billing_date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="start_billing_date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="name_invoce_to" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="abbreviation" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="address" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="alias" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="email" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="identification_number" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="phone" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="web" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_contract_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_contract_code_28153cc1_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_contract_code_key" unique="true">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_contract_company_id_e37b23ce" unique="false">
            <column ascending="true" name="company_id"/>
         </index>
         <index name="api_contract_type_contract_id_7fbf244a" unique="false">
            <column ascending="true" name="type_contract_id"/>
         </index>
      </table>
      <table name="api_crew" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_crew_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="crew_id" foreignKey="api_division_crew_id_b679468d_fk_api_crew_id" implied="false" onDeleteCascade="false" schema="public" table="api_division"/>
            <child column="crew_id" foreignKey="api_guide_crew_id_16fff8f9_fk_api_crew_id" implied="false" onDeleteCascade="false" schema="public" table="api_guide"/>
            <child column="crew_id" foreignKey="api_voucher_crew_id_7965c564_fk_api_crew_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
            <child column="crew_last_id" foreignKey="api_voucher_crew_last_id_917e6e0d_fk_api_crew_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="assistant_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_crew_assistant_id_a2b410e4_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="assistant2_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_crew_assistant2_id_7b196e69_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="division_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_crew_division_id_00e9199f_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_division"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="driver_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_crew_driver_id_cb2bc17e_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="vehicle_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_crew_vehicle_id_cbae26f9_fk_api_vehicle_id" implied="false" onDeleteCascade="false" schema="public" table="api_vehicle"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_crew_office_id_8d45f36a_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_office"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_crew_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_crew_assistant2_id_7b196e69" unique="false">
            <column ascending="true" name="assistant2_id"/>
         </index>
         <index name="api_crew_assistant_id_a2b410e4" unique="false">
            <column ascending="true" name="assistant_id"/>
         </index>
         <index name="api_crew_division_id_00e9199f" unique="false">
            <column ascending="true" name="division_id"/>
         </index>
         <index name="api_crew_driver_id_cb2bc17e" unique="false">
            <column ascending="true" name="driver_id"/>
         </index>
         <index name="api_crew_office_id_8d45f36a" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_crew_vehicle_id_cbae26f9" unique="false">
            <column ascending="true" name="vehicle_id"/>
         </index>
      </table>
      <table name="api_currency" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_currency_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="currency_id" foreignKey="api_currencydetail_currency_id_53457d3d_fk_api_currency_id" implied="false" onDeleteCascade="false" schema="public" table="api_currencydetail"/>
            <child column="currency_id" foreignKey="api_depositform_currency_id_c28688b5_fk_api_currency_id" implied="false" onDeleteCascade="false" schema="public" table="api_depositform"/>
            <child column="currency_id" foreignKey="api_exchange_currency_id_a3484780_fk_api_currency_id" implied="false" onDeleteCascade="false" schema="public" table="api_exchange"/>
            <child column="currency_id" foreignKey="api_headinvoice_currency_id_c5f87d56_fk_api_currency_id" implied="false" onDeleteCascade="false" schema="public" table="api_headinvoice"/>
            <child column="currency_id" foreignKey="api_office_currency_id_d681c056_fk_api_currency_id" implied="false" onDeleteCascade="false" schema="public" table="api_office"/>
            <child column="currency_id" foreignKey="api_voucher_currency_id_3a35b232_fk_api_currency_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="symbol" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="name" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="format" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="6" name="exchange_rate" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_currency_office_id_a29f3933_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="exchange_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_currency_exchange_id_37ceb616_fk_api_exchange_id" implied="false" onDeleteCascade="false" schema="public" table="api_exchange"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_currency_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_currency_code_symbol_name_office_id_7cd2c823_uniq" unique="true">
            <column ascending="true" name="code"/>
            <column ascending="true" name="symbol"/>
            <column ascending="true" name="name"/>
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_currency_exchange_id_37ceb616" unique="false">
            <column ascending="true" name="exchange_id"/>
         </index>
         <index name="api_currency_office_id_a29f3933" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
      </table>
      <table name="api_currencydetail" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_currencydetail_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="currency_detail_id" foreignKey="api_depositformdetai_currency_detail_id_a9a1c3ed_fk_api_curre" implied="false" onDeleteCascade="false" schema="public" table="api_depositformdetail"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="denomination" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="type_currency_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_currencydetail_type_currency_id_efbd8651_fk_api_typec" implied="false" onDeleteCascade="false" schema="public" table="api_typecurrency"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="currency_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_currencydetail_currency_id_53457d3d_fk_api_currency_id" implied="false" onDeleteCascade="false" schema="public" table="api_currency"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_currencydetail_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_currencydetail_currency_id_53457d3d" unique="false">
            <column ascending="true" name="currency_id"/>
         </index>
         <index name="api_currencydetail_type_currency_id_efbd8651" unique="false">
            <column ascending="true" name="type_currency_id"/>
         </index>
      </table>
      <table name="api_department" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_department_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="department_id" foreignKey="api_position_department_id_79dfca71_fk_api_department_id" implied="false" onDeleteCascade="false" schema="public" table="api_position"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_department_office_id_70a54f6e_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_office"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_department_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_department_name_b9621d40_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_department_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_department_office_id_70a54f6e" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
      </table>
      <table name="api_depositform" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_depositform_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="deposit_form_id" foreignKey="api_depositformdetai_deposit_form_id_7cb2c2f3_fk_api_depos" implied="false" onDeleteCascade="false" schema="public" table="api_depositformdetail"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="amount" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="difference_amount" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="verified" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="verified_at" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="bank_account_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_depositform_bank_account_id_0f36d31d_fk_api_bankaccount_id" implied="false" onDeleteCascade="false" schema="public" table="api_bankaccount"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="employee_who_counts_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_depositform_employee_who_counts__fcfd6fcf_fk_api_emplo" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="supervisor_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_depositform_supervisor_id_35c9a6ac_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="packing_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_depositform_packing_id_c99cc1b1_fk_api_packing_id" implied="false" onDeleteCascade="false" schema="public" table="api_packing"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="bank_account_number" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="currency_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_depositform_currency_id_c28688b5_fk_api_currency_id" implied="false" onDeleteCascade="false" schema="public" table="api_currency"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="review" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="supervisor_extra_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_depositform_supervisor_extra_id_23c99ad4_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_depositform_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_depositform_bank_account_id_0f36d31d" unique="false">
            <column ascending="true" name="bank_account_id"/>
         </index>
         <index name="api_depositform_currency_id_c28688b5" unique="false">
            <column ascending="true" name="currency_id"/>
         </index>
         <index name="api_depositform_employee_who_counts_id_fcfd6fcf" unique="false">
            <column ascending="true" name="employee_who_counts_id"/>
         </index>
         <index name="api_depositform_packing_id_c99cc1b1" unique="false">
            <column ascending="true" name="packing_id"/>
         </index>
         <index name="api_depositform_supervisor_extra_id_23c99ad4" unique="false">
            <column ascending="true" name="supervisor_extra_id"/>
         </index>
         <index name="api_depositform_supervisor_id_35c9a6ac" unique="false">
            <column ascending="true" name="supervisor_id"/>
         </index>
      </table>
      <table name="api_depositformdetail" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_depositformdetail_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="quantity" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="counted_quantity" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="currency_detail_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_depositformdetai_currency_detail_id_a9a1c3ed_fk_api_curre" implied="false" onDeleteCascade="false" schema="public" table="api_currencydetail"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="deposit_form_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_depositformdetai_deposit_form_id_7cb2c2f3_fk_api_depos" implied="false" onDeleteCascade="false" schema="public" table="api_depositform"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_depositformdetail_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_depositformdetail_currency_detail_id_a9a1c3ed" unique="false">
            <column ascending="true" name="currency_detail_id"/>
         </index>
         <index name="api_depositformdetail_deposit_form_id_7cb2c2f3" unique="false">
            <column ascending="true" name="deposit_form_id"/>
         </index>
      </table>
      <table name="api_detailinvoice" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_detailinvoice_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="details" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="details2" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="signo" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="7" name="quantity" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="8" name="quantity2" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="9" name="total_amount" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="tax_exempt" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="11" name="disccount" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="vaultinc" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="head_invoice_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_detailinvoice_head_invoice_id_dcd83054_fk_api_headi" implied="false" onDeleteCascade="false" schema="public" table="api_headinvoice"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="17" id="14" name="price" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="15" name="tax" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="16" name="divide" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_detailinvoice_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_detailinvoice_head_invoice_id_dcd83054" unique="false">
            <column ascending="true" name="head_invoice_id"/>
         </index>
      </table>
      <table name="api_division" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_division_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="division_id" foreignKey="api_certifiedcart_division_id_4f344b14_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_certifiedcart"/>
            <child column="division_last_id" foreignKey="api_certifiedcart_division_last_id_8c64f4db_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_certifiedcart"/>
            <child column="division_id" foreignKey="api_crew_division_id_00e9199f_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_crew"/>
            <child column="division_id" foreignKey="api_division_employees_division_id_6e5cb6ee_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_division_employees"/>
            <child column="division_destination_id" foreignKey="api_guide_division_destination_id_6399d8cf_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_guide"/>
            <child column="division_origin_id" foreignKey="api_guide_division_origin_id_d73b7bb9_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_guide"/>
            <child column="division_id" foreignKey="api_origindestination_division_id_e1b11179_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_origindestination"/>
            <child column="division_id" foreignKey="api_tourdetail_division_id_28e733c7_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_tourdetail"/>
            <child column="division_id" foreignKey="api_voucher_division_id_22412321_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
            <child column="division_insured_id" foreignKey="api_voucher_division_insured_id_b7770493_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
            <child column="division_last_id" foreignKey="api_voucher_division_last_id_b3a1ef99_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_division_office_id_ebb9b6b1_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="type_division_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_division_type_division_id_2ce76f96_fk_api_typedivision_id" implied="false" onDeleteCascade="false" schema="public" table="api_typedivision"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="crew_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_division_crew_id_b679468d_fk_api_crew_id" implied="false" onDeleteCascade="false" schema="public" table="api_crew"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="schedule" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_division_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_division_crew_id_b679468d" unique="false">
            <column ascending="true" name="crew_id"/>
         </index>
         <index name="api_division_name_7a1e01b6_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_division_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_division_office_id_ebb9b6b1" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_division_type_division_id_2ce76f96" unique="false">
            <column ascending="true" name="type_division_id"/>
         </index>
      </table>
      <table name="api_division_employees" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_division_employees_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="division_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_division_employees_division_id_6e5cb6ee_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_division"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="employee_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_division_employees_employee_id_1b382743_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_division_employees_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_division_employees_division_id_6e5cb6ee" unique="false">
            <column ascending="true" name="division_id"/>
         </index>
         <index name="api_division_employees_division_id_employee_id_91598491_uniq" unique="true">
            <column ascending="true" name="division_id"/>
            <column ascending="true" name="employee_id"/>
         </index>
         <index name="api_division_employees_employee_id_1b382743" unique="false">
            <column ascending="true" name="employee_id"/>
         </index>
      </table>
      <table name="api_documentserviceorder" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_documentserviceorder_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="file_url" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_documentserviceorder_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_employee" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_employee_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="employee_id" foreignKey="api_clientbinnacle_employee_id_cbae5b3b_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_clientbinnacle"/>
            <child column="assistant2_id" foreignKey="api_crew_assistant2_id_7b196e69_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_crew"/>
            <child column="assistant_id" foreignKey="api_crew_assistant_id_a2b410e4_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_crew"/>
            <child column="driver_id" foreignKey="api_crew_driver_id_cb2bc17e_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_crew"/>
            <child column="employee_who_counts_id" foreignKey="api_depositform_employee_who_counts__fcfd6fcf_fk_api_emplo" implied="false" onDeleteCascade="false" schema="public" table="api_depositform"/>
            <child column="supervisor_extra_id" foreignKey="api_depositform_supervisor_extra_id_23c99ad4_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_depositform"/>
            <child column="supervisor_id" foreignKey="api_depositform_supervisor_id_35c9a6ac_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_depositform"/>
            <child column="employee_id" foreignKey="api_division_employees_employee_id_1b382743_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_division_employees"/>
            <child column="employee_destination_id" foreignKey="api_guide_employee_destination_id_7dcfe7e4_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_guide"/>
            <child column="employee_origin_id" foreignKey="api_guide_employee_origin_id_dd264510_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_guide"/>
            <child column="employee_id" foreignKey="api_headinvoice_employee_id_114c1b3a_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_headinvoice"/>
            <child column="employee_destination_id" foreignKey="api_notification_employee_destination_f08a8359_fk_api_emplo" implied="false" onDeleteCascade="false" schema="public" table="api_notification"/>
            <child column="employee_origin_id" foreignKey="api_notification_employee_origin_id_abe0fbb3_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_notification"/>
            <child column="employee_id" foreignKey="api_reportoperation__employee_id_845c81a0_fk_api_emplo" implied="false" onDeleteCascade="false" schema="public" table="api_reportoperation_employees_close"/>
            <child column="employee_id" foreignKey="api_reportoperation__employee_id_dba1068c_fk_api_emplo" implied="false" onDeleteCascade="false" schema="public" table="api_reportoperation_employees_open"/>
            <child column="employee_id" foreignKey="api_reportrequest_employee_id_7b4393c4_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_reportrequest"/>
            <child column="employee_id" foreignKey="api_serviceorder_employee_id_184dff2c_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_serviceorder"/>
            <child column="employee_id" foreignKey="api_stocktransaction_employee_id_81af381f_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_stocktransaction"/>
            <child column="cashier_id" foreignKey="api_voucher_cashier_id_2d4cf1c0_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
            <child column="checkin_received_by_id" foreignKey="api_voucher_checkin_received_by_id_ffb1db37_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
            <child column="route_received_by_id" foreignKey="api_voucher_route_received_by_id_2d004fee_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="position_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_employee_position_id_52ce9e36_fk_api_position_id" implied="false" onDeleteCascade="false" schema="public" table="api_position"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_employee_user_id_ed8ba4e1_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="employee_number" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_employee_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_employee_employee_number_key" unique="true">
            <column ascending="true" name="employee_number"/>
         </index>
         <index name="api_employee_name_ffc32721_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_employee_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_employee_position_id_52ce9e36" unique="false">
            <column ascending="true" name="position_id"/>
         </index>
         <index name="api_employee_user_id_ed8ba4e1" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="api_exchange" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_exchange_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="exchange_id" foreignKey="api_currency_exchange_id_37ceb616_fk_api_exchange_id" implied="false" onDeleteCascade="false" schema="public" table="api_currency"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="2" name="rate" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="currency_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_exchange_currency_id_a3484780_fk_api_currency_id" implied="false" onDeleteCascade="false" schema="public" table="api_currency"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_exchange_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_exchange_currency_id_a3484780" unique="false">
            <column ascending="true" name="currency_id"/>
         </index>
      </table>
      <table name="api_guide" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_guide_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="guide_id" foreignKey="api_guide_vouchers_guide_id_8b2fa829_fk_api_guide_id" implied="false" onDeleteCascade="false" schema="public" table="api_guide_vouchers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="status" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="am_pm" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="division_destination_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_guide_division_destination_id_6399d8cf_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_division"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="division_origin_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_guide_division_origin_id_d73b7bb9_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_division"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="employee_destination_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_guide_employee_destination_id_7dcfe7e4_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="employee_origin_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_guide_employee_origin_id_dd264510_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="type_guide_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_guide_type_guide_id_0f64d40d_fk_api_typeguide_id" implied="false" onDeleteCascade="false" schema="public" table="api_typeguide"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="certified_cart" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="certified_cart_code" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="crew_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_guide_crew_id_16fff8f9_fk_api_crew_id" implied="false" onDeleteCascade="false" schema="public" table="api_crew"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_guide_office_id_14ad6006_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_office"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_guide_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_guide_crew_id_16fff8f9" unique="false">
            <column ascending="true" name="crew_id"/>
         </index>
         <index name="api_guide_division_destination_id_6399d8cf" unique="false">
            <column ascending="true" name="division_destination_id"/>
         </index>
         <index name="api_guide_division_origin_id_d73b7bb9" unique="false">
            <column ascending="true" name="division_origin_id"/>
         </index>
         <index name="api_guide_employee_destination_id_7dcfe7e4" unique="false">
            <column ascending="true" name="employee_destination_id"/>
         </index>
         <index name="api_guide_employee_origin_id_dd264510" unique="false">
            <column ascending="true" name="employee_origin_id"/>
         </index>
         <index name="api_guide_office_id_14ad6006" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_guide_type_guide_id_0f64d40d" unique="false">
            <column ascending="true" name="type_guide_id"/>
         </index>
      </table>
      <table name="api_guide_vouchers" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_guide_vouchers_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="guide_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_guide_vouchers_guide_id_8b2fa829_fk_api_guide_id" implied="false" onDeleteCascade="false" schema="public" table="api_guide"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="voucher_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_guide_vouchers_voucher_id_24d79f7a_fk_api_voucher_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_guide_vouchers_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_guide_vouchers_guide_id_8b2fa829" unique="false">
            <column ascending="true" name="guide_id"/>
         </index>
         <index name="api_guide_vouchers_guide_id_voucher_id_edb24d3a_uniq" unique="true">
            <column ascending="true" name="guide_id"/>
            <column ascending="true" name="voucher_id"/>
         </index>
         <index name="api_guide_vouchers_voucher_id_24d79f7a" unique="false">
            <column ascending="true" name="voucher_id"/>
         </index>
      </table>
      <table name="api_headinvoice" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_headinvoice_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="head_invoice_id" foreignKey="api_detailinvoice_head_invoice_id_dcd83054_fk_api_headi" implied="false" onDeleteCascade="false" schema="public" table="api_detailinvoice"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="2" name="invoice_number" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="from_date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="to_date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="7" name="total_amount" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="8" name="exchange_rate" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="9" name="total_travels" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="10" name="total_travels_directs" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="11" name="total_appraisal" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="12" name="total_handling" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="13" name="total_materials" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="14" name="total_custody_cpv" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="15" name="total_custody_vault" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="16" name="total_custody_personal_atm" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="17" name="total_pieces" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="18" name="total_fixed_costs_packing" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="19" name="total_vigilant" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="20" name="total_atm_supply" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="21" name="total_atm_failure_1_2_levels" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="company_contact_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_headinvoice_company_contact_id_afc2640f_fk_api_compa" implied="false" onDeleteCascade="false" schema="public" table="api_companycontact"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="contract_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_headinvoice_contract_id_24da26be_fk_api_contract_id" implied="false" onDeleteCascade="false" schema="public" table="api_contract"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="employee_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_headinvoice_employee_id_114c1b3a_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_headinvoice_office_id_54d49f40_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="serviceorder_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_headinvoice_serviceorder_id_563ec370_fk_api_serviceorder_id" implied="false" onDeleteCascade="false" schema="public" table="api_serviceorder"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="type_service_order_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_headinvoice_type_service_order_i_05a086a1_fk_api_types" implied="false" onDeleteCascade="false" schema="public" table="api_typeserviceorder"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="currency_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_headinvoice_currency_id_c5f87d56_fk_api_currency_id" implied="false" onDeleteCascade="false" schema="public" table="api_currency"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="29" name="due_date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="tax_exempt" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="31" name="tax_rate" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="32" name="total_disccount" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="33" name="total_tax_amount" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="file_uploaded" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="35" name="fuel_charge" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="36" name="total_fuel_charge" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="37" name="total_vouchers" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="38" name="total_cost_appraisal" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="39" name="total_cost_handling" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="40" name="total_amount_chest" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="41" name="total_insurance_chest" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="42" name="total_qty_chest" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="43" name="total_cost_materials" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="44" name="total_travels_points" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="product_and_service_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_headinvoice_product_and_service__03dba5ce_fk_api_produ" implied="false" onDeleteCascade="false" schema="public" table="api_productandservice"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="17" id="46" name="total_cost_travels" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_headinvoice_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_headinvoice_company_contact_id_afc2640f" unique="false">
            <column ascending="true" name="company_contact_id"/>
         </index>
         <index name="api_headinvoice_contract_id_24da26be" unique="false">
            <column ascending="true" name="contract_id"/>
         </index>
         <index name="api_headinvoice_currency_id_c5f87d56" unique="false">
            <column ascending="true" name="currency_id"/>
         </index>
         <index name="api_headinvoice_employee_id_114c1b3a" unique="false">
            <column ascending="true" name="employee_id"/>
         </index>
         <index name="api_headinvoice_office_id_54d49f40" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_headinvoice_product_and_service_id_03dba5ce" unique="false">
            <column ascending="true" name="product_and_service_id"/>
         </index>
         <index name="api_headinvoice_serviceorder_id_563ec370" unique="false">
            <column ascending="true" name="serviceorder_id"/>
         </index>
         <index name="api_headinvoice_type_service_order_id_05a086a1" unique="false">
            <column ascending="true" name="type_service_order_id"/>
         </index>
      </table>
      <table name="api_historicalbankaccount" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="bank_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="account" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalbankaccount_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalbankac_history_user_id_e2c7f88d_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalbankaccount_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalbankaccount_bank_d2481c65" unique="false">
            <column ascending="true" name="bank_id"/>
         </index>
         <index name="api_historicalbankaccount_company_id_17124f36" unique="false">
            <column ascending="true" name="company_id"/>
         </index>
         <index name="api_historicalbankaccount_history_user_id_e2c7f88d" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalbankaccount_id_0668c6ea" unique="false">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_historicalcertifiedcart" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalcertifiedcart_history_id_seq'::regclass)" digits="0" id="5" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalcertif_history_user_id_7fd71abe_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="verificated" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="division_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="division_last_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalcertifiedcart_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalcertifiedcart_code_02534c47" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalcertifiedcart_code_02534c47_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalcertifiedcart_division_id_5081edc0" unique="false">
            <column ascending="true" name="division_id"/>
         </index>
         <index name="api_historicalcertifiedcart_division_last_id_0b39a093" unique="false">
            <column ascending="true" name="division_last_id"/>
         </index>
         <index name="api_historicalcertifiedcart_history_user_id_7fd71abe" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalcertifiedcart_id_319a5a12" unique="false">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_historicalchest" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="3" name="rental" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="4" name="risk" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="5" name="cost_risk" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="6" name="key_custody" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalchest_history_id_seq'::regclass)" digits="0" id="9" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalchest_history_user_id_2c9afb93_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="service_order_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="type_chest_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="location_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="code_lock" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="18" name="cost_key_custody" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="19" name="cost_lock" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="is_included_package" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalchest_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalchest_code_357b846a" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalchest_code_357b846a_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalchest_history_user_id_2c9afb93" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalchest_id_047a9e2e" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalchest_location_id_55df7fcc" unique="false">
            <column ascending="true" name="location_id"/>
         </index>
         <index name="api_historicalchest_service_order_id_1ca0ce1e" unique="false">
            <column ascending="true" name="service_order_id"/>
         </index>
         <index name="api_historicalchest_type_chest_id_1144d359" unique="false">
            <column ascending="true" name="type_chest_id"/>
         </index>
      </table>
      <table name="api_historicalclause" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalclause_history_id_seq'::regclass)" digits="0" id="5" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalclause_history_user_id_17b0ab9b_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalclause_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalclause_code_f8fca862" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalclause_code_f8fca862_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalclause_history_user_id_17b0ab9b" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalclause_id_b592cc47" unique="false">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_historicalclientbinnacle" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="note" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="hour" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalclientbinnacle_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="employee_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalclient_history_user_id_2976c0d4_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalclientbinnacle_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalclientbinnacle_company_id_a19e063b" unique="false">
            <column ascending="true" name="company_id"/>
         </index>
         <index name="api_historicalclientbinnacle_employee_id_f79a3016" unique="false">
            <column ascending="true" name="employee_id"/>
         </index>
         <index name="api_historicalclientbinnacle_history_user_id_2976c0d4" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalclientbinnacle_id_5f2ecfb9" unique="false">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_historicalcompany" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="code_brinks" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="identification_number" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="name" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="alias" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="abbreviation" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="email" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="phone" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="web" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="address" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="is_carrier" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="is_financial_institution" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="16" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalcompany_history_id_seq'::regclass)" digits="0" id="17" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="18" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalcompany_history_user_id_bcbe41b3_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="segment_company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="type_company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="is_commercial_institution" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="is_government_institution" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="logo" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="dubious_reputation" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="office_belongs_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalcompany_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalcompany_code_4f1214d3" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalcompany_code_4f1214d3_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalcompany_history_user_id_bcbe41b3" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalcompany_id_ebbc7b82" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalcompany_identification_number_6e2c5418" unique="false">
            <column ascending="true" name="identification_number"/>
         </index>
         <index name="api_historicalcompany_identification_number_6e2c5418_like" unique="false">
            <column ascending="true" name="identification_number"/>
         </index>
         <index name="api_historicalcompany_name_fe41a6c4" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicalcompany_name_fe41a6c4_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicalcompany_office_belongs_id_a393ca8f" unique="false">
            <column ascending="true" name="office_belongs_id"/>
         </index>
         <index name="api_historicalcompany_segment_company_id_a65f86f0" unique="false">
            <column ascending="true" name="segment_company_id"/>
         </index>
         <index name="api_historicalcompany_type_company_id_924cd837" unique="false">
            <column ascending="true" name="type_company_id"/>
         </index>
      </table>
      <table name="api_historicalcompanycontact" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="phone" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="mobile" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="address" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="employee_position" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="email" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalcompanycontact_history_id_seq'::regclass)" digits="0" id="10" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalcompan_history_user_id_60030072_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalcompanycontact_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalcompanycontact_company_id_9b0c365d" unique="false">
            <column ascending="true" name="company_id"/>
         </index>
         <index name="api_historicalcompanycontact_history_user_id_60030072" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalcompanycontact_id_46a928ca" unique="false">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_historicalcontract" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalcontract_history_id_seq'::regclass)" digits="0" id="5" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalcontract_history_user_id_65b1e417_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="type_contract_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="end_billing_date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="start_billing_date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="name_invoce_to" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="abbreviation" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="address" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="alias" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="email" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="identification_number" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="phone" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="web" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalcontract_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalcontract_code_ef4f9426" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalcontract_code_ef4f9426_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalcontract_company_id_74955678" unique="false">
            <column ascending="true" name="company_id"/>
         </index>
         <index name="api_historicalcontract_history_user_id_65b1e417" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalcontract_id_0047b08c" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalcontract_type_contract_id_a53ab52b" unique="false">
            <column ascending="true" name="type_contract_id"/>
         </index>
      </table>
      <table name="api_historicalcrew" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalcrew_history_id_seq'::regclass)" digits="0" id="5" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="assistant_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="assistant2_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="division_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="driver_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalcrew_history_user_id_85bbcf84_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="vehicle_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalcrew_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalcrew_assistant2_id_cbd03dab" unique="false">
            <column ascending="true" name="assistant2_id"/>
         </index>
         <index name="api_historicalcrew_assistant_id_9ea92621" unique="false">
            <column ascending="true" name="assistant_id"/>
         </index>
         <index name="api_historicalcrew_division_id_cc31e082" unique="false">
            <column ascending="true" name="division_id"/>
         </index>
         <index name="api_historicalcrew_driver_id_825695ea" unique="false">
            <column ascending="true" name="driver_id"/>
         </index>
         <index name="api_historicalcrew_history_user_id_85bbcf84" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalcrew_id_319ca827" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalcrew_office_id_69d0c6f0" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_historicalcrew_vehicle_id_47659e49" unique="false">
            <column ascending="true" name="vehicle_id"/>
         </index>
      </table>
      <table name="api_historicalcurrency" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="symbol" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="name" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="format" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="6" name="exchange_rate" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalcurrency_history_id_seq'::regclass)" digits="0" id="9" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalcurrency_history_user_id_caf3c722_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="exchange_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalcurrency_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalcurrency_exchange_id_c594704e" unique="false">
            <column ascending="true" name="exchange_id"/>
         </index>
         <index name="api_historicalcurrency_history_user_id_caf3c722" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalcurrency_id_acb28da3" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalcurrency_office_id_fe9e283d" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
      </table>
      <table name="api_historicalcurrencydetail" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="denomination" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="type_currency_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalcurrencydetail_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="currency_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalcurren_history_user_id_4f728d61_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalcurrencydetail_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalcurrencydetail_currency_id_e31f2144" unique="false">
            <column ascending="true" name="currency_id"/>
         </index>
         <index name="api_historicalcurrencydetail_history_user_id_4f728d61" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalcurrencydetail_id_32918a79" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalcurrencydetail_type_currency_id_89da8a66" unique="false">
            <column ascending="true" name="type_currency_id"/>
         </index>
      </table>
      <table name="api_historicaldepartment" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaldepartment_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaldepart_history_user_id_caab779f_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaldepartment_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaldepartment_history_user_id_caab779f" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaldepartment_id_970c3d2d" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicaldepartment_name_c6592501" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicaldepartment_name_c6592501_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicaldepartment_office_id_86383ea2" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
      </table>
      <table name="api_historicaldepositform" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="amount" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="difference_amount" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="verified" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="verified_at" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaldepositform_history_id_seq'::regclass)" digits="0" id="8" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="bank_account_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="employee_who_counts_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaldeposi_history_user_id_5beb5d79_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="supervisor_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="packing_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="bank_account_number" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="currency_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="review" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="supervisor_extra_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaldepositform_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaldepositform_bank_account_id_ff1ef3c0" unique="false">
            <column ascending="true" name="bank_account_id"/>
         </index>
         <index name="api_historicaldepositform_currency_id_6b02d42d" unique="false">
            <column ascending="true" name="currency_id"/>
         </index>
         <index name="api_historicaldepositform_employee_who_counts_id_f4bea24d" unique="false">
            <column ascending="true" name="employee_who_counts_id"/>
         </index>
         <index name="api_historicaldepositform_history_user_id_5beb5d79" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaldepositform_id_d02a7625" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicaldepositform_packing_id_88cd96bb" unique="false">
            <column ascending="true" name="packing_id"/>
         </index>
         <index name="api_historicaldepositform_supervisor_extra_id_2c4551d1" unique="false">
            <column ascending="true" name="supervisor_extra_id"/>
         </index>
         <index name="api_historicaldepositform_supervisor_id_f9aeab57" unique="false">
            <column ascending="true" name="supervisor_id"/>
         </index>
      </table>
      <table name="api_historicaldepositformdetail" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="quantity" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="counted_quantity" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaldepositformdetail_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="currency_detail_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="deposit_form_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaldeposi_history_user_id_a41b1be3_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaldepositformdetail_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaldepositformdetail_currency_detail_id_5df8740b" unique="false">
            <column ascending="true" name="currency_detail_id"/>
         </index>
         <index name="api_historicaldepositformdetail_deposit_form_id_f305f02e" unique="false">
            <column ascending="true" name="deposit_form_id"/>
         </index>
         <index name="api_historicaldepositformdetail_history_user_id_a41b1be3" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaldepositformdetail_id_e2808f31" unique="false">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_historicaldetailinvoice" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="details" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="details2" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="signo" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="7" name="quantity" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="8" name="quantity2" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="9" name="total_amount" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="tax_exempt" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="11" name="disccount" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaldetailinvoice_history_id_seq'::regclass)" digits="0" id="12" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="head_invoice_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaldetail_history_user_id_7f83fd3d_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="vaultinc" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="19" name="price" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="20" name="tax" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="21" name="divide" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaldetailinvoice_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaldetailinvoice_headinvoice_id_c45238da" unique="false">
            <column ascending="true" name="head_invoice_id"/>
         </index>
         <index name="api_historicaldetailinvoice_history_user_id_7f83fd3d" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaldetailinvoice_id_177b2d5f" unique="false">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_historicaldivision" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaldivision_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaldivision_history_user_id_28a5a74a_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="type_division_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="crew_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="schedule" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaldivision_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaldivision_crew_id_616c3d91" unique="false">
            <column ascending="true" name="crew_id"/>
         </index>
         <index name="api_historicaldivision_history_user_id_28a5a74a" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaldivision_id_5c64724e" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicaldivision_name_2f41bc45" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicaldivision_name_2f41bc45_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicaldivision_office_id_a206d2cd" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_historicaldivision_type_division_id_70079fca" unique="false">
            <column ascending="true" name="type_division_id"/>
         </index>
      </table>
      <table name="api_historicaldocumentserviceorder" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="file_url" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaldocumentserviceorder_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaldocume_history_user_id_3cac819c_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaldocumentserviceorder_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaldocumentserviceorder_history_user_id_3cac819c" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaldocumentserviceorder_id_024344a6" unique="false">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_historicalemployee" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalemployee_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalemployee_history_user_id_4349d28f_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="position_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="employee_number" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalemployee_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalemployee_employee_number_95d9fc4d" unique="false">
            <column ascending="true" name="employee_number"/>
         </index>
         <index name="api_historicalemployee_history_user_id_4349d28f" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalemployee_id_4479bf46" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalemployee_name_921d5aa7" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicalemployee_name_921d5aa7_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicalemployee_position_id_291e8519" unique="false">
            <column ascending="true" name="position_id"/>
         </index>
         <index name="api_historicalemployee_user_id_b5e4554a" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="api_historicalexchange" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="2" name="rate" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalexchange_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="currency_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalexchange_history_user_id_5d748fe6_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalexchange_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalexchange_currency_id_948d4b52" unique="false">
            <column ascending="true" name="currency_id"/>
         </index>
         <index name="api_historicalexchange_history_user_id_5d748fe6" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalexchange_id_10148e45" unique="false">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_historicalguide" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="status" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="am_pm" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalguide_history_id_seq'::regclass)" digits="0" id="7" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="division_destination_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="division_origin_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="employee_destination_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="employee_origin_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalguide_history_user_id_1818c5c8_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="type_guide_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="certified_cart" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="certified_cart_code" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="crew_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalguide_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalguide_crew_id_27142e0f" unique="false">
            <column ascending="true" name="crew_id"/>
         </index>
         <index name="api_historicalguide_division_destination_id_b2affea6" unique="false">
            <column ascending="true" name="division_destination_id"/>
         </index>
         <index name="api_historicalguide_division_origin_id_67520cb7" unique="false">
            <column ascending="true" name="division_origin_id"/>
         </index>
         <index name="api_historicalguide_employee_destination_id_2921fd11" unique="false">
            <column ascending="true" name="employee_destination_id"/>
         </index>
         <index name="api_historicalguide_employee_origin_id_a2b64059" unique="false">
            <column ascending="true" name="employee_origin_id"/>
         </index>
         <index name="api_historicalguide_history_user_id_1818c5c8" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalguide_id_e2267e77" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalguide_office_id_22852b26" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_historicalguide_type_guide_id_5d3ed716" unique="false">
            <column ascending="true" name="type_guide_id"/>
         </index>
      </table>
      <table name="api_historicalheadinvoice" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="2" name="invoice_number" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="from_date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="to_date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="7" name="total_amount" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="8" name="exchange_rate" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="9" name="total_travels" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="10" name="total_travels_directs" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="11" name="total_appraisal" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="12" name="total_handling" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="13" name="total_materials" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="14" name="total_custody_cpv" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="15" name="total_custody_vault" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="16" name="total_custody_personal_atm" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="17" name="total_pieces" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="18" name="total_fixed_costs_packing" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="19" name="total_vigilant" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="20" name="total_atm_supply" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="21" name="total_atm_failure_1_2_levels" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalheadinvoice_history_id_seq'::regclass)" digits="0" id="22" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="23" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="company_contact_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="contract_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="employee_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalheadin_history_user_id_52ee6476_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="serviceorder_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="type_service_order_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="currency_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="34" name="due_date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="tax_exempt" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="36" name="tax_rate" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="37" name="total_disccount" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="38" name="total_tax_amount" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="file_uploaded" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="40" name="fuel_charge" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="41" name="total_fuel_charge" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="42" name="total_vouchers" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="43" name="total_cost_appraisal" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="44" name="total_cost_handling" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="45" name="total_amount_chest" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="46" name="total_insurance_chest" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="47" name="total_qty_chest" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="48" name="total_cost_materials" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="49" name="total_travels_points" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="product_and_service_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="51" name="total_cost_travels" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalheadinvoice_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalheadinvoice_company_contact_id_960efc82" unique="false">
            <column ascending="true" name="company_contact_id"/>
         </index>
         <index name="api_historicalheadinvoice_contract_id_53f2bc57" unique="false">
            <column ascending="true" name="contract_id"/>
         </index>
         <index name="api_historicalheadinvoice_currency_id_4471d506" unique="false">
            <column ascending="true" name="currency_id"/>
         </index>
         <index name="api_historicalheadinvoice_employee_id_08eb4461" unique="false">
            <column ascending="true" name="employee_id"/>
         </index>
         <index name="api_historicalheadinvoice_history_user_id_52ee6476" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalheadinvoice_id_a7a53ff0" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalheadinvoice_office_id_59eb6907" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_historicalheadinvoice_product_and_service_id_b2baf6dd" unique="false">
            <column ascending="true" name="product_and_service_id"/>
         </index>
         <index name="api_historicalheadinvoice_serviceorder_id_d952045c" unique="false">
            <column ascending="true" name="serviceorder_id"/>
         </index>
         <index name="api_historicalheadinvoice_type_service_order_id_af88965f" unique="false">
            <column ascending="true" name="type_service_order_id"/>
         </index>
      </table>
      <table name="api_historicallocation" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="code_brinks" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="6" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicallocation_history_id_seq'::regclass)" digits="0" id="8" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicallocation_history_user_id_d015064b_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="type_location_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="zone_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="type_address" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="address" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="contact" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="email" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="point_name" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="reference_point" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="telephone" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicallocation_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicallocation_code_b9be31d4" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicallocation_code_b9be31d4_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicallocation_company_id_eb898eb3" unique="false">
            <column ascending="true" name="company_id"/>
         </index>
         <index name="api_historicallocation_history_user_id_d015064b" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicallocation_id_120e2855" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicallocation_type_location_id_e27d999a" unique="false">
            <column ascending="true" name="type_location_id"/>
         </index>
         <index name="api_historicallocation_zone_id_19cd7619" unique="false">
            <column ascending="true" name="zone_id"/>
         </index>
      </table>
      <table name="api_historicalnotification" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="icon" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="title" nullable="true" remarks="" size="255" type="varchar" 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="null" digits="0" id="5" name="link" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="is_read" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="type" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="module" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalnotification_history_id_seq'::regclass)" digits="0" id="11" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="employee_destination_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="employee_origin_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalnotifi_history_user_id_0d8edfae_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalnotification_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalnotification_employee_destination_id_515a99d5" unique="false">
            <column ascending="true" name="employee_destination_id"/>
         </index>
         <index name="api_historicalnotification_employee_origin_id_b724833c" unique="false">
            <column ascending="true" name="employee_origin_id"/>
         </index>
         <index name="api_historicalnotification_history_user_id_0d8edfae" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalnotification_id_e1112a80" unique="false">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_historicaloffice" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaloffice_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaloffice_history_user_id_a16071ee_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="currency_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="address" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="email" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="phone" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="16" name="tax" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaloffice_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaloffice_company_id_2fc24464" unique="false">
            <column ascending="true" name="company_id"/>
         </index>
         <index name="api_historicaloffice_currency_id_f0eefc1b" unique="false">
            <column ascending="true" name="currency_id"/>
         </index>
         <index name="api_historicaloffice_history_user_id_a16071ee" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaloffice_id_6e96ca67" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicaloffice_name_108ba65c" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicaloffice_name_108ba65c_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_historicalorigindestination" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="type_service" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="distrib_charges" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="days_month" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="monday" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="tuesday" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="wednesday" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="thursday" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="friday" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="saturday" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="sunday" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="monday_start_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="monday_end_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="tuesday_start_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="tuesday_end_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="16" name="wednesday_start_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="17" name="wednesday_end_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="18" name="thursday_start_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="19" name="thursday_end_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="20" name="friday_start_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="21" name="friday_end_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="22" name="saturday_start_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="23" name="saturday_end_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="24" name="sunday_start_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="25" name="sunday_end_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="26" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="27" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalorigindestination_history_id_seq'::regclass)" digits="0" id="28" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="29" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="destination_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalorigin_history_user_id_cbabd0f9_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="origin_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="service_order_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="precall" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="division_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="38" name="friday_end_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="39" name="friday_start_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="40" name="monday_end_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="41" name="monday_start_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="42" name="saturday_end_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="43" name="saturday_start_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="44" name="sunday_end_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="45" name="sunday_start_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="46" name="thursday_end_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="47" name="thursday_start_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="48" name="tuesday_end_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="49" name="tuesday_start_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="50" name="wednesday_end_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="51" name="wednesday_start_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalorigindestination_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalorigindestination_destination_id_49a1444c" unique="false">
            <column ascending="true" name="destination_id"/>
         </index>
         <index name="api_historicalorigindestination_division_id_a326960f" unique="false">
            <column ascending="true" name="division_id"/>
         </index>
         <index name="api_historicalorigindestination_history_user_id_cbabd0f9" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalorigindestination_id_954453fd" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalorigindestination_origin_id_8c961c13" unique="false">
            <column ascending="true" name="origin_id"/>
         </index>
         <index name="api_historicalorigindestination_service_order_id_706eb10a" unique="false">
            <column ascending="true" name="service_order_id"/>
         </index>
      </table>
      <table name="api_historicalpacking" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="verificated" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalpackage_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalpackage_history_user_id_1b43496b_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="voucher_current_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalpackage_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalpackage_code_dfd8d0ba" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalpackage_code_dfd8d0ba_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalpackage_history_user_id_1b43496b" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalpackage_id_a24a6a65" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalpackage_voucher_id_d06d8edc" unique="false">
            <column ascending="true" name="voucher_current_id"/>
         </index>
      </table>
      <table name="api_historicalpasswordsetting" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="password_change_frequency_days" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="password_expiry_notification" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="password_expiry_notification_days" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="failed_login_attempts" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="min_password_length" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="max_password_length" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="previous_passwords_disallowed" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="password_reset_required" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="complex_password_required" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="min_lowercase_chars" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="min_uppercase_chars" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="min_numeric_chars" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="min_special_chars" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalpasswordsetting_history_id_seq'::regclass)" digits="0" id="16" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="17" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalpasswo_history_user_id_6973f361_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalpasswordsetting_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalpasswordsetting_history_user_id_6973f361" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalpasswordsetting_id_75b4e753" unique="false">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_historicalposition" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalposition_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="department_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalposition_history_user_id_6248d49c_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalposition_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalposition_department_id_27b2d64f" unique="false">
            <column ascending="true" name="department_id"/>
         </index>
         <index name="api_historicalposition_history_user_id_6248d49c" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalposition_id_9e78fb8e" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalposition_name_28bdb75f" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicalposition_name_28bdb75f_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_historicalproductandservice" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="name" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalproductandservice_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalproduc_history_user_id_8b4ecdea_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="17" id="11" name="cost" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="has_part" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="is_serializer" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="15" name="price" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="is_service" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalproductandservice_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalproductandservice_code_74249105" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalproductandservice_code_74249105_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalproductandservice_history_user_id_8b4ecdea" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalproductandservice_id_a7203240" unique="false">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_historicalproductpart" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="count" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalproductpart_history_id_seq'::regclass)" digits="0" id="5" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalproduc_history_user_id_537ff866_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="product_and_service_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="product_and_service_part_of_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalproductpart_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalproductpart_history_user_id_537ff866" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalproductpart_id_2d5d9fbc" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalproductpart_product_and_service_id_d238425e" unique="false">
            <column ascending="true" name="product_and_service_id"/>
         </index>
         <index name="api_historicalproductpart_product_and_service_part_o_70cbd845" unique="false">
            <column ascending="true" name="product_and_service_part_of_id"/>
         </index>
      </table>
      <table name="api_historicalquotation" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="content" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalquotation_history_id_seq'::regclass)" digits="0" id="5" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalquotat_history_user_id_6738565f_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="template_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalquotation_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalquotation_company_id_3edac630" unique="false">
            <column ascending="true" name="company_id"/>
         </index>
         <index name="api_historicalquotation_history_user_id_6738565f" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalquotation_id_a0b56693" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalquotation_template_id_fc5394b0" unique="false">
            <column ascending="true" name="template_id"/>
         </index>
      </table>
      <table name="api_historicalquotetemplate" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="content" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalquotetemplate_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalquotet_history_user_id_eabb2292_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalquotetemplate_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalquotetemplate_history_user_id_eabb2292" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalquotetemplate_id_ccb71372" unique="false">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_historicalrate" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="frequency" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="trips_per_month" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="fixed_charge" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="limit_travel" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="limit_appraisal" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="limit_manipulation" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="limit_materials" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="excess_travel" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="excess_appraisal" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="excess_manipulation" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="excess_materials" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalrate_history_id_seq'::regclass)" digits="0" id="16" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="17" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalrate_history_user_id_1dc23fd4_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="product_and_service_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalrate_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalrate_code_788a0065" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalrate_code_788a0065_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalrate_history_user_id_1dc23fd4" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalrate_id_9d3a15b2" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalrate_office_id_a7377bba" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_historicalrate_product_and_service_id_28819562" unique="false">
            <column ascending="true" name="product_and_service_id"/>
         </index>
      </table>
      <table name="api_historicalreportoperation" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="closed_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="hours_close" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalreportoperation_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalreport_history_user_id_9c94d1fa_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="17" id="11" name="atm" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="12" name="cash_opening" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="13" name="atm_transit_amount" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="packings_pending" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="15" name="packings_pending_amount" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="file_url" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="17" name="next_business_day" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="atm_transit_packings" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalreportoperation_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalreportoperation_history_user_id_9c94d1fa" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalreportoperation_id_4e1188e1" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalreportoperation_office_id_5ebb7d29" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
      </table>
      <table name="api_historicalreportrequest" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="report" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalreportrequest_history_id_seq'::regclass)" digits="0" id="5" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalreport_history_user_id_ae06914a_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="employee_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalreportrequest_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalreportrequest_employee_id_36c6f569" unique="false">
            <column ascending="true" name="employee_id"/>
         </index>
         <index name="api_historicalreportrequest_history_user_id_ae06914a" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalreportrequest_id_c716003b" unique="false">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_historicalsegmentcompany" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalsegmentcompany_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalsegmen_history_user_id_376cf73d_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalsegmentcompany_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalsegmentcompany_history_user_id_376cf73d" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalsegmentcompany_id_39eb3e30" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalsegmentcompany_name_7fa28929" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicalsegmentcompany_name_7fa28929_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_historicalserviceorder" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="total_amount" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="status" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="note" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalserviceorder_history_id_seq'::regclass)" digits="0" id="7" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="company_contact_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="contract_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="employee_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalservic_history_user_id_e3ac7322_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="product_and_service_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="18" name="appraisal" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="19" name="custody_cpv" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="20" name="custody_vault" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="21" name="handling" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="22" name="materials" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="23" name="pieces" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="24" name="total_fixed_costs" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="25" name="travels" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="26" name="travels_directs" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="27" name="atm_failure_1_2_levels" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="28" name="atm_supply" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="29" name="custody_personal_atm" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="30" name="excess_appraisal" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="31" name="excess_custody_cpv" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="32" name="excess_custody_personal_atm" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="33" name="excess_custody_vault" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="34" name="excess_handling" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="35" name="excess_materials" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="36" name="excess_pieces" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="37" name="excess_travels" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="38" name="excess_travels_directs" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="39" name="excess_vigilant_extra_hours" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="40" name="fixed_costs_packing" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="41" name="vigilant" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="type_service_order_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="44" name="fuel_charge" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="45" name="total_fuel_charge" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalserviceorder_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalserviceorder_company_contact_id_565d7b93" unique="false">
            <column ascending="true" name="company_contact_id"/>
         </index>
         <index name="api_historicalserviceorder_company_id_ce7699af" unique="false">
            <column ascending="true" name="company_id"/>
         </index>
         <index name="api_historicalserviceorder_contract_id_5ad02033" unique="false">
            <column ascending="true" name="contract_id"/>
         </index>
         <index name="api_historicalserviceorder_employee_id_9d8d9fc3" unique="false">
            <column ascending="true" name="employee_id"/>
         </index>
         <index name="api_historicalserviceorder_history_user_id_e3ac7322" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalserviceorder_id_ab258a3a" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalserviceorder_office_id_14e5ad2a" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_historicalserviceorder_product_and_service_id_67e43891" unique="false">
            <column ascending="true" name="product_and_service_id"/>
         </index>
         <index name="api_historicalserviceorder_type_service_order_id_6395ecb4" unique="false">
            <column ascending="true" name="type_service_order_id"/>
         </index>
      </table>
      <table name="api_historicalstock" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="count" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalstock_history_id_seq'::regclass)" digits="0" id="5" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalstock_history_user_id_eaf52b61_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="product_and_service_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalstock_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalstock_history_user_id_eaf52b61" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalstock_id_53092178" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalstock_office_id_ce48fceb" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_historicalstock_product_and_service_id_82fa1b91" unique="false">
            <column ascending="true" name="product_and_service_id"/>
         </index>
      </table>
      <table name="api_historicalstockserial" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalstockserial_history_id_seq'::regclass)" digits="0" id="5" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalstocks_history_user_id_3e552543_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="product_and_service_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="stock_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="stock_transaction_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="stock_transaction_detail_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="service_order_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalstockserial_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalstockserial_code_436513b5" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalstockserial_code_436513b5_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalstockserial_history_user_id_3e552543" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalstockserial_id_37afe090" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalstockserial_office_id_b8556205" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_historicalstockserial_product_and_service_id_40bfd337" unique="false">
            <column ascending="true" name="product_and_service_id"/>
         </index>
         <index name="api_historicalstockserial_service_order_id_096115c9" unique="false">
            <column ascending="true" name="service_order_id"/>
         </index>
         <index name="api_historicalstockserial_stock_id_d62343a4" unique="false">
            <column ascending="true" name="stock_id"/>
         </index>
         <index name="api_historicalstockserial_stock_transaction_detail_id_9a8a50cc" unique="false">
            <column ascending="true" name="stock_transaction_detail_id"/>
         </index>
         <index name="api_historicalstockserial_stock_transaction_id_4bff6ca8" unique="false">
            <column ascending="true" name="stock_transaction_id"/>
         </index>
      </table>
      <table name="api_historicalstocktransaction" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalstocktransaction_history_id_seq'::regclass)" digits="0" id="4" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="employee_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalstockt_history_user_id_f5632164_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="service_order_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="type_product_transaction_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="code_serial_end" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="code_serial_start" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="prefix" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="purchase_order" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalstocktransaction_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalstocktransac_type_product_transaction_i_18e9e277" unique="false">
            <column ascending="true" name="type_product_transaction_id"/>
         </index>
         <index name="api_historicalstocktransaction_employee_id_f0002a91" unique="false">
            <column ascending="true" name="employee_id"/>
         </index>
         <index name="api_historicalstocktransaction_history_user_id_f5632164" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalstocktransaction_id_597b47b7" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalstocktransaction_office_id_4852130c" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_historicalstocktransaction_service_order_id_64b33919" unique="false">
            <column ascending="true" name="service_order_id"/>
         </index>
      </table>
      <table name="api_historicalstocktransactiondetail" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="count" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalstocktransactiondetail_history_id_seq'::regclass)" digits="0" id="5" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="stock_transaction_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalstockt_history_user_id_d8b0e2f8_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="product_and_service_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="stock_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="type_product_transaction_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalstocktransactiondetail_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalstocktransac_product_and_service_id_6a4b41c8" unique="false">
            <column ascending="true" name="product_and_service_id"/>
         </index>
         <index name="api_historicalstocktransac_StockTransaction_id_44979605" unique="false">
            <column ascending="true" name="stock_transaction_id"/>
         </index>
         <index name="api_historicalstocktransac_type_product_transaction_i_2a036611" unique="false">
            <column ascending="true" name="type_product_transaction_id"/>
         </index>
         <index name="api_historicalstocktransactiondetail_history_user_id_d8b0e2f8" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalstocktransactiondetail_id_f26907ae" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalstocktransactiondetail_stock_id_8d4c3a14" unique="false">
            <column ascending="true" name="stock_id"/>
         </index>
      </table>
      <table name="api_historicaltourdetail" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="date_end" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaltourdetail_history_id_seq'::regclass)" digits="0" id="5" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaltourde_history_user_id_9a33872b_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="origin_destination_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="date_start" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="division_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaltourdetail_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaltourdetail_division_id_55b0a397" unique="false">
            <column ascending="true" name="division_id"/>
         </index>
         <index name="api_historicaltourdetail_history_user_id_9a33872b" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaltourdetail_id_6a84f013" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicaltourdetail_origin_destination_id_0ee39726" unique="false">
            <column ascending="true" name="origin_destination_id"/>
         </index>
      </table>
      <table name="api_historicaltypechest" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaltypechest_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaltypech_history_user_id_23adbdf5_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaltypechest_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaltypechest_history_user_id_23adbdf5" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaltypechest_id_69be6a65" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicaltypechest_name_3594d051" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicaltypechest_name_3594d051_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_historicaltypecompany" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaltypecompany_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaltypeco_history_user_id_746da07b_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaltypecompany_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaltypecompany_history_user_id_746da07b" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaltypecompany_id_ca742aab" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicaltypecompany_name_d076ec57" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicaltypecompany_name_d076ec57_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_historicaltypecontract" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaltypecontract_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaltypeco_history_user_id_01e70f17_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaltypecontract_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaltypecontract_history_user_id_01e70f17" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaltypecontract_id_89745600" unique="false">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_historicaltypecurrency" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaltypecurrency_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaltypecu_history_user_id_029f4999_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaltypecurrency_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaltypecurrency_history_user_id_029f4999" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaltypecurrency_id_695ca8ed" unique="false">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_historicaltypedivision" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaltypedivision_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaltypedi_history_user_id_17dbc0be_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaltypedivision_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaltypedivision_history_user_id_17dbc0be" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaltypedivision_id_c0d9ff29" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicaltypedivision_name_1d984383" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicaltypedivision_name_1d984383_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_historicaltypeguide" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaltypeguide_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaltypegu_history_user_id_ba2d176f_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaltypeguide_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaltypeguide_history_user_id_ba2d176f" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaltypeguide_id_08b59f5b" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicaltypeguide_name_587d16c2" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicaltypeguide_name_587d16c2_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_historicaltypelocation" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaltypelocation_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaltypelo_history_user_id_74d1a1a5_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaltypelocation_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaltypelocation_history_user_id_74d1a1a5" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaltypelocation_id_1eb79205" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicaltypelocation_name_177425a3" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicaltypelocation_name_177425a3_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_historicaltypeproducttransaction" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaltypeproducttransaction_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaltypepr_history_user_id_e90dda0e_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaltypeproducttransaction_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaltypeproducttransaction_history_user_id_e90dda0e" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaltypeproducttransaction_id_6ba34d36" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicaltypeproducttransaction_name_e9bddfe3" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicaltypeproducttransaction_name_e9bddfe3_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_historicaltypeserviceorder" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaltypeserviceorder_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaltypese_history_user_id_41886c46_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaltypeserviceorder_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaltypeserviceorder_history_user_id_41886c46" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaltypeserviceorder_id_6bc49a0e" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicaltypeserviceorder_name_ab2d72b1" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicaltypeserviceorder_name_ab2d72b1_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_historicaluserpassword" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="password" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaluserpassword_history_id_seq'::regclass)" digits="0" id="2" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaluserpa_history_user_id_b28c94bd_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaluserpassword_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaluserpassword_history_user_id_b28c94bd" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaluserpassword_id_19875fc9" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicaluserpassword_user_id_808aad83" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="api_historicaluserprofile" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="avatar" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicaluserprofile_history_id_seq'::regclass)" digits="0" id="4" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicaluserpr_history_user_id_0cb1fd30_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="first_login" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="last_login" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="password_changed_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="failed_login_attempts" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicaluserprofile_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicaluserprofile_history_user_id_0cb1fd30" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicaluserprofile_id_c2b0627a" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicaluserprofile_user_id_762896b7" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="api_historicalvehicle" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="plate" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="is_armored" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="5" name="amount_insured" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalvehicle_history_id_seq'::regclass)" digits="0" id="8" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalvehicle_history_user_id_b3eeebd8_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalvehicle_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalvehicle_code_1a527e54" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalvehicle_code_1a527e54_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalvehicle_history_user_id_b3eeebd8" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalvehicle_id_dd742a75" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalvehicle_office_id_9bdbb218" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
      </table>
      <table name="api_historicalvoucher" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="count_packings" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="4" name="amount" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="am_pm_delivery" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="date_delivery" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="pickup_date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="checkin_date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="verificated" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="verified_oi" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="direct_operation" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="12" name="exchange_rate" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="insured" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="certified_cart_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="certified_cart_code" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="17" name="route_received_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="18" name="checkin_received_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="file_uploaded" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="updated_reason" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="21" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="22" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalvoucher_history_id_seq'::regclass)" digits="0" id="23" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="24" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="cashier_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="checkin_received_by_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="contract_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="crew_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="crew_last_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="currency_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="division_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="division_insured_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="division_last_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalvoucher_history_user_id_dc863b76_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="location_destination_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="location_origin_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="origin_destination_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="route_received_by_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="especial_operation" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalvoucher_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalvoucher_cashier_id_388b8232" unique="false">
            <column ascending="true" name="cashier_id"/>
         </index>
         <index name="api_historicalvoucher_checkin_received_by_id_81d912af" unique="false">
            <column ascending="true" name="checkin_received_by_id"/>
         </index>
         <index name="api_historicalvoucher_code_40dbe284" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalvoucher_code_40dbe284_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_historicalvoucher_company_id_a32e56b1" unique="false">
            <column ascending="true" name="company_id"/>
         </index>
         <index name="api_historicalvoucher_contract_id_c539722c" unique="false">
            <column ascending="true" name="contract_id"/>
         </index>
         <index name="api_historicalvoucher_crew_id_bf28591d" unique="false">
            <column ascending="true" name="crew_id"/>
         </index>
         <index name="api_historicalvoucher_crew_last_id_32a44b30" unique="false">
            <column ascending="true" name="crew_last_id"/>
         </index>
         <index name="api_historicalvoucher_currency_id_fb38fc49" unique="false">
            <column ascending="true" name="currency_id"/>
         </index>
         <index name="api_historicalvoucher_division_id_e5ad3bc8" unique="false">
            <column ascending="true" name="division_id"/>
         </index>
         <index name="api_historicalvoucher_division_insured_id_ff038372" unique="false">
            <column ascending="true" name="division_insured_id"/>
         </index>
         <index name="api_historicalvoucher_division_last_id_b9ce4679" unique="false">
            <column ascending="true" name="division_last_id"/>
         </index>
         <index name="api_historicalvoucher_history_user_id_dc863b76" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalvoucher_id_bc912d6f" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalvoucher_location_destination_id_bd516eb5" unique="false">
            <column ascending="true" name="location_destination_id"/>
         </index>
         <index name="api_historicalvoucher_location_origin_id_cbc1cf45" unique="false">
            <column ascending="true" name="location_origin_id"/>
         </index>
         <index name="api_historicalvoucher_office_id_10b806dc" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_historicalvoucher_origin_destination_id_f771ea3c" unique="false">
            <column ascending="true" name="origin_destination_id"/>
         </index>
         <index name="api_historicalvoucher_route_received_by_id_2f791c25" unique="false">
            <column ascending="true" name="route_received_by_id"/>
         </index>
      </table>
      <table name="api_historicalzone" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="true" defaultValue="nextval('api_historicalzone_history_id_seq'::regclass)" digits="0" id="6" name="history_id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="history_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="history_change_reason" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="history_type" nullable="false" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="history_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_historicalzone_history_user_id_a06b797f_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="history_id" sequenceNumberInPK="1"/>
         <index name="api_historicalzone_pkey" unique="true">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="api_historicalzone_history_user_id_a06b797f" unique="false">
            <column ascending="true" name="history_user_id"/>
         </index>
         <index name="api_historicalzone_id_bea2019b" unique="false">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_historicalzone_name_3e8a0375" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_historicalzone_name_3e8a0375_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_location" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_location_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="location_id" foreignKey="api_chest_location_id_9348aee0_fk_api_location_id" implied="false" onDeleteCascade="false" schema="public" table="api_chest"/>
            <child column="destination_id" foreignKey="api_origindestinatio_destination_id_2c84604a_fk_api_locat" implied="false" onDeleteCascade="false" schema="public" table="api_origindestination"/>
            <child column="origin_id" foreignKey="api_origindestination_origin_id_3e8024a6_fk_api_location_id" implied="false" onDeleteCascade="false" schema="public" table="api_origindestination"/>
            <child column="location_destination_id" foreignKey="api_voucher_location_destination_id_aac8b3ae_fk_api_location_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
            <child column="location_origin_id" foreignKey="api_voucher_location_origin_id_a336bd9d_fk_api_location_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="code_brinks" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="6" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_location_company_id_525b3e76_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_company"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="type_location_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_location_type_location_id_335311dd_fk_api_typelocation_id" implied="false" onDeleteCascade="false" schema="public" table="api_typelocation"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="zone_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_location_zone_id_010943a5_fk_api_zone_id" implied="false" onDeleteCascade="false" schema="public" table="api_zone"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="type_address" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="address" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="contact" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="email" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="point_name" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="reference_point" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="telephone" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_location_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_location_code_12da2884_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_location_code_key" unique="true">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_location_company_id_525b3e76" unique="false">
            <column ascending="true" name="company_id"/>
         </index>
         <index name="api_location_type_location_id_335311dd" unique="false">
            <column ascending="true" name="type_location_id"/>
         </index>
         <index name="api_location_zone_id_010943a5" unique="false">
            <column ascending="true" name="zone_id"/>
         </index>
      </table>
      <table name="api_notification" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_notification_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="icon" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="title" nullable="true" remarks="" size="255" type="varchar" 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="null" digits="0" id="5" name="link" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="is_read" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="type" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="module" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="employee_destination_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_notification_employee_destination_f08a8359_fk_api_emplo" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="employee_origin_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_notification_employee_origin_id_abe0fbb3_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_notification_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_notification_employee_destination_id_f08a8359" unique="false">
            <column ascending="true" name="employee_destination_id"/>
         </index>
         <index name="api_notification_employee_origin_id_abe0fbb3" unique="false">
            <column ascending="true" name="employee_origin_id"/>
         </index>
      </table>
      <table name="api_office" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_office_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="office_belongs_id" foreignKey="api_company_office_belongs_id_703e4dff_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_company"/>
            <child column="office_id" foreignKey="api_crew_office_id_8d45f36a_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_crew"/>
            <child column="office_id" foreignKey="api_currency_office_id_a29f3933_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_currency"/>
            <child column="office_id" foreignKey="api_department_office_id_70a54f6e_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_department"/>
            <child column="office_id" foreignKey="api_division_office_id_ebb9b6b1_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_division"/>
            <child column="office_id" foreignKey="api_guide_office_id_14ad6006_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_guide"/>
            <child column="office_id" foreignKey="api_headinvoice_office_id_54d49f40_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_headinvoice"/>
            <child column="office_id" foreignKey="api_rate_office_id_95db8cf1_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_rate"/>
            <child column="office_id" foreignKey="api_reportoperation_office_id_75245fa7_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_reportoperation"/>
            <child column="office_id" foreignKey="api_serviceorder_office_id_461be3ab_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_serviceorder"/>
            <child column="office_id" foreignKey="api_stock_office_id_8841a501_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_stock"/>
            <child column="office_id" foreignKey="api_stockserial_office_id_045b3804_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_stockserial"/>
            <child column="office_id" foreignKey="api_stocktransaction_office_id_6cf6994c_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_stocktransaction"/>
            <child column="office_id" foreignKey="api_vehicle_office_id_96e821d6_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_vehicle"/>
            <child column="office_id" foreignKey="api_voucher_office_id_ff07fc94_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_office_company_id_a316f95c_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_company"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="currency_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_office_currency_id_d681c056_fk_api_currency_id" implied="false" onDeleteCascade="false" schema="public" table="api_currency"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="address" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="email" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="phone" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="11" name="tax" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_office_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_office_company_id_a316f95c" unique="false">
            <column ascending="true" name="company_id"/>
         </index>
         <index name="api_office_currency_id_d681c056" unique="false">
            <column ascending="true" name="currency_id"/>
         </index>
         <index name="api_office_name_77db0520_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_office_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_origindestination" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_origindestination_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="origin_destination_id" foreignKey="api_tourdetail_origin_destination_i_7658aeee_fk_api_origi" implied="false" onDeleteCascade="false" schema="public" table="api_tourdetail"/>
            <child column="origin_destination_id" foreignKey="api_voucher_origin_destination_i_8557603f_fk_api_origi" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="type_service" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="distrib_charges" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="days_month" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="monday" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="tuesday" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="wednesday" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="thursday" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="friday" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="saturday" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="sunday" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="monday_start_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="monday_end_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="tuesday_start_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="tuesday_end_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="16" name="wednesday_start_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="17" name="wednesday_end_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="18" name="thursday_start_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="19" name="thursday_end_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="20" name="friday_start_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="21" name="friday_end_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="22" name="saturday_start_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="23" name="saturday_end_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="24" name="sunday_start_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="25" name="sunday_end_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="26" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="27" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="destination_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_origindestinatio_destination_id_2c84604a_fk_api_locat" implied="false" onDeleteCascade="false" schema="public" table="api_location"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="origin_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_origindestination_origin_id_3e8024a6_fk_api_location_id" implied="false" onDeleteCascade="false" schema="public" table="api_location"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="service_order_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_origindestinatio_service_order_id_78ccc3a9_fk_api_servi" implied="false" onDeleteCascade="false" schema="public" table="api_serviceorder"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="precall" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="division_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_origindestination_division_id_e1b11179_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_division"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="33" name="friday_end_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="34" name="friday_start_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="35" name="monday_end_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="36" name="monday_start_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="37" name="saturday_end_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="38" name="saturday_start_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="39" name="sunday_end_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="40" name="sunday_start_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="41" name="thursday_end_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="42" name="thursday_start_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="43" name="tuesday_end_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="44" name="tuesday_start_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="45" name="wednesday_end_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="46" name="wednesday_start_time_tour" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_origindestination_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_origindestination_destination_id_2c84604a" unique="false">
            <column ascending="true" name="destination_id"/>
         </index>
         <index name="api_origindestination_division_id_e1b11179" unique="false">
            <column ascending="true" name="division_id"/>
         </index>
         <index name="api_origindestination_origin_id_3e8024a6" unique="false">
            <column ascending="true" name="origin_id"/>
         </index>
         <index name="api_origindestination_service_order_id_78ccc3a9" unique="false">
            <column ascending="true" name="service_order_id"/>
         </index>
      </table>
      <table name="api_packing" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_packing_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="packing_id" foreignKey="api_depositform_packing_id_c99cc1b1_fk_api_packing_id" implied="false" onDeleteCascade="false" schema="public" table="api_depositform"/>
            <child column="packing_id" foreignKey="api_voucher_packings_packing_id_56e86d64_fk_api_packing_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher_packings"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="verificated" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="voucher_current_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_packing_voucher_current_id_7d3e6b49_fk_api_voucher_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_packing_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_packing_code_afc79c0e_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_packing_code_key" unique="true">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_packing_voucher_current_id_7d3e6b49" unique="false">
            <column ascending="true" name="voucher_current_id"/>
         </index>
      </table>
      <table name="api_passwordsetting" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_passwordsetting_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="password_change_frequency_days" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="password_expiry_notification" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="password_expiry_notification_days" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="failed_login_attempts" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="min_password_length" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="max_password_length" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="previous_passwords_disallowed" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="password_reset_required" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="complex_password_required" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="min_lowercase_chars" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="min_uppercase_chars" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="min_numeric_chars" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="min_special_chars" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_passwordsetting_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_position" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_position_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="position_id" foreignKey="api_employee_position_id_52ce9e36_fk_api_position_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="department_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_position_department_id_79dfca71_fk_api_department_id" implied="false" onDeleteCascade="false" schema="public" table="api_department"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_position_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_position_department_id_79dfca71" unique="false">
            <column ascending="true" name="department_id"/>
         </index>
         <index name="api_position_name_95182e2a_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_position_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_productandservice" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_productandservice_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="product_and_service_id" foreignKey="api_headinvoice_product_and_service__03dba5ce_fk_api_produ" implied="false" onDeleteCascade="false" schema="public" table="api_headinvoice"/>
            <child column="product_and_service_id" foreignKey="api_productpart_product_and_service__fed05d77_fk_api_produ" implied="false" onDeleteCascade="false" schema="public" table="api_productpart"/>
            <child column="product_and_service_part_of_id" foreignKey="api_productpart_product_and_service__a6961437_fk_api_produ" implied="false" onDeleteCascade="false" schema="public" table="api_productpart"/>
            <child column="product_and_service_id" foreignKey="api_rate_product_and_service__3e55a105_fk_api_produ" implied="false" onDeleteCascade="false" schema="public" table="api_rate"/>
            <child column="product_and_service_id" foreignKey="api_serviceorder_product_and_service__29363282_fk_api_produ" implied="false" onDeleteCascade="false" schema="public" table="api_serviceorder"/>
            <child column="product_and_service_id" foreignKey="api_stock_product_and_service__31d6d4fa_fk_api_produ" implied="false" onDeleteCascade="false" schema="public" table="api_stock"/>
            <child column="product_and_service_id" foreignKey="api_stockserial_product_and_service__6b5882b1_fk_api_produ" implied="false" onDeleteCascade="false" schema="public" table="api_stockserial"/>
            <child column="product_and_service_id" foreignKey="api_stocktransaction_product_and_service__c3251c9f_fk_api_produ" implied="false" onDeleteCascade="false" schema="public" table="api_stocktransactiondetail"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="name" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="6" name="cost" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="has_part" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="is_serializer" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="10" name="price" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="is_service" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_productandservice_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_productandservice_code_844b425c_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_productandservice_code_key" unique="true">
            <column ascending="true" name="code"/>
         </index>
      </table>
      <table name="api_productpart" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_productpart_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="count" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="product_and_service_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_productpart_product_and_service__fed05d77_fk_api_produ" implied="false" onDeleteCascade="false" schema="public" table="api_productandservice"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="product_and_service_part_of_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_productpart_product_and_service__a6961437_fk_api_produ" implied="false" onDeleteCascade="false" schema="public" table="api_productandservice"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_productpart_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_productpart_product_and_service_id_fed05d77" unique="false">
            <column ascending="true" name="product_and_service_id"/>
         </index>
         <index name="api_productpart_product_and_service_part_of_id_a6961437" unique="false">
            <column ascending="true" name="product_and_service_part_of_id"/>
         </index>
      </table>
      <table name="api_quotation" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_quotation_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="content" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_quotation_company_id_a137cb30_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_company"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="template_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_quotation_template_id_55e424ce_fk_api_quotetemplate_id" implied="false" onDeleteCascade="false" schema="public" table="api_quotetemplate"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_quotation_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_quotation_company_id_a137cb30" unique="false">
            <column ascending="true" name="company_id"/>
         </index>
         <index name="api_quotation_template_id_55e424ce" unique="false">
            <column ascending="true" name="template_id"/>
         </index>
      </table>
      <table name="api_quotetemplate" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_quotetemplate_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="template_id" foreignKey="api_quotation_template_id_55e424ce_fk_api_quotetemplate_id" implied="false" onDeleteCascade="false" schema="public" table="api_quotation"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="content" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_quotetemplate_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_rate" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_rate_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="frequency" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="trips_per_month" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="fixed_charge" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="limit_travel" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="limit_appraisal" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="limit_manipulation" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="limit_materials" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="excess_travel" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="excess_appraisal" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="excess_manipulation" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="excess_materials" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_rate_office_id_95db8cf1_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="product_and_service_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_rate_product_and_service__3e55a105_fk_api_produ" implied="false" onDeleteCascade="false" schema="public" table="api_productandservice"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_rate_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_rate_code_e4698ea1_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_rate_code_key" unique="true">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_rate_office_id_95db8cf1" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_rate_product_and_service_id_3e55a105" unique="false">
            <column ascending="true" name="product_and_service_id"/>
         </index>
      </table>
      <table name="api_reportoperation" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_reportoperation_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="reportoperation_id" foreignKey="api_reportoperation__reportoperation_id_06a7202c_fk_api_repor" implied="false" onDeleteCascade="false" schema="public" table="api_reportoperation_employees_close"/>
            <child column="reportoperation_id" foreignKey="api_reportoperation__reportoperation_id_b3df4ff0_fk_api_repor" implied="false" onDeleteCascade="false" schema="public" table="api_reportoperation_employees_open"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="closed_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="hours_close" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="6" name="atm" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="7" name="cash_opening" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="8" name="atm_transit_amount" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="packings_pending" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="10" name="packings_pending_amount" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="file_url" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="next_business_day" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_reportoperation_office_id_75245fa7_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="atm_transit_packings" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_reportoperation_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_reportoperation_office_id_75245fa7" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
      </table>
      <table name="api_reportoperation_employees_close" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_reportoperation_employees_close_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="reportoperation_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_reportoperation__reportoperation_id_06a7202c_fk_api_repor" implied="false" onDeleteCascade="false" schema="public" table="api_reportoperation"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="employee_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_reportoperation__employee_id_845c81a0_fk_api_emplo" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_reportoperation_employees_close_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_reportoperation_empl_reportoperation_id_emplo_be8fc2fc_uniq" unique="true">
            <column ascending="true" name="reportoperation_id"/>
            <column ascending="true" name="employee_id"/>
         </index>
         <index name="api_reportoperation_employees_close_employee_id_845c81a0" unique="false">
            <column ascending="true" name="employee_id"/>
         </index>
         <index name="api_reportoperation_employees_close_reportoperation_id_06a7202c" unique="false">
            <column ascending="true" name="reportoperation_id"/>
         </index>
      </table>
      <table name="api_reportoperation_employees_open" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_reportoperation_employees_open_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="reportoperation_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_reportoperation__reportoperation_id_b3df4ff0_fk_api_repor" implied="false" onDeleteCascade="false" schema="public" table="api_reportoperation"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="employee_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_reportoperation__employee_id_dba1068c_fk_api_emplo" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_reportoperation_employees_open_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_reportoperation_empl_reportoperation_id_emplo_614da23a_uniq" unique="true">
            <column ascending="true" name="reportoperation_id"/>
            <column ascending="true" name="employee_id"/>
         </index>
         <index name="api_reportoperation_employees_open_employee_id_dba1068c" unique="false">
            <column ascending="true" name="employee_id"/>
         </index>
         <index name="api_reportoperation_employees_open_reportoperation_id_b3df4ff0" unique="false">
            <column ascending="true" name="reportoperation_id"/>
         </index>
      </table>
      <table name="api_reportrequest" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_reportrequest_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="report" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="employee_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_reportrequest_employee_id_7b4393c4_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_reportrequest_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_reportrequest_employee_id_7b4393c4" unique="false">
            <column ascending="true" name="employee_id"/>
         </index>
      </table>
      <table name="api_segmentcompany" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_segmentcompany_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="segment_company_id" foreignKey="api_company_segment_company_id_ec5b004f_fk_api_segme" implied="false" onDeleteCascade="false" schema="public" table="api_company"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_segmentcompany_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_segmentcompany_name_3d36c30a_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_segmentcompany_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_serviceorder" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_serviceorder_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="service_order_id" foreignKey="api_chest_service_order_id_0291f7e1_fk_api_serviceorder_id" implied="false" onDeleteCascade="false" schema="public" table="api_chest"/>
            <child column="serviceorder_id" foreignKey="api_headinvoice_serviceorder_id_563ec370_fk_api_serviceorder_id" implied="false" onDeleteCascade="false" schema="public" table="api_headinvoice"/>
            <child column="service_order_id" foreignKey="api_origindestinatio_service_order_id_78ccc3a9_fk_api_servi" implied="false" onDeleteCascade="false" schema="public" table="api_origindestination"/>
            <child column="service_order_id" foreignKey="api_stockserial_service_order_id_1577cb20_fk_api_servi" implied="false" onDeleteCascade="false" schema="public" table="api_stockserial"/>
            <child column="service_order_id" foreignKey="api_stocktransaction_service_order_id_01c9ccc0_fk_api_servi" implied="false" onDeleteCascade="false" schema="public" table="api_stocktransaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="total_amount" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="status" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="note" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_serviceorder_company_id_3a05c0da_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_company"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="company_contact_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_serviceorder_company_contact_id_1d8fb9c2_fk_api_compa" implied="false" onDeleteCascade="false" schema="public" table="api_companycontact"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="contract_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_serviceorder_contract_id_401abf6a_fk_api_contract_id" implied="false" onDeleteCascade="false" schema="public" table="api_contract"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="employee_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_serviceorder_employee_id_184dff2c_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_serviceorder_office_id_461be3ab_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="product_and_service_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_serviceorder_product_and_service__29363282_fk_api_produ" implied="false" onDeleteCascade="false" schema="public" table="api_productandservice"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="17" id="13" name="appraisal" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="14" name="custody_cpv" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="15" name="custody_vault" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="16" name="handling" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="17" name="materials" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="18" name="pieces" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="19" name="total_fixed_costs" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="20" name="travels" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="21" name="travels_directs" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="22" name="atm_failure_1_2_levels" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="23" name="atm_supply" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="24" name="custody_personal_atm" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="25" name="excess_appraisal" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="26" name="excess_custody_cpv" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="27" name="excess_custody_personal_atm" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="28" name="excess_custody_vault" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="29" name="excess_handling" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="30" name="excess_materials" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="31" name="excess_pieces" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="32" name="excess_travels" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="33" name="excess_travels_directs" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="34" name="excess_vigilant_extra_hours" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="35" name="fixed_costs_packing" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="36" name="vigilant" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="type_service_order_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_serviceorder_type_service_order_i_55de35b6_fk_api_types" implied="false" onDeleteCascade="false" schema="public" table="api_typeserviceorder"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="17" id="39" name="fuel_charge" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="40" name="total_fuel_charge" nullable="false" remarks="" size="17" type="float8" typeCode="8"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_serviceorder_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_serviceorder_company_contact_id_1d8fb9c2" unique="false">
            <column ascending="true" name="company_contact_id"/>
         </index>
         <index name="api_serviceorder_company_id_3a05c0da" unique="false">
            <column ascending="true" name="company_id"/>
         </index>
         <index name="api_serviceorder_contract_id_401abf6a" unique="false">
            <column ascending="true" name="contract_id"/>
         </index>
         <index name="api_serviceorder_employee_id_184dff2c" unique="false">
            <column ascending="true" name="employee_id"/>
         </index>
         <index name="api_serviceorder_office_id_461be3ab" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_serviceorder_product_and_service_id_29363282" unique="false">
            <column ascending="true" name="product_and_service_id"/>
         </index>
         <index name="api_serviceorder_type_service_order_id_55de35b6" unique="false">
            <column ascending="true" name="type_service_order_id"/>
         </index>
      </table>
      <table name="api_stock" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_stock_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="stock_id" foreignKey="api_stockserial_stock_id_2c284366_fk_api_stock_id" implied="false" onDeleteCascade="false" schema="public" table="api_stockserial"/>
            <child column="stock_id" foreignKey="api_stocktransactiondetail_stock_id_61ceb3d4_fk_api_stock_id" implied="false" onDeleteCascade="false" schema="public" table="api_stocktransactiondetail"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="count" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_stock_office_id_8841a501_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="product_and_service_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_stock_product_and_service__31d6d4fa_fk_api_produ" implied="false" onDeleteCascade="false" schema="public" table="api_productandservice"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_stock_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_stock_office_id_8841a501" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_stock_product_and_service_id_31d6d4fa" unique="false">
            <column ascending="true" name="product_and_service_id"/>
         </index>
      </table>
      <table name="api_stockserial" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_stockserial_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="product_and_service_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_stockserial_product_and_service__6b5882b1_fk_api_produ" implied="false" onDeleteCascade="false" schema="public" table="api_productandservice"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="stock_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_stockserial_stock_id_2c284366_fk_api_stock_id" implied="false" onDeleteCascade="false" schema="public" table="api_stock"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="stock_transaction_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_stockserial_stock_transaction_id_49fbc014_fk_api_stock" implied="false" onDeleteCascade="false" schema="public" table="api_stocktransaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="stock_transaction_detail_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_stockserial_stock_transaction_de_fe863fc0_fk_api_stock" implied="false" onDeleteCascade="false" schema="public" table="api_stocktransactiondetail"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_stockserial_office_id_045b3804_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="service_order_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_stockserial_service_order_id_1577cb20_fk_api_servi" implied="false" onDeleteCascade="false" schema="public" table="api_serviceorder"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_stockserial_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_stockserial_code_dbca264f_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_stockserial_code_key" unique="true">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_stockserial_office_id_045b3804" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_stockserial_product_and_service_id_6b5882b1" unique="false">
            <column ascending="true" name="product_and_service_id"/>
         </index>
         <index name="api_stockserial_service_order_id_1577cb20" unique="false">
            <column ascending="true" name="service_order_id"/>
         </index>
         <index name="api_stockserial_stock_id_2c284366" unique="false">
            <column ascending="true" name="stock_id"/>
         </index>
         <index name="api_stockserial_stock_transaction_detail_id_fe863fc0" unique="false">
            <column ascending="true" name="stock_transaction_detail_id"/>
         </index>
         <index name="api_stockserial_stock_transaction_id_49fbc014" unique="false">
            <column ascending="true" name="stock_transaction_id"/>
         </index>
      </table>
      <table name="api_stocktransaction" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_stocktransaction_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="stock_transaction_id" foreignKey="api_stockserial_stock_transaction_id_49fbc014_fk_api_stock" implied="false" onDeleteCascade="false" schema="public" table="api_stockserial"/>
            <child column="stock_transaction_id" foreignKey="api_stocktransaction_stock_transaction_id_80de508d_fk_api_stock" implied="false" onDeleteCascade="false" schema="public" table="api_stocktransactiondetail"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="employee_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_stocktransaction_employee_id_81af381f_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_stocktransaction_office_id_6cf6994c_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="service_order_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_stocktransaction_service_order_id_01c9ccc0_fk_api_servi" implied="false" onDeleteCascade="false" schema="public" table="api_serviceorder"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="type_product_transaction_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_stocktransaction_type_product_transac_be19d23d_fk_api_typep" implied="false" onDeleteCascade="false" schema="public" table="api_typeproducttransaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="code_serial_end" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="code_serial_start" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="prefix" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="purchase_order" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_stocktransaction_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_stocktransaction_employee_id_81af381f" unique="false">
            <column ascending="true" name="employee_id"/>
         </index>
         <index name="api_stocktransaction_office_id_6cf6994c" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_stocktransaction_service_order_id_01c9ccc0" unique="false">
            <column ascending="true" name="service_order_id"/>
         </index>
         <index name="api_stocktransaction_type_product_transaction_id_be19d23d" unique="false">
            <column ascending="true" name="type_product_transaction_id"/>
         </index>
      </table>
      <table name="api_stocktransactiondetail" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_stocktransactiondetail_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="stock_transaction_detail_id" foreignKey="api_stockserial_stock_transaction_de_fe863fc0_fk_api_stock" implied="false" onDeleteCascade="false" schema="public" table="api_stockserial"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="count" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="stock_transaction_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_stocktransaction_stock_transaction_id_80de508d_fk_api_stock" implied="false" onDeleteCascade="false" schema="public" table="api_stocktransaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="product_and_service_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_stocktransaction_product_and_service__c3251c9f_fk_api_produ" implied="false" onDeleteCascade="false" schema="public" table="api_productandservice"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="stock_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_stocktransactiondetail_stock_id_61ceb3d4_fk_api_stock_id" implied="false" onDeleteCascade="false" schema="public" table="api_stock"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="type_product_transaction_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_stocktransaction_type_product_transac_37ff804d_fk_api_typep" implied="false" onDeleteCascade="false" schema="public" table="api_typeproducttransaction"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_stocktransactiondetail_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_stocktransactiondetail_product_and_service_id_c3251c9f" unique="false">
            <column ascending="true" name="product_and_service_id"/>
         </index>
         <index name="api_stocktransactiondetail_stock_id_61ceb3d4" unique="false">
            <column ascending="true" name="stock_id"/>
         </index>
         <index name="api_stocktransactiondetail_StockTransaction_id_63e54baa" unique="false">
            <column ascending="true" name="stock_transaction_id"/>
         </index>
         <index name="api_stocktransactiondetail_type_product_transaction_id_37ff804d" unique="false">
            <column ascending="true" name="type_product_transaction_id"/>
         </index>
      </table>
      <table name="api_tourdetail" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_tourdetail_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="date_end" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="origin_destination_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_tourdetail_origin_destination_i_7658aeee_fk_api_origi" implied="false" onDeleteCascade="false" schema="public" table="api_origindestination"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="date_start" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="division_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_tourdetail_division_id_28e733c7_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_division"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_tourdetail_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_tourdetail_division_id_28e733c7" unique="false">
            <column ascending="true" name="division_id"/>
         </index>
         <index name="api_tourdetail_origin_destination_id_7658aeee" unique="false">
            <column ascending="true" name="origin_destination_id"/>
         </index>
      </table>
      <table name="api_typechest" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_typechest_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="type_chest_id" foreignKey="api_chest_type_chest_id_6bb3c494_fk_api_typechest_id" implied="false" onDeleteCascade="false" schema="public" table="api_chest"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_typechest_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_typechest_name_f4aa18c4_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_typechest_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_typecompany" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_typecompany_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="type_company_id" foreignKey="api_company_type_company_id_49ad1971_fk_api_typecompany_id" implied="false" onDeleteCascade="false" schema="public" table="api_company"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_typecompany_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_typecompany_name_d8df5897_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_typecompany_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_typecontract" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_typecontract_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="type_contract_id" foreignKey="api_contract_type_contract_id_7fbf244a_fk_api_typecontract_id" implied="false" onDeleteCascade="false" schema="public" table="api_contract"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_typecontract_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_typecurrency" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_typecurrency_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="type_currency_id" foreignKey="api_currencydetail_type_currency_id_efbd8651_fk_api_typec" implied="false" onDeleteCascade="false" schema="public" table="api_currencydetail"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_typecurrency_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="api_typedivision" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_typedivision_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="type_division_id" foreignKey="api_division_type_division_id_2ce76f96_fk_api_typedivision_id" implied="false" onDeleteCascade="false" schema="public" table="api_division"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_typedivision_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_typedivision_name_554be97b_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_typedivision_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_typeguide" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_typeguide_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="type_guide_id" foreignKey="api_guide_type_guide_id_0f64d40d_fk_api_typeguide_id" implied="false" onDeleteCascade="false" schema="public" table="api_guide"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_typeguide_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_typeguide_name_d5748d8c_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_typeguide_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_typelocation" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_typelocation_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="type_location_id" foreignKey="api_location_type_location_id_335311dd_fk_api_typelocation_id" implied="false" onDeleteCascade="false" schema="public" table="api_location"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_typelocation_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_typelocation_name_d1a1acdc_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_typelocation_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_typeproducttransaction" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_typeproducttransaction_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="type_product_transaction_id" foreignKey="api_stocktransaction_type_product_transac_be19d23d_fk_api_typep" implied="false" onDeleteCascade="false" schema="public" table="api_stocktransaction"/>
            <child column="type_product_transaction_id" foreignKey="api_stocktransaction_type_product_transac_37ff804d_fk_api_typep" implied="false" onDeleteCascade="false" schema="public" table="api_stocktransactiondetail"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_typeproducttransaction_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_typeproducttransaction_name_3413f8e2_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_typeproducttransaction_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_typeserviceorder" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_typeserviceorder_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="type_service_order_id" foreignKey="api_headinvoice_type_service_order_i_05a086a1_fk_api_types" implied="false" onDeleteCascade="false" schema="public" table="api_headinvoice"/>
            <child column="type_service_order_id" foreignKey="api_serviceorder_type_service_order_i_55de35b6_fk_api_types" implied="false" onDeleteCascade="false" schema="public" table="api_serviceorder"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_typeserviceorder_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_typeserviceorder_name_dab3d452_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_typeserviceorder_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="api_userpassword" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_userpassword_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="password" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="user_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_userpassword_user_id_6c133a65_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_userpassword_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_userpassword_user_id_6c133a65" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="api_userprofile" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_userprofile_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="avatar" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="user_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_userprofile_user_id_5a1c1c92_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="first_login" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="last_login" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="password_changed_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="failed_login_attempts" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_userprofile_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_userprofile_user_id_key" unique="true">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="api_vehicle" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_vehicle_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="vehicle_id" foreignKey="api_crew_vehicle_id_cbae26f9_fk_api_vehicle_id" implied="false" onDeleteCascade="false" schema="public" table="api_crew"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="plate" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="is_armored" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="5" name="amount_insured" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_vehicle_office_id_96e821d6_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_office"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_vehicle_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_vehicle_code_36b8782d_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_vehicle_code_key" unique="true">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_vehicle_office_id_96e821d6" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
      </table>
      <table name="api_voucher" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_voucher_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="voucher_id" foreignKey="api_certifiedcart_vo_voucher_id_0eddd71d_fk_api_vouch" implied="false" onDeleteCascade="false" schema="public" table="api_certifiedcart_vouchers"/>
            <child column="voucher_id" foreignKey="api_guide_vouchers_voucher_id_24d79f7a_fk_api_voucher_id" implied="false" onDeleteCascade="false" schema="public" table="api_guide_vouchers"/>
            <child column="voucher_current_id" foreignKey="api_packing_voucher_current_id_7d3e6b49_fk_api_voucher_id" implied="false" onDeleteCascade="false" schema="public" table="api_packing"/>
            <child column="voucher_id" foreignKey="api_voucher_packings_voucher_id_127eb7f9_fk_api_voucher_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher_packings"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="count_packings" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="4" name="amount" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="verificated" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="company_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_voucher_company_id_fb2f06b9_fk_api_company_id" implied="false" onDeleteCascade="false" schema="public" table="api_company"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="division_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_voucher_division_id_22412321_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_division"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="location_destination_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_voucher_location_destination_id_aac8b3ae_fk_api_location_id" implied="false" onDeleteCascade="false" schema="public" table="api_location"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="location_origin_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_voucher_location_origin_id_a336bd9d_fk_api_location_id" implied="false" onDeleteCascade="false" schema="public" table="api_location"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="currency_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_voucher_currency_id_3a35b232_fk_api_currency_id" implied="false" onDeleteCascade="false" schema="public" table="api_currency"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="cashier_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_voucher_cashier_id_2d4cf1c0_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="am_pm_delivery" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="date_delivery" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="division_last_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_voucher_division_last_id_b3a1ef99_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_division"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="crew_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_voucher_crew_id_7965c564_fk_api_crew_id" implied="false" onDeleteCascade="false" schema="public" table="api_crew"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="crew_last_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_voucher_crew_last_id_917e6e0d_fk_api_crew_id" implied="false" onDeleteCascade="false" schema="public" table="api_crew"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="direct_operation" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="verified_oi" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="contract_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_voucher_contract_id_ee5118f8_fk_api_contract_id" implied="false" onDeleteCascade="false" schema="public" table="api_contract"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="origin_destination_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_voucher_origin_destination_i_8557603f_fk_api_origi" implied="false" onDeleteCascade="false" schema="public" table="api_origindestination"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="24" name="checkin_date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="25" name="pickup_date" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="division_insured_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_voucher_division_insured_id_b7770493_fk_api_division_id" implied="false" onDeleteCascade="false" schema="public" table="api_division"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="insured" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="28" name="exchange_rate" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="certified_cart_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="30" name="checkin_received_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="checkin_received_by_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_voucher_checkin_received_by_id_ffb1db37_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="32" name="route_received_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="route_received_by_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_voucher_route_received_by_id_2d004fee_fk_api_employee_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="certified_cart_code" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_voucher_office_id_ff07fc94_fk_api_office_id" implied="false" onDeleteCascade="false" schema="public" table="api_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="file_uploaded" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="updated_reason" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="especial_operation" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_voucher_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_voucher_cashier_id_2d4cf1c0" unique="false">
            <column ascending="true" name="cashier_id"/>
         </index>
         <index name="api_voucher_checkin_received_by_id_ffb1db37" unique="false">
            <column ascending="true" name="checkin_received_by_id"/>
         </index>
         <index name="api_voucher_code_cd873620_like" unique="false">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_voucher_code_key" unique="true">
            <column ascending="true" name="code"/>
         </index>
         <index name="api_voucher_company_id_fb2f06b9" unique="false">
            <column ascending="true" name="company_id"/>
         </index>
         <index name="api_voucher_contract_id_ee5118f8" unique="false">
            <column ascending="true" name="contract_id"/>
         </index>
         <index name="api_voucher_crew_id_7965c564" unique="false">
            <column ascending="true" name="crew_id"/>
         </index>
         <index name="api_voucher_crew_last_id_917e6e0d" unique="false">
            <column ascending="true" name="crew_last_id"/>
         </index>
         <index name="api_voucher_currency_id_3a35b232" unique="false">
            <column ascending="true" name="currency_id"/>
         </index>
         <index name="api_voucher_division_id_22412321" unique="false">
            <column ascending="true" name="division_id"/>
         </index>
         <index name="api_voucher_division_insured_id_b7770493" unique="false">
            <column ascending="true" name="division_insured_id"/>
         </index>
         <index name="api_voucher_division_last_id_b3a1ef99" unique="false">
            <column ascending="true" name="division_last_id"/>
         </index>
         <index name="api_voucher_location_destination_id_aac8b3ae" unique="false">
            <column ascending="true" name="location_destination_id"/>
         </index>
         <index name="api_voucher_location_origin_id_a336bd9d" unique="false">
            <column ascending="true" name="location_origin_id"/>
         </index>
         <index name="api_voucher_office_id_ff07fc94" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="api_voucher_origin_destination_id_8557603f" unique="false">
            <column ascending="true" name="origin_destination_id"/>
         </index>
         <index name="api_voucher_route_received_by_id_2d004fee" unique="false">
            <column ascending="true" name="route_received_by_id"/>
         </index>
      </table>
      <table name="api_voucher_packings" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_voucher_packings_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="voucher_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_voucher_packings_voucher_id_127eb7f9_fk_api_voucher_id" implied="false" onDeleteCascade="false" schema="public" table="api_voucher"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="packing_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="api_voucher_packings_packing_id_56e86d64_fk_api_packing_id" implied="false" onDeleteCascade="false" schema="public" table="api_packing"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_voucher_packings_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_voucher_packings_packing_id_56e86d64" unique="false">
            <column ascending="true" name="packing_id"/>
         </index>
         <index name="api_voucher_packings_voucher_id_127eb7f9" unique="false">
            <column ascending="true" name="voucher_id"/>
         </index>
         <index name="api_voucher_packings_voucher_id_packing_id_c5146c8c_uniq" unique="true">
            <column ascending="true" name="voucher_id"/>
            <column ascending="true" name="packing_id"/>
         </index>
      </table>
      <table name="api_zone" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('api_zone_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="zone_id" foreignKey="api_location_zone_id_010943a5_fk_api_zone_id" implied="false" onDeleteCascade="false" schema="public" table="api_location"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="deleted" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" 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="6" id="4" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_zone_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_zone_name_1c1c5474_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="api_zone_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="auth_group" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('auth_group_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="group_id" foreignKey="auth_group_permissions_group_id_b120cbf9_fk_auth_group_id" implied="false" onDeleteCascade="false" schema="public" table="auth_group_permissions"/>
            <child column="group_id" foreignKey="auth_user_groups_group_id_97559544_fk_auth_group_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user_groups"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="150" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="auth_group_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="auth_group_name_a6ea08ec_like" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="auth_group_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="auth_group_permissions" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('auth_group_permissions_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="group_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="auth_group_permissions_group_id_b120cbf9_fk_auth_group_id" implied="false" onDeleteCascade="false" schema="public" table="auth_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="permission_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="auth_group_permissio_permission_id_84c5c92e_fk_auth_perm" implied="false" onDeleteCascade="false" schema="public" table="auth_permission"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="auth_group_permissions_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="auth_group_permissions_group_id_b120cbf9" unique="false">
            <column ascending="true" name="group_id"/>
         </index>
         <index name="auth_group_permissions_group_id_permission_id_0cd325b0_uniq" unique="true">
            <column ascending="true" name="group_id"/>
            <column ascending="true" name="permission_id"/>
         </index>
         <index name="auth_group_permissions_permission_id_84c5c92e" unique="false">
            <column ascending="true" name="permission_id"/>
         </index>
      </table>
      <table name="auth_permission" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('auth_permission_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="permission_id" foreignKey="auth_group_permissio_permission_id_84c5c92e_fk_auth_perm" implied="false" onDeleteCascade="false" schema="public" table="auth_group_permissions"/>
            <child column="permission_id" foreignKey="auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm" implied="false" onDeleteCascade="false" schema="public" table="auth_user_user_permissions"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="content_type_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="auth_permission_content_type_id_2f476e4b_fk_django_co" implied="false" onDeleteCascade="false" schema="public" table="django_content_type"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="codename" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="auth_permission_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="auth_permission_content_type_id_2f476e4b" unique="false">
            <column ascending="true" name="content_type_id"/>
         </index>
         <index name="auth_permission_content_type_id_codename_01ab375a_uniq" unique="true">
            <column ascending="true" name="content_type_id"/>
            <column ascending="true" name="codename"/>
         </index>
      </table>
      <table name="auth_user" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('auth_user_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="user_id" foreignKey="api_employee_user_id_ed8ba4e1_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_employee"/>
            <child column="history_user_id" foreignKey="api_historicalbankac_history_user_id_e2c7f88d_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalbankaccount"/>
            <child column="history_user_id" foreignKey="api_historicalcertif_history_user_id_7fd71abe_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalcertifiedcart"/>
            <child column="history_user_id" foreignKey="api_historicalchest_history_user_id_2c9afb93_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicalchest"/>
            <child column="history_user_id" foreignKey="api_historicalclause_history_user_id_17b0ab9b_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicalclause"/>
            <child column="history_user_id" foreignKey="api_historicalclient_history_user_id_2976c0d4_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalclientbinnacle"/>
            <child column="history_user_id" foreignKey="api_historicalcompany_history_user_id_bcbe41b3_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicalcompany"/>
            <child column="history_user_id" foreignKey="api_historicalcompan_history_user_id_60030072_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalcompanycontact"/>
            <child column="history_user_id" foreignKey="api_historicalcontract_history_user_id_65b1e417_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicalcontract"/>
            <child column="history_user_id" foreignKey="api_historicalcrew_history_user_id_85bbcf84_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicalcrew"/>
            <child column="history_user_id" foreignKey="api_historicalcurrency_history_user_id_caf3c722_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicalcurrency"/>
            <child column="history_user_id" foreignKey="api_historicalcurren_history_user_id_4f728d61_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalcurrencydetail"/>
            <child column="history_user_id" foreignKey="api_historicaldepart_history_user_id_caab779f_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicaldepartment"/>
            <child column="history_user_id" foreignKey="api_historicaldeposi_history_user_id_5beb5d79_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicaldepositform"/>
            <child column="history_user_id" foreignKey="api_historicaldeposi_history_user_id_a41b1be3_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicaldepositformdetail"/>
            <child column="history_user_id" foreignKey="api_historicaldetail_history_user_id_7f83fd3d_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicaldetailinvoice"/>
            <child column="history_user_id" foreignKey="api_historicaldivision_history_user_id_28a5a74a_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicaldivision"/>
            <child column="history_user_id" foreignKey="api_historicaldocume_history_user_id_3cac819c_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicaldocumentserviceorder"/>
            <child column="history_user_id" foreignKey="api_historicalemployee_history_user_id_4349d28f_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicalemployee"/>
            <child column="history_user_id" foreignKey="api_historicalexchange_history_user_id_5d748fe6_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicalexchange"/>
            <child column="history_user_id" foreignKey="api_historicalguide_history_user_id_1818c5c8_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicalguide"/>
            <child column="history_user_id" foreignKey="api_historicalheadin_history_user_id_52ee6476_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalheadinvoice"/>
            <child column="history_user_id" foreignKey="api_historicallocation_history_user_id_d015064b_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicallocation"/>
            <child column="history_user_id" foreignKey="api_historicalnotifi_history_user_id_0d8edfae_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalnotification"/>
            <child column="history_user_id" foreignKey="api_historicaloffice_history_user_id_a16071ee_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicaloffice"/>
            <child column="history_user_id" foreignKey="api_historicalorigin_history_user_id_cbabd0f9_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalorigindestination"/>
            <child column="history_user_id" foreignKey="api_historicalpackage_history_user_id_1b43496b_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicalpacking"/>
            <child column="history_user_id" foreignKey="api_historicalpasswo_history_user_id_6973f361_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalpasswordsetting"/>
            <child column="history_user_id" foreignKey="api_historicalposition_history_user_id_6248d49c_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicalposition"/>
            <child column="history_user_id" foreignKey="api_historicalproduc_history_user_id_8b4ecdea_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalproductandservice"/>
            <child column="history_user_id" foreignKey="api_historicalproduc_history_user_id_537ff866_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalproductpart"/>
            <child column="history_user_id" foreignKey="api_historicalquotat_history_user_id_6738565f_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalquotation"/>
            <child column="history_user_id" foreignKey="api_historicalquotet_history_user_id_eabb2292_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalquotetemplate"/>
            <child column="history_user_id" foreignKey="api_historicalrate_history_user_id_1dc23fd4_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicalrate"/>
            <child column="history_user_id" foreignKey="api_historicalreport_history_user_id_9c94d1fa_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalreportoperation"/>
            <child column="history_user_id" foreignKey="api_historicalreport_history_user_id_ae06914a_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalreportrequest"/>
            <child column="history_user_id" foreignKey="api_historicalsegmen_history_user_id_376cf73d_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalsegmentcompany"/>
            <child column="history_user_id" foreignKey="api_historicalservic_history_user_id_e3ac7322_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalserviceorder"/>
            <child column="history_user_id" foreignKey="api_historicalstock_history_user_id_eaf52b61_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicalstock"/>
            <child column="history_user_id" foreignKey="api_historicalstocks_history_user_id_3e552543_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalstockserial"/>
            <child column="history_user_id" foreignKey="api_historicalstockt_history_user_id_f5632164_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalstocktransaction"/>
            <child column="history_user_id" foreignKey="api_historicalstockt_history_user_id_d8b0e2f8_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicalstocktransactiondetail"/>
            <child column="history_user_id" foreignKey="api_historicaltourde_history_user_id_9a33872b_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicaltourdetail"/>
            <child column="history_user_id" foreignKey="api_historicaltypech_history_user_id_23adbdf5_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicaltypechest"/>
            <child column="history_user_id" foreignKey="api_historicaltypeco_history_user_id_746da07b_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicaltypecompany"/>
            <child column="history_user_id" foreignKey="api_historicaltypeco_history_user_id_01e70f17_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicaltypecontract"/>
            <child column="history_user_id" foreignKey="api_historicaltypecu_history_user_id_029f4999_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicaltypecurrency"/>
            <child column="history_user_id" foreignKey="api_historicaltypedi_history_user_id_17dbc0be_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicaltypedivision"/>
            <child column="history_user_id" foreignKey="api_historicaltypegu_history_user_id_ba2d176f_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicaltypeguide"/>
            <child column="history_user_id" foreignKey="api_historicaltypelo_history_user_id_74d1a1a5_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicaltypelocation"/>
            <child column="history_user_id" foreignKey="api_historicaltypepr_history_user_id_e90dda0e_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicaltypeproducttransaction"/>
            <child column="history_user_id" foreignKey="api_historicaltypese_history_user_id_41886c46_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicaltypeserviceorder"/>
            <child column="history_user_id" foreignKey="api_historicaluserpa_history_user_id_b28c94bd_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicaluserpassword"/>
            <child column="history_user_id" foreignKey="api_historicaluserpr_history_user_id_0cb1fd30_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="api_historicaluserprofile"/>
            <child column="history_user_id" foreignKey="api_historicalvehicle_history_user_id_b3eeebd8_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicalvehicle"/>
            <child column="history_user_id" foreignKey="api_historicalvoucher_history_user_id_dc863b76_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicalvoucher"/>
            <child column="history_user_id" foreignKey="api_historicalzone_history_user_id_a06b797f_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_historicalzone"/>
            <child column="user_id" foreignKey="api_userpassword_user_id_6c133a65_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_userpassword"/>
            <child column="user_id" foreignKey="api_userprofile_user_id_5a1c1c92_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_userprofile"/>
            <child column="user_id" foreignKey="auth_user_groups_user_id_6a12ed8b_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user_groups"/>
            <child column="user_id" foreignKey="auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user_user_permissions"/>
            <child column="user_id" foreignKey="django_admin_log_user_id_c564eba6_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="django_admin_log"/>
            <child column="by_id" foreignKey="moderation_moderatedobject_by_id_cde3669b_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="moderation_moderatedobject"/>
            <child column="changed_by_id" foreignKey="moderation_moderated_changed_by_id_cac7f12e_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="moderation_moderatedobject"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="password" nullable="false" remarks="" size="128" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="last_login" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="is_superuser" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="username" nullable="false" remarks="" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="first_name" nullable="false" remarks="" size="30" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="last_name" nullable="false" remarks="" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="email" nullable="false" remarks="" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="is_staff" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="date_joined" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="auth_user_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="auth_user_username_6821ab7c_like" unique="false">
            <column ascending="true" name="username"/>
         </index>
         <index name="auth_user_username_key" unique="true">
            <column ascending="true" name="username"/>
         </index>
      </table>
      <table name="auth_user_groups" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('auth_user_groups_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="user_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="auth_user_groups_user_id_6a12ed8b_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="group_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="auth_user_groups_group_id_97559544_fk_auth_group_id" implied="false" onDeleteCascade="false" schema="public" table="auth_group"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="auth_user_groups_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="auth_user_groups_group_id_97559544" unique="false">
            <column ascending="true" name="group_id"/>
         </index>
         <index name="auth_user_groups_user_id_6a12ed8b" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
         <index name="auth_user_groups_user_id_group_id_94350c0c_uniq" unique="true">
            <column ascending="true" name="user_id"/>
            <column ascending="true" name="group_id"/>
         </index>
      </table>
      <table name="auth_user_user_permissions" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('auth_user_user_permissions_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="user_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="permission_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm" implied="false" onDeleteCascade="false" schema="public" table="auth_permission"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="auth_user_user_permissions_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="auth_user_user_permissions_permission_id_1fbb5f2c" unique="false">
            <column ascending="true" name="permission_id"/>
         </index>
         <index name="auth_user_user_permissions_user_id_a95ead1b" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
         <index name="auth_user_user_permissions_user_id_permission_id_14a6b632_uniq" unique="true">
            <column ascending="true" name="user_id"/>
            <column ascending="true" name="permission_id"/>
         </index>
      </table>
      <table name="django_admin_log" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('django_admin_log_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="action_time" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="object_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="object_repr" nullable="false" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="action_flag" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="change_message" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="content_type_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="django_admin_log_content_type_id_c4bce8eb_fk_django_co" implied="false" onDeleteCascade="false" schema="public" table="django_content_type"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="user_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="django_admin_log_user_id_c564eba6_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="django_admin_log_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="django_admin_log_content_type_id_c4bce8eb" unique="false">
            <column ascending="true" name="content_type_id"/>
         </index>
         <index name="django_admin_log_user_id_c564eba6" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
         <checkConstraint constraint="((action_flag &gt;= 0))" name="django_admin_log_action_flag_check"/>
      </table>
      <table name="django_content_type" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('django_content_type_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="content_type_id" foreignKey="auth_permission_content_type_id_2f476e4b_fk_django_co" implied="false" onDeleteCascade="false" schema="public" table="auth_permission"/>
            <child column="content_type_id" foreignKey="django_admin_log_content_type_id_c4bce8eb_fk_django_co" implied="false" onDeleteCascade="false" schema="public" table="django_admin_log"/>
            <child column="content_type_id" foreignKey="moderation_moderated_content_type_id_0bcb3166_fk_django_co" implied="false" onDeleteCascade="false" schema="public" table="moderation_moderatedobject"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="app_label" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="model" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="django_content_type_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="django_content_type_app_label_model_76bd3d3b_uniq" unique="true">
            <column ascending="true" name="app_label"/>
            <column ascending="true" name="model"/>
         </index>
      </table>
      <table name="django_migrations" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('django_migrations_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="app" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="applied" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="django_migrations_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="django_session" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="session_key" nullable="false" remarks="" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="session_data" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="expire_date" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="session_key" sequenceNumberInPK="1"/>
         <index name="django_session_pkey" unique="true">
            <column ascending="true" name="session_key"/>
         </index>
         <index name="django_session_expire_date_a5c62663" unique="false">
            <column ascending="true" name="expire_date"/>
         </index>
         <index name="django_session_session_key_c0390e0f_like" unique="false">
            <column ascending="true" name="session_key"/>
         </index>
      </table>
      <table name="django_site" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('django_site_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="domain" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="django_site_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="django_site_domain_a2e37b91_like" unique="false">
            <column ascending="true" name="domain"/>
         </index>
         <index name="django_site_domain_a2e37b91_uniq" unique="true">
            <column ascending="true" name="domain"/>
         </index>
      </table>
      <table name="moderation_moderatedobject" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('moderation_moderatedobject_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="object_pk" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="created" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="updated" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="state" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="status" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="on" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="reason" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="changed_object" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="changed_by_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="moderation_moderated_changed_by_id_cac7f12e_fk_auth_user" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="content_type_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="moderation_moderated_content_type_id_0bcb3166_fk_django_co" implied="false" onDeleteCascade="false" schema="public" table="django_content_type"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="by_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="moderation_moderatedobject_by_id_cde3669b_fk_auth_user_id" implied="false" onDeleteCascade="false" schema="public" table="auth_user"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="moderation_moderatedobject_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="moderation_moderatedobject_changed_by_id_cac7f12e" unique="false">
            <column ascending="true" name="changed_by_id"/>
         </index>
         <index name="moderation_moderatedobject_content_type_id_0bcb3166" unique="false">
            <column ascending="true" name="content_type_id"/>
         </index>
         <index name="moderation_moderatedobject_moderated_by_id_5be94779" unique="false">
            <column ascending="true" name="by_id"/>
         </index>
         <index name="moderation_moderatedobject_object_pk_d6ad0cef" unique="false">
            <column ascending="true" name="object_pk"/>
         </index>
         <checkConstraint constraint="((object_pk &gt;= 0))" name="moderation_moderatedobject_object_pk_check"/>
      </table>
      <table name="view_api_reportoperation" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT DISTINCT to_date(to_char(ro.created_at, 'YYYYMMDD'::text), 'YYYYMMDD'::text) AS created_at,&#10;    'ATM'::text AS name,&#10;    ro.atm AS monto,&#10;    0 AS envases,&#10;    ro.office_id&#10;   FROM ((api_reportoperation ro&#10;     LEFT JOIN api_reportoperation_employees_open eoo ON ((eoo.reportoperation_id = ro.id)))&#10;     LEFT JOIN api_reportoperation_employees_close eoc ON ((eoc.reportoperation_id = ro.id)))&#10;  WHERE (ro.deleted IS NULL)&#10;UNION ALL&#10; SELECT DISTINCT to_date(to_char(ro.created_at, 'YYYYMMDD'::text), 'YYYYMMDD'::text) AS created_at,&#10;    upper('apertura efectivo'::text) AS name,&#10;    ro.cash_opening AS monto,&#10;    0 AS envases,&#10;    ro.office_id&#10;   FROM ((api_reportoperation ro&#10;     LEFT JOIN api_reportoperation_employees_open eoo ON ((eoo.reportoperation_id = ro.id)))&#10;     LEFT JOIN api_reportoperation_employees_close eoc ON ((eoc.reportoperation_id = ro.id)))&#10;  WHERE (ro.deleted IS NULL)&#10;UNION ALL&#10; SELECT DISTINCT to_date(to_char(ro.created_at, 'YYYYMMDD'::text), 'YYYYMMDD'::text) AS created_at,&#10;    upper('atm transit'::text) AS name,&#10;    ro.atm_transit_amount AS monto,&#10;    ro.atm_transit_packings AS envases,&#10;    ro.office_id&#10;   FROM ((api_reportoperation ro&#10;     LEFT JOIN api_reportoperation_employees_open eoo ON ((eoo.reportoperation_id = ro.id)))&#10;     LEFT JOIN api_reportoperation_employees_close eoc ON ((eoc.reportoperation_id = ro.id)))&#10;  WHERE (ro.deleted IS NULL)&#10;UNION ALL&#10; SELECT DISTINCT to_date(to_char(ro.created_at, 'YYYYMMDD'::text), 'YYYYMMDD'::text) AS created_at,&#10;    upper('envases pend.'::text) AS name,&#10;    ro.packings_pending_amount AS monto,&#10;    ro.packings_pending AS envases,&#10;    ro.office_id&#10;   FROM ((api_reportoperation ro&#10;     LEFT JOIN api_reportoperation_employees_open eoo ON ((eoo.reportoperation_id = ro.id)))&#10;     LEFT JOIN api_reportoperation_employees_close eoc ON ((eoc.reportoperation_id = ro.id)))&#10;  WHERE (ro.deleted IS NULL)&#10;UNION ALL&#10; SELECT DISTINCT to_date(to_char(ro.created_at, 'YYYYMMDD'::text), 'YYYYMMDD'::text) AS created_at,&#10;    upper('horas cerrada'::text) AS name,&#10;    COALESCE((ro.hours_close)::integer, 0) AS monto,&#10;    0 AS envases,&#10;    ro.office_id&#10;   FROM ((api_reportoperation ro&#10;     LEFT JOIN api_reportoperation_employees_open eoo ON ((eoo.reportoperation_id = ro.id)))&#10;     LEFT JOIN api_reportoperation_employees_close eoc ON ((eoc.reportoperation_id = ro.id)))&#10;  WHERE (ro.deleted IS NULL);">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="created_at" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <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="17" id="2" name="monto" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="envases" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="office_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
      </table>
      <table name="view_api_reporttransacin" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT to_char(ag.created_at, 'yyyy-mm-dd'::text) AS creado,&#10;    concat(ac3.code, ' --&gt; ', ac3.name_invoce_to) AS contracto,&#10;    ac3.id AS id_contrato,&#10;    ad_entrada.name AS ruta_origen,&#10;    av.office_id AS oficina,&#10;    sum(av.count_packings) AS cantidad_envases,&#10;    sum((av.amount * av.exchange_rate)) AS monto,&#10;    count(av.code) AS cantidad_comprobantes,&#10;    count(&#10;        CASE&#10;            WHEN (av.direct_operation = true) THEN 1&#10;            ELSE NULL::integer&#10;        END) AS cantidad_comprobantes_directos&#10;   FROM ((((((((api_guide ag&#10;     LEFT JOIN api_division ad_entrada ON ((ag.division_origin_id = ad_entrada.id)))&#10;     LEFT JOIN api_guide_vouchers agv ON ((ag.id = agv.guide_id)))&#10;     LEFT JOIN api_voucher av ON ((agv.voucher_id = av.id)))&#10;     LEFT JOIN api_currency ac ON ((av.currency_id = ac.id)))&#10;     LEFT JOIN api_crew ac2 ON ((av.crew_id = ac2.id)))&#10;     LEFT JOIN api_employee ae ON ((ac2.driver_id = ae.id)))&#10;     LEFT JOIN api_vehicle av2 ON ((ac2.vehicle_id = av2.id)))&#10;     LEFT JOIN api_contract ac3 ON ((av.contract_id = ac3.id)))&#10;  WHERE (ag.type_guide_id = 1)&#10;  GROUP BY (to_char(ag.created_at, 'yyyy-mm-dd'::text)), (concat(ac3.code, ' --&gt; ', ac3.name_invoce_to)), ac3.id, ad_entrada.name, av.office_id&#10;  ORDER BY (to_char(ag.created_at, 'yyyy-mm-dd'::text)), ad_entrada.name;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="creado" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="contracto" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="id_contrato" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="ruta_origen" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="oficina" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="cantidad_envases" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="6" name="monto" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="cantidad_comprobantes" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="cantidad_comprobantes_directos" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
      </table>
      <table name="view_api_resum_oper_contract" numRows="0" remarks="view_api_resum_oper_contract" schema="public" type="VIEW" viewSql=" SELECT to_char(ag.created_at, 'yyyy-mm-dd'::text) AS creado,&#10;    concat(ac3.code, ' --&gt; ', ac3.name_invoce_to) AS contracto,&#10;    ac3.code AS contratos,&#10;    ac3.id AS id_contrato,&#10;    ad_entrada.name AS ruta_origen,&#10;    av.office_id AS oficina,&#10;    sum(av.count_packings) AS cantidad_envases,&#10;    sum((av.amount * av.exchange_rate)) AS monto,&#10;    count(av.code) AS cantidad_comprobantes,&#10;    count(&#10;        CASE&#10;            WHEN (av.direct_operation = true) THEN 1&#10;            ELSE NULL::integer&#10;        END) AS cantidad_comprobantes_directos&#10;   FROM ((((((((api_guide ag&#10;     LEFT JOIN api_division ad_entrada ON ((ag.division_origin_id = ad_entrada.id)))&#10;     LEFT JOIN api_guide_vouchers agv ON ((ag.id = agv.guide_id)))&#10;     LEFT JOIN api_voucher av ON ((agv.voucher_id = av.id)))&#10;     LEFT JOIN api_currency ac ON ((av.currency_id = ac.id)))&#10;     LEFT JOIN api_crew ac2 ON ((av.crew_id = ac2.id)))&#10;     LEFT JOIN api_employee ae ON ((ac2.driver_id = ae.id)))&#10;     LEFT JOIN api_vehicle av2 ON ((ac2.vehicle_id = av2.id)))&#10;     LEFT JOIN api_contract ac3 ON ((av.contract_id = ac3.id)))&#10;  WHERE (ag.type_guide_id = 1)&#10;  GROUP BY (to_char(ag.created_at, 'yyyy-mm-dd'::text)), (concat(ac3.code, ' --&gt; ', ac3.name_invoce_to)), ac3.code, ac3.id, ad_entrada.name, av.office_id&#10;  ORDER BY (to_char(ag.created_at, 'yyyy-mm-dd'::text)), ad_entrada.name;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="creado" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="contracto" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="contratos" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="id_contrato" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ruta_origen" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="oficina" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="cantidad_envases" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="7" name="monto" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="cantidad_comprobantes" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="cantidad_comprobantes_directos" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
      </table>
      <table name="view_voucher_list" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT api_voucher.id,&#10;    api_voucher.created_at,&#10;    api_voucher.code,&#10;    api_voucher.count_packings,&#10;    api_contract.code AS contract_code,&#10;    concat(api_location.name, ' -/- ', api_location_2.name) AS origin_destination,&#10;    api_voucher.crew_id,&#10;    api_voucher.certified_cart_code,&#10;    api_division.name AS division_name&#10;   FROM (((((api_voucher&#10;     LEFT JOIN api_contract ON ((api_voucher.contract_id = api_contract.id)))&#10;     LEFT JOIN api_division ON ((api_voucher.division_id = api_division.id)))&#10;     LEFT JOIN api_origindestination ON ((api_voucher.origin_destination_id = api_origindestination.id)))&#10;     LEFT JOIN api_location ON ((api_origindestination.origin_id = api_location.id)))&#10;     LEFT JOIN api_location api_location_2 ON ((api_origindestination.destination_id = api_location_2.id)));">
         <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="6" id="1" name="created_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="count_packings" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="contract_code" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="origin_destination" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="crew_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="certified_cart_code" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="division_name" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
      </table>
   </tables>
</database>
