<?xml version="1.0"?>
<database name="george" schema="public" type="PostgreSQL - 8.3.7">
  <tables>
    <table schema="public" name="address" numRows="12" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;address_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="address_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="address_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="street" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="streetnumber" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="district" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="postal_code" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="complement" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="is_main_address" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="9" name="person_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="address_person_id_fkey" table="person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="10" name="city_location_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="address_city_location_id_fkey" table="city_location" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="address_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="address_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="address_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="bank" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;bank_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="person_adapt_to_bank_branch_bank_id_fkey" table="person_adapt_to_bank_branch" column="bank_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="bank_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="bank_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="name" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="short_name" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="compensation_code" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="bank_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="bank_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="bank_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="bank_account" numRows="1" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;bank_account_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="check_data_bank_data_id_fkey" table="check_data" column="bank_data_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_destination_account_id_fkey" table="payment_destination" column="account_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_employee_bank_account_id_fkey" table="person_adapt_to_employee" column="bank_account_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="bank_account_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="bank_account_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="bank_id" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="branch" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="account" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="bank_account_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="bank_account_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="bank_account_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="base_sellable_info" numRows="15" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;base_sellable_info_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="sellable_base_sellable_info_id_fkey" table="sellable" column="base_sellable_info_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="base_sellable_info_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="base_sellable_info_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="price" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="description" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="max_discount" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="commission" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="base_sellable_info_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="base_sellable_info_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="base_sellable_info_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="branch_station" numRows="2" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;branch_station_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="device_settings_station_id_fkey" table="device_settings" column="station_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="fiscal_day_history_station_id_fkey" table="fiscal_day_history" column="station_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="invoice_printer_station_id_fkey" table="invoice_printer" column="station_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="till_station_id_fkey" table="till" column="station_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="transaction_entry_station_id_fkey" table="transaction_entry" column="station_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="branch_station_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="branch_station_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="name" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="is_active" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="branch_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="branch_station_branch_id_fkey" table="person_adapt_to_branch" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="branch_station_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="branch_station_name_key" unique="true">
        <column name="name" ascending="true"/>
      </index>
      <index name="branch_station_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="branch_station_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="branch_synchronization" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;branch_synchronization_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="sync_time" type="timestamp" size="29" digits="6" nullable="false" autoUpdated="false" remarks=""/>
      <column id="2" name="branch_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="branch_synchronization_branch_id_fkey" table="person_adapt_to_branch" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="policy" type="text" size="2147483647" digits="0" nullable="false" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="branch_synchronization_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="calls" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;calls_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="calls_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="calls_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="message" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="person_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="calls_person_id_fkey" table="person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="6" name="attendant_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="calls_attendant_id_fkey" table="person_adapt_to_user" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="calls_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="calls_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="calls_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="card_installment_settings" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;card_installment_settings_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="card_installments_provider_details_installment_settings_id_fkey" table="card_installments_provider_details" column="installment_settings_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="card_installments_store_details_installment_settings_id_fkey" table="card_installments_store_details" column="installment_settings_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="credit_card_details_installment_settings_id_fkey" table="credit_card_details" column="installment_settings_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="card_installment_settings_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="card_installment_settings_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="payment_day" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="closing_day" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="card_installment_settings_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="card_installment_settings_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="card_installment_settings_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="card_installments_provider_details" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;card_installments_provider_details_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="max_installments_number" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="2" name="installment_settings_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="card_installments_provider_details_installment_settings_id_fkey" table="card_installment_settings" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="card_installments_provider_details_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="card_installments_store_details" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;card_installments_store_details_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="max_installments_number" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="2" name="installment_settings_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="card_installments_store_details_installment_settings_id_fkey" table="card_installment_settings" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="card_installments_store_details_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="cfop_data" numRows="3" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;cfop_data_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="fiscal_book_entry_cfop_id_fkey" table="fiscal_book_entry" column="cfop_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="inventory_item_cfop_data_id_fkey" table="inventory_item" column="cfop_data_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_retention_history_cfop_id_fkey" table="product_retention_history" column="cfop_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="receiving_order_cfop_id_fkey" table="receiving_order" column="cfop_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sale_cfop_id_fkey" table="sale" column="cfop_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="cfop_data_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="cfop_data_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="code" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="description" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="cfop_data_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="cfop_data_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="cfop_data_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="check_data" numRows="1" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;check_data_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="check_data_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="check_data_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="payment_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="check_data_payment_id_fkey" table="payment" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="4" name="bank_data_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="check_data_bank_data_id_fkey" table="bank_account" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="check_data_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="check_data_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="check_data_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="city_location" numRows="10" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;city_location_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="address_city_location_id_fkey" table="address" column="city_location_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_individual_birth_location_id_fkey" table="person_adapt_to_individual" column="birth_location_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="city_location_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="city_location_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="country" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="city" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="state" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="city_location_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="city_location_country_key" unique="true">
        <column name="country" ascending="true"/>
        <column name="state" ascending="true"/>
        <column name="city" ascending="true"/>
      </index>
      <index name="city_location_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="city_location_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="commission" numRows="1" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;commission_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="commission_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="commission_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="value" type="numeric" size="10" digits="2" nullable="false" autoUpdated="false" remarks=""/>
      <column id="4" name="commission_type" type="int4" size="10" digits="0" nullable="false" autoUpdated="false" remarks=""/>
      <column id="5" name="salesperson_id" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks="">
        <parent foreignKey="commission_salesperson_id_fkey" table="person_adapt_to_sales_person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="6" name="sale_id" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks="">
        <parent foreignKey="commission_sale_id_fkey" table="sale" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="7" name="payment_id" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks="">
        <parent foreignKey="commission_payment_id_fkey" table="payment" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="commission_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="commission_payment_id_key" unique="true">
        <column name="payment_id" ascending="true"/>
      </index>
      <index name="commission_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="commission_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="commission_source" numRows="7" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;commission_source_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="commission_source_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="commission_source_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="direct_value" type="numeric" size="10" digits="2" nullable="false" autoUpdated="false" remarks=""/>
      <column id="4" name="installments_value" type="numeric" size="10" digits="2" nullable="false" autoUpdated="false" remarks=""/>
      <column id="5" name="category_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="commission_source_category_id_fkey" table="sellable_category" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="6" name="sellable_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="commission_source_asellable_id_fkey" table="sellable" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="commission_source_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="commission_source_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="commission_source_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="credit_card_data" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;credit_card_data_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="credit_card_data_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="credit_card_data_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="payment_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="credit_card_data_payment_id_fkey" table="payment" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="4" name="card_type" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="provider_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="credit_card_data_provider_id_fkey" table="person_adapt_to_credit_provider" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="credit_card_data_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="credit_card_data_payment_id_key" unique="true">
        <column name="payment_id" ascending="true"/>
      </index>
      <index name="credit_card_data_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="credit_card_data_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="credit_card_details" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;credit_card_details_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="installment_settings_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="credit_card_details_installment_settings_id_fkey" table="card_installment_settings" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="credit_card_details_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="credit_provider_group_data" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;credit_provider_group_data_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="credit_provider_group_data_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="credit_provider_group_data_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="installments_number" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="payment_type_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="credit_provider_group_data_payment_type_id_fkey" table="payment_method_details" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="5" name="provider_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="credit_provider_group_data_provider_id_fkey" table="person_adapt_to_credit_provider" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="6" name="group_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="credit_provider_group_data_group_id_fkey" table="payment_group" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="credit_provider_group_data_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="credit_provider_group_data_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="credit_provider_group_data_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="debit_card_details" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;debit_card_details_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="receive_days" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="debit_card_details_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="delivery_item" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;delivery_item_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="delivery_item_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="delivery_item_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="quantity" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="sellable_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="delivery_item_sellable_id_fkey" table="sellable" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="5" name="delivery_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="delivery_item_delivery_id_fkey" table="sale_item_adapt_to_delivery" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="delivery_item_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="delivery_item_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="delivery_item_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="device_constant" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;device_constant_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="device_constant_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="device_constant_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="is_valid_model" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="constant_type" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="constant_name" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="constant_value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="constant_enum" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="device_value" type="bytea" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="9" name="device_settings_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="device_constant_device_settings_id_fkey" table="device_settings" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="device_constant_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="device_constant_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="device_constant_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="device_settings" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;device_settings_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="device_constant_device_settings_id_fkey" table="device_constant" column="device_settings_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="device_settings_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="device_settings_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="type" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="brand" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="model" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="device" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="is_active" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="station_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="device_settings_station_id_fkey" table="branch_station" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="device_settings_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="device_settings_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="device_settings_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="employee_role" numRows="6" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;employee_role_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="employee_role_history_role_id_fkey" table="employee_role_history" column="role_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_employee_role_id_fkey" table="person_adapt_to_employee" column="role_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="employee_role_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="employee_role_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="name" type="text" size="2147483647" digits="0" nullable="false" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="employee_role_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="employee_role_name_key" unique="true">
        <column name="name" ascending="true"/>
      </index>
      <index name="employee_role_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="employee_role_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="employee_role_history" numRows="5" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;employee_role_history_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="employee_role_history_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="employee_role_history_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="began" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="ended" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="salary" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="role_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="employee_role_history_role_id_fkey" table="employee_role" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="7" name="employee_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="employee_role_history_employee_id_fkey" table="person_adapt_to_employee" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="8" name="is_active" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="employee_role_history_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="employee_role_history_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="employee_role_history_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="fiscal_book_entry" numRows="4" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;fiscal_book_entry_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="fiscal_book_entry_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="fiscal_book_entry_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="entry_type" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="icms_value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="iss_value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="ipi_value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="is_reversal" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="9" name="invoice_number" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="10" name="cfop_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="fiscal_book_entry_cfop_id_fkey" table="cfop_data" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="11" name="branch_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="fiscal_book_entry_branch_id_fkey" table="person_adapt_to_branch" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="12" name="drawee_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="fiscal_book_entry_drawee_id_fkey" table="person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="13" name="payment_group_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="fiscal_book_entry_payment_group_id_fkey" table="payment_group" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="fiscal_book_entry_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="fiscal_book_entry_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="fiscal_book_entry_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="fiscal_day_history" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;fiscal_day_history_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="fiscal_day_tax_fiscal_day_history_id_fkey" table="fiscal_day_tax" column="fiscal_day_history_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="fiscal_day_history_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="fiscal_day_history_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="emission_date" type="date" size="13" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="station_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="fiscal_day_history_station_id_fkey" table="branch_station" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="5" name="serial" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="serial_id" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="coupon_start" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="coupon_end" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="9" name="cro" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="10" name="crz" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="11" name="period_total" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="12" name="total" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="13" name="tax_total" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="14" name="reduction_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="fiscal_day_history_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="fiscal_day_history_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="fiscal_day_history_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="fiscal_day_tax" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;fiscal_day_tax_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="fiscal_day_tax_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="fiscal_day_tax_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="code" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="fiscal_day_history_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="fiscal_day_tax_fiscal_day_history_id_fkey" table="fiscal_day_history" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="6" name="type" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="fiscal_day_tax_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="fiscal_day_tax_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="fiscal_day_tax_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="fiscal_sale_history" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;fiscal_sale_history_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="fiscal_sale_history_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="fiscal_sale_history_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="sale_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="fiscal_sale_history_sale_id_fkey" table="sale" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="4" name="document_type" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="document" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="coo" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="document_counter" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="fiscal_sale_history_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="fiscal_sale_history_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="fiscal_sale_history_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="installed_plugin" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;installed_plugin_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="installed_plugin_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="installed_plugin_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="plugin_name" type="text" size="2147483647" digits="0" nullable="false" autoUpdated="false" remarks=""/>
      <column id="4" name="plugin_version" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="installed_plugin_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="installed_plugin_plugin_name_key" unique="true">
        <column name="plugin_name" ascending="true"/>
      </index>
      <index name="installed_plugin_plugin_version_key" unique="true">
        <column name="plugin_version" ascending="true"/>
      </index>
      <index name="installed_plugin_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="installed_plugin_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="inventory" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;inventory_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="inventory_item_inventory_id_fkey" table="inventory_item" column="inventory_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="inventory_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="inventory_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="status" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="open_date" type="timestamp" size="29" digits="6" nullable="false" autoUpdated="false" remarks=""/>
      <column id="5" name="close_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="invoice_number" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="branch_id" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks="">
        <parent foreignKey="inventory_branch_id_fkey" table="person_adapt_to_branch" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="inventory_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="inventory_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="inventory_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="inventory_item" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;inventory_item_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="inventory_item_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="inventory_item_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="product_id" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks="">
        <parent foreignKey="inventory_item_product_id_fkey" table="product" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="4" name="recorded_quantity" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="actual_quantity" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="inventory_id" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks="">
        <parent foreignKey="inventory_item_inventory_id_fkey" table="inventory" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="7" name="reason" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="cfop_data_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="inventory_item_cfop_data_id_fkey" table="cfop_data" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="9" name="product_cost" type="numeric" size="10" digits="4" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="inventory_item_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="inventory_item_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="inventory_item_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="invoice_field" numRows="35" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;invoice_field_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="invoice_field_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="invoice_field_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="field_name" type="varchar" size="2147483647" digits="0" nullable="false" autoUpdated="false" remarks=""/>
      <column id="4" name="layout_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="invoice_field_layout_id_fkey" table="invoice_layout" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="5" name="x" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks=""/>
      <column id="6" name="y" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks=""/>
      <column id="7" name="width" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks=""/>
      <column id="8" name="height" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="invoice_field_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="invoice_field_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="invoice_field_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="invoice_layout" numRows="1" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;invoice_layout_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="invoice_field_layout_id_fkey" table="invoice_field" column="layout_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="invoice_printer_layout_id_fkey" table="invoice_printer" column="layout_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="invoice_layout_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="invoice_layout_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="description" type="varchar" size="2147483647" digits="0" nullable="false" autoUpdated="false" remarks=""/>
      <column id="4" name="width" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks=""/>
      <column id="5" name="height" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="invoice_layout_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="invoice_layout_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="invoice_layout_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="invoice_printer" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;invoice_printer_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="invoice_printer_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="invoice_printer_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="device_name" type="varchar" size="2147483647" digits="0" nullable="false" autoUpdated="false" remarks=""/>
      <column id="4" name="description" type="varchar" size="2147483647" digits="0" nullable="false" autoUpdated="false" remarks=""/>
      <column id="5" name="station_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="invoice_printer_station_id_fkey" table="branch_station" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="6" name="layout_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="invoice_printer_layout_id_fkey" table="invoice_layout" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="invoice_printer_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="invoice_printer_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="invoice_printer_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="liaison" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;liaison_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="liaison_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="liaison_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="name" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="phone_number" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="person_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="liaison_person_id_fkey" table="person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="liaison_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="liaison_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="liaison_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="military_data" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;military_data_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="person_adapt_to_employee_military_data_id_fkey" table="person_adapt_to_employee" column="military_data_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="military_data_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="military_data_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="number" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="series_number" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="category" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="military_data_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="military_data_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="military_data_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="on_sale_info" numRows="15" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;on_sale_info_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="sellable_on_sale_info_id_fkey" table="sellable" column="on_sale_info_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="on_sale_info_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="on_sale_info_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="on_sale_price" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="on_sale_start_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="on_sale_end_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="on_sale_info_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="on_sale_info_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="on_sale_info_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="parameter_data" numRows="34" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;parameter_data_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="parameter_data_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="parameter_data_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="field_name" type="text" size="2147483647" digits="0" nullable="false" autoUpdated="false" remarks=""/>
      <column id="4" name="field_value" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="is_editable" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="parameter_data_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="parameter_data_field_name_key" unique="true">
        <column name="field_name" ascending="true"/>
      </index>
      <index name="parameter_data_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="parameter_data_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="payment" numRows="4" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;payment_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="check_data_payment_id_fkey" table="check_data" column="payment_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="commission_payment_id_fkey" table="commission" column="payment_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="credit_card_data_payment_id_fkey" table="credit_card_data" column="payment_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_adapt_to_in_payment_original_id_fkey" table="payment_adapt_to_in_payment" column="original_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_adapt_to_out_payment_original_id_fkey" table="payment_adapt_to_out_payment" column="original_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_change_history_payment_id_fkey" table="payment_change_history" column="payment_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="status" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="open_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="due_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="paid_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="cancel_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="paid_value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="9" name="base_value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="10" name="value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="11" name="interest" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="12" name="discount" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="13" name="description" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="14" name="payment_number" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="15" name="method_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_method_id_fkey" table="payment_method" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="16" name="group_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_group_id_fkey" table="payment_group" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="17" name="till_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_till_id_fkey" table="till" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="18" name="destination_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_destination_id_fkey" table="payment_destination" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="19" name="category_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_category_id_fkey" table="payment_category" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="20" name="penalty" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="payment_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="payment_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="payment_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="payment_adapt_to_in_payment" numRows="3" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;payment_adapt_to_in_payment_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_adapt_to_in_payment_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_adapt_to_in_payment_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="original_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_adapt_to_in_payment_original_id_fkey" table="payment" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="payment_adapt_to_in_payment_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="payment_adapt_to_in_payment_original_id_key" unique="true">
        <column name="original_id" ascending="true"/>
      </index>
      <index name="payment_adapt_to_in_payment_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="payment_adapt_to_in_payment_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="payment_adapt_to_out_payment" numRows="1" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;payment_adapt_to_out_payment_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_adapt_to_out_payment_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_adapt_to_out_payment_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="original_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_adapt_to_out_payment_original_id_fkey" table="payment" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="payment_adapt_to_out_payment_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="payment_adapt_to_out_payment_original_id_key" unique="true">
        <column name="original_id" ascending="true"/>
      </index>
      <index name="payment_adapt_to_out_payment_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="payment_adapt_to_out_payment_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="payment_category" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;payment_category_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="payment_category_id_fkey" table="payment" column="category_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_category_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_category_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="name" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="color" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="payment_category_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="payment_category_name_key" unique="true">
        <column name="name" ascending="true"/>
      </index>
      <index name="payment_category_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="payment_category_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="payment_change_history" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;payment_change_history_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_change_history_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_change_history_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="change_reason" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="last_due_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="change_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="new_due_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="last_status" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="new_status" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="9" name="payment_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_change_history_payment_id_fkey" table="payment" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="payment_change_history_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="payment_change_history_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="payment_change_history_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="payment_destination" numRows="1" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;payment_destination_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="payment_destination_id_fkey" table="payment" column="destination_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_method_destination_id_fkey" table="payment_method" column="destination_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_method_details_destination_id_fkey" table="payment_method_details" column="destination_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_destination_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_destination_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="description" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="account_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_destination_account_id_fkey" table="bank_account" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="5" name="notes" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="branch_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_destination_branch_id_fkey" table="person_adapt_to_branch" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="payment_destination_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="payment_destination_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="payment_destination_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="payment_group" numRows="4" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;payment_group_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="credit_provider_group_data_group_id_fkey" table="credit_provider_group_data" column="group_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="fiscal_book_entry_payment_group_id_fkey" table="fiscal_book_entry" column="payment_group_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_group_id_fkey" table="payment" column="group_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_renegotiation_group_id_fkey" table="payment_renegotiation" column="group_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="purchase_order_group_id_fkey" table="purchase_order" column="group_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sale_group_id_fkey" table="sale" column="group_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_group_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_group_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="status" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="payer_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_group_payer_id_fkey" table="person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="5" name="recipient_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_group_recipient_id_fkey" table="person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="6" name="renegotiation_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_group_renegotiation_id_fkey" table="payment_renegotiation" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="payment_group_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="payment_group_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="payment_group_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="payment_method" numRows="6" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;payment_method_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="payment_method_id_fkey" table="payment" column="method_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="is_active" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="2" name="daily_penalty" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="3" name="interest" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="destination_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_method_destination_id_fkey" table="payment_destination" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="5" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_method_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="6" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_method_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="7" name="method_name" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="description" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="9" name="payment_day" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="10" name="closing_day" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="11" name="max_installments" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="payment_method_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="payment_method_method_name_key" unique="true">
        <column name="method_name" ascending="true"/>
      </index>
      <index name="payment_method_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="payment_method_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="payment_method_details" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;payment_method_details_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="credit_provider_group_data_payment_type_id_fkey" table="credit_provider_group_data" column="payment_type_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="is_active" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="2" name="commission" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="3" name="provider_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_method_details_provider_id_fkey" table="person_adapt_to_credit_provider" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="4" name="destination_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_method_details_destination_id_fkey" table="payment_destination" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="5" name="child_name" type="varchar" size="255" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="payment_method_details_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="payment_renegotiation" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;payment_renegotiation_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="payment_group_renegotiation_id_fkey" table="payment_group" column="renegotiation_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_renegotiation_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_renegotiation_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="open_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="close_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="status" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="discount_value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="surcharge_value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="total" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="9" name="notes" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="10" name="client_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_renegotiation_client_id_fkey" table="person_adapt_to_client" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="11" name="responsible_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_renegotiation_responsible_id_fkey" table="person_adapt_to_user" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="12" name="branch_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_renegotiation_branch_id_fkey" table="person_adapt_to_branch" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="13" name="group_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="payment_renegotiation_group_id_fkey" table="payment_group" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="payment_renegotiation_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="payment_renegotiation_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="payment_renegotiation_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="person" numRows="21" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;person_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="address_person_id_fkey" table="address" column="person_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="calls_person_id_fkey" table="calls" column="person_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="fiscal_book_entry_drawee_id_fkey" table="fiscal_book_entry" column="drawee_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="liaison_person_id_fkey" table="liaison" column="person_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_group_payer_id_fkey" table="payment_group" column="payer_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_group_recipient_id_fkey" table="payment_group" column="recipient_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_bank_branch_original_id_fkey" table="person_adapt_to_bank_branch" column="original_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_branch_original_id_fkey" table="person_adapt_to_branch" column="original_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_client_original_id_fkey" table="person_adapt_to_client" column="original_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_company_original_id_fkey" table="person_adapt_to_company" column="original_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_credit_provider_original_id_fkey" table="person_adapt_to_credit_provider" column="original_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_employee_original_id_fkey" table="person_adapt_to_employee" column="original_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_individual_original_id_fkey" table="person_adapt_to_individual" column="original_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_sales_person_original_id_fkey" table="person_adapt_to_sales_person" column="original_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_supplier_original_id_fkey" table="person_adapt_to_supplier" column="original_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_transporter_original_id_fkey" table="person_adapt_to_transporter" column="original_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_user_original_id_fkey" table="person_adapt_to_user" column="original_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="renegotiation_data_responsible_id_fkey" table="renegotiation_data" column="responsible_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="name" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="phone_number" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="mobile_number" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="fax_number" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="email" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="notes" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="person_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="person_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="person_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="person_adapt_to_bank_branch" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;person_adapt_to_bank_branch_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_bank_branch_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_bank_branch_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="is_active" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="bank_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_bank_branch_bank_id_fkey" table="bank" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="5" name="original_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_bank_branch_original_id_fkey" table="person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="person_adapt_to_bank_branch_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="person_adapt_to_bank_branch_original_id_key" unique="true">
        <column name="original_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_bank_branch_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_bank_branch_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="person_adapt_to_branch" numRows="2" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;person_adapt_to_branch_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="branch_station_branch_id_fkey" table="branch_station" column="branch_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="branch_synchronization_branch_id_fkey" table="branch_synchronization" column="branch_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="fiscal_book_entry_branch_id_fkey" table="fiscal_book_entry" column="branch_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="inventory_branch_id_fkey" table="inventory" column="branch_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_destination_branch_id_fkey" table="payment_destination" column="branch_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_renegotiation_branch_id_fkey" table="payment_renegotiation" column="branch_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_history_branch_id_fkey" table="product_history" column="branch_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_stock_item_branch_id_fkey" table="product_stock_item" column="branch_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="purchase_order_branch_id_fkey" table="purchase_order" column="branch_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="receiving_order_branch_id_fkey" table="receiving_order" column="branch_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sale_branch_id_fkey" table="sale" column="branch_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="transfer_order_destination_branch_id_fkey" table="transfer_order" column="destination_branch_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="transfer_order_source_branch_id_fkey" table="transfer_order" column="source_branch_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_branch_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_branch_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="manager_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_branch_manager_id_fkey" table="person_adapt_to_employee" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="4" name="is_active" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="original_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_branch_original_id_fkey" table="person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="person_adapt_to_branch_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="person_adapt_to_branch_original_id_key" unique="true">
        <column name="original_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_branch_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_branch_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="person_adapt_to_client" numRows="4" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;person_adapt_to_client_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="payment_renegotiation_client_id_fkey" table="payment_renegotiation" column="client_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sale_client_id_fkey" table="sale" column="client_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_client_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_client_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="status" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="days_late" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="original_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_client_original_id_fkey" table="person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="6" name="credit_limit" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" defaultValue="0" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="person_adapt_to_client_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="person_adapt_to_client_original_id_key" unique="true">
        <column name="original_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_client_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_client_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="person_adapt_to_company" numRows="12" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;person_adapt_to_company_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_company_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_company_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="is_active" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="cnpj" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="fancy_name" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="state_registry" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="original_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_company_original_id_fkey" table="person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="person_adapt_to_company_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="person_adapt_to_company_original_id_key" unique="true">
        <column name="original_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_company_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_company_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="person_adapt_to_credit_provider" numRows="8" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;person_adapt_to_credit_provider_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="credit_card_data_provider_id_fkey" table="credit_card_data" column="provider_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="credit_provider_group_data_provider_id_fkey" table="credit_provider_group_data" column="provider_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_method_details_provider_id_fkey" table="payment_method_details" column="provider_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_credit_provider_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_credit_provider_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="is_active" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="provider_type" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="short_name" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="provider_id" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="open_contract_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="original_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_credit_provider_original_id_fkey" table="person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="9" name="payment_day" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="10" name="closing_day" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="11" name="max_installments" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="12" name="provider_fee" type="numeric" size="10" digits="4" nullable="false" autoUpdated="false" defaultValue="0" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="person_adapt_to_credit_provider_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="person_adapt_to_credit_provider_original_id_key" unique="true">
        <column name="original_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_credit_provider_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_credit_provider_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="person_adapt_to_employee" numRows="5" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;person_adapt_to_employee_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="employee_role_history_employee_id_fkey" table="employee_role_history" column="employee_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_branch_manager_id_fkey" table="person_adapt_to_branch" column="manager_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="transfer_order_destination_responsible_id_fkey" table="transfer_order" column="destination_responsible_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="transfer_order_source_responsible_id_fkey" table="transfer_order" column="source_responsible_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_employee_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_employee_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="is_active" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="admission_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="expire_vacation" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="salary" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="status" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="registry_number" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="9" name="education_level" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="10" name="dependent_person_number" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="11" name="role_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_employee_role_id_fkey" table="employee_role" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="12" name="workpermit_data_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_employee_workpermit_data_id_fkey" table="work_permit_data" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="13" name="military_data_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_employee_military_data_id_fkey" table="military_data" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="14" name="voter_data_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_employee_voter_data_id_fkey" table="voter_data" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="15" name="bank_account_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_employee_bank_account_id_fkey" table="bank_account" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="16" name="original_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_employee_original_id_fkey" table="person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="person_adapt_to_employee_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="person_adapt_to_employee_original_id_key" unique="true">
        <column name="original_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_employee_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_employee_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="person_adapt_to_individual" numRows="9" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;person_adapt_to_individual_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_individual_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_individual_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="is_active" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="cpf" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="rg_number" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="birth_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="occupation" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="marital_status" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="9" name="father_name" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="10" name="mother_name" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="11" name="rg_expedition_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="12" name="rg_expedition_local" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="13" name="gender" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="14" name="spouse_name" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="15" name="birth_location_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_individual_birth_location_id_fkey" table="city_location" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="16" name="original_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_individual_original_id_fkey" table="person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="person_adapt_to_individual_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="person_adapt_to_individual_original_id_key" unique="true">
        <column name="original_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_individual_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_individual_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="person_adapt_to_sales_person" numRows="5" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;person_adapt_to_sales_person_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="commission_salesperson_id_fkey" table="commission" column="salesperson_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sale_salesperson_id_fkey" table="sale" column="salesperson_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_sales_person_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_sales_person_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="comission" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="comission_type" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="is_active" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="original_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_sales_person_original_id_fkey" table="person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="person_adapt_to_sales_person_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="person_adapt_to_sales_person_original_id_key" unique="true">
        <column name="original_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_sales_person_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_sales_person_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="person_adapt_to_supplier" numRows="1" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;person_adapt_to_supplier_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="product_supplier_info_supplier_id_fkey" table="product_supplier_info" column="supplier_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="purchase_order_supplier_id_fkey" table="purchase_order" column="supplier_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="receiving_order_supplier_id_fkey" table="receiving_order" column="supplier_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_supplier_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_supplier_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="is_active" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="status" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="product_desc" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="original_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_supplier_original_id_fkey" table="person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="person_adapt_to_supplier_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="person_adapt_to_supplier_original_id_key" unique="true">
        <column name="original_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_supplier_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_supplier_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="person_adapt_to_transporter" numRows="1" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;person_adapt_to_transporter_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="purchase_order_transporter_id_fkey" table="purchase_order" column="transporter_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="receiving_order_transporter_id_fkey" table="receiving_order" column="transporter_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_transporter_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_transporter_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="is_active" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="open_contract_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="freight_percentage" type="numeric" size="10" digits="2" nullable="false" autoUpdated="false" remarks=""/>
      <column id="6" name="original_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_transporter_original_id_fkey" table="person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="person_adapt_to_transporter_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="person_adapt_to_transporter_original_id_key" unique="true">
        <column name="original_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_transporter_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_transporter_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="person_adapt_to_user" numRows="5" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;person_adapt_to_user_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="calls_attendant_id_fkey" table="calls" column="attendant_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_renegotiation_responsible_id_fkey" table="payment_renegotiation" column="responsible_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="receiving_order_responsible_id_fkey" table="receiving_order" column="responsible_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="transaction_entry_user_id_fkey" table="transaction_entry" column="user_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_user_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_user_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="username" type="text" size="2147483647" digits="0" nullable="false" autoUpdated="false" remarks=""/>
      <column id="4" name="password" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="is_active" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="profile_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_user_profile_id_fkey" table="user_profile" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="7" name="original_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="person_adapt_to_user_original_id_fkey" table="person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="person_adapt_to_user_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="person_adapt_to_user_original_id_key" unique="true">
        <column name="original_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_user_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_user_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
      <index name="person_adapt_to_user_username_key" unique="true">
        <column name="username" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="product" numRows="10" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;product_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="inventory_item_product_id_fkey" table="inventory_item" column="product_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_adapt_to_storable_original_id_fkey" table="product_adapt_to_storable" column="original_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_component_component_id_fkey" table="product_component" column="component_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_component_product_id_fkey" table="product_component" column="product_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_retention_history_product_id_fkey" table="product_retention_history" column="product_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_supplier_info_product_id_fkey" table="product_supplier_info" column="product_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="sellable_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_sellable_id_fkey" table="sellable" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="4" name="image" type="bytea" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="location" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="part_number" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="manufacturer" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="product_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="product_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="product_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="product_adapt_to_storable" numRows="10" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;product_adapt_to_storable_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="product_stock_item_storable_id_fkey" table="product_stock_item" column="storable_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_adapt_to_storable_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_adapt_to_storable_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="original_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_adapt_to_storable_original_id_fkey" table="product" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="4" name="minimum_quantity" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" defaultValue="0" remarks=""/>
      <column id="5" name="maximum_quantity" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" defaultValue="0" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="product_adapt_to_storable_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="product_adapt_to_storable_original_id_key" unique="true">
        <column name="original_id" ascending="true"/>
      </index>
      <index name="product_adapt_to_storable_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="product_adapt_to_storable_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="product_component" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;product_component_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_component_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_component_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="product_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_component_product_id_fkey" table="product" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="4" name="component_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_component_component_id_fkey" table="product" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="5" name="quantity" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="product_component_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="product_component_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="product_component_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="product_history" numRows="29" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;product_history_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_history_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_history_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="quantity_sold" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="quantity_received" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="quantity_transfered" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="quantity_retained" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="sold_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="received_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="9" name="branch_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_history_branch_id_fkey" table="person_adapt_to_branch" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="10" name="sellable_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_history_sellable_id_fkey" table="sellable" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="product_history_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="product_history_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="product_history_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="product_retention_history" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;product_retention_history_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_retention_history_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_retention_history_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="quantity" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="reason" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="retention_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="product_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_retention_history_product_id_fkey" table="product" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="7" name="cfop_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_retention_history_cfop_id_fkey" table="cfop_data" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="product_retention_history_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="product_retention_history_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="product_retention_history_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="product_stock_item" numRows="10" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;product_stock_item_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_stock_item_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_stock_item_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="stock_cost" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="quantity" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="logic_quantity" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="storable_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_stock_item_storable_id_fkey" table="product_adapt_to_storable" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="7" name="branch_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_stock_item_branch_id_fkey" table="person_adapt_to_branch" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="product_stock_item_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="product_stock_item_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="product_stock_item_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="product_supplier_info" numRows="10" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;product_supplier_info_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_supplier_info_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="product_supplier_info_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="base_cost" type="numeric" size="10" digits="4" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="notes" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="is_main_supplier" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="icms" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="supplier_id" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks="">
        <parent foreignKey="product_supplier_info_supplier_id_fkey" table="person_adapt_to_supplier" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="8" name="product_id" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks="">
        <parent foreignKey="product_supplier_info_product_id_fkey" table="product" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="9" name="lead_time" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" defaultValue="1" remarks=""/>
      <column id="10" name="minimum_purchase" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" defaultValue="1" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="product_supplier_info_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="product_supplier_info_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="product_supplier_info_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="profile_settings" numRows="27" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;profile_settings_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="profile_settings_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="profile_settings_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="app_dir_name" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="has_permission" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="user_profile_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="profile_settings_user_profile_id_fkey" table="user_profile" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="profile_settings_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="profile_settings_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="profile_settings_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="purchase_item" numRows="10" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;purchase_item_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="receiving_order_item_purchase_item_id_fkey" table="receiving_order_item" column="purchase_item_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="purchase_item_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="purchase_item_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="quantity" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="quantity_received" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="base_cost" type="numeric" size="10" digits="4" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="cost" type="numeric" size="10" digits="4" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="sellable_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="purchase_item_sellable_id_fkey" table="sellable" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="8" name="order_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="purchase_item_order_id_fkey" table="purchase_order" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="9" name="expected_receival_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="purchase_item_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="purchase_item_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="purchase_item_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="purchase_order" numRows="1" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;purchase_order_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="purchase_item_order_id_fkey" table="purchase_item" column="order_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="quotation_purchase_id_fkey" table="quotation" column="purchase_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="receiving_order_purchase_id_fkey" table="receiving_order" column="purchase_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="is_valid_model" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="2" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="purchase_order_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="purchase_order_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="4" name="status" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="open_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="quote_deadline" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="expected_receival_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="expected_pay_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="9" name="receival_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="10" name="confirm_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="11" name="notes" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="12" name="salesperson_name" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="13" name="freight_type" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="14" name="expected_freight" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="15" name="surcharge_value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="16" name="discount_value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="17" name="supplier_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="purchase_order_supplier_id_fkey" table="person_adapt_to_supplier" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="18" name="branch_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="purchase_order_branch_id_fkey" table="person_adapt_to_branch" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="19" name="transporter_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="purchase_order_transporter_id_fkey" table="person_adapt_to_transporter" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="20" name="group_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="purchase_order_group_id_fkey" table="payment_group" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="purchase_order_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="purchase_order_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="purchase_order_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="quotation" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;quotation_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="quotation_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="quotation_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="purchase_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="quotation_purchase_id_fkey" table="purchase_order" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="4" name="group_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="quotation_group_id_fkey" table="quote_group" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="quotation_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="quotation_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="quotation_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="quote_group" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;quote_group_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="quotation_group_id_fkey" table="quotation" column="group_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="quote_group_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="quote_group_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="quote_group_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="quote_group_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="quote_group_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="receiving_order" numRows="1" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;receiving_order_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="receiving_order_item_receiving_order_id_fkey" table="receiving_order_item" column="receiving_order_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="is_valid_model" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="2" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="receiving_order_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="receiving_order_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="4" name="status" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="receival_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="confirm_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="notes" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="freight_total" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="9" name="surcharge_value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="10" name="discount_value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="11" name="icms_total" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="12" name="ipi_total" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="13" name="invoice_number" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="14" name="invoice_total" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="15" name="cfop_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="receiving_order_cfop_id_fkey" table="cfop_data" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="16" name="responsible_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="receiving_order_responsible_id_fkey" table="person_adapt_to_user" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="17" name="supplier_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="receiving_order_supplier_id_fkey" table="person_adapt_to_supplier" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="18" name="branch_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="receiving_order_branch_id_fkey" table="person_adapt_to_branch" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="19" name="purchase_id" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks="">
        <parent foreignKey="receiving_order_purchase_id_fkey" table="purchase_order" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="20" name="transporter_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="receiving_order_transporter_id_fkey" table="person_adapt_to_transporter" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="21" name="secure_value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="22" name="expense_value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="receiving_order_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="receiving_order_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="receiving_order_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="receiving_order_item" numRows="10" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;receiving_order_item_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="receiving_order_item_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="receiving_order_item_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="quantity" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="cost" type="numeric" size="10" digits="4" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="sellable_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="receiving_order_item_sellable_id_fkey" table="sellable" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="6" name="receiving_order_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="receiving_order_item_receiving_order_id_fkey" table="receiving_order" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="7" name="purchase_item_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="receiving_order_item_purchase_item_id_fkey" table="purchase_item" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="receiving_order_item_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="receiving_order_item_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="receiving_order_item_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="renegotiation_data" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;renegotiation_data_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="renegotiation_data_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="renegotiation_data_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="reason" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="paid_total" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="invoice_number" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="penalty_value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="responsible_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="renegotiation_data_responsible_id_fkey" table="person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="8" name="new_order_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="renegotiation_data_new_order_id_fkey" table="sale" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="9" name="sale_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="renegotiation_data_sale_id_fkey" table="sale" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="renegotiation_data_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="renegotiation_data_sale_id_key" unique="true">
        <column name="sale_id" ascending="true"/>
      </index>
      <index name="renegotiation_data_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="renegotiation_data_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="sale" numRows="3" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;sale_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="commission_sale_id_fkey" table="commission" column="sale_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="fiscal_sale_history_sale_id_fkey" table="fiscal_sale_history" column="sale_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="renegotiation_data_new_order_id_fkey" table="renegotiation_data" column="new_order_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="renegotiation_data_sale_id_fkey" table="renegotiation_data" column="sale_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sale_item_sale_id_fkey" table="sale_item" column="sale_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="is_valid_model" type="bool" size="1" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="2" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sale_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sale_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="4" name="coupon_id" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="service_invoice_number" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="open_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="close_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="confirm_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="9" name="cancel_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="10" name="return_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="11" name="status" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="12" name="discount_value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="13" name="surcharge_value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="14" name="total_amount" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="15" name="notes" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="16" name="client_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sale_client_id_fkey" table="person_adapt_to_client" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="17" name="cfop_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sale_cfop_id_fkey" table="cfop_data" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="18" name="salesperson_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sale_salesperson_id_fkey" table="person_adapt_to_sales_person" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="19" name="branch_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sale_branch_id_fkey" table="person_adapt_to_branch" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="20" name="group_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sale_group_id_fkey" table="payment_group" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="21" name="expire_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="22" name="invoice_number" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="sale_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="sale_invoice_number_key" unique="true">
        <column name="invoice_number" ascending="true"/>
      </index>
      <index name="sale_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="sale_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="sale_item" numRows="9" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;sale_item_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="sale_item_adapt_to_delivery_original_id_fkey" table="sale_item_adapt_to_delivery" column="original_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sale_item_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sale_item_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="quantity" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="base_price" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="price" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="sale_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sale_item_sale_id_fkey" table="sale" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="7" name="sellable_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sale_item_sellable_id_fkey" table="sellable" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="8" name="notes" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="9" name="estimated_fix_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="10" name="completion_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="sale_item_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="sale_item_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="sale_item_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="sale_item_adapt_to_delivery" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;sale_item_adapt_to_delivery_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="delivery_item_delivery_id_fkey" table="delivery_item" column="delivery_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sale_item_adapt_to_delivery_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sale_item_adapt_to_delivery_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="address" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="original_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sale_item_adapt_to_delivery_original_id_fkey" table="sale_item" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="sale_item_adapt_to_delivery_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="sale_item_adapt_to_delivery_original_id_key" unique="true">
        <column name="original_id" ascending="true"/>
      </index>
      <index name="sale_item_adapt_to_delivery_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="sale_item_adapt_to_delivery_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="sellable" numRows="15" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;sellable_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="commission_source_asellable_id_fkey" table="commission_source" column="sellable_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="delivery_item_sellable_id_fkey" table="delivery_item" column="sellable_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_sellable_id_fkey" table="product" column="sellable_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_history_sellable_id_fkey" table="product_history" column="sellable_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="purchase_item_sellable_id_fkey" table="purchase_item" column="sellable_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="receiving_order_item_sellable_id_fkey" table="receiving_order_item" column="sellable_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sale_item_sellable_id_fkey" table="sale_item" column="sellable_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="service_sellable_id_fkey" table="service" column="sellable_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="transfer_order_item_sellable_id_fkey" table="transfer_order_item" column="sellable_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sellable_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sellable_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="barcode" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="status" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="cost" type="numeric" size="10" digits="4" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="notes" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="unit_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sellable_unit_id_fkey" table="sellable_unit" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="8" name="base_sellable_info_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sellable_base_sellable_info_id_fkey" table="base_sellable_info" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="9" name="on_sale_info_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sellable_on_sale_info_id_fkey" table="on_sale_info" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="10" name="category_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sellable_category_id_fkey" table="sellable_category" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="11" name="tax_constant_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sellable_tax_constant_id_fkey" table="sellable_tax_constant" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="12" name="code" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="sellable_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="sellable_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="sellable_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="sellable_category" numRows="18" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;sellable_category_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="commission_source_category_id_fkey" table="commission_source" column="category_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sellable_category_id_fkey" table="sellable" column="category_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sellable_category_category_id_fkey" table="sellable_category" column="category_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sellable_category_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sellable_category_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="description" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="suggested_markup" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="salesperson_commission" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="category_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sellable_category_category_id_fkey" table="sellable_category" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="7" name="tax_constant_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sellable_category_tax_constant_id_fkey" table="sellable_tax_constant" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="sellable_category_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="sellable_category_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="sellable_category_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="sellable_tax_constant" numRows="4" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;sellable_tax_constant_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="sellable_tax_constant_id_fkey" table="sellable" column="tax_constant_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sellable_category_tax_constant_id_fkey" table="sellable_category" column="tax_constant_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sellable_tax_constant_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sellable_tax_constant_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="description" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="tax_type" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="tax_value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="sellable_tax_constant_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="sellable_tax_constant_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="sellable_tax_constant_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="sellable_unit" numRows="3" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;sellable_unit_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="sellable_unit_id_fkey" table="sellable" column="unit_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sellable_unit_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="sellable_unit_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="description" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="unit_index" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="sellable_unit_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="sellable_unit_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="sellable_unit_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="service" numRows="5" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;service_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="service_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="service_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="sellable_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="service_sellable_id_fkey" table="sellable" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="4" name="image" type="bytea" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="service_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="service_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="service_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="system_table" numRows="22" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;system_table_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="updated" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="2" name="patchlevel" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="3" name="generation" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="system_table_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="till" numRows="1" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;till_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="payment_till_id_fkey" table="payment" column="till_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="till_entry_till_id_fkey" table="till_entry" column="till_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="till_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="till_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="status" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="initial_cash_amount" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="final_cash_amount" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="opening_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="closing_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="8" name="station_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="till_station_id_fkey" table="branch_station" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="till_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="till_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="till_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="till_entry" numRows="4" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;till_entry_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="till_entry_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="till_entry_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="description" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="value" type="numeric" size="10" digits="2" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="till_id" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks="">
        <parent foreignKey="till_entry_till_id_fkey" table="till" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="7" name="payment_id" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="till_entry_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="till_entry_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="till_entry_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="transaction_entry" numRows="876" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;transaction_entry_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="address_te_created_id_fkey" table="address" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="address_te_modified_id_fkey" table="address" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="bank_te_created_id_fkey" table="bank" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="bank_te_modified_id_fkey" table="bank" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="bank_account_te_created_id_fkey" table="bank_account" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="bank_account_te_modified_id_fkey" table="bank_account" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="base_sellable_info_te_created_id_fkey" table="base_sellable_info" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="base_sellable_info_te_modified_id_fkey" table="base_sellable_info" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="branch_station_te_created_id_fkey" table="branch_station" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="branch_station_te_modified_id_fkey" table="branch_station" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="calls_te_created_id_fkey" table="calls" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="calls_te_modified_id_fkey" table="calls" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="card_installment_settings_te_created_id_fkey" table="card_installment_settings" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="card_installment_settings_te_modified_id_fkey" table="card_installment_settings" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="cfop_data_te_created_id_fkey" table="cfop_data" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="cfop_data_te_modified_id_fkey" table="cfop_data" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="check_data_te_created_id_fkey" table="check_data" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="check_data_te_modified_id_fkey" table="check_data" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="city_location_te_created_id_fkey" table="city_location" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="city_location_te_modified_id_fkey" table="city_location" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="commission_te_created_id_fkey" table="commission" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="commission_te_modified_id_fkey" table="commission" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="commission_source_te_created_id_fkey" table="commission_source" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="commission_source_te_modified_id_fkey" table="commission_source" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="credit_card_data_te_created_id_fkey" table="credit_card_data" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="credit_card_data_te_modified_id_fkey" table="credit_card_data" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="credit_provider_group_data_te_created_id_fkey" table="credit_provider_group_data" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="credit_provider_group_data_te_modified_id_fkey" table="credit_provider_group_data" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="delivery_item_te_created_id_fkey" table="delivery_item" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="delivery_item_te_modified_id_fkey" table="delivery_item" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="device_constant_te_created_id_fkey" table="device_constant" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="device_constant_te_modified_id_fkey" table="device_constant" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="device_settings_te_created_id_fkey" table="device_settings" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="device_settings_te_modified_id_fkey" table="device_settings" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="employee_role_te_created_id_fkey" table="employee_role" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="employee_role_te_modified_id_fkey" table="employee_role" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="employee_role_history_te_created_id_fkey" table="employee_role_history" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="employee_role_history_te_modified_id_fkey" table="employee_role_history" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="fiscal_book_entry_te_created_id_fkey" table="fiscal_book_entry" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="fiscal_book_entry_te_modified_id_fkey" table="fiscal_book_entry" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="fiscal_day_history_te_created_id_fkey" table="fiscal_day_history" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="fiscal_day_history_te_modified_id_fkey" table="fiscal_day_history" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="fiscal_day_tax_te_created_id_fkey" table="fiscal_day_tax" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="fiscal_day_tax_te_modified_id_fkey" table="fiscal_day_tax" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="fiscal_sale_history_te_created_id_fkey" table="fiscal_sale_history" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="fiscal_sale_history_te_modified_id_fkey" table="fiscal_sale_history" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="installed_plugin_te_created_id_fkey" table="installed_plugin" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="installed_plugin_te_modified_id_fkey" table="installed_plugin" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="inventory_te_created_id_fkey" table="inventory" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="inventory_te_modified_id_fkey" table="inventory" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="inventory_item_te_created_id_fkey" table="inventory_item" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="inventory_item_te_modified_id_fkey" table="inventory_item" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="invoice_field_te_created_id_fkey" table="invoice_field" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="invoice_field_te_modified_id_fkey" table="invoice_field" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="invoice_layout_te_created_id_fkey" table="invoice_layout" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="invoice_layout_te_modified_id_fkey" table="invoice_layout" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="invoice_printer_te_created_id_fkey" table="invoice_printer" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="invoice_printer_te_modified_id_fkey" table="invoice_printer" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="liaison_te_created_id_fkey" table="liaison" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="liaison_te_modified_id_fkey" table="liaison" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="military_data_te_created_id_fkey" table="military_data" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="military_data_te_modified_id_fkey" table="military_data" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="on_sale_info_te_created_id_fkey" table="on_sale_info" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="on_sale_info_te_modified_id_fkey" table="on_sale_info" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="parameter_data_te_created_id_fkey" table="parameter_data" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="parameter_data_te_modified_id_fkey" table="parameter_data" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_te_created_id_fkey" table="payment" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_te_modified_id_fkey" table="payment" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_adapt_to_in_payment_te_created_id_fkey" table="payment_adapt_to_in_payment" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_adapt_to_in_payment_te_modified_id_fkey" table="payment_adapt_to_in_payment" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_adapt_to_out_payment_te_created_id_fkey" table="payment_adapt_to_out_payment" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_adapt_to_out_payment_te_modified_id_fkey" table="payment_adapt_to_out_payment" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_category_te_created_id_fkey" table="payment_category" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_category_te_modified_id_fkey" table="payment_category" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_change_history_te_created_id_fkey" table="payment_change_history" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_change_history_te_modified_id_fkey" table="payment_change_history" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_destination_te_created_id_fkey" table="payment_destination" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_destination_te_modified_id_fkey" table="payment_destination" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_group_te_created_id_fkey" table="payment_group" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_group_te_modified_id_fkey" table="payment_group" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_method_te_created_id_fkey" table="payment_method" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_method_te_modified_id_fkey" table="payment_method" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_renegotiation_te_created_id_fkey" table="payment_renegotiation" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="payment_renegotiation_te_modified_id_fkey" table="payment_renegotiation" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_te_created_id_fkey" table="person" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_te_modified_id_fkey" table="person" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_bank_branch_te_created_id_fkey" table="person_adapt_to_bank_branch" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_bank_branch_te_modified_id_fkey" table="person_adapt_to_bank_branch" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_branch_te_created_id_fkey" table="person_adapt_to_branch" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_branch_te_modified_id_fkey" table="person_adapt_to_branch" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_client_te_created_id_fkey" table="person_adapt_to_client" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_client_te_modified_id_fkey" table="person_adapt_to_client" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_company_te_created_id_fkey" table="person_adapt_to_company" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_company_te_modified_id_fkey" table="person_adapt_to_company" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_credit_provider_te_created_id_fkey" table="person_adapt_to_credit_provider" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_credit_provider_te_modified_id_fkey" table="person_adapt_to_credit_provider" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_employee_te_created_id_fkey" table="person_adapt_to_employee" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_employee_te_modified_id_fkey" table="person_adapt_to_employee" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_individual_te_created_id_fkey" table="person_adapt_to_individual" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_individual_te_modified_id_fkey" table="person_adapt_to_individual" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_sales_person_te_created_id_fkey" table="person_adapt_to_sales_person" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_sales_person_te_modified_id_fkey" table="person_adapt_to_sales_person" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_supplier_te_created_id_fkey" table="person_adapt_to_supplier" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_supplier_te_modified_id_fkey" table="person_adapt_to_supplier" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_transporter_te_created_id_fkey" table="person_adapt_to_transporter" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_transporter_te_modified_id_fkey" table="person_adapt_to_transporter" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_user_te_created_id_fkey" table="person_adapt_to_user" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="person_adapt_to_user_te_modified_id_fkey" table="person_adapt_to_user" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_te_created_id_fkey" table="product" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_te_modified_id_fkey" table="product" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_adapt_to_storable_te_created_id_fkey" table="product_adapt_to_storable" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_adapt_to_storable_te_modified_id_fkey" table="product_adapt_to_storable" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_component_te_created_id_fkey" table="product_component" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_component_te_modified_id_fkey" table="product_component" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_history_te_created_id_fkey" table="product_history" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_history_te_modified_id_fkey" table="product_history" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_retention_history_te_created_id_fkey" table="product_retention_history" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_retention_history_te_modified_id_fkey" table="product_retention_history" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_stock_item_te_created_id_fkey" table="product_stock_item" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_stock_item_te_modified_id_fkey" table="product_stock_item" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_supplier_info_te_created_id_fkey" table="product_supplier_info" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="product_supplier_info_te_modified_id_fkey" table="product_supplier_info" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="profile_settings_te_created_id_fkey" table="profile_settings" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="profile_settings_te_modified_id_fkey" table="profile_settings" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="purchase_item_te_created_id_fkey" table="purchase_item" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="purchase_item_te_modified_id_fkey" table="purchase_item" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="purchase_order_te_created_id_fkey" table="purchase_order" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="purchase_order_te_modified_id_fkey" table="purchase_order" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="quotation_te_created_id_fkey" table="quotation" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="quotation_te_modified_id_fkey" table="quotation" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="quote_group_te_created_id_fkey" table="quote_group" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="quote_group_te_modified_id_fkey" table="quote_group" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="receiving_order_te_created_id_fkey" table="receiving_order" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="receiving_order_te_modified_id_fkey" table="receiving_order" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="receiving_order_item_te_created_id_fkey" table="receiving_order_item" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="receiving_order_item_te_modified_id_fkey" table="receiving_order_item" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="renegotiation_data_te_created_id_fkey" table="renegotiation_data" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="renegotiation_data_te_modified_id_fkey" table="renegotiation_data" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sale_te_created_id_fkey" table="sale" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sale_te_modified_id_fkey" table="sale" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sale_item_te_created_id_fkey" table="sale_item" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sale_item_te_modified_id_fkey" table="sale_item" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sale_item_adapt_to_delivery_te_created_id_fkey" table="sale_item_adapt_to_delivery" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sale_item_adapt_to_delivery_te_modified_id_fkey" table="sale_item_adapt_to_delivery" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sellable_te_created_id_fkey" table="sellable" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sellable_te_modified_id_fkey" table="sellable" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sellable_category_te_created_id_fkey" table="sellable_category" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sellable_category_te_modified_id_fkey" table="sellable_category" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sellable_tax_constant_te_created_id_fkey" table="sellable_tax_constant" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sellable_tax_constant_te_modified_id_fkey" table="sellable_tax_constant" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sellable_unit_te_created_id_fkey" table="sellable_unit" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="sellable_unit_te_modified_id_fkey" table="sellable_unit" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="service_te_created_id_fkey" table="service" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="service_te_modified_id_fkey" table="service" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="till_te_created_id_fkey" table="till" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="till_te_modified_id_fkey" table="till" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="till_entry_te_created_id_fkey" table="till_entry" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="till_entry_te_modified_id_fkey" table="till_entry" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="transfer_order_te_created_id_fkey" table="transfer_order" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="transfer_order_te_modified_id_fkey" table="transfer_order" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="transfer_order_item_te_created_id_fkey" table="transfer_order_item" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="transfer_order_item_te_modified_id_fkey" table="transfer_order_item" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="user_profile_te_created_id_fkey" table="user_profile" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="user_profile_te_modified_id_fkey" table="user_profile" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="voter_data_te_created_id_fkey" table="voter_data" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="voter_data_te_modified_id_fkey" table="voter_data" column="te_modified_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="work_permit_data_te_created_id_fkey" table="work_permit_data" column="te_created_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="work_permit_data_te_modified_id_fkey" table="work_permit_data" column="te_modified_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_time" type="timestamp" size="29" digits="6" nullable="false" autoUpdated="false" remarks=""/>
      <column id="2" name="user_id" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="transaction_entry_user_id_fkey" table="person_adapt_to_user" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="station_id" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="transaction_entry_station_id_fkey" table="branch_station" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="4" name="type" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="transaction_entry_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="transfer_order" numRows="1" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;transfer_order_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="transfer_order_item_transfer_order_id_fkey" table="transfer_order_item" column="transfer_order_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="transfer_order_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="transfer_order_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="open_date" type="timestamp" size="29" digits="6" nullable="false" autoUpdated="false" remarks=""/>
      <column id="4" name="receival_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="status" type="int4" size="10" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="source_branch_id" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks="">
        <parent foreignKey="transfer_order_source_branch_id_fkey" table="person_adapt_to_branch" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="7" name="destination_branch_id" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks="">
        <parent foreignKey="transfer_order_destination_branch_id_fkey" table="person_adapt_to_branch" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="8" name="source_responsible_id" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks="">
        <parent foreignKey="transfer_order_source_responsible_id_fkey" table="person_adapt_to_employee" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="9" name="destination_responsible_id" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks="">
        <parent foreignKey="transfer_order_destination_responsible_id_fkey" table="person_adapt_to_employee" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="transfer_order_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="transfer_order_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="transfer_order_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="transfer_order_item" numRows="10" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;transfer_order_item_id_seq&apos;::regclass)" remarks=""/>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="transfer_order_item_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="transfer_order_item_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="sellable_id" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks="">
        <parent foreignKey="transfer_order_item_sellable_id_fkey" table="sellable" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="4" name="transfer_order_id" type="int8" size="19" digits="0" nullable="false" autoUpdated="false" remarks="">
        <parent foreignKey="transfer_order_item_transfer_order_id_fkey" table="transfer_order" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="5" name="quantity" type="numeric" size="10" digits="2" nullable="false" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="transfer_order_item_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="transfer_order_item_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="transfer_order_item_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="user_profile" numRows="3" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;user_profile_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="person_adapt_to_user_profile_id_fkey" table="person_adapt_to_user" column="profile_id" implied="false" onDeleteCascade="false"/>
        <child foreignKey="profile_settings_user_profile_id_fkey" table="profile_settings" column="user_profile_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="user_profile_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="user_profile_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="name" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="user_profile_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="user_profile_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="user_profile_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="voter_data" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;voter_data_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="person_adapt_to_employee_voter_data_id_fkey" table="person_adapt_to_employee" column="voter_data_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="voter_data_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="voter_data_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="number" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="section" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="zone" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="voter_data_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="voter_data_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="voter_data_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
    <table schema="public" name="work_permit_data" numRows="0" type="TABLE" remarks="">
      <column id="0" name="id" type="bigserial" size="19" digits="0" nullable="false" autoUpdated="true" defaultValue="nextval(&apos;work_permit_data_id_seq&apos;::regclass)" remarks="">
        <child foreignKey="person_adapt_to_employee_workpermit_data_id_fkey" table="person_adapt_to_employee" column="workpermit_data_id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="1" name="te_created_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="work_permit_data_te_created_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="2" name="te_modified_id" type="int8" size="19" digits="0" nullable="true" autoUpdated="false" remarks="">
        <parent foreignKey="work_permit_data_te_modified_id_fkey" table="transaction_entry" column="id" implied="false" onDeleteCascade="false"/>
      </column>
      <column id="3" name="number" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="4" name="series_number" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="5" name="pis_number" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="6" name="pis_bank" type="text" size="2147483647" digits="0" nullable="true" autoUpdated="false" remarks=""/>
      <column id="7" name="pis_registry_date" type="timestamp" size="29" digits="6" nullable="true" autoUpdated="false" remarks=""/>
      <primaryKey column="id" sequenceNumberInPK="1"/>
      <index name="work_permit_data_pkey" unique="true">
        <column name="id" ascending="true"/>
      </index>
      <index name="work_permit_data_te_created_id_key" unique="true">
        <column name="te_created_id" ascending="true"/>
      </index>
      <index name="work_permit_data_te_modified_id_key" unique="true">
        <column name="te_modified_id" ascending="true"/>
      </index>
    </table>
  </tables>
</database>
