<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<database name="fineract_default" schema="public" type="PostgreSQL - 18.4 (Debian 18.4-1.pgdg13+1)">
   <sequences>
      <sequence increment="1" name="batch_job_execution_seq" startValue="1"/>
      <sequence increment="1" name="batch_job_seq" startValue="1"/>
      <sequence increment="1" name="batch_step_execution_seq" startValue="1"/>
   </sequences>
   <tables>
      <table catalog="fineract_default" name="acc_accounting_rule" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="acc_rule_id" foreignKey="FK_acc_accounting_rule_id" implied="false" onDeleteCascade="false" schema="public" table="acc_rule_tags"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="office_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_acc_accounting_rule_m_office" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="debit_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_acc_accounting_rule_acc_gl_account_debit" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_account"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="allow_multiple_debits" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="credit_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_acc_accounting_rule_acc_gl_account_credit" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_account"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="allow_multiple_credits" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="description" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="8" name="system_defined" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="acc_accounting_rule_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="acc_accounting_rule_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <index name="FK_acc_accounting_rule_acc_gl_account_credit" unique="false">
            <column ascending="true" name="credit_account_id"/>
         </index>
         <index name="FK_acc_accounting_rule_acc_gl_account_debit" unique="false">
            <column ascending="true" name="debit_account_id"/>
         </index>
         <index name="FK_acc_accounting_rule_m_office" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="acc_gl_account" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="credit_account_id" foreignKey="FK_acc_accounting_rule_acc_gl_account_credit" implied="false" onDeleteCascade="false" schema="public" table="acc_accounting_rule"/>
            <child catalog="fineract_default" column="debit_account_id" foreignKey="FK_acc_accounting_rule_acc_gl_account_debit" implied="false" onDeleteCascade="false" schema="public" table="acc_accounting_rule"/>
            <child catalog="fineract_default" column="parent_id" foreignKey="fk_acc_0000000001" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_account"/>
            <child catalog="fineract_default" column="gl_account_id" foreignKey="FK_office_mapping_acc_gl_account" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_financial_activity_account"/>
            <child catalog="fineract_default" column="account_id" foreignKey="FK_acc_gl_journal_entry_acc_gl_account" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_journal_entry"/>
            <child catalog="fineract_default" column="gl_account_id" foreignKey="FK_acc_product_mapping_gl_account_id" implied="false" onDeleteCascade="false" schema="public" table="acc_product_mapping"/>
            <child catalog="fineract_default" column="income_or_liability_account_id" foreignKey="FK_m_charge_acc_gl_account" implied="false" onDeleteCascade="false" schema="public" table="m_charge"/>
            <child catalog="fineract_default" column="gl_account_id" foreignKey="fk_gl_journal_entry_aggregation_summary_on_gl_account_id" implied="false" onDeleteCascade="false" schema="public" table="m_journal_entry_aggregation_summary"/>
            <child catalog="fineract_default" column="expense_account" foreignKey="m_loanproduct_provisioning_entry_ibfk_7" implied="false" onDeleteCascade="false" schema="public" table="m_loanproduct_provisioning_entry"/>
            <child catalog="fineract_default" column="liability_account" foreignKey="m_loanproduct_provisioning_entry_ibfk_6" implied="false" onDeleteCascade="false" schema="public" table="m_loanproduct_provisioning_entry"/>
            <child catalog="fineract_default" column="expense_account" foreignKey="m_provisioning_criteria_definition_ibfk_4" implied="false" onDeleteCascade="false" schema="public" table="m_provisioning_criteria_definition"/>
            <child catalog="fineract_default" column="liability_account" foreignKey="m_provisioning_criteria_definition_ibfk_3" implied="false" onDeleteCascade="false" schema="public" table="m_provisioning_criteria_definition"/>
            <child catalog="fineract_default" column="credit_account_id" foreignKey="FK_tax_component_credit_gl_account" implied="false" onDeleteCascade="false" schema="public" table="m_tax_component"/>
            <child catalog="fineract_default" column="debit_account_id" foreignKey="FK_tax_component_debit_gl_account" implied="false" onDeleteCascade="false" schema="public" table="m_tax_component"/>
            <child catalog="fineract_default" column="credit_account_id" foreignKey="FK_m_tellers_gl_account_credit_account_id" implied="false" onDeleteCascade="false" schema="public" table="m_tellers"/>
            <child catalog="fineract_default" column="debit_account_id" foreignKey="FK_m_tellers_gl_account_debit_account_id" implied="false" onDeleteCascade="false" schema="public" table="m_tellers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="parent_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_acc_0000000001" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="hierarchy" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="gl_code" nullable="false" remarks="" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="disabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="6" name="manual_journal_entries_allowed" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="2" digits="0" id="7" name="account_usage" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="classification_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="tag_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="fkglacc000000002" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="description" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="acc_gl_account_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="acc_gl_account_gl_code_key" unique="true">
            <column ascending="true" name="gl_code"/>
         </index>
         <index name="fk_acc_0000000001" unique="false">
            <column ascending="true" name="parent_id"/>
         </index>
         <index name="fkglacc000000002" unique="false">
            <column ascending="true" name="tag_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="acc_gl_closure" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="office_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_acc_gl_closure_m_office" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="closing_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="is_deleted" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="createdby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_acc_gl_closure_m_appuser" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="lastmodifiedby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_acc_gl_closure_m_appuser_2" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="comments" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="acc_gl_closure_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_acc_gl_closure_m_appuser" unique="false">
            <column ascending="true" name="createdby_id"/>
         </index>
         <index name="FK_acc_gl_closure_m_appuser_2" unique="false">
            <column ascending="true" name="lastmodifiedby_id"/>
         </index>
         <index name="FK_acc_gl_closure_m_office" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="office_id_closing_date" unique="true">
            <column ascending="true" name="office_id"/>
            <column ascending="true" name="closing_date"/>
         </index>
      </table>
      <table catalog="fineract_default" name="acc_gl_financial_activity_account" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="1" name="gl_account_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_office_mapping_acc_gl_account" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="financial_activity_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="acc_gl_financial_activity_account_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="acc_gl_financial_activity_account_financial_activity_type_key" unique="true">
            <column ascending="true" name="financial_activity_type"/>
         </index>
         <index name="FK_office_mapping_acc_gl_account" unique="false">
            <column ascending="true" name="gl_account_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="acc_gl_journal_entry" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="reversal_id" foreignKey="FK_acc_gl_journal_entry_acc_gl_journal_entry" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_journal_entry"/>
            <child catalog="fineract_default" column="journal_entry_id" foreignKey="FK_ext_asset_owner_je_mapping_journal_entry_id" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_journal_entry_mapping"/>
            <child catalog="fineract_default" column="journal_entry_id" foreignKey="FK_ext_asset_owner_transfer_je_mapping_journal_entry_id" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_transfer_journal_entry_mapping"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="account_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_acc_gl_journal_entry_acc_gl_account" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="office_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_acc_gl_journal_entry_m_office" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="reversal_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_acc_gl_journal_entry_acc_gl_journal_entry" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_journal_entry"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="currency_code" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="transaction_id" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="loan_transaction_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_acc_gl_journal_entry_m_loan_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="savings_transaction_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_acc_gl_journal_entry_m_savings_account_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="client_transaction_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_acc_gl_journal_entry_m_client_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_client_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="9" name="reversed" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="ref_num" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="11" name="manual_entry" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="entry_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="description" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="entity_type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="entity_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_journal_entry_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_journal_entry_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="20" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="21" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="22" name="is_running_balance_calculated" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="23" name="office_running_balance" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="24" name="organization_running_balance" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="payment_details_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_acc_gl_journal_entry_m_payment_detail" implied="false" onDeleteCascade="false" schema="public" table="m_payment_detail"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="share_transaction_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_acc_gl_journal_entry_m_share_account_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_share_account_transactions"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="transaction_date" nullable="true" remarks="Unfinished. Not maintained." size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="28" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="29" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="submitted_on_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="acc_gl_journal_entry_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_acc_gl_journal_entry_acc_gl_account" unique="false">
            <column ascending="true" name="account_id"/>
         </index>
         <index name="FK_acc_gl_journal_entry_acc_gl_journal_entry" unique="false">
            <column ascending="true" name="reversal_id"/>
         </index>
         <index name="FK_acc_gl_journal_entry_m_appuser" unique="false">
            <column ascending="true" name="created_by"/>
         </index>
         <index name="FK_acc_gl_journal_entry_m_appuser_2" unique="false">
            <column ascending="true" name="last_modified_by"/>
         </index>
         <index name="FK_acc_gl_journal_entry_m_client_transaction" unique="false">
            <column ascending="true" name="client_transaction_id"/>
         </index>
         <index name="FK_acc_gl_journal_entry_m_loan_transaction" unique="false">
            <column ascending="true" name="loan_transaction_id"/>
         </index>
         <index name="FK_acc_gl_journal_entry_m_office" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="FK_acc_gl_journal_entry_m_payment_detail" unique="false">
            <column ascending="true" name="payment_details_id"/>
         </index>
         <index name="FK_acc_gl_journal_entry_m_savings_account_transaction" unique="false">
            <column ascending="true" name="savings_transaction_id"/>
         </index>
         <index name="FK_acc_gl_journal_entry_m_share_account_transaction" unique="false">
            <column ascending="true" name="share_transaction_id"/>
         </index>
         <index name="FK_acc_gl_journal_entry_submitted_on_date" unique="false">
            <column ascending="true" name="submitted_on_date"/>
         </index>
         <index name="idx_acc_gl_journal_entry_transaction_id" unique="false">
            <column ascending="true" name="transaction_id"/>
         </index>
         <index name="transaction_date_index" unique="false">
            <column ascending="true" name="transaction_date"/>
         </index>
      </table>
      <table catalog="fineract_default" name="acc_gl_journal_entry_annual_summary" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="gl_code" nullable="false" remarks="" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="office_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="opening_balance_amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="currency_code" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="owner_external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="7" name="manual_entry" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="year_end_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="created_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_annual_report_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="created_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="last_modified_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_annual_report_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="last_modified_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="originator_external_ids" nullable="true" remarks="" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="product_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="pk_acc_gl_journal_entry_annual_summary" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="acc_gl_journal_entry_annual_summary_idx_1" unique="false">
            <column ascending="true" name="gl_code"/>
            <column ascending="true" name="product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="acc_product_mapping" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="gl_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_acc_product_mapping_gl_account_id" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="product_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="product_type" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="payment_type" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_acc_product_mapping_m_payment_type" implied="false" onDeleteCascade="false" schema="public" table="m_payment_type"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="charge_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_acc_product_mapping_m_charge" implied="false" onDeleteCascade="false" schema="public" table="m_charge"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="financial_account_type" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="charge_off_reason_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="fk_acc_product_mapping_charge_off_reason" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="capitalized_income_classification_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="fk_acc_product_mapping_capitalized_income_classification" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="buydown_fee_classification_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="fk_acc_product_mapping_buydown_fee_classification" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="write_off_reason_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="acc_product_mapping_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_acc_product_mapping_m_charge" unique="false">
            <column ascending="true" name="charge_id"/>
         </index>
         <index name="FK_acc_product_mapping_m_payment_type" unique="false">
            <column ascending="true" name="payment_type"/>
         </index>
         <index name="IND_acc_product_mapping_product_id" unique="false">
            <column ascending="true" name="product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="acc_rule_tags" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="acc_rule_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_acc_accounting_rule_id" implied="false" onDeleteCascade="false" schema="public" table="acc_accounting_rule"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="tag_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_code_value_id" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="acc_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="acc_rule_tags_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_acc_accounting_rule_id" unique="false">
            <column ascending="true" name="acc_rule_id"/>
         </index>
         <index name="FK_m_code_value_id" unique="false">
            <column ascending="true" name="tag_id"/>
         </index>
         <index name="unique_account_rule_tags" unique="true">
            <column ascending="true" name="acc_rule_id"/>
            <column ascending="true" name="tag_id"/>
            <column ascending="true" name="acc_type_enum"/>
         </index>
      </table>
      <table catalog="fineract_default" name="batch_custom_job_parameters" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="parameter_json" nullable="false" remarks="" size="2147483647" type="json" typeCode="1111"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="batch_custom_job_parameters_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="batch_job_execution" numRows="428" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="job_execution_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="job_execution_id" foreignKey="job_exec_ctx_fk" implied="false" onDeleteCascade="false" schema="public" table="batch_job_execution_context"/>
            <child catalog="fineract_default" column="job_execution_id" foreignKey="job_exec_params_fk" implied="false" onDeleteCascade="false" schema="public" table="batch_job_execution_params"/>
            <child catalog="fineract_default" column="job_execution_id" foreignKey="job_exec_step_fk" implied="false" onDeleteCascade="false" schema="public" table="batch_step_execution"/>
            <child catalog="fineract_default" column="job_execution_id" foreignKey="fk_gl_journal_entry_aggregation_summary_on_job_execution_id" implied="false" onDeleteCascade="false" schema="public" table="m_journal_entry_aggregation_summary"/>
            <child catalog="fineract_default" column="job_execution_id" foreignKey="fk_gl_journal_entry_aggregation_tracking_on_job_execution_id" implied="false" onDeleteCascade="false" schema="public" table="m_journal_entry_aggregation_tracking"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="version" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="job_instance_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="job_instance_id" foreignKey="job_inst_exec_fk" implied="false" onDeleteCascade="false" schema="public" table="batch_job_instance"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="create_time" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="start_time" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="end_time" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="status" nullable="true" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="exit_code" nullable="true" remarks="" size="2500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="exit_message" nullable="true" remarks="" size="2500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="last_updated" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="job_execution_id" sequenceNumberInPK="1"/>
         <index name="batch_job_execution_pkey" unique="true">
            <column ascending="true" name="job_execution_id"/>
         </index>
         <index name="idx_batch_job_execution_job_instance_id" unique="false">
            <column ascending="true" name="job_instance_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="batch_job_execution_context" numRows="412" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="job_execution_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="job_execution_id" foreignKey="job_exec_ctx_fk" implied="false" onDeleteCascade="false" schema="public" table="batch_job_execution"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="short_context" nullable="false" remarks="" size="2500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="serialized_context" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="job_execution_id" sequenceNumberInPK="1"/>
         <index name="batch_job_execution_context_pkey" unique="true">
            <column ascending="true" name="job_execution_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="batch_job_execution_params" numRows="398" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="job_execution_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="job_execution_id" foreignKey="job_exec_params_fk" implied="false" onDeleteCascade="false" schema="public" table="batch_job_execution"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="parameter_type" nullable="false" remarks="" size="100" type="varchar" typeCode="12">
            <parent catalog="fineract_default" column="type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_external_event_configuration"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="parameter_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="parameter_value" nullable="true" remarks="" size="2500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="identifying" nullable="false" remarks="" size="1" type="bpchar" typeCode="1"/>
         <index name="ind_batch_job_execution_params" unique="false">
            <column ascending="true" name="job_execution_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="batch_job_instance" numRows="398" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="job_instance_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="job_instance_id" foreignKey="job_inst_exec_fk" implied="false" onDeleteCascade="false" schema="public" table="batch_job_execution"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="version" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="job_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="job_key" nullable="false" remarks="" size="32" type="varchar" typeCode="12"/>
         <primaryKey column="job_instance_id" sequenceNumberInPK="1"/>
         <index name="batch_job_instance_pkey" unique="true">
            <column ascending="true" name="job_instance_id"/>
         </index>
         <index name="job_inst_un" unique="true">
            <column ascending="true" name="job_name"/>
            <column ascending="true" name="job_key"/>
         </index>
      </table>
      <table catalog="fineract_default" name="batch_step_execution" numRows="424" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="step_execution_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="step_execution_id" foreignKey="step_exec_ctx_fk" implied="false" onDeleteCascade="false" schema="public" table="batch_step_execution_context"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="version" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="step_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="job_execution_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="job_execution_id" foreignKey="job_exec_step_fk" implied="false" onDeleteCascade="false" schema="public" table="batch_job_execution"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="start_time" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="end_time" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="status" nullable="true" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="commit_count" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="read_count" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="filter_count" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="write_count" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="read_skip_count" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="write_skip_count" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="process_skip_count" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="rollback_count" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="exit_code" nullable="true" remarks="" size="2500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="exit_message" nullable="true" remarks="" size="2500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="17" name="last_updated" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="'1970-01-01 00:00:00'::timestamp without time zone" digits="6" id="18" name="create_time" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="step_execution_id" sequenceNumberInPK="1"/>
         <index name="batch_step_execution_pkey" unique="true">
            <column ascending="true" name="step_execution_id"/>
         </index>
         <index name="idx_batch_step_execution_step_name_job_execution_id" unique="false">
            <column ascending="true" name="job_execution_id"/>
            <column ascending="true" name="step_name"/>
            <column ascending="true" name="start_time"/>
         </index>
      </table>
      <table catalog="fineract_default" name="batch_step_execution_context" numRows="428" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="step_execution_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="step_execution_id" foreignKey="step_exec_ctx_fk" implied="false" onDeleteCascade="false" schema="public" table="batch_step_execution"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="short_context" nullable="false" remarks="" size="2500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="serialized_context" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="step_execution_id" sequenceNumberInPK="1"/>
         <index name="batch_step_execution_context_pkey" unique="true">
            <column ascending="true" name="step_execution_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="c_account_number_format" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="account_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="prefix_type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="prefix_character" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="c_account_number_format_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="c_account_number_format_account_type_enum_key" unique="true">
            <column ascending="true" name="account_type_enum"/>
         </index>
      </table>
      <table catalog="fineract_default" name="c_cache" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="1" name="cache_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="c_cache_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="c_configuration" numRows="79" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="value" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="date_value" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="string_value" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="enabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="is_trap_door" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="description" nullable="true" remarks="" size="300" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="c_configuration_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="c_configuration_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="c_external_service" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="external_service_id" foreignKey="FK_c_external_service_properties_c_external_service" implied="false" onDeleteCascade="false" schema="public" table="c_external_service_properties"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="c_external_service_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="c_external_service_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="c_external_service_properties" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="false" remarks="" size="150" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="value" nullable="true" remarks="" size="250" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="external_service_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_c_external_service_properties_c_external_service" implied="false" onDeleteCascade="false" schema="public" table="c_external_service"/>
         </column>
         <index name="FK_c_external_service_properties_c_external_service" unique="false">
            <column ascending="true" name="external_service_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="databasechangelog" numRows="2065" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="author" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="filename" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="dateexecuted" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="orderexecuted" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="exectype" nullable="false" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="md5sum" nullable="true" remarks="" size="35" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="description" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="comments" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="tag" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="liquibase" nullable="true" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="contexts" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="labels" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="deployment_id" nullable="true" remarks="" size="10" type="varchar" typeCode="12"/>
      </table>
      <table catalog="fineract_default" name="databasechangeloglock" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="locked" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="lockgranted" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="lockedby" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="databasechangeloglock_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="glim_accounts" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="glim_id" foreignKey="FK_glim_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="0" digits="0" id="1" name="group_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_group_id" implied="false" onDeleteCascade="false" schema="public" table="m_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="account_number" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="3" name="principal_amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="child_accounts_count" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="accepting_child" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="6" name="loan_status_id" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="7" name="application_id" nullable="true" remarks="" size="10" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="glim_accounts_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_group_id" unique="false">
            <column ascending="true" name="group_id"/>
         </index>
         <index name="glim_accounts_account_number_key" unique="true">
            <column ascending="true" name="account_number"/>
         </index>
      </table>
      <table catalog="fineract_default" name="gsim_accounts" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="gsim_id" foreignKey="FK_gsim_id" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
         </column>
         <column autoUpdated="false" defaultValue="0" digits="0" id="1" name="group_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_gsim_group_id" implied="false" onDeleteCascade="false" schema="public" table="m_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="account_number" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="3" name="parent_deposit" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="child_accounts_count" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="accepting_child" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="6" name="savings_status_id" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="7" name="application_id" nullable="true" remarks="" size="10" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="gsim_accounts_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_gsim_group_id" unique="false">
            <column ascending="true" name="group_id"/>
         </index>
         <index name="gsim_accounts_account_number_key" unique="true">
            <column ascending="true" name="account_number"/>
         </index>
      </table>
      <table catalog="fineract_default" name="interop_identifier" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="account_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_interop_identifier_account" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="type" nullable="false" remarks="" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="a_value" nullable="false" remarks="" size="128" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="sub_value_or_type" nullable="true" remarks="" size="128" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="created_by" nullable="false" remarks="" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="6" name="created_on" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="modified_by" nullable="true" remarks="" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="modified_on" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="interop_identifier_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_interop_identifier_account" unique="false">
            <column ascending="true" name="account_id"/>
         </index>
         <index name="uk_interop_identifier_account" unique="true">
            <column ascending="true" name="account_id"/>
            <column ascending="true" name="type"/>
         </index>
         <index name="uk_interop_identifier_value" unique="true">
            <column ascending="true" name="type"/>
            <column ascending="true" name="a_value"/>
            <column ascending="true" name="sub_value_or_type"/>
         </index>
      </table>
      <table catalog="fineract_default" name="job" numRows="41" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="job_id" foreignKey="FK_job_id" implied="false" onDeleteCascade="false" schema="public" table="job_parameters"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="display_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="cron_expression" nullable="false" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="create_time" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="5" digits="0" id="5" name="task_priority" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="group_name" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="previous_run_start_time" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="next_run_time" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="job_key" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="initializing_errorlog" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="11" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="12" name="currently_running" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="13" name="updates_allowed" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="14" name="scheduler_group" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="15" name="is_misfired" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="node_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="17" name="is_mismatched_job" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="short_name" nullable="false" remarks="" size="8" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="job_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="job_short_name_key" unique="true">
            <column ascending="true" name="short_name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="job_parameters" numRows="5" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="job_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_job_id" implied="false" onDeleteCascade="false" schema="public" table="job"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="parameter_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="parameter_value" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="job_parameters_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_job_id" unique="false">
            <column ascending="true" name="job_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="job_run_history" numRows="398" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="job_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="version" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="start_time" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="end_time" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="status" nullable="false" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="error_message" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="trigger_type" nullable="false" remarks="" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="error_log" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="job_run_history_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="scheduledjobsFK" unique="false">
            <column ascending="true" name="job_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_account_transfer_details" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="account_transfer_details_id" foreignKey="FK_m_standing_instructions_account_transfer_details" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_standing_instructions"/>
            <child catalog="fineract_default" column="account_transfer_details_id" foreignKey="FK_m_account_transfer_transaction_account_detail" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_transaction"/>
            <child catalog="fineract_default" column="account_transfer_details_id" foreignKey="m_loan_topup_FK_account_transfer_details_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_topup"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="from_office_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_account_transfer_details_from_office" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="to_office_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_account_transfer_details_to_office" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="from_client_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_account_transfer_details_from_client" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="to_client_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_account_transfer_details_to_client" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="from_savings_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_account_transfer_details_from_savings_account" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="to_savings_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_account_transfer_details_to_savings_account" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="from_loan_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_account_transfer_details_from_loan_account" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="to_loan_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_account_transfer_details_to_loan_account" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="transfer_type" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_account_transfer_details_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_account_transfer_details_from_client" unique="false">
            <column ascending="true" name="from_client_id"/>
         </index>
         <index name="FK_m_account_transfer_details_from_loan_account" unique="false">
            <column ascending="true" name="from_loan_account_id"/>
         </index>
         <index name="FK_m_account_transfer_details_from_office" unique="false">
            <column ascending="true" name="from_office_id"/>
         </index>
         <index name="FK_m_account_transfer_details_from_savings_account" unique="false">
            <column ascending="true" name="from_savings_account_id"/>
         </index>
         <index name="FK_m_account_transfer_details_to_client" unique="false">
            <column ascending="true" name="to_client_id"/>
         </index>
         <index name="FK_m_account_transfer_details_to_loan_account" unique="false">
            <column ascending="true" name="to_loan_account_id"/>
         </index>
         <index name="FK_m_account_transfer_details_to_office" unique="false">
            <column ascending="true" name="to_office_id"/>
         </index>
         <index name="FK_m_account_transfer_details_to_savings_account" unique="false">
            <column ascending="true" name="to_savings_account_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_account_transfer_standing_instructions" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="standing_instruction_id" foreignKey="FK_m_account_transfer_standing_instructions_m_history" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_standing_instructions_history"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="250" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="account_transfer_details_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_standing_instructions_account_transfer_details" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_details"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="priority" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="status" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="instruction_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="6" name="amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="valid_from" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="valid_till" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="recurrence_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="recurrence_frequency" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="recurrence_interval" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="recurrence_on_day" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="recurrence_on_month" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="last_run_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_account_transfer_standing_instructions_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_standing_instructions_account_transfer_details" unique="false">
            <column ascending="true" name="account_transfer_details_id"/>
         </index>
         <index name="m_account_transfer_standing_instructions_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_account_transfer_standing_instructions_history" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="standing_instruction_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_account_transfer_standing_instructions_m_history" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_standing_instructions"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="status" nullable="false" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="execution_time" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="error_log" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_account_transfer_standing_instructions_history_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_account_transfer_standing_instructions_history" unique="false">
            <column ascending="true" name="standing_instruction_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_account_transfer_transaction" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="account_transfer_details_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_account_transfer_transaction_account_detail" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_details"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="from_savings_transaction_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_account_transfer_transaction_from_m_savings_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="from_loan_transaction_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_account_transfer_transaction_from_m_loan_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="to_savings_transaction_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_account_transfer_transaction_to_m_savings_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="to_loan_transaction_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_account_transfer_transaction_to_m_loan_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="is_reversed" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="transaction_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="currency_code" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="currency_digits" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="currency_multiplesof" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="description" nullable="false" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="payment_detail_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_account_transfer_transaction_m_payment_detail" implied="false" onDeleteCascade="false" schema="public" table="m_payment_detail"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_account_transfer_transaction_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_account_transfer_transaction_account_detail" unique="false">
            <column ascending="true" name="account_transfer_details_id"/>
         </index>
         <index name="FK_m_account_transfer_transaction_from_m_loan_transaction" unique="false">
            <column ascending="true" name="from_loan_transaction_id"/>
         </index>
         <index name="FK_m_account_transfer_transaction_from_m_savings_transaction" unique="false">
            <column ascending="true" name="from_savings_transaction_id"/>
         </index>
         <index name="FK_m_account_transfer_transaction_m_payment_detail" unique="false">
            <column ascending="true" name="payment_detail_id"/>
         </index>
         <index name="FK_m_account_transfer_transaction_to_m_loan_transaction" unique="false">
            <column ascending="true" name="to_loan_transaction_id"/>
         </index>
         <index name="FK_m_account_transfer_transaction_to_m_savings_transaction" unique="false">
            <column ascending="true" name="to_savings_transaction_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_address" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="street" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="address_line_1" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="address_line_2" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="address_line_3" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="town_village" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="city" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="county_district" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="state_province_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="address_fields_codefk1" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="country_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="address_fields_codefk2" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="postal_code" nullable="true" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0.00000000" digits="8" id="11" name="latitude" nullable="true" remarks="" size="10" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0.00000000" digits="8" id="12" name="longitude" nullable="true" remarks="" size="10" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="created_by" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="created_on" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="updated_by" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="updated_on" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_address_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="address_fields_codefk1" unique="false">
            <column ascending="true" name="state_province_id"/>
         </index>
         <index name="address_fields_codefk2" unique="false">
            <column ascending="true" name="country_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_adhoc" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="query" nullable="true" remarks="" size="2000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="table_name" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="table_fields" nullable="true" remarks="" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="email" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="createdby_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="createdby_id" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="lastmodifiedby_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="lastmodifiedby_id" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="report_run_frequency_code" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="report_run_every" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="last_run" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_adhoc_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="createdby_id" unique="false">
            <column ascending="true" name="createdby_id"/>
         </index>
         <index name="lastmodifiedby_id" unique="false">
            <column ascending="true" name="lastmodifiedby_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_appuser" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="createdby_id" foreignKey="FK_acc_gl_closure_m_appuser" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_closure"/>
            <child catalog="fineract_default" column="lastmodifiedby_id" foreignKey="FK_acc_gl_closure_m_appuser_2" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_closure"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_journal_entry_created_by" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_journal_entry"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_journal_entry_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_journal_entry"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_annual_report_created_by" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_journal_entry_annual_summary"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_annual_report_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_journal_entry_annual_summary"/>
            <child catalog="fineract_default" column="createdby_id" foreignKey="createdby_id" implied="false" onDeleteCascade="false" schema="public" table="m_adhoc"/>
            <child catalog="fineract_default" column="lastmodifiedby_id" foreignKey="lastmodifiedby_id" implied="false" onDeleteCascade="false" schema="public" table="m_adhoc"/>
            <child catalog="fineract_default" column="user_id" foreignKey="m_appuser_previous_password_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_appuser_previous_password"/>
            <child catalog="fineract_default" column="appuser_id" foreignKey="fk7662ce59b4100309" implied="false" onDeleteCascade="false" schema="public" table="m_appuser_role"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_business_date_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_business_date"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_business_date_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_business_date"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_calendar_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_calendar"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_calendar_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_calendar"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_client_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_client_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_client_identifier_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_client_identifier"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_client_identifier_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_client_identifier"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_client_transaction_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_client_transaction"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_client_transaction_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_client_transaction"/>
            <child catalog="fineract_default" column="submitted_by" foreignKey="FK_m_client_transfer_details_m_appuser" implied="false" onDeleteCascade="false" schema="public" table="m_client_transfer_details"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_deposit_account_on_hold_transaction_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_deposit_account_on_hold_transaction"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_deposit_account_on_hold_transaction_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_deposit_account_on_hold_transaction"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_external_asset_owner_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_external_asset_owner_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_ext_asset_owner_je_mapping_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_journal_entry_mapping"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_ext_asset_owner_je_mapping_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_journal_entry_mapping"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_ext_asset_owner_lp_conf_attr_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_loan_product_configurable_attributes"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_ext_asset_owner_lp_conf_attr_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_loan_product_configurable_attributes"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_external_asset_owner_transfer_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_transfer"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_external_asset_owner_transfer_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_transfer"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_external_asset_owner_transfer_details_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_transfer_details"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_external_asset_owner_transfer_details_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_transfer_details"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_ext_asset_owner_transfer_je_mapping_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_transfer_journal_entry_mapping"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_ext_asset_owner_transfer_je_mapping_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_transfer_journal_entry_mapping"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_external_asset_owner_transfer_loan_mapping_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_transfer_loan_mapping"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_external_asset_owner_transfer_loan_mapping_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_transfer_loan_mapping"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_floating_rates_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_floating_rates"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_floating_rates_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_floating_rates"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_floating_rates_period_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_floating_rates_periods"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_floating_rates_period_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_floating_rates_periods"/>
            <child catalog="fineract_default" column="createdby_id" foreignKey="FK_m_import_m_appuser" implied="false" onDeleteCascade="false" schema="public" table="m_import_document"/>
            <child catalog="fineract_default" column="created_by" foreignKey="fk_gl_journal_entry_aggregation_summary_on_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_journal_entry_aggregation_summary"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="fk_gl_journal_entry_aggregation_summary_on_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_journal_entry_aggregation_summary"/>
            <child catalog="fineract_default" column="created_by" foreignKey="fk_gl_journal_entry_aggregation_tracking_on_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_journal_entry_aggregation_tracking"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="fk_gl_journal_entry_aggregation_tracking_on_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_journal_entry_aggregation_tracking"/>
            <child catalog="fineract_default" column="approvedon_userid" foreignKey="FK_approvedon_userid" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
            <child catalog="fineract_default" column="closedon_userid" foreignKey="FK_closedon_userid" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_loan_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
            <child catalog="fineract_default" column="disbursedon_userid" foreignKey="FK_disbursedon_userid" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_loan_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
            <child catalog="fineract_default" column="rejectedon_userid" foreignKey="FK_rejectedon_userid" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
            <child catalog="fineract_default" column="withdrawnon_userid" foreignKey="FK_withdrawnon_userid" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_laam_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_amortization_allocation_mapping"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_laam_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_amortization_allocation_mapping"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_loan_approved_amount_history_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_approved_amount_history"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_loan_approved_amount_history_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_approved_amount_history"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_loan_buy_down_fees_balance_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_buy_down_fee_balance"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_loan_buy_down_fees_balance_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_buy_down_fee_balance"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_loan_capitalized_income_balance_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_capitalized_income_balance"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_loan_capitalized_income_balance_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_capitalized_income_balance"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_loan_charge_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_charge"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_loan_charge_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_charge"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_loan_credit_allocation_rule_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_credit_allocation_rule"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_loan_credit_allocation_rule_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_credit_allocation_rule"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_loan_originator_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_originator"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_loan_originator_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_originator"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_loan_originator_mapping_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_originator_mapping"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_loan_originator_mapping_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_originator_mapping"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_loan_payment_allocation_rule_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_payment_allocation_rule"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_loan_payment_allocation_rule_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_payment_allocation_rule"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_loan_product_credit_allocation_rule_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_product_credit_allocation_rule"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_loan_product_credit_allocation_rule_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_product_credit_allocation_rule"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_loan_product_payment_allocation_rule_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_product_payment_allocation_rule"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_loan_product_payment_allocation_rule_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_product_payment_allocation_rule"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_loan_repayment_schedule_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_repayment_schedule"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_loan_repayment_schedule_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_repayment_schedule"/>
            <child catalog="fineract_default" column="approved_by_user_id" foreignKey="m_loan_reschedule_request_ibfk_4" implied="false" onDeleteCascade="false" schema="public" table="m_loan_reschedule_request"/>
            <child catalog="fineract_default" column="rejected_by_user_id" foreignKey="m_loan_reschedule_request_ibfk_5" implied="false" onDeleteCascade="false" schema="public" table="m_loan_reschedule_request"/>
            <child catalog="fineract_default" column="submitted_by_user_id" foreignKey="m_loan_reschedule_request_ibfk_3" implied="false" onDeleteCascade="false" schema="public" table="m_loan_reschedule_request"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_oan_status_change_history_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_status_change_history"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_loan_status_change_history_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_status_change_history"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_loan_term_variations_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_term_variations"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_loan_term_variations_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_term_variations"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_loan_transaction_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_loan_transaction_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_mandatory_savings_schedule_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_mandatory_savings_schedule"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_mandatory_savings_schedule_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_mandatory_savings_schedule"/>
            <child catalog="fineract_default" column="created_by" foreignKey="fk7c97089541f0a56" implied="false" onDeleteCascade="false" schema="public" table="m_note"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="fk7c970898f889c3f" implied="false" onDeleteCascade="false" schema="public" table="m_note"/>
            <child catalog="fineract_default" column="checker_id" foreignKey="FK_m_checker_m_appuser" implied="false" onDeleteCascade="false" schema="public" table="m_portfolio_command_source"/>
            <child catalog="fineract_default" column="maker_id" foreignKey="FK_m_maker_m_appuser" implied="false" onDeleteCascade="false" schema="public" table="m_portfolio_command_source"/>
            <child catalog="fineract_default" column="createdby_id" foreignKey="m_provisioning_criteria_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_provisioning_criteria"/>
            <child catalog="fineract_default" column="lastmodifiedby_id" foreignKey="m_provisioning_criteria_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_provisioning_criteria"/>
            <child catalog="fineract_default" column="createdby_id" foreignKey="m_provisioning_history_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_provisioning_history"/>
            <child catalog="fineract_default" column="lastmodifiedby_id" foreignKey="m_provisioning_history_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_provisioning_history"/>
            <child catalog="fineract_default" column="approve_user" foreignKey="fk_m_rate_approve_user" implied="false" onDeleteCascade="false" schema="public" table="m_rate"/>
            <child catalog="fineract_default" column="createdby_id" foreignKey="fk_m_rate_create_user" implied="false" onDeleteCascade="false" schema="public" table="m_rate"/>
            <child catalog="fineract_default" column="createdby_id" foreignKey="m_report_mailing_job_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_report_mailing_job"/>
            <child catalog="fineract_default" column="lastmodifiedby_id" foreignKey="m_report_mailing_job_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_report_mailing_job"/>
            <child catalog="fineract_default" column="run_as_userid" foreignKey="m_report_mailing_job_ibfk_4" implied="false" onDeleteCascade="false" schema="public" table="m_report_mailing_job"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_savings_account_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_savings_account_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_savings_account_charge_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_charge"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_savings_account_charge_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_charge"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_savings_account_transaction_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_transaction"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_savings_account_transaction_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_transaction"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_savings_officer_assignment_history_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_savings_officer_assignment_history"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_savings_officer_assignment_history_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_savings_officer_assignment_history"/>
            <child catalog="fineract_default" column="activated_userid" foreignKey="m_share_account_ibfk_6" implied="false" onDeleteCascade="false" schema="public" table="m_share_account"/>
            <child catalog="fineract_default" column="approved_userid" foreignKey="m_share_account_ibfk_4" implied="false" onDeleteCascade="false" schema="public" table="m_share_account"/>
            <child catalog="fineract_default" column="closed_userid" foreignKey="m_share_account_ibfk_7" implied="false" onDeleteCascade="false" schema="public" table="m_share_account"/>
            <child catalog="fineract_default" column="lastmodifiedby_id" foreignKey="m_share_account_ibfk_8" implied="false" onDeleteCascade="false" schema="public" table="m_share_account"/>
            <child catalog="fineract_default" column="rejected_userid" foreignKey="m_share_account_ibfk_5" implied="false" onDeleteCascade="false" schema="public" table="m_share_account"/>
            <child catalog="fineract_default" column="submitted_userid" foreignKey="m_share_account_ibfk_3" implied="false" onDeleteCascade="false" schema="public" table="m_share_account"/>
            <child catalog="fineract_default" column="createdby_id" foreignKey="m_share_product_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_share_product"/>
            <child catalog="fineract_default" column="lastmodifiedby_id" foreignKey="m_share_product_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_share_product"/>
            <child catalog="fineract_default" column="createdby_id" foreignKey="FK_m_share_product_dividend_pay_out_createdby_id" implied="false" onDeleteCascade="false" schema="public" table="m_share_product_dividend_pay_out"/>
            <child catalog="fineract_default" column="lastmodifiedby_id" foreignKey="FK_m_share_product_dividend_pay_out_lastmodifiedby_id" implied="false" onDeleteCascade="false" schema="public" table="m_share_product_dividend_pay_out"/>
            <child catalog="fineract_default" column="user_id" foreignKey="m_survey_scorecards_ibfk_4" implied="false" onDeleteCascade="false" schema="public" table="m_survey_scorecards"/>
            <child catalog="fineract_default" column="createdby_id" foreignKey="FK_tax_component_createdby" implied="false" onDeleteCascade="false" schema="public" table="m_tax_component"/>
            <child catalog="fineract_default" column="lastmodifiedby_id" foreignKey="FK_tax_component_lastmodifiedby" implied="false" onDeleteCascade="false" schema="public" table="m_tax_component"/>
            <child catalog="fineract_default" column="createdby_id" foreignKey="FK_tax_component_history_createdby" implied="false" onDeleteCascade="false" schema="public" table="m_tax_component_history"/>
            <child catalog="fineract_default" column="lastmodifiedby_id" foreignKey="FK_tax_component_history_lastmodifiedby" implied="false" onDeleteCascade="false" schema="public" table="m_tax_component_history"/>
            <child catalog="fineract_default" column="createdby_id" foreignKey="FK_tax_group_createdby" implied="false" onDeleteCascade="false" schema="public" table="m_tax_group"/>
            <child catalog="fineract_default" column="lastmodifiedby_id" foreignKey="FK_tax_group_lastmodifiedby" implied="false" onDeleteCascade="false" schema="public" table="m_tax_group"/>
            <child catalog="fineract_default" column="createdby_id" foreignKey="FK_tax_group_mappings_createdby" implied="false" onDeleteCascade="false" schema="public" table="m_tax_group_mappings"/>
            <child catalog="fineract_default" column="lastmodifiedby_id" foreignKey="FK_tax_group_mappings_lastmodifiedby" implied="false" onDeleteCascade="false" schema="public" table="m_tax_group_mappings"/>
            <child catalog="fineract_default" column="approvedon_userid" foreignKey="FK_m_wc_loan_approved_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
            <child catalog="fineract_default" column="charged_off_by_userid" foreignKey="FK_m_wc_loan_charged_off_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
            <child catalog="fineract_default" column="closedon_userid" foreignKey="FK_m_wc_loan_closed_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_m_wc_loan_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_m_wc_loan_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
            <child catalog="fineract_default" column="rejectedon_userid" foreignKey="FK_m_wc_loan_rejected_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_wc_loan_breach_action_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_breach_action"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_wc_loan_breach_action_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_breach_action"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_wc_breach_schedule_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_breach_schedule"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_wc_breach_schedule_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_breach_schedule"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_wc_loan_charge_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_charge"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_wc_loan_charge_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_charge"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_wc_loan_delinquency_action_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_delinquency_action"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_wc_loan_delinquency_action_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_delinquency_action"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_wc_delinquency_range_schedule_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_delinquency_range_schedule"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_wc_delinquency_range_schedule_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_delinquency_range_schedule"/>
            <child catalog="fineract_default" column="disbursedon_userid" foreignKey="FK_m_wc_loan_disbursement_detail_user" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_disbursement_detail"/>
            <child catalog="fineract_default" column="created_by" foreignKey="fk_wc_near_breach_action_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_near_breach_action"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="fk_wc_near_breach_action_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_near_breach_action"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_m_wc_loan_note_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_note"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_m_wc_loan_note_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_note"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_wc_loan_originator_mapping_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_originator_mapping"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_wc_loan_originator_mapping_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_originator_mapping"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_m_wc_loan_par_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_payment_allocation_rule"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_m_wc_loan_par_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_payment_allocation_rule"/>
            <child catalog="fineract_default" column="created_by" foreignKey="fk_wc_rate_change_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_period_payment_rate_change"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="fk_wc_rate_change_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_period_payment_rate_change"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_wc_loan_product_payment_allocation_rule_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_product_payment_allocation_rule"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_wc_loan_product_payment_allocation_rule_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_product_payment_allocation_rule"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_m_wc_loan_transaction_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_transaction"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_m_wc_loan_transaction_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_transaction"/>
            <child catalog="fineract_default" column="created_by" foreignKey="FK_m_wc_loan_transaction_allocation_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_transaction_allocation"/>
            <child catalog="fineract_default" column="last_modified_by" foreignKey="FK_m_wc_loan_transaction_allocation_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_transaction_allocation"/>
            <child catalog="fineract_default" column="user_id" foreignKey="notification_mapper_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="notification_mapper"/>
            <child catalog="fineract_default" column="appuser_id" foreignKey="fk_2fa_access_token_user_id" implied="false" onDeleteCascade="false" schema="public" table="twofactor_access_token"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="1" name="is_deleted" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="office_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkb3d587ce0dd567a" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="staff_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_appuser_002" implied="false" onDeleteCascade="false" schema="public" table="m_staff"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="username" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="firstname" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="lastname" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="password" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="email" nullable="false" remarks="" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="firsttime_login_remaining" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="nonexpired" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="nonlocked" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="nonexpired_credentials" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="enabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="'1970-01-01'::date" digits="0" id="14" name="last_time_password_updated" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="15" name="password_never_expires" nullable="false" remarks="define if the password, should be check for validity period or not" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="16" name="cannot_change_password" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="17" name="password_reset_required" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="18" name="failed_login_attempts" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="19" name="is_login_retries_enabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="temporary_password" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="21" name="temporary_password_expiry_time" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="22" name="is_password_reset_enabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_appuser_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_m_appuser_002x" unique="false">
            <column ascending="true" name="staff_id"/>
         </index>
         <index name="fkb3d587ce0dd567a" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="last_time_password_updated" unique="false">
            <column ascending="true" name="last_time_password_updated"/>
         </index>
         <index name="username_org" unique="true">
            <column ascending="true" name="username"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_appuser_previous_password" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_appuser_previous_password_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="password" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="removal_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_appuser_previous_password_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_appuser_role" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="appuser_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk7662ce59b4100309" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="role_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk7662ce5915cec7ab" implied="false" onDeleteCascade="false" schema="public" table="m_role"/>
         </column>
         <primaryKey column="appuser_id" sequenceNumberInPK="1"/>
         <primaryKey column="role_id" sequenceNumberInPK="2"/>
         <index name="m_appuser_role_pkey" unique="true">
            <column ascending="true" name="appuser_id"/>
            <column ascending="true" name="role_id"/>
         </index>
         <index name="fk7662ce5915cec7ab" unique="false">
            <column ascending="true" name="role_id"/>
         </index>
         <index name="fk7662ce59b4100309" unique="false">
            <column ascending="true" name="appuser_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_batch_business_steps" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="job_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="step_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="step_order" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_batch_business_steps_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_business_date" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="type" nullable="false" remarks="" size="100" type="varchar" typeCode="12">
            <parent catalog="fineract_default" column="type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_external_event_configuration"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_business_date_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="version" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_business_date_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_business_date_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_business_date_type_key" unique="true">
            <column ascending="true" name="type"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_calendar" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="calendar_id" foreignKey="FK_m_calendar_m_calendar_history" implied="false" onDeleteCascade="false" schema="public" table="m_calendar_history"/>
            <child catalog="fineract_default" column="calendar_id" foreignKey="FK_m_calendar_m_calendar_instance" implied="false" onDeleteCascade="false" schema="public" table="m_calendar_instance"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="title" nullable="false" remarks="" size="70" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="location" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="start_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="end_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="duration" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="calendar_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="8" name="repeating" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="recurrence" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="remind_by_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="first_reminder" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="second_reminder" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_calendar_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_calendar_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="16" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="17" name="meeting_time" nullable="true" remarks="" size="15" type="time" typeCode="92"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="18" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="19" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_calendar_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_calendar_history" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="calendar_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_calendar_m_calendar_history" implied="false" onDeleteCascade="false" schema="public" table="m_calendar"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="title" nullable="false" remarks="" size="70" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="location" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="start_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="end_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="duration" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="calendar_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="9" name="repeating" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="recurrence" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="remind_by_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="first_reminder" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="second_reminder" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_calendar_history_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_calendar_m_calendar_history" unique="false">
            <column ascending="true" name="calendar_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_calendar_instance" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="calendar_instance_id" foreignKey="FK_m_calendar_instance_m_meeting" implied="false" onDeleteCascade="false" schema="public" table="m_meeting"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="calendar_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_calendar_m_calendar_instance" implied="false" onDeleteCascade="false" schema="public" table="m_calendar"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="entity_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="entity_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_calendar_instance_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_calendar_m_calendar_instance" unique="false">
            <column ascending="true" name="calendar_id"/>
         </index>
         <index name="idx_m_calendar_instance_entity_id_entity_type" unique="false">
            <column ascending="true" name="entity_id"/>
            <column ascending="true" name="entity_type_enum"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_cashier_transactions" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="cashier_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_teller_transactions_m_cashiers" implied="false" onDeleteCascade="true" schema="public" table="m_cashiers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="txn_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="txn_amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="txn_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="entity_type" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="entity_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="txn_note" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="currency_code" nullable="true" remarks="" size="3" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_cashier_transactions_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="IK_m_teller_transactions_m_cashier" unique="false">
            <column ascending="true" name="cashier_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_cashiers" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="cashier_id" foreignKey="FK_m_teller_transactions_m_cashiers" implied="false" onDeleteCascade="true" schema="public" table="m_cashier_transactions"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="staff_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_cashiers_m_staff" implied="false" onDeleteCascade="false" schema="public" table="m_staff"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="teller_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_cashiers_m_teller" implied="false" onDeleteCascade="false" schema="public" table="m_tellers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="start_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="end_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="start_time" nullable="true" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="end_time" nullable="true" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="full_day" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_cashiers_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="IK_m_cashiers_m_staff" unique="false">
            <column ascending="true" name="staff_id"/>
         </index>
         <index name="IK_m_cashiers_m_teller" unique="false">
            <column ascending="true" name="teller_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_charge" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="charge_id" foreignKey="FK_acc_product_mapping_m_charge" implied="false" onDeleteCascade="false" schema="public" table="acc_product_mapping"/>
            <child catalog="fineract_default" column="charge_id" foreignKey="FK_m_client_charge_m_charge" implied="false" onDeleteCascade="false" schema="public" table="m_client_charge"/>
            <child catalog="fineract_default" column="charge_id" foreignKey="m_loan_charge_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_loan_charge"/>
            <child catalog="fineract_default" column="charge_id" foreignKey="FK_m_loan_tranche_charges_m_charge" implied="false" onDeleteCascade="false" schema="public" table="m_loan_tranche_charges"/>
            <child catalog="fineract_default" column="charge_id" foreignKey="m_product_loan_charge_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan_charge"/>
            <child catalog="fineract_default" column="charge_id" foreignKey="m_savings_account_charge_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_charge"/>
            <child catalog="fineract_default" column="charge_id" foreignKey="m_savings_product_charge_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_savings_product_charge"/>
            <child catalog="fineract_default" column="charge_id" foreignKey="m_share_account_charge_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_share_account_charge"/>
            <child catalog="fineract_default" column="charge_id" foreignKey="m_share_product_charge_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_share_product_charge"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="currency_code" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="charge_applies_to_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="charge_time_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="charge_calculation_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="charge_payment_mode_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="fee_on_day" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="fee_interval" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="fee_on_month" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="11" name="is_penalty" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="13" name="is_deleted" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="14" name="min_cap" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="15" name="max_cap" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="fee_frequency" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="17" name="is_free_withdrawal" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="18" name="free_withdrawal_charge_frequency" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="19" name="restart_frequency" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="20" name="restart_frequency_enum" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="21" name="is_payment_type" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="payment_type_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_payment_detail_m_payment_types" implied="false" onDeleteCascade="false" schema="public" table="m_payment_type"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="income_or_liability_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_charge_acc_gl_account" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="tax_group_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_charge_m_tax_group" implied="false" onDeleteCascade="false" schema="public" table="m_tax_group"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_charge_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_charge_acc_gl_account" unique="false">
            <column ascending="true" name="income_or_liability_account_id"/>
         </index>
         <index name="FK_m_charge_m_tax_group" unique="false">
            <column ascending="true" name="tax_group_id"/>
         </index>
         <index name="FK_m_payment_detail_m_payment_types" unique="false">
            <column ascending="true" name="payment_type_id"/>
         </index>
         <index name="m_charge_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_client" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="from_client_id" foreignKey="FK_m_account_transfer_details_from_client" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_details"/>
            <child catalog="fineract_default" column="to_client_id" foreignKey="FK_m_account_transfer_details_to_client" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_details"/>
            <child catalog="fineract_default" column="client_id" foreignKey="clientaddressfk" implied="false" onDeleteCascade="false" schema="public" table="m_client_address"/>
            <child catalog="fineract_default" column="client_id" foreignKey="FK_m_client_m_client_attendance" implied="false" onDeleteCascade="false" schema="public" table="m_client_attendance"/>
            <child catalog="fineract_default" column="client_id" foreignKey="FK_m_client_charge_m_client" implied="false" onDeleteCascade="false" schema="public" table="m_client_charge"/>
            <child catalog="fineract_default" column="client_id" foreignKey="fkClient" implied="false" onDeleteCascade="true" schema="public" table="m_client_collateral_management"/>
            <child catalog="fineract_default" column="client_id" foreignKey="FK_m_client_document_m_client" implied="false" onDeleteCascade="false" schema="public" table="m_client_identifier"/>
            <child catalog="fineract_default" column="client_id" foreignKey="FK_client_id" implied="false" onDeleteCascade="false" schema="public" table="m_client_non_person"/>
            <child catalog="fineract_default" column="client_id" foreignKey="FK_m_client_transaction_m_client" implied="false" onDeleteCascade="false" schema="public" table="m_client_transaction"/>
            <child catalog="fineract_default" column="client_id" foreignKey="FK_m_client_transfer_details_m_client" implied="false" onDeleteCascade="false" schema="public" table="m_client_transfer_details"/>
            <child catalog="fineract_default" column="client_id" foreignKey="FK_m_family_members_client_id_m_client" implied="false" onDeleteCascade="false" schema="public" table="m_family_members"/>
            <child catalog="fineract_default" column="client_id" foreignKey="m_group_client_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_group_client"/>
            <child catalog="fineract_default" column="client_id" foreignKey="FKGroupRoleClientId" implied="false" onDeleteCascade="false" schema="public" table="m_group_roles"/>
            <child catalog="fineract_default" column="client_id" foreignKey="fkb6f935d87179a0cb" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
            <child catalog="fineract_default" column="client_id" foreignKey="fk7c970897179a0cb" implied="false" onDeleteCascade="false" schema="public" table="m_note"/>
            <child catalog="fineract_default" column="client_id" foreignKey="fksa00000000000001" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
            <child catalog="fineract_default" column="client_id" foreignKey="m_share_account_ibfk_9" implied="false" onDeleteCascade="false" schema="public" table="m_share_account"/>
            <child catalog="fineract_default" column="client_id" foreignKey="m_survey_scorecards_ibfk_5" implied="false" onDeleteCascade="false" schema="public" table="m_survey_scorecards"/>
            <child catalog="fineract_default" column="client_id" foreignKey="FK_m_wc_loan_client" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
            <child catalog="fineract_default" column="client_id" foreignKey="sefkclient00000001" implied="false" onDeleteCascade="false" schema="public" table="scheduled_email_messages_outbound"/>
            <child catalog="fineract_default" column="client_id" foreignKey="fkclient00000001" implied="false" onDeleteCascade="false" schema="public" table="sms_messages_outbound"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="account_no" nullable="false" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="300" digits="0" id="3" name="status_enum" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="sub_status" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_substatus_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="activation_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="office_joining_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="office_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkce00cab3e0dd567a" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="transfer_to_office_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_m_office" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="staff_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_m_staff" implied="false" onDeleteCascade="false" schema="public" table="m_staff"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="firstname" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="middlename" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="lastname" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="fullname" nullable="true" remarks="" size="160" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="display_name" nullable="false" remarks="" size="160" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="mobile_no" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="16" name="is_staff" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="gender_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK1_m_client_gender_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="date_of_birth" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="image_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_m_image" implied="false" onDeleteCascade="false" schema="public" table="m_image"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="closure_reason_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_m_code" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="closedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="updated_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="updated_on" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="submittedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="activatedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="closedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="default_savings_product" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_m_savings_product" implied="false" onDeleteCascade="false" schema="public" table="m_savings_product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="default_savings_account" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_m_savings_account" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="client_type_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_type_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="client_classification_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_classification_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="reject_reason_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_type_mcode_value_reject" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="rejectedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="rejectedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="withdraw_reason_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_type_m_code_value_withdraw" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="withdrawn_on_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="withdraw_on_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="reactivated_on_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="reactivated_on_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="legal_form_enum" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="reopened_on_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="reopened_by_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="email_address" nullable="true" remarks="" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="proposed_transfer_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="44" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_client_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_client_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="47" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_client_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="client_staff_id" unique="false">
            <column ascending="true" name="staff_id"/>
         </index>
         <index name="FK1_m_client_gender_m_code_value" unique="false">
            <column ascending="true" name="gender_cv_id"/>
         </index>
         <index name="FK_m_client_classification_m_code_value" unique="false">
            <column ascending="true" name="client_classification_cv_id"/>
         </index>
         <index name="FK_m_client_m_code" unique="false">
            <column ascending="true" name="closure_reason_cv_id"/>
         </index>
         <index name="FK_m_client_m_image" unique="false">
            <column ascending="true" name="image_id"/>
         </index>
         <index name="FK_m_client_m_office" unique="false">
            <column ascending="true" name="transfer_to_office_id"/>
         </index>
         <index name="FK_m_client_m_savings_account" unique="false">
            <column ascending="true" name="default_savings_account"/>
         </index>
         <index name="FK_m_client_m_savings_product" unique="false">
            <column ascending="true" name="default_savings_product"/>
         </index>
         <index name="FK_m_client_substatus_m_code_value" unique="false">
            <column ascending="true" name="sub_status"/>
         </index>
         <index name="FK_m_client_type_m_code_value" unique="false">
            <column ascending="true" name="client_type_cv_id"/>
         </index>
         <index name="FK_m_client_type_m_code_value_withdraw" unique="false">
            <column ascending="true" name="withdraw_reason_cv_id"/>
         </index>
         <index name="FK_m_client_type_mcode_value_reject" unique="false">
            <column ascending="true" name="reject_reason_cv_id"/>
         </index>
         <index name="fkce00cab3e0dd567a" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="m_client_account_no_key" unique="true">
            <column ascending="true" name="account_no"/>
         </index>
         <index name="m_client_external_id_key" unique="true">
            <column ascending="true" name="external_id"/>
         </index>
         <index name="m_client_mobile_no_key" unique="true">
            <column ascending="true" name="mobile_no"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_client_address" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="1" name="client_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="clientaddressfk" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="0" digits="0" id="2" name="address_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="3" name="address_type_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="address_codefk" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_client_address_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="address_codefk" unique="false">
            <column ascending="true" name="address_type_id"/>
         </index>
         <index name="addressIdFk" unique="false">
            <column ascending="true" name="address_id"/>
         </index>
         <index name="clientaddressfk" unique="false">
            <column ascending="true" name="client_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_client_attendance" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="1" name="client_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_m_client_attendance" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="meeting_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_meeting_m_client_attendance" implied="false" onDeleteCascade="false" schema="public" table="m_meeting"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="attendance_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_client_attendance_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_meeting_m_client_attendance" unique="false">
            <column ascending="true" name="meeting_id"/>
         </index>
         <index name="unique_client_meeting_attendance" unique="true">
            <column ascending="true" name="client_id"/>
            <column ascending="true" name="meeting_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_client_charge" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="client_charge_id" foreignKey="FK_m_client_charge_paid_by_m_client_charge" implied="false" onDeleteCascade="false" schema="public" table="m_client_charge_paid_by"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="client_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_charge_m_client" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="charge_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_charge_m_charge" implied="false" onDeleteCascade="false" schema="public" table="m_charge"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="is_penalty" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="charge_time_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="charge_due_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="charge_calculation_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="8" name="amount_paid_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="9" name="amount_waived_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="10" name="amount_writtenoff_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="amount_outstanding_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="is_paid_derived" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="waived" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="is_active" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="inactivated_on_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_client_charge_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_client_charge_m_charge" unique="false">
            <column ascending="true" name="charge_id"/>
         </index>
         <index name="FK_m_client_charge_m_client" unique="false">
            <column ascending="true" name="client_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_client_charge_paid_by" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="client_transaction_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_charge_paid_by_m_client_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_client_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="client_charge_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_charge_paid_by_m_client_charge" implied="false" onDeleteCascade="false" schema="public" table="m_client_charge"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_client_charge_paid_by_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_client_charge_paid_by_m_client_charge" unique="false">
            <column ascending="true" name="client_charge_id"/>
         </index>
         <index name="FK_m_client_charge_paid_by_m_client_transaction" unique="false">
            <column ascending="true" name="client_transaction_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_client_collateral_management" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="client_collateral_id" foreignKey="fkClientCollateral" implied="false" onDeleteCascade="true" schema="public" table="m_loan_collateral_management"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="5" id="1" name="quantity" nullable="false" remarks="" size="20" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="client_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkClient" implied="false" onDeleteCascade="true" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="collateral_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkCollateral" implied="false" onDeleteCascade="true" schema="public" table="m_collateral_management"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_client_collateral_management_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fkClient" unique="false">
            <column ascending="true" name="client_id"/>
         </index>
         <index name="fkCollateral" unique="false">
            <column ascending="true" name="collateral_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_client_identifier" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="client_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_document_m_client" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="document_type_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_document_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="document_key" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="300" digits="0" id="4" name="status" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="active" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="description" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_client_identifier_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_client_identifier_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="issuance_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="expiry_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_client_identifier_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_client_document_m_client" unique="false">
            <column ascending="true" name="client_id"/>
         </index>
         <index name="FK_m_client_document_m_code_value" unique="false">
            <column ascending="true" name="document_type_id"/>
         </index>
         <index name="unique_active_client_identifier" unique="true">
            <column ascending="true" name="client_id"/>
            <column ascending="true" name="document_type_id"/>
            <column ascending="true" name="active"/>
         </index>
         <index name="unique_identifier_key" unique="true">
            <column ascending="true" name="document_type_id"/>
            <column ascending="true" name="document_key"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_client_non_person" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="client_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_client_id" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="constitution_cv_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="incorp_no" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="incorp_validity_till" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="main_business_line_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="remarks" nullable="true" remarks="" size="150" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_client_non_person_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_client_non_person_client_id_key" unique="true">
            <column ascending="true" name="client_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_client_transaction" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="client_transaction_id" foreignKey="FK_acc_gl_journal_entry_m_client_transaction" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_journal_entry"/>
            <child catalog="fineract_default" column="client_transaction_id" foreignKey="FK_m_client_charge_paid_by_m_client_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_client_charge_paid_by"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="client_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_transaction_m_client" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="office_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="currency_code" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="payment_detail_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="is_reversed" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="external_id" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="transaction_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="transaction_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_client_transaction_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_client_transaction_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="submitted_on_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_client_transaction_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_client_transaction_submitted_on_date" unique="false">
            <column ascending="true" name="submitted_on_date"/>
         </index>
         <index name="FK_m_client_transaction_m_client" unique="false">
            <column ascending="true" name="client_id"/>
         </index>
         <index name="m_client_transaction_external_id_key" unique="true">
            <column ascending="true" name="external_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_client_transfer_details" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="client_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_transfer_details_m_client" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="from_office_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_transfer_details_m_office" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="to_office_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_transfer_details_m_office_2" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="proposed_transfer_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="transfer_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="submitted_on" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="submitted_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_client_transfer_details_m_appuser" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_client_transfer_details_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_client_transfer_details_m_appuser" unique="false">
            <column ascending="true" name="submitted_by"/>
         </index>
         <index name="FK_m_client_transfer_details_m_client" unique="false">
            <column ascending="true" name="client_id"/>
         </index>
         <index name="FK_m_client_transfer_details_m_office" unique="false">
            <column ascending="true" name="from_office_id"/>
         </index>
         <index name="FK_m_client_transfer_details_m_office_2" unique="false">
            <column ascending="true" name="to_office_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_code" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <child catalog="fineract_default" column="code_id" foreignKey="fkcfcea42640be071z" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
            <child catalog="fineract_default" column="code_id" foreignKey="FK_x_code_id" implied="false" onDeleteCascade="false" schema="public" table="x_table_column_code_mappings"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="code_name" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="2" name="is_system_defined" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_code_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_code_code_name_key" unique="true">
            <column ascending="true" name="code_name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_code_value" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <child catalog="fineract_default" column="tag_id" foreignKey="fkglacc000000002" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_account"/>
            <child catalog="fineract_default" column="buydown_fee_classification_id" foreignKey="fk_acc_product_mapping_buydown_fee_classification" implied="false" onDeleteCascade="false" schema="public" table="acc_product_mapping"/>
            <child catalog="fineract_default" column="capitalized_income_classification_id" foreignKey="fk_acc_product_mapping_capitalized_income_classification" implied="false" onDeleteCascade="false" schema="public" table="acc_product_mapping"/>
            <child catalog="fineract_default" column="charge_off_reason_id" foreignKey="fk_acc_product_mapping_charge_off_reason" implied="false" onDeleteCascade="false" schema="public" table="acc_product_mapping"/>
            <child catalog="fineract_default" column="tag_id" foreignKey="FK_m_code_value_id" implied="false" onDeleteCascade="false" schema="public" table="acc_rule_tags"/>
            <child catalog="fineract_default" column="country_id" foreignKey="address_fields_codefk2" implied="false" onDeleteCascade="false" schema="public" table="m_address"/>
            <child catalog="fineract_default" column="state_province_id" foreignKey="address_fields_codefk1" implied="false" onDeleteCascade="false" schema="public" table="m_address"/>
            <child catalog="fineract_default" column="client_classification_cv_id" foreignKey="FK_m_client_classification_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
            <child catalog="fineract_default" column="client_type_cv_id" foreignKey="FK_m_client_type_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
            <child catalog="fineract_default" column="closure_reason_cv_id" foreignKey="FK_m_client_m_code" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
            <child catalog="fineract_default" column="gender_cv_id" foreignKey="FK1_m_client_gender_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
            <child catalog="fineract_default" column="reject_reason_cv_id" foreignKey="FK_m_client_type_mcode_value_reject" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
            <child catalog="fineract_default" column="sub_status" foreignKey="FK_m_client_substatus_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
            <child catalog="fineract_default" column="withdraw_reason_cv_id" foreignKey="FK_m_client_type_m_code_value_withdraw" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
            <child catalog="fineract_default" column="address_type_id" foreignKey="address_codefk" implied="false" onDeleteCascade="false" schema="public" table="m_client_address"/>
            <child catalog="fineract_default" column="document_type_id" foreignKey="FK_m_client_document_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_client_identifier"/>
            <child catalog="fineract_default" column="gender_cv_id" foreignKey="FK_m_family_members_gender_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_family_members"/>
            <child catalog="fineract_default" column="marital_status_cv_id" foreignKey="FK_m_family_members_marital_status_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_family_members"/>
            <child catalog="fineract_default" column="profession_cv_id" foreignKey="FK_m_family_members_profession_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_family_members"/>
            <child catalog="fineract_default" column="relationship_cv_id" foreignKey="FK_m_family_members_relationship_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_family_members"/>
            <child catalog="fineract_default" column="closure_reason_cv_id" foreignKey="FK_m_group_m_code" implied="false" onDeleteCascade="false" schema="public" table="m_group"/>
            <child catalog="fineract_default" column="role_cv_id" foreignKey="FK_grouprole_m_codevalue" implied="false" onDeleteCascade="false" schema="public" table="m_group_roles"/>
            <child catalog="fineract_default" column="client_reln_cv_id" foreignKey="FK_m_guarantor_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_guarantor"/>
            <child catalog="fineract_default" column="loanpurpose_cv_id" foreignKey="FK_m_loanpurpose_codevalue" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
            <child catalog="fineract_default" column="writeoff_reason_cv_id" foreignKey="FK_writeoffreason_m_loan_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
            <child catalog="fineract_default" column="type_cv_id" foreignKey="FK_collateral_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_loan_collateral"/>
            <child catalog="fineract_default" column="channel_type_cv_id" foreignKey="FK_loan_originator_channel_cv" implied="false" onDeleteCascade="false" schema="public" table="m_loan_originator"/>
            <child catalog="fineract_default" column="originator_type_cv_id" foreignKey="FK_loan_originator_type_cv" implied="false" onDeleteCascade="false" schema="public" table="m_loan_originator"/>
            <child catalog="fineract_default" column="reage_reason_code_value_id" foreignKey="FK_reage_reason_code_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_loan_reage_parameter"/>
            <child catalog="fineract_default" column="reamortization_reason_code_value_id" foreignKey="FK_reamortization_reason_code_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_loan_reamortization_parameter"/>
            <child catalog="fineract_default" column="reschedule_reason_cv_id" foreignKey="m_loan_reschedule_request_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_loan_reschedule_request"/>
            <child catalog="fineract_default" column="charge_off_reason_cv_id" foreignKey="FK_m_wc_loan_charge_off_reason" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
            <child catalog="fineract_default" column="write_off_reason_cv_id" foreignKey="FK_m_wc_loan_write_off_reason" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
            <child catalog="fineract_default" column="classification_cv_id" foreignKey="FK_m_wc_loan_transaction_classification_cv" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="code_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="fkcfcea42640be071z" implied="false" onDeleteCascade="false" schema="public" table="m_code"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code_value" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="code_description" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="4" name="order_position" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="code_score" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="6" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="7" name="is_mandatory" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_code_value_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="code_value" unique="true">
            <column ascending="true" name="code_id"/>
            <column ascending="true" name="code_value"/>
         </index>
         <index name="fkcfcea42640be071z" unique="false">
            <column ascending="true" name="code_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_collateral_management" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="collateral_id" foreignKey="fkCollateral" implied="false" onDeleteCascade="true" schema="public" table="m_client_collateral_management"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="quality" nullable="false" remarks="" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="5" id="3" name="base_price" nullable="false" remarks="" size="20" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="unit_type" nullable="false" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="5" id="5" name="pct_to_base" nullable="false" remarks="" size="20" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="currency" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkCurrencyCode" implied="false" onDeleteCascade="true" schema="public" table="m_currency"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_collateral_management_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fkCurrencyCode" unique="false">
            <column ascending="true" name="currency"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_command" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="Internal ID" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="created_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="command_id" nullable="true" remarks="" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="tenant_id" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="initiated_by_username" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="request" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="updated_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="executed_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="approved_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="rejected_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="idempotency_key" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="executed_by_username" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="approved_by_username" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="rejected_by_username" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="ip_address" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="state" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="response" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="error" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_command_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_command_idempotency_key_index" unique="false">
            <column ascending="true" name="idempotency_key"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_creditbureau" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="organisation_creditbureau_id" foreignKey="cbConfigfk1" implied="false" onDeleteCascade="false" schema="public" table="m_creditbureau_configuration"/>
            <child catalog="fineract_default" column="credit_bureau_id" foreignKey="cbId" implied="false" onDeleteCascade="false" schema="public" table="m_creditreport"/>
            <child catalog="fineract_default" column="creditbureau_id" foreignKey="orgcb_cbfk" implied="false" onDeleteCascade="false" schema="public" table="m_organisation_creditbureau"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="product" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="country" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="implementation_key" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_creditbureau_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="unique impl" unique="true">
            <column ascending="true" name="name"/>
            <column ascending="true" name="product"/>
            <column ascending="true" name="country"/>
            <column ascending="true" name="implementation_key"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_creditbureau_configuration" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="configkey" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="value" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="organisation_creditbureau_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="cbConfigfk1" implied="false" onDeleteCascade="false" schema="public" table="m_creditbureau"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="description" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_creditbureau_configuration_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="cbConfigfk1" unique="false">
            <column ascending="true" name="organisation_creditbureau_id"/>
         </index>
         <index name="mcbconfig" unique="true">
            <column ascending="true" name="configkey"/>
            <column ascending="true" name="organisation_creditbureau_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_creditbureau_loanproduct_mapping" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="organisation_creditbureau_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="cblpfk2" implied="false" onDeleteCascade="false" schema="public" table="m_organisation_creditbureau"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="loan_product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_cb_lp2" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="is_creditcheck_mandatory" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="skip_creditcheck_in_failure" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="stale_period" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="is_active" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_creditbureau_loanproduct_mapping_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="cblpunique_key" unique="true">
            <column ascending="true" name="organisation_creditbureau_id"/>
            <column ascending="true" name="loan_product_id"/>
         </index>
         <index name="fk_cb_lp2" unique="false">
            <column ascending="true" name="loan_product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_creditbureau_token" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="username" nullable="true" remarks="" size="128" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="token" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="token_type" nullable="true" remarks="" size="128" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="expires_in" nullable="true" remarks="" size="128" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="issued" nullable="true" remarks="" size="128" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="expiry_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_creditbureau_token_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_creditreport" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="credit_bureau_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="cbId" implied="false" onDeleteCascade="false" schema="public" table="m_creditbureau"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="national_id" nullable="true" remarks="" size="128" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="credit_reports" nullable="true" remarks="" size="10" type="oid" typeCode="-5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_creditreport_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="cbId" unique="false">
            <column ascending="true" name="credit_bureau_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_currency" numRows="164" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="currency" foreignKey="fkCurrencyCode" implied="false" onDeleteCascade="true" schema="public" table="m_collateral_management"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="code" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="decimal_places" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="currency_multiplesof" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="display_symbol" nullable="true" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="name" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="internationalized_name_code" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_currency_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_currency_code_key" unique="true">
            <column ascending="true" name="code"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_delinquency_bucket" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="delinquency_bucket_id" foreignKey="FK_m_delinquency_bucket_mapping" implied="false" onDeleteCascade="false" schema="public" table="m_delinquency_bucket_mappings"/>
            <child catalog="fineract_default" column="delinquency_bucket_id" foreignKey="FK_m_product_loan_m_delinquency_bucket" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
            <child catalog="fineract_default" column="bucket_id" foreignKey="fk_m_wc_delinquency_configuration_on_bucket" implied="false" onDeleteCascade="false" schema="public" table="m_wc_delinquency_configuration"/>
            <child catalog="fineract_default" column="delinquency_bucket_classification_id" foreignKey="FK_m_wc_loan_delinquency_bucket" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
            <child catalog="fineract_default" column="delinquency_bucket_classification_id" foreignKey="FK_wc_loan_product_delinquency_bucket" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="version" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="'REGULAR'::character varying" digits="0" id="7" name="bucket_type" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_delinquency_bucket_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_delinquency_bucket_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_delinquency_bucket_mappings" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="delinquency_range_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_delinquency_range_mapping" implied="false" onDeleteCascade="false" schema="public" table="m_delinquency_range"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="delinquency_bucket_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_delinquency_bucket_mapping" implied="false" onDeleteCascade="false" schema="public" table="m_delinquency_bucket"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="version" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_delinquency_bucket_mappings_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_delinquency_range" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="delinquency_range_id" foreignKey="FK_m_delinquency_range_mapping" implied="false" onDeleteCascade="false" schema="public" table="m_delinquency_bucket_mappings"/>
            <child catalog="fineract_default" column="delinquency_range_id" foreignKey="FK_m_delinquency_tags_range" implied="false" onDeleteCascade="false" schema="public" table="m_loan_delinquency_tag_history"/>
            <child catalog="fineract_default" column="delinquency_range_id" foreignKey="FK_m_delinquency_installment_tags_range" implied="false" onDeleteCascade="false" schema="public" table="m_loan_installment_delinquency_tag"/>
            <child catalog="fineract_default" column="delinquency_range_id" foreignKey="fk_m_wc_loan_range_delinquency_tag_on_delinquency_range" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_range_delinquency_tag"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="classification" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="min_age_days" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="max_age_days" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="version" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_delinquency_range_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_delinquency_range_classification_key" unique="true">
            <column ascending="true" name="classification"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_deposit_account_on_hold_transaction" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="deposit_on_hold_transaction_id" foreignKey="FK_guarantor_transaction_m_deposit_account_on_hold_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_guarantor_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="savings_account_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_deposit_on_hold_transaction_m_savings_account" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="transaction_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="transaction_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="is_reversed" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_deposit_account_on_hold_transaction_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_deposit_account_on_hold_transaction_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_deposit_account_on_hold_transaction_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_deposit_on_hold_transaction_m_savings_account" unique="false">
            <column ascending="true" name="savings_account_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_deposit_account_recurring_detail" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="1" name="savings_account_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkdard00000000000001" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
         </column>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="2" name="mandatory_recommended_deposit_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="is_mandatory" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="allow_withdrawal" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="5" name="adjust_advance_towards_future_payments" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="is_calendar_inherited" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="7" name="total_overdue_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="no_of_overdue_installments" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_deposit_account_recurring_detail_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fkdard00000000000001" unique="false">
            <column ascending="true" name="savings_account_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_deposit_account_term_and_preclosure" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="1" name="savings_account_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkdatp00000000000001" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="min_deposit_term" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="max_deposit_term" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="min_deposit_term_type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="max_deposit_term_type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="in_multiples_of_deposit_term" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="in_multiples_of_deposit_term_type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="pre_closure_penal_applicable" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="9" name="pre_closure_penal_interest" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="pre_closure_penal_interest_on_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="deposit_period" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="deposit_period_frequency_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="13" name="deposit_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="14" name="maturity_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="maturity_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="on_account_closure_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="expected_firstdepositon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="18" name="transfer_interest_to_linked_account" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="transfer_to_savings_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_deposit_account_term_and_preclosure_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_deposit_account_term_and_preclosure_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fkdatp00000000000001" unique="false">
            <column ascending="true" name="savings_account_id"/>
         </index>
         <index name="transfer_to_savings_account_id" unique="false">
            <column ascending="true" name="transfer_to_savings_account_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_deposit_product_interest_rate_chart" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="deposit_product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkdpirc00000000000001" implied="false" onDeleteCascade="false" schema="public" table="m_savings_product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="interest_rate_chart_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkdpirc00000000000002" implied="false" onDeleteCascade="false" schema="public" table="m_interest_rate_chart"/>
         </column>
         <index name="deposit_product_id_interest_rate_chart_id" unique="true">
            <column ascending="true" name="deposit_product_id"/>
            <column ascending="true" name="interest_rate_chart_id"/>
         </index>
         <index name="fkdpirc00000000000002" unique="false">
            <column ascending="true" name="interest_rate_chart_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_deposit_product_recurring_detail" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="1" name="savings_product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkdprd00000000000001" implied="false" onDeleteCascade="false" schema="public" table="m_savings_product"/>
         </column>
         <column autoUpdated="false" defaultValue="true" digits="0" id="2" name="is_mandatory" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="allow_withdrawal" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="4" name="adjust_advance_towards_future_payments" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_deposit_product_recurring_detail_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fkdprd00000000000001" unique="false">
            <column ascending="true" name="savings_product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_deposit_product_term_and_preclosure" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="1" name="savings_product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkdptp00000000000001" implied="false" onDeleteCascade="false" schema="public" table="m_savings_product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="min_deposit_term" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="max_deposit_term" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="min_deposit_term_type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="max_deposit_term_type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="in_multiples_of_deposit_term" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="in_multiples_of_deposit_term_type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="pre_closure_penal_applicable" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="9" name="pre_closure_penal_interest" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="pre_closure_penal_interest_on_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="11" name="min_deposit_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="12" name="max_deposit_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="13" name="deposit_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_deposit_product_term_and_preclosure_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fkdptp00000000000001" unique="false">
            <column ascending="true" name="savings_product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_document" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <child catalog="fineract_default" column="document_id" foreignKey="FK_m_import_m_document" implied="false" onDeleteCascade="false" schema="public" table="m_import_document"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="parent_entity_type" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="2" name="parent_entity_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="name" nullable="false" remarks="" size="250" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="file_name" nullable="false" remarks="" size="250" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="5" name="size" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="type" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="description" nullable="true" remarks="" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'0'::character varying" digits="0" id="8" name="location" nullable="false" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="storage_type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="issuance_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="expiry_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_document_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_entity_datatable_check" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="application_table_name" nullable="false" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="x_registered_table_name" nullable="false" remarks="" size="50" type="varchar" typeCode="12">
            <parent catalog="fineract_default" column="registered_table_name" foreignKey="m_entity_datatable_check_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="x_registered_table"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="status_enum" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="system_defined" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="product_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_entity_datatable_check_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="product_id" unique="false">
            <column ascending="true" name="product_id"/>
         </index>
         <index name="unique_entity_check" unique="true">
            <column ascending="true" name="application_table_name"/>
            <column ascending="true" name="x_registered_table_name"/>
            <column ascending="true" name="status_enum"/>
            <column ascending="true" name="product_id"/>
         </index>
         <index name="x_registered_table_name" unique="false">
            <column ascending="true" name="x_registered_table_name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_entity_relation" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="rel_id" foreignKey="FK__rel_id_m_entity_relation_id" implied="false" onDeleteCascade="false" schema="public" table="m_entity_to_entity_mapping"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="from_entity_type" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="to_entity_type" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="code_name" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_entity_relation_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="from_entity_type_to_entity_type_code_name" unique="true">
            <column ascending="true" name="from_entity_type"/>
            <column ascending="true" name="to_entity_type"/>
            <column ascending="true" name="code_name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_entity_to_entity_mapping" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="1" name="rel_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK__rel_id_m_entity_relation_id" implied="false" onDeleteCascade="false" schema="public" table="m_entity_relation"/>
         </column>
         <column autoUpdated="false" defaultValue="0" digits="0" id="2" name="from_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="to_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="start_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="end_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_entity_to_entity_mapping_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="rel_id_from_id_to_id" unique="true">
            <column ascending="true" name="rel_id"/>
            <column ascending="true" name="from_id"/>
            <column ascending="true" name="to_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_external_asset_owner" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="Internal ID" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="owner_id" foreignKey="FK_ext_asset_owner_je_mapping_owner_id" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_journal_entry_mapping"/>
            <child catalog="fineract_default" column="owner_id" foreignKey="FK_external_asset_owner_transfer_owner_id" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_transfer"/>
            <child catalog="fineract_default" column="previous_owner_id" foreignKey="FK_external_asset_owner_transfer_previous_owner" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_transfer"/>
            <child catalog="fineract_default" column="external_owner_id" foreignKey="fk_gl_journal_entry_aggregation_summary_on_external_owner_id" implied="false" onDeleteCascade="false" schema="public" table="m_journal_entry_aggregation_summary"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="external_id" nullable="false" remarks="External id of asset owner" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="created_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_external_asset_owner_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="last_modified_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_external_asset_owner_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="last_modified_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_external_asset_owner_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="UQ_external_asset_owner_external_id" unique="true">
            <column ascending="true" name="external_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_external_asset_owner_journal_entry_mapping" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="Internal ID" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="journal_entry_id" nullable="false" remarks="Journal entry ID" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_ext_asset_owner_je_mapping_journal_entry_id" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_journal_entry"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="owner_id" nullable="true" remarks="Owner" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_ext_asset_owner_je_mapping_owner_id" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="created_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_ext_asset_owner_je_mapping_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="last_modified_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_ext_asset_owner_je_mapping_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="last_modified_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_external_asset_owner_journal_entry_mapping_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_e_asset_o_journal_entry_mapping_journal_entry_id" unique="false">
            <column ascending="true" name="journal_entry_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_external_asset_owner_loan_product_configurable_attributes" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="Internal ID" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_ext_asset_owner_lp_conf_attr_loan_product_id" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="attribute_key" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="attribute_value" nullable="false" remarks="" size="2000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="created_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_ext_asset_owner_lp_conf_attr_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="last_modified_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_ext_asset_owner_lp_conf_attr_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="last_modified_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_external_asset_owner_loan_product_configurable_attribut_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="ind_m_ext_asset_ow_lp_config_lp_id" unique="false">
            <column ascending="true" name="loan_product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_external_asset_owner_transfer" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="Internal ID" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="owner_transfer_id" foreignKey="FK_ext_asset_owner_transfer_je_mapping_owner_transfer_id" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_transfer_journal_entry_mapping"/>
            <child catalog="fineract_default" column="owner_transfer_id" foreignKey="FK_external_asset_owner_transfer_loan_mapping_owner_transfer_id" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_transfer_loan_mapping"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="owner_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_external_asset_owner_transfer_owner_id" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="external_id" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="status" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="purchase_price_ratio" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="settlement_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="effective_date_from" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="effective_date_to" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="created_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_external_asset_owner_transfer_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="created_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="last_modified_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_external_asset_owner_transfer_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="last_modified_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="external_loan_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="loan_id" nullable="false" remarks="Loan ID" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_external_asset_owner_transfer_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="sub_status" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="external_group_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="previous_owner_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_external_asset_owner_transfer_previous_owner" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_external_asset_owner_transfer_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="external_asset_owner_transfer_effective_date_from" unique="false">
            <column ascending="true" name="effective_date_from"/>
         </index>
         <index name="external_asset_owner_transfer_effective_date_to" unique="false">
            <column ascending="true" name="effective_date_to"/>
         </index>
         <index name="external_asset_owner_transfer_external_id" unique="false">
            <column ascending="true" name="external_id"/>
         </index>
         <index name="external_asset_owner_transfer_loan_id" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
         <index name="external_asset_owner_transfer_settlement_date" unique="false">
            <column ascending="true" name="settlement_date"/>
         </index>
         <index name="external_asset_owner_transfer_status" unique="false">
            <column ascending="true" name="status"/>
         </index>
         <index name="external_asset_owner_transfer_sub_status" unique="false">
            <column ascending="true" name="sub_status"/>
         </index>
         <index name="external_transfer_status_external_id" unique="true">
            <column ascending="true" name="status"/>
            <column ascending="true" name="external_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_external_asset_owner_transfer_details" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="Internal ID" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="asset_owner_transfer_id" nullable="false" remarks="Id of asset owner transfer" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="total_outstanding_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="principal_outstanding_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="interest_outstanding_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="fee_charges_outstanding_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="penalty_charges_outstanding_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="total_overpaid_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="created_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_external_asset_owner_transfer_details_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="created_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="last_modified_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_external_asset_owner_transfer_details_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="last_modified_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_external_asset_owner_transfer_details_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="UQ_external_asset_owner_transfer_id" unique="true">
            <column ascending="true" name="asset_owner_transfer_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_external_asset_owner_transfer_journal_entry_mapping" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="Internal ID" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="journal_entry_id" nullable="false" remarks="Journal entry ID" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_ext_asset_owner_transfer_je_mapping_journal_entry_id" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_journal_entry"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="owner_transfer_id" nullable="true" remarks="Owner transfer" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_ext_asset_owner_transfer_je_mapping_owner_transfer_id" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_transfer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="created_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_ext_asset_owner_transfer_je_mapping_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="last_modified_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_ext_asset_owner_transfer_je_mapping_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="last_modified_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_external_asset_owner_transfer_journal_entry_mapping_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_e_asset_o_transfer_journal_entry_mapping_journal_entry_id" unique="false">
            <column ascending="true" name="journal_entry_id"/>
         </index>
         <index name="idx_e_asset_o_transfer_journal_entry_mapping_owner_transfer_id" unique="false">
            <column ascending="true" name="owner_transfer_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_external_asset_owner_transfer_loan_mapping" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="Internal ID" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="Loan ID" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_external_asset_owner_transfer_loan_mapping_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="owner_transfer_id" nullable="false" remarks="Owner" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_external_asset_owner_transfer_loan_mapping_owner_transfer_id" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_transfer"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="created_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_external_asset_owner_transfer_loan_mapping_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="last_modified_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_external_asset_owner_transfer_loan_mapping_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="last_modified_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_external_asset_owner_transfer_loan_mapping_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_e_asset_o_transfer_loan_mapping_owner_transfer_id" unique="false">
            <column ascending="true" name="owner_transfer_id"/>
         </index>
         <index name="IND_m_ext_asset_owner_transfer_loan_mapping_loan_id" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_external_event" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="type" nullable="false" remarks="" size="100" type="varchar" typeCode="12">
            <parent catalog="fineract_default" column="type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_external_event_configuration"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="created_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="status" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="business_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="data" nullable="false" remarks="" size="2147483647" type="bytea" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="idempotency_key" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="sent_at" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="schema" nullable="false" remarks="" size="300" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="category" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="aggregate_root_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_external_event_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_external_event_business_date_index" unique="false">
            <column ascending="true" name="business_date"/>
         </index>
         <index name="m_external_event_status_index" unique="false">
            <column ascending="true" name="status"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_external_event_configuration" numRows="189" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="type" nullable="false" remarks="" size="100" type="varchar" typeCode="12">
            <child catalog="fineract_default" column="parameter_type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="batch_job_execution_params"/>
            <child catalog="fineract_default" column="type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_business_date"/>
            <child catalog="fineract_default" column="type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_external_event"/>
            <child catalog="fineract_default" column="buy_down_fee_calculation_type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_loan"/>
            <child catalog="fineract_default" column="buy_down_fee_income_type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_loan"/>
            <child catalog="fineract_default" column="capitalized_income_calculation_type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_loan"/>
            <child catalog="fineract_default" column="frequency_type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_loan_reage_parameter"/>
            <child catalog="fineract_default" column="buy_down_fee_calculation_type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_product_loan"/>
            <child catalog="fineract_default" column="buy_down_fee_income_type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_product_loan"/>
            <child catalog="fineract_default" column="capitalized_income_calculation_type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_product_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="enabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="type" sequenceNumberInPK="1"/>
         <index name="m_external_event_configuration_pkey" unique="true">
            <column ascending="true" name="type"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_family_members" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="client_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_family_members_client_id_m_client" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="firstname" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="middlename" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="lastname" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="qualification" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="relationship_cv_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_family_members_relationship_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="marital_status_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_family_members_marital_status_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="gender_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_family_members_gender_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="date_of_birth" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="age" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="profession_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_family_members_profession_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="mobile_number" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="is_dependent" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_family_members_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_family_members_client_id_m_client" unique="false">
            <column ascending="true" name="client_id"/>
         </index>
         <index name="FK_m_family_members_gender_m_code_value" unique="false">
            <column ascending="true" name="gender_cv_id"/>
         </index>
         <index name="FK_m_family_members_marital_status_m_code_value" unique="false">
            <column ascending="true" name="marital_status_cv_id"/>
         </index>
         <index name="FK_m_family_members_profession_m_code_value" unique="false">
            <column ascending="true" name="profession_cv_id"/>
         </index>
         <index name="FK_m_family_members_relationship_m_code_value" unique="false">
            <column ascending="true" name="relationship_cv_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_field_configuration" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="entity" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="subentity" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="field" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="is_enabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="is_mandatory" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="validation_regex" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_field_configuration_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_floating_rates" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="floating_rates_id" foreignKey="FK_mappings_m_floating_rates" implied="false" onDeleteCascade="false" schema="public" table="m_floating_rates_periods"/>
            <child catalog="fineract_default" column="floating_rates_id" foreignKey="FK_mappings_m_floating_rates_id" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan_floating_rates"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="2" name="is_base_lending_rate" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="3" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_floating_rates_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_floating_rates_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_floating_rates_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_floating_rates_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_floating_rates_periods" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="floating_rates_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_mappings_m_floating_rates" implied="false" onDeleteCascade="false" schema="public" table="m_floating_rates"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="from_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="interest_rate" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="is_differential_to_base_lending_rate" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="5" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_floating_rates_period_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_floating_rates_period_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_floating_rates_periods_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_mappings_m_floating_rates" unique="false">
            <column ascending="true" name="floating_rates_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_fund" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="fund_id" foreignKey="fk7c885877240145" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
            <child catalog="fineract_default" column="fund_id" foreignKey="fka6a8a7d77240145" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
            <child catalog="fineract_default" column="fund_id" foreignKey="FK_m_wc_loan_fund" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
            <child catalog="fineract_default" column="fund_id" foreignKey="FK_wc_loan_product_fund" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_fund_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_fund_external_id_key" unique="true">
            <column ascending="true" name="external_id"/>
         </index>
         <index name="m_fund_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_group" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="group_id" foreignKey="FK_group_id" implied="false" onDeleteCascade="false" schema="public" table="glim_accounts"/>
            <child catalog="fineract_default" column="group_id" foreignKey="FK_gsim_group_id" implied="false" onDeleteCascade="false" schema="public" table="gsim_accounts"/>
            <child catalog="fineract_default" column="parent_id" foreignKey="Parent_Id_reference" implied="false" onDeleteCascade="false" schema="public" table="m_group"/>
            <child catalog="fineract_default" column="group_id" foreignKey="m_group_client_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_group_client"/>
            <child catalog="fineract_default" column="group_id" foreignKey="FKGroupRoleGroupId" implied="false" onDeleteCascade="false" schema="public" table="m_group_roles"/>
            <child catalog="fineract_default" column="group_id" foreignKey="m_loan_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
            <child catalog="fineract_default" column="group_id" foreignKey="FK_m_note_m_group" implied="false" onDeleteCascade="false" schema="public" table="m_note"/>
            <child catalog="fineract_default" column="group_id" foreignKey="fksa00000000000002" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
            <child catalog="fineract_default" column="centre_id" foreignKey="FK_m_staff_assignment_history_centre_id_m_group" implied="false" onDeleteCascade="false" schema="public" table="m_staff_assignment_history"/>
            <child catalog="fineract_default" column="group_id" foreignKey="sefkgroup000000001" implied="false" onDeleteCascade="false" schema="public" table="scheduled_email_messages_outbound"/>
            <child catalog="fineract_default" column="group_id" foreignKey="fkgroup000000001" implied="false" onDeleteCascade="false" schema="public" table="sms_messages_outbound"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="300" digits="0" id="2" name="status_enum" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="activation_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="office_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_group_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="staff_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_group_m_staff" implied="false" onDeleteCascade="false" schema="public" table="m_staff"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="parent_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="Parent_Id_reference" implied="false" onDeleteCascade="false" schema="public" table="m_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="level_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_group_level" implied="false" onDeleteCascade="false" schema="public" table="m_group_level"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="display_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="hierarchy" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="closure_reason_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_group_m_code" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="closedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="activatedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="submittedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="submittedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="closedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="account_no" nullable="false" remarks="" size="20" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_group_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_group_level" unique="false">
            <column ascending="true" name="level_id"/>
         </index>
         <index name="FK_m_group_m_code" unique="false">
            <column ascending="true" name="closure_reason_cv_id"/>
         </index>
         <index name="group_office_id" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="m_group_external_id_key" unique="true">
            <column ascending="true" name="external_id"/>
         </index>
         <index name="name" unique="true">
            <column ascending="true" name="display_name"/>
            <column ascending="true" name="level_id"/>
         </index>
         <index name="Parent_Id_reference" unique="false">
            <column ascending="true" name="parent_id"/>
         </index>
         <index name="staff_id" unique="false">
            <column ascending="true" name="staff_id"/>
         </index>
         <index name="uk_m_group_external_id" unique="true">
            <column ascending="true" name="external_id"/>
            <column ascending="true" name="level_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_group_client" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="group_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_group_client_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="client_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_group_client_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <primaryKey column="group_id" sequenceNumberInPK="1"/>
         <primaryKey column="client_id" sequenceNumberInPK="2"/>
         <index name="m_group_client_pkey" unique="true">
            <column ascending="true" name="group_id"/>
            <column ascending="true" name="client_id"/>
         </index>
         <index name="client_id" unique="false">
            <column ascending="true" name="client_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_group_level" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <child catalog="fineract_default" column="level_id" foreignKey="FK_m_group_level" implied="false" onDeleteCascade="false" schema="public" table="m_group"/>
            <child catalog="fineract_default" column="parent_id" foreignKey="Parent_levelId_reference" implied="false" onDeleteCascade="false" schema="public" table="m_group_level"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="parent_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="Parent_levelId_reference" implied="false" onDeleteCascade="false" schema="public" table="m_group_level"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="super_parent" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="level_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="recursable" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="can_have_clients" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_group_level_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="Parent_levelId_reference" unique="false">
            <column ascending="true" name="parent_id"/>
         </index>
         <checkConstraint constraint="id IS NOT NULL" name="m_group_level_id_not_null1"/>
      </table>
      <table catalog="fineract_default" name="m_group_roles" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="client_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FKGroupRoleClientId" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="group_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FKGroupRoleGroupId" implied="false" onDeleteCascade="false" schema="public" table="m_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="role_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_grouprole_m_codevalue" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_group_roles_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_grouprole_m_codevalue" unique="false">
            <column ascending="true" name="role_cv_id"/>
         </index>
         <index name="FKGroupRoleClientId" unique="false">
            <column ascending="true" name="client_id"/>
         </index>
         <index name="FKGroupRoleGroupId" unique="false">
            <column ascending="true" name="group_id"/>
         </index>
         <index name="unique_group_roles" unique="true">
            <column ascending="true" name="client_id"/>
            <column ascending="true" name="group_id"/>
            <column ascending="true" name="role_cv_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_guarantor" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="guarantor_id" foreignKey="FK_m_guarantor_fund_details_m_guarantor" implied="false" onDeleteCascade="false" schema="public" table="m_guarantor_funding_details"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_guarantor_m_loan" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="client_reln_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_guarantor_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="entity_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="firstname" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="lastname" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="dob" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="address_line_1" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="address_line_2" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="city" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="state" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="country" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="zip" nullable="true" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="house_phone_number" nullable="true" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="mobile_number" nullable="true" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="comment" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="17" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_guarantor_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_guarantor_m_code_value" unique="false">
            <column ascending="true" name="client_reln_cv_id"/>
         </index>
         <index name="FK_m_guarantor_m_loan" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_guarantor_funding_details" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="guarantor_fund_detail_id" foreignKey="FK_guarantor_transaction_guarantor_fund_detail" implied="false" onDeleteCascade="false" schema="public" table="m_guarantor_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="guarantor_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_guarantor_fund_details_m_guarantor" implied="false" onDeleteCascade="false" schema="public" table="m_guarantor"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="account_associations_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_guarantor_fund_details_account_associations_id" implied="false" onDeleteCascade="false" schema="public" table="m_portfolio_account_associations"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="4" name="amount_released_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="5" name="amount_remaining_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="6" name="amount_transfered_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="status_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_guarantor_funding_details_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_guarantor_fund_details_account_associations_id" unique="false">
            <column ascending="true" name="account_associations_id"/>
         </index>
         <index name="FK_m_guarantor_fund_details_m_guarantor" unique="false">
            <column ascending="true" name="guarantor_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_guarantor_transaction" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="guarantor_fund_detail_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_guarantor_transaction_guarantor_fund_detail" implied="false" onDeleteCascade="false" schema="public" table="m_guarantor_funding_details"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="loan_transaction_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_guarantor_transaction_m_loan_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="deposit_on_hold_transaction_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_guarantor_transaction_m_deposit_account_on_hold_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_deposit_account_on_hold_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="is_reversed" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_guarantor_transaction_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_guarantor_transaction_guarantor_fund_detail" unique="false">
            <column ascending="true" name="guarantor_fund_detail_id"/>
         </index>
         <index name="FK_guarantor_transaction_m_deposit_account_on_hold_transaction" unique="false">
            <column ascending="true" name="deposit_on_hold_transaction_id"/>
         </index>
         <index name="FK_guarantor_transaction_m_loan_transaction" unique="false">
            <column ascending="true" name="loan_transaction_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_holiday" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="holiday_id" foreignKey="m_holiday_id_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_holiday_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="from_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="to_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="repayments_rescheduled_to" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="100" digits="0" id="5" name="status_enum" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="processed" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="description" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="2" digits="0" id="8" name="rescheduling_type" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_holiday_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="holiday_name" unique="true">
            <column ascending="true" name="name"/>
            <column ascending="true" name="from_date"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_holiday_office" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="holiday_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_holiday_id_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_holiday"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="office_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_office_id_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <primaryKey column="holiday_id" sequenceNumberInPK="1"/>
         <primaryKey column="office_id" sequenceNumberInPK="2"/>
         <index name="m_holiday_office_pkey" unique="true">
            <column ascending="true" name="holiday_id"/>
            <column ascending="true" name="office_id"/>
         </index>
         <index name="m_holiday_id_ibfk_1" unique="false">
            <column ascending="true" name="holiday_id"/>
         </index>
         <index name="m_office_id_ibfk_2" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_hook" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="hook_id" foreignKey="fk_hook_id_cfg" implied="false" onDeleteCascade="false" schema="public" table="m_hook_configuration"/>
            <child catalog="fineract_default" column="hook_id" foreignKey="fk_hook_idc" implied="false" onDeleteCascade="false" schema="public" table="m_hook_registered_events"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="template_id" nullable="false" remarks="" size="5" type="int2" typeCode="5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_template_id" implied="false" onDeleteCascade="false" schema="public" table="m_hook_templates"/>
         </column>
         <column autoUpdated="false" defaultValue="true" digits="0" id="2" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="name" nullable="false" remarks="" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="createdby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="lastmodifiedby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="ugd_template_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_ugd_template_id" implied="false" onDeleteCascade="false" schema="public" table="m_template"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_hook_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_template_id_idx" unique="false">
            <column ascending="true" name="template_id"/>
         </index>
         <index name="fk_ugd_template_id" unique="false">
            <column ascending="true" name="ugd_template_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_hook_configuration" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="hook_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_hook_id_cfg" implied="false" onDeleteCascade="false" schema="public" table="m_hook"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="field_type" nullable="false" remarks="" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="field_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="field_value" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_hook_configuration_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_hook_configuration_hook" unique="false">
            <column ascending="true" name="hook_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_hook_registered_events" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="hook_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_hook_idc" implied="false" onDeleteCascade="false" schema="public" table="m_hook"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="entity_name" nullable="false" remarks="" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="action_name" nullable="false" remarks="" size="45" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_hook_registered_events_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_hook_id_idx" unique="false">
            <column ascending="true" name="hook_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_hook_schema" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="hook_template_id" nullable="false" remarks="" size="5" type="int2" typeCode="5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_hook_template_id" implied="false" onDeleteCascade="false" schema="public" table="m_hook_templates"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="field_type" nullable="false" remarks="" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="field_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="placeholder" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="optional" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_hook_schema_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_hook_template_id_idx" unique="false">
            <column ascending="true" name="hook_template_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_hook_templates" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="5" type="int2" typeCode="5">
            <child catalog="fineract_default" column="template_id" foreignKey="fk_template_id" implied="false" onDeleteCascade="false" schema="public" table="m_hook"/>
            <child catalog="fineract_default" column="hook_template_id" foreignKey="fk_hook_template_id" implied="false" onDeleteCascade="false" schema="public" table="m_hook_schema"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="45" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_hook_templates_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_image" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="image_id" foreignKey="FK_m_client_m_image" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
            <child catalog="fineract_default" column="image_id" foreignKey="FK_m_staff_m_image" implied="false" onDeleteCascade="false" schema="public" table="m_staff"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="location" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="storage_type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_image_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_import_document" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="document_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_import_m_document" implied="false" onDeleteCascade="false" schema="public" table="m_document"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="import_time" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="end_time" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="entity_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="completed" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="6" name="total_records" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="7" name="success_count" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="8" name="failure_count" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="createdby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_import_m_appuser" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_import_document_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_import_m_appuser" unique="false">
            <column ascending="true" name="createdby_id"/>
         </index>
         <index name="import_document_id" unique="false">
            <column ascending="true" name="document_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_interest_incentives" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="interest_rate_slab_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_interest_incentives_m_interest_rate_slab" implied="false" onDeleteCascade="false" schema="public" table="m_interest_rate_slab"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="entiry_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="attribute_name" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="condition_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="attribute_value" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="incentive_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_interest_incentives_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_interest_incentives_m_interest_rate_slab" unique="false">
            <column ascending="true" name="interest_rate_slab_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_interest_rate_chart" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="interest_rate_chart_id" foreignKey="fkdpirc00000000000002" implied="false" onDeleteCascade="false" schema="public" table="m_deposit_product_interest_rate_chart"/>
            <child catalog="fineract_default" column="interest_rate_chart_id" foreignKey="fkirs00000000000001" implied="false" onDeleteCascade="false" schema="public" table="m_interest_rate_slab"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="from_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="end_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="is_primary_grouping_by_amount" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_interest_rate_chart_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_interest_rate_slab" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="interest_rate_slab_id" foreignKey="FK_m_interest_incentives_m_interest_rate_slab" implied="false" onDeleteCascade="false" schema="public" table="m_interest_incentives"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="interest_rate_chart_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkirs00000000000001" implied="false" onDeleteCascade="false" schema="public" table="m_interest_rate_chart"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="period_type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="from_period" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="to_period" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="6" name="amount_range_from" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="7" name="amount_range_to" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="annual_interest_rate" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="currency_code" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_interest_rate_slab_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fkirs00000000000001" unique="false">
            <column ascending="true" name="interest_rate_chart_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_journal_entry_aggregation_summary" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="gl_account_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_gl_journal_entry_aggregation_summary_on_gl_account_id" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="office_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_gl_journal_entry_aggregation_summary_on_office_id" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="entity_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="aggregated_on_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="submitted_on_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="external_owner_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_gl_journal_entry_aggregation_summary_on_external_owner_id" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="debit_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="credit_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="10" name="manual_entry" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="job_execution_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="job_execution_id" foreignKey="fk_gl_journal_entry_aggregation_summary_on_job_execution_id" implied="false" onDeleteCascade="false" schema="public" table="batch_job_execution"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="created_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_gl_journal_entry_aggregation_summary_on_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="created_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="last_modified_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_gl_journal_entry_aggregation_summary_on_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="last_modified_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="originator_external_ids" nullable="true" remarks="" size="1000" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="pk_journal_entry_aggregation_summary" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_journal_entry_aggregation_summary" unique="false">
            <column ascending="true" name="submitted_on_date"/>
            <column ascending="true" name="gl_account_id"/>
         </index>
         <index name="idx_m_jour_ent_aggr_sum_aggr_date" unique="false">
            <column ascending="true" name="aggregated_on_date"/>
         </index>
         <index name="idx_m_jour_ent_aggr_sum_job_exec_id" unique="false">
            <column ascending="true" name="job_execution_id"/>
         </index>
         <index name="idx_m_jour_ent_aggr_sum_office_id" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="idx_m_jour_ent_aggr_sum_prod_id_entity_type" unique="false">
            <column ascending="true" name="product_id"/>
            <column ascending="true" name="entity_type_enum"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_journal_entry_aggregation_tracking" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="aggregated_on_date_from" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="aggregated_on_date_to" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="submitted_on_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="job_execution_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="job_execution_id" foreignKey="fk_gl_journal_entry_aggregation_tracking_on_job_execution_id" implied="false" onDeleteCascade="false" schema="public" table="batch_job_execution"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="created_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_gl_journal_entry_aggregation_tracking_on_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="last_modified_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_gl_journal_entry_aggregation_tracking_on_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="last_modified_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="pk_journal_entry_aggregation_tracking" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx2_m_journal_entry_aggregation_tracking" unique="true">
            <column ascending="true" name="aggregated_on_date_to"/>
         </index>
         <index name="idx_m_jour_ent_aggr_trac_job_exec_id" unique="false">
            <column ascending="true" name="job_execution_id"/>
         </index>
         <index name="idx_m_journal_entry_aggregation_tracking" unique="false">
            <column ascending="true" name="submitted_on_date"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="from_loan_account_id" foreignKey="FK_m_account_transfer_details_from_loan_account" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_details"/>
            <child catalog="fineract_default" column="to_loan_account_id" foreignKey="FK_m_account_transfer_details_to_loan_account" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_details"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="FK_external_asset_owner_transfer_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_transfer"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="FK_external_asset_owner_transfer_loan_mapping_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_transfer_loan_mapping"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="FK_m_guarantor_m_loan" implied="false" onDeleteCascade="false" schema="public" table="m_guarantor"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="fk_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_account_locks"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="FK_laam_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_amortization_allocation_mapping"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="FK_loan_approved_amount_history_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_approved_amount_history"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="m_loan_arrears_aging_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_loan_arrears_aging"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="FK_loan_buy_down_fees_balance_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_buy_down_fee_balance"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="FK_loan_capitalized_income_balance_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_capitalized_income_balance"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="m_loan_charge_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_loan_charge"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="FK_collateral_m_loan" implied="false" onDeleteCascade="false" schema="public" table="m_loan_collateral"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="fkLoan" implied="false" onDeleteCascade="true" schema="public" table="m_loan_collateral_management"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="m_loan_credit_allocation_rule_fk" implied="false" onDeleteCascade="false" schema="public" table="m_loan_credit_allocation_rule"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="FK_m_loan_delinquency_action_loan" implied="false" onDeleteCascade="false" schema="public" table="m_loan_delinquency_action"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="FK_m_delinquency_tags_loan" implied="false" onDeleteCascade="false" schema="public" table="m_loan_delinquency_tag_history"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="FK_loan_disbursement_detail_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_disbursement_detail"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="FK_m_delinquency_installment_tags_loan" implied="false" onDeleteCascade="false" schema="public" table="m_loan_installment_delinquency_tag"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="fk_m_loan_officer_assignment_history_0001" implied="false" onDeleteCascade="false" schema="public" table="m_loan_officer_assignment_history"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="FK_loan_originator_mapping_loan" implied="false" onDeleteCascade="false" schema="public" table="m_loan_originator_mapping"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="m_loan_payment_allocation_rule_fk" implied="false" onDeleteCascade="false" schema="public" table="m_loan_payment_allocation_rule"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="fk_m_loan_progressive_model_on_loan" implied="false" onDeleteCascade="false" schema="public" table="m_loan_progressive_model"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="fk_m_loan_rate_loan" implied="false" onDeleteCascade="false" schema="public" table="m_loan_rate"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="FK_m_loan_m_loan_recalculation_details" implied="false" onDeleteCascade="false" schema="public" table="m_loan_recalculation_details"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="fk488b92aa40be0710" implied="false" onDeleteCascade="false" schema="public" table="m_loan_repayment_schedule"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="m_loan_repayment_schedule_history_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_loan_repayment_schedule_history"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="m_loan_reschedule_request_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_loan_reschedule_request"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="m_loan_status_change_history_fk" implied="false" onDeleteCascade="false" schema="public" table="m_loan_status_change_history"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="FK_loan_id_m_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_term_variations"/>
            <child catalog="fineract_default" column="closure_loan_id" foreignKey="m_loan_topup_FK_closure_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_topup"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="m_loan_topup_FK_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_topup"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="FK_m_loan_tranche_charges_m_loan" implied="false" onDeleteCascade="false" schema="public" table="m_loan_tranche_charges"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="fkcfcea42640be0710" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="fk7c9708940be0710" implied="false" onDeleteCascade="false" schema="public" table="m_note"/>
            <child catalog="fineract_default" column="linked_loan_account_id" foreignKey="linked_loan_fk" implied="false" onDeleteCascade="false" schema="public" table="m_portfolio_account_associations"/>
            <child catalog="fineract_default" column="loan_account_id" foreignKey="account_association_loan_fk" implied="false" onDeleteCascade="false" schema="public" table="m_portfolio_account_associations"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="fkloanrepayment" implied="false" onDeleteCascade="true" schema="public" table="m_repayment_with_post_dated_checks"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="account_no" nullable="false" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="client_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkb6f935d87179a0cb" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="group_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="glim_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_glim_id" implied="false" onDeleteCascade="false" schema="public" table="glim_accounts"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="product_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkb6f935d8c8d4b434" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="fund_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk7c885877240145" implied="false" onDeleteCascade="false" schema="public" table="m_fund"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="loan_officer_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_loan_m_staff" implied="false" onDeleteCascade="false" schema="public" table="m_staff"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="loanpurpose_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_loanpurpose_codevalue" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="loan_status_id" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="loan_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="currency_code" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="currency_digits" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="currency_multiplesof" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="principal_amount_proposed" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="16" name="principal_amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="17" name="approved_principal" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="18" name="net_disbursal_amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="19" name="arrearstolerance_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="20" name="is_floating_interest_rate" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="21" name="interest_rate_differential" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="22" name="nominal_interest_rate_per_period" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="interest_period_frequency_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="24" name="annual_nominal_interest_rate" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="interest_method_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="26" name="interest_calculated_in_period_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="27" name="allow_partial_period_interest_calcualtion" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="28" name="term_frequency" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="2" digits="0" id="29" name="term_period_frequency_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="repay_every" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="repayment_period_frequency_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="number_of_repayments" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="grace_on_principal_periods" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="recurring_moratorium_principal_periods" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="grace_on_interest_periods" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="grace_interest_free_periods" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="amortization_method_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="submittedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="approvedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="approvedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_approvedon_userid" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="expected_disbursedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="expected_firstrepaymenton_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="interest_calculated_from_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="44" name="disbursedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="45" name="disbursedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_disbursedon_userid" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="expected_maturedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="maturedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="48" name="closedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="closedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_closedon_userid" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="50" name="total_charges_due_at_disbursement_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="51" name="principal_disbursed_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="52" name="principal_repaid_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="53" name="principal_writtenoff_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="54" name="principal_outstanding_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="55" name="interest_charged_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="56" name="interest_repaid_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="57" name="interest_waived_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="58" name="interest_writtenoff_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="59" name="interest_outstanding_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="60" name="fee_charges_charged_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="61" name="fee_charges_repaid_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="62" name="fee_charges_waived_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="63" name="fee_charges_writtenoff_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="64" name="fee_charges_outstanding_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="65" name="penalty_charges_charged_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="66" name="penalty_charges_repaid_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="67" name="penalty_charges_waived_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="68" name="penalty_charges_writtenoff_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="69" name="penalty_charges_outstanding_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="70" name="total_expected_repayment_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="71" name="total_repayment_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="72" name="total_expected_costofloan_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="73" name="total_costofloan_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="74" name="total_waived_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="75" name="total_writtenoff_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="76" name="total_outstanding_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="77" name="total_overpaid_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="78" name="rejectedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="79" name="rejectedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_rejectedon_userid" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="80" name="rescheduledon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="81" name="rescheduledon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="82" name="withdrawnon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="83" name="withdrawnon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_withdrawnon_userid" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="84" name="writtenoffon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="85" name="loan_transaction_strategy_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="86" name="sync_disbursement_with_meeting" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="87" name="loan_counter" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="88" name="loan_product_counter" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="89" name="fixed_emi_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="90" name="max_outstanding_loan_balance" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="91" name="grace_on_arrears_ageing" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="92" name="is_npa" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="93" name="total_recovered_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="94" name="accrued_till" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="95" name="interest_recalcualated_on" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="96" name="days_in_month_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="97" name="days_in_year_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="98" name="interest_recalculation_enabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="99" name="guarantee_amount_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="100" name="create_standing_instruction_at_disbursement" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="101" name="version" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="102" name="writeoff_reason_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_writeoffreason_m_loan_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="103" name="loan_sub_status_id" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="104" name="is_topup" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="105" name="is_equal_amortization" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="2" id="106" name="fixed_principal_percentage_per_installment" nullable="true" remarks="" size="5" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="107" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="108" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="109" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="110" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="111" name="principal_adjustments_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="112" name="is_fraud" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="'-'::character varying" digits="0" id="113" name="loan_transaction_strategy_code" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'-'::character varying" digits="0" id="114" name="loan_transaction_strategy_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="115" name="last_closed_business_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="116" name="overpaidon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="117" name="is_charged_off" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="118" name="charged_off_on_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="119" name="charge_off_reason_cv_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="120" name="charged_off_by_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="121" name="enable_down_payment" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="122" name="disbursed_amount_percentage_for_down_payment" nullable="true" remarks="" size="9" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="123" name="enable_installment_level_delinquency" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="124" name="enable_accrual_activity_posting" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="125" name="days_in_year_custom_strategy" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="126" name="enable_income_capitalization" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="127" name="capitalized_income_calculation_type" nullable="true" remarks="" size="100" type="varchar" typeCode="12">
            <parent catalog="fineract_default" column="type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_external_event_configuration"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="128" name="capitalized_income_strategy" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="129" name="capitalized_income_type" nullable="true" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="130" name="capitalized_income_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="131" name="capitalized_income_adjustment_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="132" name="total_principal_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="133" name="enable_buy_down_fee" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="134" name="buy_down_fee_calculation_type" nullable="true" remarks="" size="100" type="varchar" typeCode="12">
            <parent catalog="fineract_default" column="type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_external_event_configuration"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="135" name="buy_down_fee_strategy" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="136" name="buy_down_fee_income_type" nullable="true" remarks="" size="100" type="varchar" typeCode="12">
            <parent catalog="fineract_default" column="type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_external_event_configuration"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="137" name="allow_full_term_for_tranche" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="138" name="repayment_start_date_type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="139" name="month_end_due_date_strategy" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="140" name="enable_auto_repayment_for_down_payment" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="'CUMULATIVE'::character varying" digits="0" id="141" name="loan_schedule_type" nullable="false" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'HORIZONTAL'::character varying" digits="0" id="142" name="loan_schedule_processing_type" nullable="false" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="143" name="fee_adjustments_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="144" name="penalty_adjustments_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="145" name="fixed_length" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="146" name="supported_interest_refund_types" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'REGULAR'::character varying" digits="0" id="147" name="charge_off_behaviour" nullable="true" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="148" name="interest_recognition_on_disbursement_date" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="149" name="installment_amount_in_multiples_of" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="150" name="is_merchant_buy_down_fee" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk7c885877240145" unique="false">
            <column ascending="true" name="fund_id"/>
         </index>
         <index name="FK_approvedon_userid" unique="false">
            <column ascending="true" name="approvedon_userid"/>
         </index>
         <index name="FK_closedon_userid" unique="false">
            <column ascending="true" name="closedon_userid"/>
         </index>
         <index name="FK_disbursedon_userid" unique="false">
            <column ascending="true" name="disbursedon_userid"/>
         </index>
         <index name="FK_glim_id" unique="false">
            <column ascending="true" name="glim_id"/>
         </index>
         <index name="FK_loan_expected_maturedon_date" unique="false">
            <column ascending="true" name="expected_maturedon_date"/>
         </index>
         <index name="FK_loan_last_closed_business_date" unique="false">
            <column ascending="true" name="last_closed_business_date"/>
         </index>
         <index name="FK_loan_ltp_strategy" unique="false">
            <column ascending="true" name="loan_transaction_strategy_id"/>
         </index>
         <index name="FK_loan_overpaidon_date" unique="false">
            <column ascending="true" name="overpaidon_date"/>
         </index>
         <index name="FK_loan_status_id" unique="false">
            <column ascending="true" name="loan_status_id"/>
         </index>
         <index name="fk_m_group_client_001_idx" unique="false">
            <column ascending="true" name="group_id"/>
            <column ascending="true" name="client_id"/>
         </index>
         <index name="FK_m_loan_m_staff" unique="false">
            <column ascending="true" name="loan_officer_id"/>
         </index>
         <index name="FK_m_loanpurpose_codevalue" unique="false">
            <column ascending="true" name="loanpurpose_cv_id"/>
         </index>
         <index name="FK_rejectedon_userid" unique="false">
            <column ascending="true" name="rejectedon_userid"/>
         </index>
         <index name="FK_withdrawnon_userid" unique="false">
            <column ascending="true" name="withdrawnon_userid"/>
         </index>
         <index name="FK_writeoffreason_m_loan_m_code_value" unique="false">
            <column ascending="true" name="writeoff_reason_cv_id"/>
         </index>
         <index name="fkb6f935d87179a0cb" unique="false">
            <column ascending="true" name="client_id"/>
         </index>
         <index name="fkb6f935d8c8d4b434" unique="false">
            <column ascending="true" name="product_id"/>
         </index>
         <index name="group_id" unique="false">
            <column ascending="true" name="group_id"/>
         </index>
         <index name="m_loan_account_no_key" unique="true">
            <column ascending="true" name="account_no"/>
         </index>
         <index name="m_loan_external_id_key" unique="true">
            <column ascending="true" name="external_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_account_locks" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="lock_owner" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="error" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="version" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="stacktrace" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="lock_placed_on" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="lock_placed_on_cob_business_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="loan_id" sequenceNumberInPK="1"/>
         <index name="m_loan_account_locks_pkey" unique="true">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_amortization_allocation_mapping" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_laam_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="base_loan_transaction_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_laam_base_transaction_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="amortization_loan_transaction_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_laam_amortization_transaction_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="amortization_type" nullable="false" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="created_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_laam_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="created_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="last_modified_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_laam_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="last_modified_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="pk_m_loan_amortization_allocation_mapping" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_m_loan_am_all_map_amort_loan_txn_id" unique="false">
            <column ascending="true" name="amortization_loan_transaction_id"/>
         </index>
         <index name="idx_m_loan_am_all_map_base_loan_id" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
         <index name="idx_m_loan_am_all_map_base_loan_txn_id" unique="false">
            <column ascending="true" name="base_loan_transaction_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_approved_amount_history" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_approved_amount_history_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="new_approved_amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="old_approved_amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="created_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_approved_amount_history_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="last_modified_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_approved_amount_history_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="last_modified_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="pk_m_loan_approved_amount_history" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_arrears_aging" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_arrears_aging_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="0" digits="6" id="1" name="principal_overdue_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="2" name="interest_overdue_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="3" name="fee_charges_overdue_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="4" name="penalty_charges_overdue_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="5" name="total_overdue_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="overdue_since_date_derived" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="loan_id" sequenceNumberInPK="1"/>
         <index name="m_loan_arrears_aging_pkey" unique="true">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_buy_down_fee_balance" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="version" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_buy_down_fees_balance_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="loan_transaction_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_buy_down_fees_balance_transaction_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="unrecognized_amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="charged_off_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="amount_adjustment" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="created_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_buy_down_fees_balance_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="created_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="last_modified_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_buy_down_fees_balance_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="last_modified_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="13" name="is_deleted" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="14" name="is_closed" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="pk_m_loan_buy_down_fee_balance" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_loan_buy_down_fee_balance_idx_1" unique="true">
            <column ascending="true" name="loan_id"/>
            <column ascending="true" name="loan_transaction_id"/>
         </index>
         <index name="m_loan_buy_down_fee_balance_idx_2" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_capitalized_income_balance" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="version" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_capitalized_income_balance_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="loan_transaction_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_capitalized_income_balance_transaction_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="unrecognized_amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="charged_off_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="amount_adjustment" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="created_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_capitalized_income_balance_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="created_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="last_modified_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_capitalized_income_balance_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="last_modified_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="13" name="is_deleted" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="14" name="is_closed" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="pk_m_loan_capitalized_income_balance" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_loan_capitalized_income_balance_idx_1" unique="true">
            <column ascending="true" name="loan_id"/>
            <column ascending="true" name="loan_transaction_id"/>
         </index>
         <index name="m_loan_capitalized_income_balance_idx_2" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_charge" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="loan_charge_id" foreignKey="FK__m_loan_charge" implied="false" onDeleteCascade="false" schema="public" table="m_loan_charge_paid_by"/>
            <child catalog="fineract_default" column="loan_charge_id" foreignKey="fk_loan_charge_tax_details_charge" implied="false" onDeleteCascade="false" schema="public" table="m_loan_charge_tax_details"/>
            <child catalog="fineract_default" column="loan_charge_id" foreignKey="FK_loan_charge_id_charge_schedule" implied="false" onDeleteCascade="false" schema="public" table="m_loan_installment_charge"/>
            <child catalog="fineract_default" column="loan_charge_id" foreignKey="FK_m_loan_overdue_installment_charge_m_loan_charge" implied="false" onDeleteCascade="false" schema="public" table="m_loan_overdue_installment_charge"/>
            <child catalog="fineract_default" column="loan_charge_id" foreignKey="FK_m_loan_tranche_disbursement_charge_m_loan_charge" implied="false" onDeleteCascade="false" schema="public" table="m_loan_tranche_disbursement_charge"/>
            <child catalog="fineract_default" column="to_loan_charge_id" foreignKey="FK_m_loan_charge_to_relation" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction_relation"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_charge_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="charge_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_charge_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_charge"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="is_penalty" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="charge_time_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="due_for_collection_as_of_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="charge_calculation_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="7" name="charge_payment_mode_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="8" name="calculation_percentage" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="9" name="calculation_on_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="10" name="charge_amount_or_percentage" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="12" name="amount_paid_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="13" name="amount_waived_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="14" name="amount_writtenoff_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="15" name="amount_outstanding_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="16" name="is_paid_derived" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="17" name="waived" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="18" name="min_cap" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="19" name="max_cap" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="20" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="submitted_on_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="23" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="24" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_charge_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_charge_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="27" name="tax_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_charge_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="charge_id" unique="false">
            <column ascending="true" name="charge_id"/>
         </index>
         <index name="m_loan_charge_external_id_key" unique="true">
            <column ascending="true" name="external_id"/>
         </index>
         <index name="m_loan_charge_ibfk_2" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_charge_paid_by" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_transaction_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK__m_loan_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="loan_charge_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK__m_loan_charge" implied="false" onDeleteCascade="false" schema="public" table="m_loan_charge"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="installment_number" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_charge_paid_by_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK__m_loan_charge" unique="false">
            <column ascending="true" name="loan_charge_id"/>
         </index>
         <index name="FK__m_loan_transaction" unique="false">
            <column ascending="true" name="loan_transaction_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_charge_tax_details" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_charge_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_loan_charge_tax_details_charge" implied="false" onDeleteCascade="false" schema="public" table="m_loan_charge"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="tax_component_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_loan_charge_tax_details_component" implied="false" onDeleteCascade="false" schema="public" table="m_tax_component"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_charge_tax_details_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_collateral" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_collateral_m_loan" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="type_cv_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_collateral_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="3" name="value" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="description" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_collateral_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_collateral_code_value" unique="false">
            <column ascending="true" name="type_cv_id"/>
         </index>
         <index name="FK_collateral_m_loan" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_collateral_management" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="5" id="1" name="quantity" nullable="false" remarks="" size="20" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="loan_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkLoan" implied="false" onDeleteCascade="true" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="client_collateral_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkClientCollateral" implied="false" onDeleteCascade="true" schema="public" table="m_client_collateral_management"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="is_released" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="transaction_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkTransaction" implied="false" onDeleteCascade="true" schema="public" table="m_loan_transaction"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_collateral_management_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fkClientCollateral" unique="false">
            <column ascending="true" name="client_collateral_id"/>
         </index>
         <index name="fkLoan" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
         <index name="fkTransaction" unique="false">
            <column ascending="true" name="transaction_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_credit_allocation_rule" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_credit_allocation_rule_fk" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="transaction_type" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="allocation_types" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_credit_allocation_rule_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_credit_allocation_rule_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_credit_allocation_rule_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="IND_loan_credit_allocation_rule_loan_id" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
         <index name="uq_m_loan_credit_allocation_rule" unique="true">
            <column ascending="true" name="loan_id"/>
            <column ascending="true" name="transaction_type"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_delinquency_action" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_loan_delinquency_action_loan" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="action" nullable="false" remarks="" size="128" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="start_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="end_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_delinquency_action_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_loan_delinquency_action_loan_id_index" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_delinquency_tag_history" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="delinquency_range_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_delinquency_tags_range" implied="false" onDeleteCascade="false" schema="public" table="m_delinquency_range"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_delinquency_tags_loan" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="addedon_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="liftedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="version" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_delinquency_tag_history_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="ind_m_loan_delinquency_tag_history_liftedon_date" unique="false">
            <column ascending="true" name="liftedon_date"/>
         </index>
         <index name="ind_m_loan_delinquency_tag_history_loan_id" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_disbursement_detail" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="disbursement_detail_id" foreignKey="FK_m_loan_tranche_disbursement_charge_m_loan_disbursement_detai" implied="false" onDeleteCascade="false" schema="public" table="m_loan_tranche_disbursement_charge"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_disbursement_detail_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="expected_disburse_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="disbursedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="principal" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="5" name="net_disbursal_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="is_reversed" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_disbursement_detail_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_loan_disbursement_detail_loan_id" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_installment_charge" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_charge_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_charge_id_charge_schedule" implied="false" onDeleteCascade="false" schema="public" table="m_loan_charge"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="loan_schedule_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_schedule_id_charge_schedule" implied="false" onDeleteCascade="false" schema="public" table="m_loan_repayment_schedule"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="due_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="5" name="amount_paid_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="6" name="amount_waived_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="7" name="amount_writtenoff_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="8" name="amount_outstanding_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="9" name="is_paid_derived" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="10" name="waived" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="11" name="amount_through_charge_payment" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_installment_charge_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_loan_charge_id_charge_schedule" unique="false">
            <column ascending="true" name="loan_charge_id"/>
         </index>
         <index name="FK_loan_schedule_id_charge_schedule" unique="false">
            <column ascending="true" name="loan_schedule_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_installment_delinquency_tag" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="delinquency_range_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_delinquency_installment_tags_range" implied="false" onDeleteCascade="false" schema="public" table="m_delinquency_range"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_delinquency_installment_tags_loan" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="installment_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="addedon_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="first_overdue_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="outstanding_amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="liftedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="version" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_installment_delinquency_tag_history_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_interest_recalculation_additional_details" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_repayment_schedule_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_additional_details_repayment_schedule_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_repayment_schedule"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="effective_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_interest_recalculation_additional_details_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_additional_details_repayment_schedule_id" unique="false">
            <column ascending="true" name="loan_repayment_schedule_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_officer_assignment_history" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_loan_officer_assignment_history_0001" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="loan_officer_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_loan_officer_assignment_history_0002" implied="false" onDeleteCascade="false" schema="public" table="m_staff"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="start_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="end_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="createdby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="lastmodifiedby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_officer_assignment_history_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_m_loan_officer_assignment_history_0001" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
         <index name="fk_m_loan_officer_assignment_history_0002" unique="false">
            <column ascending="true" name="loan_officer_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_originator" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="originator_id" foreignKey="FK_loan_originator_mapping_originator" implied="false" onDeleteCascade="false" schema="public" table="m_loan_originator_mapping"/>
            <child catalog="fineract_default" column="originator_id" foreignKey="FK_wc_loan_originator_mapping_originator" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_originator_mapping"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="external_id" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="status" nullable="false" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="originator_type_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_originator_type_cv" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="channel_type_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_originator_channel_cv" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_originator_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_originator_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_originator_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_loan_originator_status" unique="false">
            <column ascending="true" name="status"/>
         </index>
         <index name="UQ_loan_originator_external_id" unique="true">
            <column ascending="true" name="external_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_originator_mapping" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_originator_mapping_loan" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="originator_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_originator_mapping_originator" implied="false" onDeleteCascade="false" schema="public" table="m_loan_originator"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_originator_mapping_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_originator_mapping_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_originator_mapping_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_loan_originator_mapping_originator" unique="false">
            <column ascending="true" name="originator_id"/>
         </index>
         <index name="UQ_loan_originator_mapping_loan_originator" unique="true">
            <column ascending="true" name="loan_id"/>
            <column ascending="true" name="originator_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_overdue_installment_charge" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_charge_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_loan_overdue_installment_charge_m_loan_charge" implied="false" onDeleteCascade="false" schema="public" table="m_loan_charge"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="loan_schedule_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_loan_overdue_installment_charge_m_loan_repayment_schedule" implied="false" onDeleteCascade="false" schema="public" table="m_loan_repayment_schedule"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="frequency_number" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_overdue_installment_charge_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_loan_overdue_installment_charge_m_loan_charge" unique="false">
            <column ascending="true" name="loan_charge_id"/>
         </index>
         <index name="FK_m_loan_overdue_installment_charge_m_loan_repayment_schedule" unique="false">
            <column ascending="true" name="loan_schedule_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_payment_allocation_rule" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_payment_allocation_rule_fk" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="transaction_type" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="allocation_types" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="future_installment_allocation_rule" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_payment_allocation_rule_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_payment_allocation_rule_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_payment_allocation_rule_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="IND_loan_payment_allocation_rule_loan_id" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
         <index name="uq_m_loan_payment_allocation_rule" unique="true">
            <column ascending="true" name="loan_id"/>
            <column ascending="true" name="transaction_type"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_product_credit_allocation_rule" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_product_credit_allocation_rule_fk" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="transaction_type" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="allocation_types" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_product_credit_allocation_rule_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_product_credit_allocation_rule_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_product_credit_allocation_rule_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="IND_loan_product_credit_allocation_rule_loan_product_id" unique="false">
            <column ascending="true" name="loan_product_id"/>
         </index>
         <index name="uq_m_loan_product_credit_allocation_rule" unique="true">
            <column ascending="true" name="loan_product_id"/>
            <column ascending="true" name="transaction_type"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_product_payment_allocation_rule" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_product_payment_allocation_rule_fk" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="transaction_type" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="allocation_types" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="future_installment_allocation_rule" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_product_payment_allocation_rule_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_product_payment_allocation_rule_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_product_payment_allocation_rule_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="IND_loan_product_payment_allocation_rule_loan_product_id" unique="false">
            <column ascending="true" name="loan_product_id"/>
         </index>
         <index name="uq_m_loan_product_payment_allocation_rule" unique="true">
            <column ascending="true" name="loan_product_id"/>
            <column ascending="true" name="transaction_type"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_progressive_model" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="version" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_loan_progressive_model_on_loan" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="json_model" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="business_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="'1'::character varying" digits="0" id="6" name="json_model_version" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="pk_m_loan_progressive_model" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="uc_m_loan_progressive_model_loan" unique="true">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_rate" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_loan_rate_loan" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="rate_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_loan_rate_rate" implied="false" onDeleteCascade="false" schema="public" table="m_rate"/>
         </column>
         <primaryKey column="loan_id" sequenceNumberInPK="1"/>
         <primaryKey column="rate_id" sequenceNumberInPK="2"/>
         <index name="m_loan_rate_pkey" unique="true">
            <column ascending="true" name="loan_id"/>
            <column ascending="true" name="rate_id"/>
         </index>
         <index name="fk_m_loan_rate_rate" unique="false">
            <column ascending="true" name="rate_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_reage_parameter" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="frequency_type" nullable="false" remarks="" size="100" type="varchar" typeCode="12">
            <parent catalog="fineract_default" column="type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_external_event_configuration"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="number_of_installments" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="start_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="loan_transaction_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="9" name="frequency_number" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="'DEFAULT'::character varying" digits="0" id="10" name="interest_handling_type" nullable="false" remarks="" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="reage_reason_code_value_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_reage_reason_code_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_reage_parameter_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_reamortization_parameter" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_transaction_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="'DEFAULT'::character varying" digits="0" id="2" name="interest_handling_type" nullable="false" remarks="" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="reamortization_reason_code_value_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_reamortization_reason_code_m_code_value" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_reamortization_parameter_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_recalculation_details" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_loan_m_loan_recalculation_details" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="compound_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="reschedule_strategy_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="rest_frequency_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="5" name="rest_frequency_interval" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="compounding_frequency_type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="compounding_frequency_interval" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="rest_frequency_nth_day_enum" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="rest_frequency_on_day" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="rest_frequency_weekday_enum" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="compounding_frequency_nth_day_enum" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="compounding_frequency_on_day" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="13" name="is_compounding_to_be_posted_as_transaction" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="compounding_frequency_weekday_enum" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="15" name="allow_compounding_on_eod" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="16" name="disallow_interest_calc_on_past_due" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="17" name="pre_close_interest_calculation_strategy" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_recalculation_details_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_loan_m_loan_recalculation_details" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_repayment_schedule" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="loan_schedule_id" foreignKey="FK_loan_schedule_id_charge_schedule" implied="false" onDeleteCascade="false" schema="public" table="m_loan_installment_charge"/>
            <child catalog="fineract_default" column="loan_repayment_schedule_id" foreignKey="FK_additional_details_repayment_schedule_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_interest_recalculation_additional_details"/>
            <child catalog="fineract_default" column="loan_schedule_id" foreignKey="FK_m_loan_overdue_installment_charge_m_loan_repayment_schedule" implied="false" onDeleteCascade="false" schema="public" table="m_loan_overdue_installment_charge"/>
            <child catalog="fineract_default" column="loan_repayment_schedule_id" foreignKey="FK_mappings_m_loan_repayment_schedule" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction_repayment_schedule_mapping"/>
            <child catalog="fineract_default" column="repayment_id" foreignKey="fkrepaymentwithpostdated" implied="false" onDeleteCascade="true" schema="public" table="m_repayment_with_post_dated_checks"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk488b92aa40be0710" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="fromdate" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="duedate" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="installment" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="5" name="principal_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="6" name="principal_completed_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="7" name="principal_writtenoff_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="8" name="interest_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="9" name="interest_completed_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="10" name="interest_writtenoff_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="11" name="interest_waived_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="12" name="accrual_interest_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="13" name="reschedule_interest_portion" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="14" name="fee_charges_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="15" name="fee_charges_completed_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="16" name="fee_charges_writtenoff_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="17" name="fee_charges_waived_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="18" name="accrual_fee_charges_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="19" name="penalty_charges_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="20" name="penalty_charges_completed_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="21" name="penalty_charges_writtenoff_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="22" name="penalty_charges_waived_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="23" name="accrual_penalty_charges_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="24" name="total_paid_in_advance_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="25" name="total_paid_late_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="completed_derived" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="obligations_met_on_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_repayment_schedule_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="29" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="30" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_repayment_schedule_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="32" name="recalculated_interest_component" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="33" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="34" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="35" name="is_additional" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="36" name="credits_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="37" name="is_down_payment" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="38" name="credited_interest" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="39" name="credited_fee" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="40" name="credited_penalty" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="41" name="is_re_aged" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_repayment_schedule_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk488b92aa40be0710" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_repayment_schedule_history" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_repayment_schedule_history_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="loan_reschedule_request_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_repayment_schedule_history_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_loan_reschedule_request"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="fromdate" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="duedate" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="installment" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="6" name="principal_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="7" name="interest_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="8" name="fee_charges_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="9" name="penalty_charges_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="createdby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="lastmodifiedby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="version" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="16" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_repayment_schedule_history_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="loan_id" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
         <index name="loan_reschedule_request_id" unique="false">
            <column ascending="true" name="loan_reschedule_request_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_reschedule_request" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="loan_reschedule_request_id" foreignKey="m_loan_repayment_schedule_history_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_loan_repayment_schedule_history"/>
            <child catalog="fineract_default" column="loan_reschedule_request_id" foreignKey="FK__m_loan_reschedule_request" implied="false" onDeleteCascade="false" schema="public" table="m_loan_reschedule_request_term_variations_mapping"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_reschedule_request_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="status_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="reschedule_from_installment" nullable="false" remarks="Rescheduling will start from this installment" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="reschedule_from_date" nullable="false" remarks="Rescheduling will start from the installment with due date similar to this date." size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="recalculate_interest" nullable="true" remarks="If set to 1, interest will be recalculated starting from the reschedule period." size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="reschedule_reason_cv_id" nullable="true" remarks="ID of code value of reason for rescheduling" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_reschedule_request_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="reschedule_reason_comment" nullable="true" remarks="Text provided in addition to the reason code value" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="submitted_on_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="submitted_by_user_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_reschedule_request_ibfk_3" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="approved_on_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="approved_by_user_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_reschedule_request_ibfk_4" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="rejected_on_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="rejected_by_user_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_reschedule_request_ibfk_5" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_reschedule_request_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="approved_by_user_id" unique="false">
            <column ascending="true" name="approved_by_user_id"/>
         </index>
         <index name="loan_reschedule_request_loan_id" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
         <index name="rejected_by_user_id" unique="false">
            <column ascending="true" name="rejected_by_user_id"/>
         </index>
         <index name="reschedule_reason_cv_id" unique="false">
            <column ascending="true" name="reschedule_reason_cv_id"/>
         </index>
         <index name="submitted_by_user_id" unique="false">
            <column ascending="true" name="submitted_by_user_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_reschedule_request_term_variations_mapping" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_reschedule_request_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK__m_loan_reschedule_request" implied="false" onDeleteCascade="false" schema="public" table="m_loan_reschedule_request"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="loan_term_variations_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK__m_loan_term_variations" implied="false" onDeleteCascade="false" schema="public" table="m_loan_term_variations"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_reschedule_request_term_variations_mapping_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK__m_loan_reschedule_request" unique="false">
            <column ascending="true" name="loan_reschedule_request_id"/>
         </index>
         <index name="FK__m_loan_term_variations" unique="false">
            <column ascending="true" name="loan_term_variations_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_status_change_history" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_status_change_history_fk" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="status_code" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="status_change_business_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_oan_status_change_history_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_status_change_history_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_status_change_history_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="IND_loan_status_change_hist_s_change_bus_date" unique="false">
            <column ascending="true" name="status_change_business_date"/>
         </index>
         <index name="IND_loan_status_change_hist_status_code" unique="false">
            <column ascending="true" name="status_code"/>
         </index>
         <index name="IND_loan_status_change_history_loan_id" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_term_variations" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="loan_term_variations_id" foreignKey="FK__m_loan_term_variations" implied="false" onDeleteCascade="false" schema="public" table="m_loan_reschedule_request_term_variations_mapping"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_id_m_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="term_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="applicable_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="4" name="decimal_value" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="date_value" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="is_specific_to_installment" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="applied_on_loan_status" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="8" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="parent_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="created_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="created_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_term_variations_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="last_modified_by" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_term_variations_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="last_modified_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_term_variations_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_loan_id_m_loan_id" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_topup" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_topup_FK_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="closure_loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_topup_FK_closure_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="account_transfer_details_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loan_topup_FK_account_transfer_details_id" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_details"/>
         </column>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="4" name="topup_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_topup_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_loan_topup_FK_account_transfer_details_id" unique="false">
            <column ascending="true" name="account_transfer_details_id"/>
         </index>
         <index name="m_loan_topup_FK_closure_loan_id" unique="false">
            <column ascending="true" name="closure_loan_id"/>
         </index>
         <index name="m_loan_topup_FK_loan_id" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_tranche_charges" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_loan_tranche_charges_m_loan" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="charge_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_loan_tranche_charges_m_charge" implied="false" onDeleteCascade="false" schema="public" table="m_charge"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_tranche_charges_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_loan_tranche_charges_m_charge" unique="false">
            <column ascending="true" name="charge_id"/>
         </index>
         <index name="FK_m_loan_tranche_charges_m_loan" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_tranche_disbursement_charge" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_charge_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_loan_tranche_disbursement_charge_m_loan_charge" implied="false" onDeleteCascade="false" schema="public" table="m_loan_charge"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="disbursement_detail_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_loan_tranche_disbursement_charge_m_loan_disbursement_detai" implied="false" onDeleteCascade="false" schema="public" table="m_loan_disbursement_detail"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_tranche_disbursement_charge_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_loan_tranche_disbursement_charge_m_loan_charge" unique="false">
            <column ascending="true" name="loan_charge_id"/>
         </index>
         <index name="FK_m_loan_tranche_disbursement_charge_m_loan_disbursement_detai" unique="false">
            <column ascending="true" name="disbursement_detail_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_transaction" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="loan_transaction_id" foreignKey="FK_acc_gl_journal_entry_m_loan_transaction" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_journal_entry"/>
            <child catalog="fineract_default" column="from_loan_transaction_id" foreignKey="FK_m_account_transfer_transaction_from_m_loan_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_transaction"/>
            <child catalog="fineract_default" column="to_loan_transaction_id" foreignKey="FK_m_account_transfer_transaction_to_m_loan_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_transaction"/>
            <child catalog="fineract_default" column="loan_transaction_id" foreignKey="FK_guarantor_transaction_m_loan_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_guarantor_transaction"/>
            <child catalog="fineract_default" column="amortization_loan_transaction_id" foreignKey="FK_laam_amortization_transaction_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_amortization_allocation_mapping"/>
            <child catalog="fineract_default" column="base_loan_transaction_id" foreignKey="FK_laam_base_transaction_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_amortization_allocation_mapping"/>
            <child catalog="fineract_default" column="loan_transaction_id" foreignKey="FK_loan_buy_down_fees_balance_transaction_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_buy_down_fee_balance"/>
            <child catalog="fineract_default" column="loan_transaction_id" foreignKey="FK_loan_capitalized_income_balance_transaction_id" implied="false" onDeleteCascade="false" schema="public" table="m_loan_capitalized_income_balance"/>
            <child catalog="fineract_default" column="loan_transaction_id" foreignKey="FK__m_loan_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_loan_charge_paid_by"/>
            <child catalog="fineract_default" column="transaction_id" foreignKey="fkTransaction" implied="false" onDeleteCascade="true" schema="public" table="m_loan_collateral_management"/>
            <child catalog="fineract_default" column="from_loan_transaction_id" foreignKey="FK_m_loan_transaction_from_relation" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction_relation"/>
            <child catalog="fineract_default" column="to_loan_transaction_id" foreignKey="FK_m_loan_transaction_to_relation" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction_relation"/>
            <child catalog="fineract_default" column="loan_transaction_id" foreignKey="FK_mappings_m_loan_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction_repayment_schedule_mapping"/>
            <child catalog="fineract_default" column="loan_transaction_id" foreignKey="fk7c9708924d26803" implied="false" onDeleteCascade="false" schema="public" table="m_note"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkcfcea42640be0710" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="office_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_loan_transaction_m_office" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="payment_detail_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_loan_transaction_m_payment_detail" implied="false" onDeleteCascade="false" schema="public" table="m_payment_detail"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="is_reversed" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="transaction_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="transaction_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="9" name="principal_portion_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="10" name="interest_portion_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="11" name="fee_charges_portion_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="12" name="penalty_charges_portion_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="13" name="overpayment_portion_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="14" name="unrecognized_income_portion" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="15" name="outstanding_loan_balance_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="submitted_on_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="17" name="manually_adjusted_or_reversed" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="18" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_transaction_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_loan_transaction_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="21" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="22" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="charge_refund_charge_type" nullable="true" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="NULL::character varying" digits="0" id="24" name="reversal_external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="reversed_on_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="26" name="version" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="classification_cv_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_transaction_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_loan_transaction_m_office" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="FK_m_loan_transaction_m_payment_detail" unique="false">
            <column ascending="true" name="payment_detail_id"/>
         </index>
         <index name="fkcfcea42640be0710" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
         <index name="m_loan_transaction_external_id_key" unique="true">
            <column ascending="true" name="external_id"/>
         </index>
         <index name="unique_reversal_external_id_loan_transaction" unique="true">
            <column ascending="true" name="reversal_external_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_transaction_relation" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="from_loan_transaction_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_loan_transaction_from_relation" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="to_loan_transaction_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_loan_transaction_to_relation" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="relation_type_enum" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="to_loan_charge_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_loan_charge_to_relation" implied="false" onDeleteCascade="false" schema="public" table="m_loan_charge"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_transaction_relation_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_m_loan_transaction_relation_from_loan_transaction_id" unique="false">
            <column ascending="true" name="from_loan_transaction_id"/>
         </index>
         <index name="idx_m_loan_transaction_relation_to_loan_charge_id" unique="false">
            <column ascending="true" name="to_loan_charge_id"/>
         </index>
         <index name="idx_m_loan_transaction_relation_to_loan_transaction_id" unique="false">
            <column ascending="true" name="to_loan_transaction_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loan_transaction_repayment_schedule_mapping" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_transaction_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_mappings_m_loan_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="loan_repayment_schedule_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_mappings_m_loan_repayment_schedule" implied="false" onDeleteCascade="false" schema="public" table="m_loan_repayment_schedule"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="4" name="principal_portion_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="5" name="interest_portion_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="6" name="fee_charges_portion_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="7" name="penalty_charges_portion_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loan_transaction_repayment_schedule_mapping_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_mappings_m_loan_repayment_schedule" unique="false">
            <column ascending="true" name="loan_repayment_schedule_id"/>
         </index>
         <index name="FK_mappings_m_loan_transaction" unique="false">
            <column ascending="true" name="loan_transaction_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loanproduct_provisioning_entry" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="history_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loanproduct_provisioning_entry_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_provisioning_history"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="criteria_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loanproduct_provisioning_entry_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_provisioning_criteria"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="currency_code" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="office_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loanproduct_provisioning_entry_ibfk_3" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loanproduct_provisioning_entry_ibfk_4" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="category_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loanproduct_provisioning_entry_ibfk_5" implied="false" onDeleteCascade="false" schema="public" table="m_provision_category"/>
         </column>
         <column autoUpdated="false" defaultValue="0" digits="0" id="7" name="overdue_in_days" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="8" name="reseve_amount" nullable="true" remarks="" size="20" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="liability_account" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loanproduct_provisioning_entry_ibfk_6" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="expense_account" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loanproduct_provisioning_entry_ibfk_7" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_account"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loanproduct_provisioning_entry_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="category_id" unique="false">
            <column ascending="true" name="category_id"/>
         </index>
         <index name="expense_account" unique="false">
            <column ascending="true" name="expense_account"/>
         </index>
         <index name="fk_loanproduct_provisioning_entry_criteria" unique="false">
            <column ascending="true" name="criteria_id"/>
         </index>
         <index name="history_id" unique="false">
            <column ascending="true" name="history_id"/>
         </index>
         <index name="loanproduct_provisioning_entry_liability_account" unique="false">
            <column ascending="true" name="liability_account"/>
         </index>
         <index name="loanproduct_provisioning_entry_office_id" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="loanproduct_provisioning_entry_product_id" unique="false">
            <column ascending="true" name="product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_loanproduct_provisioning_mapping" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loanproduct_provisioning_mapping_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="criteria_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_loanproduct_provisioning_mapping_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_provisioning_criteria"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_loanproduct_provisioning_mapping_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_loanproduct_provisioning_mapping_criteria" unique="false">
            <column ascending="true" name="criteria_id"/>
         </index>
         <index name="m_loanproduct_provisioning_mapping_product_id_key" unique="true">
            <column ascending="true" name="product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_mandatory_savings_schedule" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="savings_account_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkmss0000000001" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="fromdate" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="duedate" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="installment" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="5" name="deposit_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="6" name="deposit_amount_completed_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="7" name="total_paid_in_advance_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="8" name="total_paid_late_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="completed_derived" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="obligations_met_on_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_mandatory_savings_schedule_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_mandatory_savings_schedule_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="16" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_mandatory_savings_schedule_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fkmss0000000001" unique="false">
            <column ascending="true" name="savings_account_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_meeting" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="meeting_id" foreignKey="FK_m_meeting_m_client_attendance" implied="false" onDeleteCascade="false" schema="public" table="m_client_attendance"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="calendar_instance_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_calendar_instance_m_meeting" implied="false" onDeleteCascade="false" schema="public" table="m_calendar_instance"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="meeting_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_meeting_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="unique_calendar_instance_id_meeting_date" unique="true">
            <column ascending="true" name="calendar_instance_id"/>
            <column ascending="true" name="meeting_date"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_note" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="client_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk7c970897179a0cb" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="group_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_note_m_group" implied="false" onDeleteCascade="false" schema="public" table="m_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="loan_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk7c9708940be0710" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="loan_transaction_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk7c9708924d26803" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="savings_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_savings_account_id" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="savings_account_transaction_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="share_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="note_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="note" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk7c97089541f0a56" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk7c970898f889c3f" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_note_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk7c9708924d26803" unique="false">
            <column ascending="true" name="loan_transaction_id"/>
         </index>
         <index name="fk7c9708940be0710" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
         <index name="fk7c97089541f0a56" unique="false">
            <column ascending="true" name="created_by"/>
         </index>
         <index name="fk7c970897179a0cb" unique="false">
            <column ascending="true" name="client_id"/>
         </index>
         <index name="fk7c970898f889c3f" unique="false">
            <column ascending="true" name="last_modified_by"/>
         </index>
         <index name="FK_m_note_m_group" unique="false">
            <column ascending="true" name="group_id"/>
         </index>
         <index name="FK_savings_account_id" unique="false">
            <column ascending="true" name="savings_account_id"/>
         </index>
         <index name="savings_account_transaction_id" unique="false">
            <column ascending="true" name="savings_account_transaction_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_office" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="office_id" foreignKey="FK_acc_accounting_rule_m_office" implied="false" onDeleteCascade="false" schema="public" table="acc_accounting_rule"/>
            <child catalog="fineract_default" column="office_id" foreignKey="FK_acc_gl_closure_m_office" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_closure"/>
            <child catalog="fineract_default" column="office_id" foreignKey="FK_acc_gl_journal_entry_m_office" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_journal_entry"/>
            <child catalog="fineract_default" column="from_office_id" foreignKey="FK_m_account_transfer_details_from_office" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_details"/>
            <child catalog="fineract_default" column="to_office_id" foreignKey="FK_m_account_transfer_details_to_office" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_details"/>
            <child catalog="fineract_default" column="office_id" foreignKey="fkb3d587ce0dd567a" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
            <child catalog="fineract_default" column="office_id" foreignKey="fkce00cab3e0dd567a" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
            <child catalog="fineract_default" column="transfer_to_office_id" foreignKey="FK_m_client_m_office" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
            <child catalog="fineract_default" column="from_office_id" foreignKey="FK_m_client_transfer_details_m_office" implied="false" onDeleteCascade="false" schema="public" table="m_client_transfer_details"/>
            <child catalog="fineract_default" column="to_office_id" foreignKey="FK_m_client_transfer_details_m_office_2" implied="false" onDeleteCascade="false" schema="public" table="m_client_transfer_details"/>
            <child catalog="fineract_default" column="office_id" foreignKey="m_group_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_group"/>
            <child catalog="fineract_default" column="office_id" foreignKey="m_office_id_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_holiday_office"/>
            <child catalog="fineract_default" column="office_id" foreignKey="fk_gl_journal_entry_aggregation_summary_on_office_id" implied="false" onDeleteCascade="false" schema="public" table="m_journal_entry_aggregation_summary"/>
            <child catalog="fineract_default" column="office_id" foreignKey="FK_m_loan_transaction_m_office" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction"/>
            <child catalog="fineract_default" column="office_id" foreignKey="m_loanproduct_provisioning_entry_ibfk_3" implied="false" onDeleteCascade="false" schema="public" table="m_loanproduct_provisioning_entry"/>
            <child catalog="fineract_default" column="parent_id" foreignKey="fk2291c477e2551dcc" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
            <child catalog="fineract_default" column="from_office_id" foreignKey="fk1e37728b783c5c25" implied="false" onDeleteCascade="false" schema="public" table="m_office_transaction"/>
            <child catalog="fineract_default" column="to_office_id" foreignKey="fk1e37728b93c6c1b6" implied="false" onDeleteCascade="false" schema="public" table="m_office_transaction"/>
            <child catalog="fineract_default" column="office_id" foreignKey="FK_m_savings_account_transaction_m_office" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_transaction"/>
            <child catalog="fineract_default" column="office_id" foreignKey="FK_m_staff_m_office" implied="false" onDeleteCascade="false" schema="public" table="m_staff"/>
            <child catalog="fineract_default" column="office_id" foreignKey="FK_m_tellers_m_office" implied="false" onDeleteCascade="false" schema="public" table="m_tellers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="parent_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk2291c477e2551dcc" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="hierarchy" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="name" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="opening_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_office_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk2291c477e2551dcc" unique="false">
            <column ascending="true" name="parent_id"/>
         </index>
         <index name="m_office_external_id_key" unique="true">
            <column ascending="true" name="external_id"/>
         </index>
         <index name="m_office_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_office_transaction" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="from_office_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk1e37728b783c5c25" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="to_office_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk1e37728b93c6c1b6" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="currency_code" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="currency_digits" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="transaction_amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="transaction_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="description" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_office_transaction_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk1e37728b783c5c25" unique="false">
            <column ascending="true" name="from_office_id"/>
         </index>
         <index name="fk1e37728b93c6c1b6" unique="false">
            <column ascending="true" name="to_office_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_organisation_creditbureau" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="organisation_creditbureau_id" foreignKey="cblpfk2" implied="false" onDeleteCascade="false" schema="public" table="m_creditbureau_loanproduct_mapping"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="alias" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="creditbureau_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="orgcb_cbfk" implied="false" onDeleteCascade="false" schema="public" table="m_creditbureau"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_organisation_creditbureau_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="morgcb" unique="true">
            <column ascending="true" name="alias"/>
            <column ascending="true" name="creditbureau_id"/>
         </index>
         <index name="orgcb_cbfk" unique="false">
            <column ascending="true" name="creditbureau_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_organisation_currency" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="code" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="decimal_places" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="currency_multiplesof" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="name" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="display_symbol" nullable="true" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="internationalized_name_code" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_organisation_currency_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_password_validation_policy" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="regex" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="key" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_password_validation_policy_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_payment_detail" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="payment_details_id" foreignKey="FK_acc_gl_journal_entry_m_payment_detail" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_journal_entry"/>
            <child catalog="fineract_default" column="payment_detail_id" foreignKey="FK_m_account_transfer_transaction_m_payment_detail" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_transaction"/>
            <child catalog="fineract_default" column="payment_detail_id" foreignKey="FK_m_loan_transaction_m_payment_detail" implied="false" onDeleteCascade="false" schema="public" table="m_loan_transaction"/>
            <child catalog="fineract_default" column="payment_detail_id" foreignKey="FK_m_savings_account_transaction_m_payment_detail" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_transaction"/>
            <child catalog="fineract_default" column="payment_detail_id" foreignKey="FK_m_wc_loan_transaction_payment_detail" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="payment_type_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_payment_detail_m_payment_type" implied="false" onDeleteCascade="false" schema="public" table="m_payment_type"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="account_number" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="check_number" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="receipt_number" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="bank_number" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="routing_code" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_payment_detail_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_payment_detail_m_payment_type" unique="false">
            <column ascending="true" name="payment_type_id"/>
         </index>
         <index name="idx_m_payment_detail_check_number" unique="false">
            <column ascending="true" name="check_number"/>
         </index>
         <index name="idx_m_payment_detail_receipt_number" unique="false">
            <column ascending="true" name="receipt_number"/>
         </index>
         <index name="idx_m_payment_detail_routing_code" unique="false">
            <column ascending="true" name="routing_code"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_payment_type" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <child catalog="fineract_default" column="payment_type" foreignKey="FK_acc_product_mapping_m_payment_type" implied="false" onDeleteCascade="false" schema="public" table="acc_product_mapping"/>
            <child catalog="fineract_default" column="payment_type_id" foreignKey="FK_m_payment_detail_m_payment_types" implied="false" onDeleteCascade="false" schema="public" table="m_charge"/>
            <child catalog="fineract_default" column="payment_type_id" foreignKey="FK_m_payment_detail_m_payment_type" implied="false" onDeleteCascade="false" schema="public" table="m_payment_detail"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="value" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="is_cash_payment" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="4" name="order_position" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="code_name" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="is_system_defined" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_payment_type_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_permission" numRows="984" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="permission_id" foreignKey="fk8dedb048103b544b" implied="false" onDeleteCascade="false" schema="public" table="m_role_permission"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="grouping" nullable="true" remarks="" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="entity_name" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="action_name" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="5" name="can_maker_checker" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_permission_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_permission_code_key" unique="true">
            <column ascending="true" name="code"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_portfolio_account_associations" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="account_associations_id" foreignKey="FK_m_guarantor_fund_details_account_associations_id" implied="false" onDeleteCascade="false" schema="public" table="m_guarantor_funding_details"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="account_association_loan_fk" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="savings_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="account_association_savings_fk" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="linked_loan_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="linked_loan_fk" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="linked_savings_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="linked_savings_fk" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
         </column>
         <column autoUpdated="false" defaultValue="1" digits="0" id="5" name="association_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="6" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_portfolio_account_associations_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="account_association_loan_fk" unique="false">
            <column ascending="true" name="loan_account_id"/>
         </index>
         <index name="account_association_savings_fk" unique="false">
            <column ascending="true" name="savings_account_id"/>
         </index>
         <index name="linked_loan_fk" unique="false">
            <column ascending="true" name="linked_loan_account_id"/>
         </index>
         <index name="linked_savings_fk" unique="false">
            <column ascending="true" name="linked_savings_account_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_portfolio_command_source" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="action_name" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="entity_name" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="office_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="group_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="client_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="loan_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="savings_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="api_get_url" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="resource_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="subresource_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="command_as_json" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="maker_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_maker_m_appuser" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="made_on_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="checker_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_checker_m_appuser" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="checked_on_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="status" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="product_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="transaction_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="creditbureau_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="organisation_creditbureau_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="21" name="made_on_date_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="22" name="checked_on_date_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="job_name" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="NULL::character varying" digits="0" id="24" name="idempotency_key" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="resource_external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="subresource_external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="result" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="result_status_code" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="loan_external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="30" name="is_sanitized" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="client_ip" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_portfolio_command_source_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="action_name" unique="false">
            <column ascending="true" name="action_name"/>
         </index>
         <index name="checked_on_date" unique="false">
            <column ascending="true" name="checked_on_date"/>
         </index>
         <index name="entity_name" unique="false">
            <column ascending="true" name="entity_name"/>
            <column ascending="true" name="resource_id"/>
         </index>
         <index name="FK_m_checker_m_appuser" unique="false">
            <column ascending="true" name="checker_id"/>
         </index>
         <index name="FK_m_maker_m_appuser" unique="false">
            <column ascending="true" name="maker_id"/>
         </index>
         <index name="made_on_date" unique="false">
            <column ascending="true" name="made_on_date"/>
         </index>
         <index name="portfolio_command_source_composite_index" unique="false">
            <column ascending="true" name="action_name"/>
            <column ascending="true" name="entity_name"/>
            <column ascending="true" name="idempotency_key"/>
         </index>
         <index name="portfolio_command_source_office_id" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="processing_result_enum" unique="false">
            <column ascending="true" name="status"/>
         </index>
         <index name="unique_portfolio_command_source" unique="true">
            <column ascending="true" name="action_name"/>
            <column ascending="true" name="entity_name"/>
            <column ascending="true" name="idempotency_key"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_product_loan" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="loan_product_id" foreignKey="fk_cb_lp2" implied="false" onDeleteCascade="false" schema="public" table="m_creditbureau_loanproduct_mapping"/>
            <child catalog="fineract_default" column="loan_product_id" foreignKey="FK_ext_asset_owner_lp_conf_attr_loan_product_id" implied="false" onDeleteCascade="false" schema="public" table="m_external_asset_owner_loan_product_configurable_attributes"/>
            <child catalog="fineract_default" column="product_id" foreignKey="fkb6f935d8c8d4b434" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
            <child catalog="fineract_default" column="loan_product_id" foreignKey="m_loan_product_credit_allocation_rule_fk" implied="false" onDeleteCascade="false" schema="public" table="m_loan_product_credit_allocation_rule"/>
            <child catalog="fineract_default" column="loan_product_id" foreignKey="m_loan_product_payment_allocation_rule_fk" implied="false" onDeleteCascade="false" schema="public" table="m_loan_product_payment_allocation_rule"/>
            <child catalog="fineract_default" column="product_id" foreignKey="m_loanproduct_provisioning_entry_ibfk_4" implied="false" onDeleteCascade="false" schema="public" table="m_loanproduct_provisioning_entry"/>
            <child catalog="fineract_default" column="product_id" foreignKey="m_loanproduct_provisioning_mapping_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_loanproduct_provisioning_mapping"/>
            <child catalog="fineract_default" column="product_loan_id" foreignKey="m_product_loan_charge_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan_charge"/>
            <child catalog="fineract_default" column="loan_product_id" foreignKey="fk_m_product_loan_configurable_attributes_0001" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan_configurable_attributes"/>
            <child catalog="fineract_default" column="loan_product_id" foreignKey="FK_mappings_m_product_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan_floating_rates"/>
            <child catalog="fineract_default" column="loan_product_id" foreignKey="FK_guarantee_details_loan_product" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan_guarantee_details"/>
            <child catalog="fineract_default" column="product_loan_id" foreignKey="fk_m_product_loan_rate_loan" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan_rate"/>
            <child catalog="fineract_default" column="product_id" foreignKey="FK_m_product_loan_m_product_loan_recalculation_details" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan_recalculation_details"/>
            <child catalog="fineract_default" column="loan_product_id" foreignKey="FK_mappings_m_variable_product_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan_variable_installment_config"/>
            <child catalog="fineract_default" column="loan_product_id" foreignKey="borrower_cycle_loan_product_FK" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan_variations_borrower_cycle"/>
            <child catalog="fineract_default" column="product_id" foreignKey="FK_m_product_mix_product_id_to_m_product_loan" implied="false" onDeleteCascade="false" schema="public" table="m_product_mix"/>
            <child catalog="fineract_default" column="restricted_product_id" foreignKey="FK_m_product_mix_restricted_product_id_to_m_product_loan" implied="false" onDeleteCascade="false" schema="public" table="m_product_mix"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="short_name" nullable="false" remarks="" size="4" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="currency_code" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="currency_digits" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="currency_multiplesof" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="5" name="principal_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="6" name="min_principal_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="7" name="max_principal_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="8" name="arrearstolerance_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="description" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="fund_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fka6a8a7d77240145" implied="false" onDeleteCascade="false" schema="public" table="m_fund"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="12" name="is_linked_to_floating_interest_rates" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="13" name="allow_variabe_installments" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="14" name="nominal_interest_rate_per_period" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="15" name="min_nominal_interest_rate_per_period" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="16" name="max_nominal_interest_rate_per_period" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="interest_period_frequency_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="18" name="annual_nominal_interest_rate" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="interest_method_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="20" name="interest_calculated_in_period_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="21" name="allow_partial_period_interest_calcualtion" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="repay_every" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="repayment_period_frequency_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="number_of_repayments" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="min_number_of_repayments" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="max_number_of_repayments" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="grace_on_principal_periods" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="recurring_moratorium_principal_periods" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="grace_on_interest_periods" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="grace_interest_free_periods" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="amortization_method_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="accounting_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="loan_transaction_strategy_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="35" name="include_in_borrower_cycle" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="36" name="use_borrower_cycle" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="start_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="close_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="39" name="allow_multiple_disbursals" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="max_disbursals" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="41" name="max_outstanding_loan_balance" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="grace_on_arrears_ageing" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="43" name="overdue_days_for_npa" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="44" name="days_in_month_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="45" name="days_in_year_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="46" name="interest_recalculation_enabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="min_days_between_disbursal_and_first_repayment" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="48" name="hold_guarantee_funds" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="50" digits="2" id="49" name="principal_threshold_for_last_installment" nullable="false" remarks="" size="5" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="50" name="account_moves_out_of_npa_only_on_arrears_completion" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="51" name="can_define_fixed_emi_amount" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="52" name="installment_amount_in_multiples_of" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="53" name="can_use_for_topup" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="54" name="sync_expected_with_disbursement_date" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="55" name="is_equal_amortization" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="2" id="56" name="fixed_principal_percentage_per_installment" nullable="true" remarks="" size="5" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="57" name="disallow_expected_disbursements" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="58" name="allow_approved_disbursed_amounts_over_applied" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="over_applied_calculation_type" nullable="true" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="over_applied_number" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="61" name="delinquency_bucket_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_product_loan_m_delinquency_bucket" implied="false" onDeleteCascade="false" schema="public" table="m_delinquency_bucket"/>
         </column>
         <column autoUpdated="false" defaultValue="'-'::character varying" digits="0" id="62" name="loan_transaction_strategy_code" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'-'::character varying" digits="0" id="63" name="loan_transaction_strategy_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="64" name="due_days_for_repayment_event" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="65" name="overdue_days_for_repayment_event" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="66" name="enable_down_payment" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="67" name="disbursed_amount_percentage_for_down_payment" nullable="true" remarks="" size="9" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="68" name="enable_installment_level_delinquency" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="69" name="enable_accrual_activity_posting" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="70" name="days_in_year_custom_strategy" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="71" name="enable_income_capitalization" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="72" name="capitalized_income_calculation_type" nullable="true" remarks="" size="100" type="varchar" typeCode="12">
            <parent catalog="fineract_default" column="type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_external_event_configuration"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="73" name="capitalized_income_strategy" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="74" name="capitalized_income_type" nullable="true" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="75" name="enable_buy_down_fee" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="76" name="buy_down_fee_calculation_type" nullable="true" remarks="" size="100" type="varchar" typeCode="12">
            <parent catalog="fineract_default" column="type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_external_event_configuration"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="77" name="buy_down_fee_strategy" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="78" name="buy_down_fee_income_type" nullable="true" remarks="" size="100" type="varchar" typeCode="12">
            <parent catalog="fineract_default" column="type" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="m_external_event_configuration"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="79" name="allow_full_term_for_tranche" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="80" name="month_end_due_date_strategy" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="81" name="enable_auto_repayment_for_down_payment" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="82" name="repayment_start_date_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="'CUMULATIVE'::character varying" digits="0" id="83" name="loan_schedule_type" nullable="false" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'HORIZONTAL'::character varying" digits="0" id="84" name="loan_schedule_processing_type" nullable="false" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="85" name="fixed_length" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="86" name="supported_interest_refund_types" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'REGULAR'::character varying" digits="0" id="87" name="charge_off_behaviour" nullable="true" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="88" name="interest_recognition_on_disbursement_date" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="89" name="is_merchant_buy_down_fee" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_product_loan_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_ltp_strategy" unique="false">
            <column ascending="true" name="loan_transaction_strategy_id"/>
         </index>
         <index name="fka6a8a7d77240145" unique="false">
            <column ascending="true" name="fund_id"/>
         </index>
         <index name="m_product_loan_external_id_key" unique="true">
            <column ascending="true" name="external_id"/>
         </index>
         <index name="m_product_loan_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <index name="m_product_loan_short_name_key" unique="true">
            <column ascending="true" name="short_name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_product_loan_charge" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="product_loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_product_loan_charge_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="charge_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_product_loan_charge_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_charge"/>
         </column>
         <primaryKey column="product_loan_id" sequenceNumberInPK="1"/>
         <primaryKey column="charge_id" sequenceNumberInPK="2"/>
         <index name="m_product_loan_charge_pkey" unique="true">
            <column ascending="true" name="product_loan_id"/>
            <column ascending="true" name="charge_id"/>
         </index>
         <index name="fk_product_loan_charge_charge" unique="false">
            <column ascending="true" name="charge_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_product_loan_configurable_attributes" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_product_loan_configurable_attributes_0001" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="true" digits="0" id="2" name="amortization_method_enum" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="3" name="interest_method_enum" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="4" name="loan_transaction_strategy_code" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="5" name="interest_calculated_in_period_enum" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="6" name="arrearstolerance_amount" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="7" name="repay_every" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="8" name="moratorium" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="9" name="grace_on_arrears_ageing" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_product_loan_configurable_attributes_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_m_product_loan_configurable_attributes_0001" unique="false">
            <column ascending="true" name="loan_product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_product_loan_floating_rates" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_mappings_m_product_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="floating_rates_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_mappings_m_floating_rates_id" implied="false" onDeleteCascade="false" schema="public" table="m_floating_rates"/>
         </column>
         <column autoUpdated="false" defaultValue="0" digits="6" id="3" name="interest_rate_differential" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="4" name="min_differential_lending_rate" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="5" name="default_differential_lending_rate" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="6" name="max_differential_lending_rate" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="7" name="is_floating_interest_rate_calculation_allowed" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_product_loan_floating_rates_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_mappings_m_floating_rates_id" unique="false">
            <column ascending="true" name="floating_rates_id"/>
         </index>
         <index name="FK_mappings_m_product_loan_id" unique="false">
            <column ascending="true" name="loan_product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_product_loan_guarantee_details" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_guarantee_details_loan_product" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="5" id="2" name="mandatory_guarantee" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="5" id="3" name="minimum_guarantee_from_own_funds" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="5" id="4" name="minimum_guarantee_from_guarantor_funds" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_product_loan_guarantee_details_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_guarantee_details_loan_product" unique="false">
            <column ascending="true" name="loan_product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_product_loan_rate" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="product_loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_product_loan_rate_loan" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="rate_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_product_loan_rate_rate" implied="false" onDeleteCascade="false" schema="public" table="m_rate"/>
         </column>
         <primaryKey column="product_loan_id" sequenceNumberInPK="1"/>
         <primaryKey column="rate_id" sequenceNumberInPK="2"/>
         <index name="m_product_loan_rate_pkey" unique="true">
            <column ascending="true" name="product_loan_id"/>
            <column ascending="true" name="rate_id"/>
         </index>
         <index name="fk_m_product_loan_rate_rate" unique="false">
            <column ascending="true" name="rate_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_product_loan_recalculation_details" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_product_loan_m_product_loan_recalculation_details" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="compound_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="reschedule_strategy_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="rest_frequency_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="5" name="rest_frequency_interval" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="arrears_based_on_original_schedule" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="7" name="pre_close_interest_calculation_strategy" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="compounding_frequency_type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="compounding_frequency_interval" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="rest_frequency_nth_day_enum" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="rest_frequency_on_day" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="rest_frequency_weekday_enum" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="compounding_frequency_nth_day_enum" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="compounding_frequency_on_day" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="compounding_frequency_weekday_enum" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="16" name="is_compounding_to_be_posted_as_transaction" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="17" name="allow_compounding_on_eod" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="18" name="disallow_interest_calc_on_past_due" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_product_loan_recalculation_details_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_product_loan_m_product_loan_recalculation_details" unique="false">
            <column ascending="true" name="product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_product_loan_variable_installment_config" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_mappings_m_variable_product_loan_id" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="minimum_gap" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="maximum_gap" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_product_loan_variable_installment_config_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_mappings_m_variable_product_loan_id" unique="false">
            <column ascending="true" name="loan_product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_product_loan_variations_borrower_cycle" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="1" name="loan_product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="borrower_cycle_loan_product_FK" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="0" digits="0" id="2" name="borrower_cycle_number" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="3" name="value_condition" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="4" name="param_type" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="5" name="default_value" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="6" name="max_value" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="7" name="min_value" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_product_loan_variations_borrower_cycle_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="borrower_cycle_loan_product_FK" unique="false">
            <column ascending="true" name="loan_product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_product_mix" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_product_mix_product_id_to_m_product_loan" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="restricted_product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_product_mix_restricted_product_id_to_m_product_loan" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_product_mix_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_product_mix_product_id_to_m_product_loan" unique="false">
            <column ascending="true" name="product_id"/>
         </index>
         <index name="FK_m_product_mix_restricted_product_id_to_m_product_loan" unique="false">
            <column ascending="true" name="restricted_product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_provision_category" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="category_id" foreignKey="m_loanproduct_provisioning_entry_ibfk_5" implied="false" onDeleteCascade="false" schema="public" table="m_loanproduct_provisioning_entry"/>
            <child catalog="fineract_default" column="category_id" foreignKey="m_provisioning_criteria_definition_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_provisioning_criteria_definition"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="category_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="" size="300" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_provision_category_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_provision_category_category_name_key" unique="true">
            <column ascending="true" name="category_name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_provisioning_criteria" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="criteria_id" foreignKey="m_loanproduct_provisioning_entry_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_loanproduct_provisioning_entry"/>
            <child catalog="fineract_default" column="criteria_id" foreignKey="m_loanproduct_provisioning_mapping_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_loanproduct_provisioning_mapping"/>
            <child catalog="fineract_default" column="criteria_id" foreignKey="m_provisioning_criteria_definition_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_provisioning_criteria_definition"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="criteria_name" nullable="false" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="createdby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_provisioning_criteria_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="lastmodifiedby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_provisioning_criteria_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_provisioning_criteria_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_provisioning_criteria_createdby" unique="false">
            <column ascending="true" name="createdby_id"/>
         </index>
         <index name="m_provisioning_criteria_criteria_name_key" unique="true">
            <column ascending="true" name="criteria_name"/>
         </index>
         <index name="provisioning_criteria_lastmodifiedby_id" unique="false">
            <column ascending="true" name="lastmodifiedby_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_provisioning_criteria_definition" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="criteria_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_provisioning_criteria_definition_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_provisioning_criteria"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="category_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_provisioning_criteria_definition_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_provision_category"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="min_age" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="max_age" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="5" name="provision_percentage" nullable="false" remarks="" size="5" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="liability_account" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_provisioning_criteria_definition_ibfk_3" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="expense_account" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_provisioning_criteria_definition_ibfk_4" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_account"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_provisioning_criteria_definition_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_loanproduct_criteria_definition_criteria" unique="false">
            <column ascending="true" name="criteria_id"/>
         </index>
         <index name="fk_provisioning_criteria_definition_category" unique="false">
            <column ascending="true" name="category_id"/>
         </index>
         <index name="fk_provisioning_criteria_definition_expense_account" unique="false">
            <column ascending="true" name="expense_account"/>
         </index>
         <index name="provisioning_criteria_definition_liability_account" unique="false">
            <column ascending="true" name="liability_account"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_provisioning_history" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="history_id" foreignKey="m_loanproduct_provisioning_entry_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_loanproduct_provisioning_entry"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="1" name="journal_entry_created" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="createdby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_provisioning_history_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="created_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="lastmodifiedby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_provisioning_history_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="lastmodified_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_provisioning_history_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_provisioning_history_createdby" unique="false">
            <column ascending="true" name="createdby_id"/>
         </index>
         <index name="provisioning_history_lastmodifiedby_id" unique="false">
            <column ascending="true" name="lastmodifiedby_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_rate" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="rate_id" foreignKey="fk_m_loan_rate_rate" implied="false" onDeleteCascade="false" schema="public" table="m_loan_rate"/>
            <child catalog="fineract_default" column="rate_id" foreignKey="fk_m_product_loan_rate_rate" implied="false" onDeleteCascade="false" schema="public" table="m_product_loan_rate"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="250" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="2" name="percentage" nullable="false" remarks="" size="10" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="active" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="product_apply" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="createdby_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_rate_create_user" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="lastmodifiedby_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="approve_user" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_rate_approve_user" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_rate_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_m_rate_approve_user" unique="false">
            <column ascending="true" name="approve_user"/>
         </index>
         <index name="fk_m_rate_create_user" unique="false">
            <column ascending="true" name="createdby_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_repayment_with_post_dated_checks" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="check_no" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="5" id="2" name="amount" nullable="false" remarks="" size="20" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="loan_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkloanrepayment" implied="false" onDeleteCascade="true" schema="public" table="m_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="repayment_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkrepaymentwithpostdated" implied="false" onDeleteCascade="true" schema="public" table="m_loan_repayment_schedule"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="account_no" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="bank_name" nullable="false" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="repayment_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="8" name="status" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_repayment_with_post_dated_checks_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fkloanrepayment" unique="false">
            <column ascending="true" name="loan_id"/>
         </index>
         <index name="fkrepaymentwithpostdated" unique="false">
            <column ascending="true" name="repayment_id"/>
         </index>
         <index name="m_repayment_with_post_dated_checks_check_no_key" unique="true">
            <column ascending="true" name="check_no"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_report_mailing_job" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="job_id" foreignKey="m_report_mailing_job_run_history_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_report_mailing_job_run_history"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="start_datetime" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="recurrence" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="created_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="createdby_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_report_mailing_job_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="lastmodified_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="lastmodifiedby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_report_mailing_job_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="email_recipients" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="email_subject" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="email_message" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="email_attachment_file_format" nullable="false" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="stretchy_report_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="m_report_mailing_job_ibfk_3" implied="false" onDeleteCascade="false" schema="public" table="stretchy_report"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="stretchy_report_param_map" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="previous_run_datetime" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="16" name="next_run_datetime" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="previous_run_status" nullable="true" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="previous_run_error_log" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="previous_run_error_message" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="20" name="number_of_runs" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="21" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="22" name="is_deleted" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="run_as_userid" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_report_mailing_job_ibfk_4" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_report_mailing_job_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_report_mailing_job_createdby" unique="false">
            <column ascending="true" name="createdby_id"/>
         </index>
         <index name="m_report_mailing_job_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <index name="report_mailing_job_lastmodifiedby_id" unique="false">
            <column ascending="true" name="lastmodifiedby_id"/>
         </index>
         <index name="run_as_userid" unique="false">
            <column ascending="true" name="run_as_userid"/>
         </index>
         <index name="stretchy_report_id" unique="false">
            <column ascending="true" name="stretchy_report_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_report_mailing_job_configuration" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="value" nullable="false" remarks="" size="200" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_report_mailing_job_configuration_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_report_mailing_job_configuration_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_report_mailing_job_run_history" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="job_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_report_mailing_job_run_history_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_report_mailing_job"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="start_datetime" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="end_datetime" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="status" nullable="false" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="error_message" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="error_log" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_report_mailing_job_run_history_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="job_id" unique="false">
            <column ascending="true" name="job_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_role" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="role_id" foreignKey="fk7662ce5915cec7ab" implied="false" onDeleteCascade="false" schema="public" table="m_appuser_role"/>
            <child catalog="fineract_default" column="role_id" foreignKey="fk8dedb04815cec7ab" implied="false" onDeleteCascade="false" schema="public" table="m_role_permission"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="false" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="is_disabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_role_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_role_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_role_permission" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="role_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk8dedb04815cec7ab" implied="false" onDeleteCascade="false" schema="public" table="m_role"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="permission_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk8dedb048103b544b" implied="false" onDeleteCascade="false" schema="public" table="m_permission"/>
         </column>
         <primaryKey column="role_id" sequenceNumberInPK="1"/>
         <primaryKey column="permission_id" sequenceNumberInPK="2"/>
         <index name="m_role_permission_pkey" unique="true">
            <column ascending="true" name="role_id"/>
            <column ascending="true" name="permission_id"/>
         </index>
         <index name="fk8dedb048103b544b" unique="false">
            <column ascending="true" name="permission_id"/>
         </index>
         <index name="fk8dedb04815cec7ab" unique="false">
            <column ascending="true" name="role_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_savings_account" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="account_id" foreignKey="fk_interop_identifier_account" implied="false" onDeleteCascade="false" schema="public" table="interop_identifier"/>
            <child catalog="fineract_default" column="from_savings_account_id" foreignKey="FK_m_account_transfer_details_from_savings_account" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_details"/>
            <child catalog="fineract_default" column="to_savings_account_id" foreignKey="FK_m_account_transfer_details_to_savings_account" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_details"/>
            <child catalog="fineract_default" column="default_savings_account" foreignKey="FK_m_client_m_savings_account" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
            <child catalog="fineract_default" column="savings_account_id" foreignKey="FK_deposit_on_hold_transaction_m_savings_account" implied="false" onDeleteCascade="false" schema="public" table="m_deposit_account_on_hold_transaction"/>
            <child catalog="fineract_default" column="savings_account_id" foreignKey="fkdard00000000000001" implied="false" onDeleteCascade="false" schema="public" table="m_deposit_account_recurring_detail"/>
            <child catalog="fineract_default" column="savings_account_id" foreignKey="fkdatp00000000000001" implied="false" onDeleteCascade="false" schema="public" table="m_deposit_account_term_and_preclosure"/>
            <child catalog="fineract_default" column="transfer_to_savings_account_id" foreignKey="m_deposit_account_term_and_preclosure_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_deposit_account_term_and_preclosure"/>
            <child catalog="fineract_default" column="savings_account_id" foreignKey="fkmss0000000001" implied="false" onDeleteCascade="false" schema="public" table="m_mandatory_savings_schedule"/>
            <child catalog="fineract_default" column="savings_account_id" foreignKey="FK_savings_account_id" implied="false" onDeleteCascade="false" schema="public" table="m_note"/>
            <child catalog="fineract_default" column="linked_savings_account_id" foreignKey="linked_savings_fk" implied="false" onDeleteCascade="false" schema="public" table="m_portfolio_account_associations"/>
            <child catalog="fineract_default" column="savings_account_id" foreignKey="account_association_savings_fk" implied="false" onDeleteCascade="false" schema="public" table="m_portfolio_account_associations"/>
            <child catalog="fineract_default" column="savings_account_id" foreignKey="m_savings_account_charge_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_charge"/>
            <child catalog="fineract_default" column="savings_account_id" foreignKey="fksairc00000000000001" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_interest_rate_chart"/>
            <child catalog="fineract_default" column="savings_account_id" foreignKey="fksat0000000001" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_transaction"/>
            <child catalog="fineract_default" column="account_id" foreignKey="fk_m_savings_officer_assignment_history_0001" implied="false" onDeleteCascade="false" schema="public" table="m_savings_officer_assignment_history"/>
            <child catalog="fineract_default" column="savings_account_id" foreignKey="m_share_account_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_share_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="account_no" nullable="false" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="client_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fksa00000000000001" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="group_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fksa00000000000002" implied="false" onDeleteCascade="false" schema="public" table="m_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="gsim_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_gsim_id" implied="false" onDeleteCascade="false" schema="public" table="gsim_accounts"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="product_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fksa00000000000003" implied="false" onDeleteCascade="false" schema="public" table="m_savings_product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="field_officer_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="300" digits="0" id="8" name="status_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="9" name="sub_status_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="10" name="account_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="100" digits="0" id="11" name="deposit_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="submittedon_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="submittedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="approvedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="approvedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="rejectedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="rejectedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="withdrawnon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="withdrawnon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="activatedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="activatedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="closedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="closedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="currency_code" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="currency_digits" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="currency_multiplesof" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="27" name="nominal_annual_interest_rate" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="interest_compounding_period_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="4" digits="0" id="29" name="interest_posting_period_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="interest_calculation_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="interest_calculation_days_in_year_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="32" name="min_required_opening_balance" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="33" name="lockin_period_frequency" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="lockin_period_frequency_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="35" name="withdrawal_fee_for_transfer" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="36" name="allow_overdraft" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="37" name="overdraft_limit" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="38" name="nominal_annual_interest_rate_overdraft" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="39" name="min_overdraft_for_interest_calculation" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="lockedin_until_date_derived" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="41" name="total_deposits_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="42" name="total_withdrawals_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="43" name="total_withdrawal_fees_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="44" name="total_fees_charge_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="45" name="total_penalty_charge_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="46" name="total_annual_fees_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="47" name="total_interest_earned_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="48" name="total_interest_posted_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="49" name="total_overdraft_interest_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="50" name="total_withhold_tax_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="51" name="account_balance_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="52" name="min_required_balance" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="53" name="enforce_min_required_balance" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="54" name="min_balance_for_interest_calculation" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="start_interest_calculation_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="56" name="on_hold_funds_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="57" name="version" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="58" name="withhold_tax" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="59" name="tax_group_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_savings_account_tax_group" implied="false" onDeleteCascade="false" schema="public" table="m_tax_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="60" name="last_interest_calculation_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="61" name="total_savings_amount_on_hold" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="62" name="interest_posted_till_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="63" name="reason_for_block" nullable="true" remarks="" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="64" name="max_allowed_lien_limit" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="65" name="is_lien_allowed" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="66" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_savings_account_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="67" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_savings_account_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="68" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="69" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="70" name="accrued_till_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="71" name="last_closed_business_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_savings_account_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_gsim_id" unique="false">
            <column ascending="true" name="gsim_id"/>
         </index>
         <index name="FK_savings_account_last_closed_business_date" unique="false">
            <column ascending="true" name="last_closed_business_date"/>
         </index>
         <index name="FK_savings_account_tax_group" unique="false">
            <column ascending="true" name="tax_group_id"/>
         </index>
         <index name="fksa00000000000001" unique="false">
            <column ascending="true" name="client_id"/>
         </index>
         <index name="fksa00000000000002" unique="false">
            <column ascending="true" name="group_id"/>
         </index>
         <index name="fksa00000000000003" unique="false">
            <column ascending="true" name="product_id"/>
         </index>
         <index name="m_savings_account_account_no_key" unique="true">
            <column ascending="true" name="account_no"/>
         </index>
         <index name="m_savings_account_external_id_key" unique="true">
            <column ascending="true" name="external_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_savings_account_charge" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="savings_account_charge_id" foreignKey="FK__m_savings_account_charge" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_charge_paid_by"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="savings_account_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_savings_account_charge_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="charge_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_savings_account_charge_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_charge"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="is_penalty" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="charge_time_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="charge_due_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="fee_on_month" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="fee_on_day" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="fee_interval" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="9" name="free_withdrawal_count" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="charge_reset_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="charge_calculation_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="12" name="calculation_percentage" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="13" name="calculation_on_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="15" name="amount_paid_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="16" name="amount_waived_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="17" name="amount_writtenoff_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="18" name="amount_outstanding_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="19" name="is_paid_derived" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="20" name="waived" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="21" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="inactivated_on_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_savings_account_charge_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_savings_account_charge_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="25" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="26" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_savings_account_charge_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_savings_account_charge_charge" unique="false">
            <column ascending="true" name="charge_id"/>
         </index>
         <index name="m_savings_account_charge_ibfk_2" unique="false">
            <column ascending="true" name="savings_account_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_savings_account_charge_paid_by" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="savings_account_transaction_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK__m_savings_account_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="savings_account_charge_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK__m_savings_account_charge" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_charge"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_savings_account_charge_paid_by_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK__m_savings_account_charge" unique="false">
            <column ascending="true" name="savings_account_charge_id"/>
         </index>
         <index name="FK__m_savings_account_transaction" unique="false">
            <column ascending="true" name="savings_account_transaction_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_savings_account_interest_rate_chart" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="savings_account_interest_rate_chart_id" foreignKey="fksairs00000000000001" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_interest_rate_slab"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="savings_account_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fksairc00000000000001" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="from_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="end_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="is_primary_grouping_by_amount" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_savings_account_interest_rate_chart_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fksairc00000000000001" unique="false">
            <column ascending="true" name="savings_account_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_savings_account_interest_rate_slab" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="deposit_account_interest_rate_slab_id" foreignKey="FK_m_savings_interest_incentives_m_savings_interest_rate_slab" implied="false" onDeleteCascade="false" schema="public" table="m_savings_interest_incentives"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="savings_account_interest_rate_chart_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fksairs00000000000001" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_interest_rate_chart"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="period_type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="from_period" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="to_period" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="6" name="amount_range_from" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="7" name="amount_range_to" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="annual_interest_rate" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="currency_code" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_savings_account_interest_rate_slab_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fksairs00000000000001" unique="false">
            <column ascending="true" name="savings_account_interest_rate_chart_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_savings_account_transaction" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="savings_transaction_id" foreignKey="FK_acc_gl_journal_entry_m_savings_account_transaction" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_journal_entry"/>
            <child catalog="fineract_default" column="from_savings_transaction_id" foreignKey="FK_m_account_transfer_transaction_from_m_savings_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_transaction"/>
            <child catalog="fineract_default" column="to_savings_transaction_id" foreignKey="FK_m_account_transfer_transaction_to_m_savings_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_account_transfer_transaction"/>
            <child catalog="fineract_default" column="savings_account_transaction_id" foreignKey="FK__m_savings_account_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_charge_paid_by"/>
            <child catalog="fineract_default" column="savings_transaction_id" foreignKey="FK_savings_account_transaction_tax_details_savings_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_transaction_tax_details"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="savings_account_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fksat0000000001" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="office_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_savings_account_transaction_m_office" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="payment_detail_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_savings_account_transaction_m_payment_detail" implied="false" onDeleteCascade="false" schema="public" table="m_payment_detail"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="transaction_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="is_reversed" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="transaction_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="8" name="overdraft_amount_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="balance_end_date_derived" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="balance_number_of_days_derived" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="11" name="running_balance_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="12" name="cumulative_balance_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_savings_account_transaction_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="15" name="is_manual" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="release_id_of_hold_amount" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="is_loan_disbursement" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="ref_no" nullable="true" remarks="" size="128" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="original_transaction_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="20" name="is_reversal" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="reason_for_block" nullable="true" remarks="" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="22" name="is_lien_transaction" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="submitted_on_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_savings_account_transaction_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="25" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="26" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_savings_account_transaction_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_savings_account_transaction_m_office" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="FK_m_savings_account_transaction_m_payment_detail" unique="false">
            <column ascending="true" name="payment_detail_id"/>
         </index>
         <index name="fksat0000000001" unique="false">
            <column ascending="true" name="savings_account_id"/>
         </index>
         <index name="uk_m_sat_external_id" unique="true">
            <column ascending="true" name="external_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_savings_account_transaction_tax_details" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="savings_transaction_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_savings_account_transaction_tax_details_savings_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="tax_component_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_savings_account_transaction_tax_details_tax_component" implied="false" onDeleteCascade="false" schema="public" table="m_tax_component"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_savings_account_transaction_tax_details_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_savings_account_transaction_tax_details_savings_transaction" unique="false">
            <column ascending="true" name="savings_transaction_id"/>
         </index>
         <index name="FK_savings_account_transaction_tax_details_tax_component" unique="false">
            <column ascending="true" name="tax_component_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_savings_interest_incentives" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="deposit_account_interest_rate_slab_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_savings_interest_incentives_m_savings_interest_rate_slab" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_interest_rate_slab"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="entiry_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="attribute_name" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="condition_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="attribute_value" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="incentive_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_savings_interest_incentives_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_savings_interest_incentives_m_savings_interest_rate_slab" unique="false">
            <column ascending="true" name="deposit_account_interest_rate_slab_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_savings_officer_assignment_history" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="account_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_savings_officer_assignment_history_0001" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="savings_officer_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_savings_officer_assignment_history_0002" implied="false" onDeleteCascade="false" schema="public" table="m_staff"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="start_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="end_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_savings_officer_assignment_history_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_savings_officer_assignment_history_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_savings_officer_assignment_history_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_m_savings_officer_assignment_history_0001" unique="false">
            <column ascending="true" name="account_id"/>
         </index>
         <index name="fk_m_savings_officer_assignment_history_0002" unique="false">
            <column ascending="true" name="savings_officer_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_savings_product" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="default_savings_product" foreignKey="FK_m_client_m_savings_product" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
            <child catalog="fineract_default" column="deposit_product_id" foreignKey="fkdpirc00000000000001" implied="false" onDeleteCascade="false" schema="public" table="m_deposit_product_interest_rate_chart"/>
            <child catalog="fineract_default" column="savings_product_id" foreignKey="fkdprd00000000000001" implied="false" onDeleteCascade="false" schema="public" table="m_deposit_product_recurring_detail"/>
            <child catalog="fineract_default" column="savings_product_id" foreignKey="fkdptp00000000000001" implied="false" onDeleteCascade="false" schema="public" table="m_deposit_product_term_and_preclosure"/>
            <child catalog="fineract_default" column="product_id" foreignKey="fksa00000000000003" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
            <child catalog="fineract_default" column="savings_product_id" foreignKey="m_savings_product_charge_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_savings_product_charge"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="short_name" nullable="false" remarks="" size="4" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="100" digits="0" id="4" name="deposit_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="currency_code" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="currency_digits" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="currency_multiplesof" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="nominal_annual_interest_rate" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="interest_compounding_period_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="4" digits="0" id="10" name="interest_posting_period_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="interest_calculation_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="interest_calculation_days_in_year_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="13" name="min_required_opening_balance" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="14" name="lockin_period_frequency" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="lockin_period_frequency_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="accounting_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="17" name="withdrawal_fee_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="withdrawal_fee_type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="19" name="withdrawal_fee_for_transfer" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="20" name="allow_overdraft" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="21" name="overdraft_limit" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="22" name="nominal_annual_interest_rate_overdraft" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="23" name="min_overdraft_for_interest_calculation" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="24" name="min_required_balance" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="25" name="enforce_min_required_balance" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="26" name="min_balance_for_interest_calculation" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="27" name="withhold_tax" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="tax_group_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_savings_product_tax_group" implied="false" onDeleteCascade="false" schema="public" table="m_tax_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="is_dormancy_tracking_active" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="days_to_inactive" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="days_to_dormancy" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="days_to_escheat" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="33" name="max_allowed_lien_limit" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="34" name="is_lien_allowed" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_savings_product_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_savings_product_tax_group" unique="false">
            <column ascending="true" name="tax_group_id"/>
         </index>
         <index name="m_savings_product_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <index name="m_savings_product_short_name_key" unique="true">
            <column ascending="true" name="short_name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_savings_product_charge" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="savings_product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_savings_product_charge_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_savings_product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="charge_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_savings_product_charge_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_charge"/>
         </column>
         <primaryKey column="savings_product_id" sequenceNumberInPK="1"/>
         <primaryKey column="charge_id" sequenceNumberInPK="2"/>
         <index name="m_savings_product_charge_pkey" unique="true">
            <column ascending="true" name="savings_product_id"/>
            <column ascending="true" name="charge_id"/>
         </index>
         <index name="fk_savings_product_charge_charge" unique="false">
            <column ascending="true" name="charge_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_share_account" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="account_id" foreignKey="m_share_account_charge_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_share_account_charge"/>
            <child catalog="fineract_default" column="account_id" foreignKey="FK_m_share_account_dividend_details_account_id" implied="false" onDeleteCascade="false" schema="public" table="m_share_account_dividend_details"/>
            <child catalog="fineract_default" column="account_id" foreignKey="m_share_account_purchased_shares_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_share_account_transactions"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="account_no" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_account_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_share_product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="client_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_account_ibfk_9" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="300" digits="0" id="5" name="status_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="total_approved_shares" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="total_pending_shares" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="submitted_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="submitted_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_account_ibfk_3" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="approved_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="approved_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_account_ibfk_4" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="rejected_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="rejected_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_account_ibfk_5" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="activated_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="activated_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_account_ibfk_6" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="closed_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="closed_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_account_ibfk_7" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="currency_code" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="currency_digits" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="currency_multiplesof" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="savings_account_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_account_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
         </column>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="22" name="minimum_active_period_frequency" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="minimum_active_period_frequency_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="24" name="lockin_period_frequency" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="lockin_period_frequency_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="26" name="allow_dividends_inactive_clients" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="27" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="lastmodifiedby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_account_ibfk_8" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="29" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_share_account_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_share_account_ibfk_1" unique="false">
            <column ascending="true" name="product_id"/>
         </index>
         <index name="m_share_account_ibfk_2" unique="false">
            <column ascending="true" name="savings_account_id"/>
         </index>
         <index name="m_share_account_ibfk_3" unique="false">
            <column ascending="true" name="submitted_userid"/>
         </index>
         <index name="m_share_account_ibfk_4" unique="false">
            <column ascending="true" name="approved_userid"/>
         </index>
         <index name="m_share_account_ibfk_5" unique="false">
            <column ascending="true" name="rejected_userid"/>
         </index>
         <index name="m_share_account_ibfk_6" unique="false">
            <column ascending="true" name="activated_userid"/>
         </index>
         <index name="m_share_account_ibfk_7" unique="false">
            <column ascending="true" name="closed_userid"/>
         </index>
         <index name="m_share_account_ibfk_8" unique="false">
            <column ascending="true" name="lastmodifiedby_id"/>
         </index>
         <index name="m_share_account_ibfk_9" unique="false">
            <column ascending="true" name="client_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_share_account_charge" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="charge_transaction_id" foreignKey="m_share_account_transactions_charge_mapping_ibfk2" implied="false" onDeleteCascade="false" schema="public" table="m_share_account_charge_paid_by"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="account_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_account_charge_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_share_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="charge_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_account_charge_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_charge"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="charge_time_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="charge_calculation_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="5" name="charge_payment_mode_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="6" name="calculation_percentage" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="7" name="calculation_on_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="8" name="charge_amount_or_percentage" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="10" name="amount_paid_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="11" name="amount_waived_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="12" name="amount_writtenoff_derived" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="13" name="amount_outstanding_derived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="14" name="is_paid_derived" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="15" name="waived" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="16" name="min_cap" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="17" name="max_cap" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="18" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_share_account_charge_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_share_account_charge_charge" unique="false">
            <column ascending="true" name="charge_id"/>
         </index>
         <index name="m_share_account_charge_ibfk_2" unique="false">
            <column ascending="true" name="account_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_share_account_charge_paid_by" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="share_transaction_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_account_transactions_charge_mapping_ibfk1" implied="false" onDeleteCascade="false" schema="public" table="m_share_account_transactions"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="charge_transaction_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_account_transactions_charge_mapping_ibfk2" implied="false" onDeleteCascade="false" schema="public" table="m_share_account_charge"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="2" id="3" name="amount" nullable="false" remarks="" size="20" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_share_account_charge_paid_by_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_share_account_transactions_charge_mapping_ibfk1" unique="false">
            <column ascending="true" name="share_transaction_id"/>
         </index>
         <index name="m_share_account_transactions_charge_mapping_ibfk2" unique="false">
            <column ascending="true" name="charge_transaction_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_share_account_dividend_details" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="dividend_pay_out_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_share_account_dividend_details_dividend_pay_out_id" implied="false" onDeleteCascade="false" schema="public" table="m_share_product_dividend_pay_out"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="account_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_share_account_dividend_details_account_id" implied="false" onDeleteCascade="false" schema="public" table="m_share_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="status" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="savings_transaction_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_share_account_dividend_details_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_share_account_dividend_details_account_id" unique="false">
            <column ascending="true" name="account_id"/>
         </index>
         <index name="FK_m_share_account_dividend_details_dividend_pay_out_id" unique="false">
            <column ascending="true" name="dividend_pay_out_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_share_account_transactions" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="share_transaction_id" foreignKey="FK_acc_gl_journal_entry_m_share_account_transaction" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_journal_entry"/>
            <child catalog="fineract_default" column="share_transaction_id" foreignKey="m_share_account_transactions_charge_mapping_ibfk1" implied="false" onDeleteCascade="false" schema="public" table="m_share_account_charge_paid_by"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="account_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_account_purchased_shares_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_share_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="transaction_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="total_shares" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="2" id="4" name="unit_price" nullable="true" remarks="" size="10" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="2" id="5" name="amount" nullable="true" remarks="" size="20" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="2" id="6" name="charge_amount" nullable="true" remarks="" size="20" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="2" id="7" name="amount_paid" nullable="true" remarks="" size="20" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="300" digits="0" id="8" name="status_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="10" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_share_account_transactions_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_share_account_purchased_shares_ibfk_1" unique="false">
            <column ascending="true" name="account_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_share_product" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="product_id" foreignKey="m_share_account_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_share_account"/>
            <child catalog="fineract_default" column="product_id" foreignKey="m_share_product_charge_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_share_product_charge"/>
            <child catalog="fineract_default" column="product_id" foreignKey="FK_m_share_product_dividend_pay_out_product_id" implied="false" onDeleteCascade="false" schema="public" table="m_share_product_dividend_pay_out"/>
            <child catalog="fineract_default" column="product_id" foreignKey="m_share_product_market_price_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_share_product_market_price"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="short_name" nullable="false" remarks="" size="4" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="description" nullable="false" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="start_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="end_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="currency_code" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="currency_digits" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="currency_multiplesof" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="total_shares" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="issued_shares" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="totalsubscribed_shares" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="13" name="unit_price" nullable="false" remarks="" size="10" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="14" name="capital_amount" nullable="false" remarks="" size="20" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="minimum_client_shares" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="nominal_client_shares" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="maximum_client_shares" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="18" name="minimum_active_period_frequency" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="minimum_active_period_frequency_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="20" name="lockin_period_frequency" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="lockin_period_frequency_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="22" name="allow_dividends_inactive_clients" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="createdby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_product_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="24" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="lastmodifiedby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_product_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="26" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="accounting_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_share_product_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_share_product_ibfk_1" unique="false">
            <column ascending="true" name="createdby_id"/>
         </index>
         <index name="m_share_product_ibfk_2" unique="false">
            <column ascending="true" name="lastmodifiedby_id"/>
         </index>
         <index name="m_share_product_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_share_product_charge" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_product_charge_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_share_product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="charge_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_product_charge_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_charge"/>
         </column>
         <primaryKey column="product_id" sequenceNumberInPK="1"/>
         <primaryKey column="charge_id" sequenceNumberInPK="2"/>
         <index name="m_share_product_charge_pkey" unique="true">
            <column ascending="true" name="product_id"/>
            <column ascending="true" name="charge_id"/>
         </index>
         <index name="m_share_product_charge_ibfk_1" unique="false">
            <column ascending="true" name="charge_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_share_product_dividend_pay_out" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="dividend_pay_out_id" foreignKey="FK_m_share_account_dividend_details_dividend_pay_out_id" implied="false" onDeleteCascade="false" schema="public" table="m_share_account_dividend_details"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_share_product_dividend_pay_out_product_id" implied="false" onDeleteCascade="false" schema="public" table="m_share_product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="dividend_period_start_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="dividend_period_end_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="status" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="createdby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_share_product_dividend_pay_out_createdby_id" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="lastmodifiedby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_share_product_dividend_pay_out_lastmodifiedby_id" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_share_product_dividend_pay_out_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_share_product_dividend_pay_out_createdby_id" unique="false">
            <column ascending="true" name="createdby_id"/>
         </index>
         <index name="FK_m_share_product_dividend_pay_out_lastmodifiedby_id" unique="false">
            <column ascending="true" name="lastmodifiedby_id"/>
         </index>
         <index name="FK_m_share_product_dividend_pay_out_product_id" unique="false">
            <column ascending="true" name="product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_share_product_market_price" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_share_product_market_price_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_share_product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="from_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="3" name="share_value" nullable="false" remarks="" size="10" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_share_product_market_price_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_share_product_market_price_ibfk_1" unique="false">
            <column ascending="true" name="product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_staff" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="staff_id" foreignKey="fk_m_appuser_002" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
            <child catalog="fineract_default" column="staff_id" foreignKey="FK_m_cashiers_m_staff" implied="false" onDeleteCascade="false" schema="public" table="m_cashiers"/>
            <child catalog="fineract_default" column="staff_id" foreignKey="FK_m_client_m_staff" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
            <child catalog="fineract_default" column="staff_id" foreignKey="FK_m_group_m_staff" implied="false" onDeleteCascade="false" schema="public" table="m_group"/>
            <child catalog="fineract_default" column="loan_officer_id" foreignKey="FK_m_loan_m_staff" implied="false" onDeleteCascade="false" schema="public" table="m_loan"/>
            <child catalog="fineract_default" column="loan_officer_id" foreignKey="fk_m_loan_officer_assignment_history_0002" implied="false" onDeleteCascade="false" schema="public" table="m_loan_officer_assignment_history"/>
            <child catalog="fineract_default" column="savings_officer_id" foreignKey="fk_m_savings_officer_assignment_history_0002" implied="false" onDeleteCascade="false" schema="public" table="m_savings_officer_assignment_history"/>
            <child catalog="fineract_default" column="staff_id" foreignKey="FK_m_staff_assignment_history_m_staff" implied="false" onDeleteCascade="false" schema="public" table="m_staff_assignment_history"/>
            <child catalog="fineract_default" column="staff_id" foreignKey="sefkstaff000000001" implied="false" onDeleteCascade="false" schema="public" table="scheduled_email_messages_outbound"/>
            <child catalog="fineract_default" column="staff_id" foreignKey="fkstaff000000001" implied="false" onDeleteCascade="false" schema="public" table="sms_messages_outbound"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="1" name="is_loan_officer" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="office_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_staff_m_office" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="firstname" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="lastname" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="display_name" nullable="false" remarks="" size="102" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="mobile_no" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="organisational_role_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="organisational_role_parent_staff_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="10" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="joining_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="image_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_staff_m_image" implied="false" onDeleteCascade="false" schema="public" table="m_image"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="email_address" nullable="true" remarks="" size="254" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_staff_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_staff_m_image" unique="false">
            <column ascending="true" name="image_id"/>
         </index>
         <index name="FK_m_staff_m_office" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="m_staff_display_name_key" unique="true">
            <column ascending="true" name="display_name"/>
         </index>
         <index name="m_staff_external_id_key" unique="true">
            <column ascending="true" name="external_id"/>
         </index>
         <index name="m_staff_mobile_no_key" unique="true">
            <column ascending="true" name="mobile_no"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_staff_assignment_history" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="centre_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_staff_assignment_history_centre_id_m_group" implied="false" onDeleteCascade="false" schema="public" table="m_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="staff_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_staff_assignment_history_m_staff" implied="false" onDeleteCascade="false" schema="public" table="m_staff"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="start_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="end_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="createdby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="lastmodified_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="lastmodifiedby_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_staff_assignment_history_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_staff_assignment_history_centre_id_m_group" unique="false">
            <column ascending="true" name="centre_id"/>
         </index>
         <index name="FK_m_staff_assignment_history_m_staff" unique="false">
            <column ascending="true" name="staff_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_survey_components" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="survey_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_survey_components_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_surveys"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="a_key" nullable="false" remarks="" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="a_text" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="description" nullable="true" remarks="" size="4000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="sequence_no" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_survey_components_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="survey_id" unique="false">
            <column ascending="true" name="survey_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_survey_lookup_tables" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="survey_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_survey_lookup_tables_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_surveys"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="a_key" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="value_from" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="value_to" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="2" id="6" name="score" nullable="false" remarks="" size="5" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_survey_lookup_tables_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="survey_lookup_tables_survey_id" unique="false">
            <column ascending="true" name="survey_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_survey_questions" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="question_id" foreignKey="m_survey_responses_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_survey_responses"/>
            <child catalog="fineract_default" column="question_id" foreignKey="m_survey_scorecards_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_survey_scorecards"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="survey_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_survey_questions_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_surveys"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="component_key" nullable="true" remarks="" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="a_key" nullable="false" remarks="" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="a_text" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="description" nullable="true" remarks="" size="4000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="sequence_no" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_survey_questions_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="survey_questions_survey_id" unique="false">
            <column ascending="true" name="survey_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_survey_responses" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="response_id" foreignKey="m_survey_scorecards_ibfk_3" implied="false" onDeleteCascade="false" schema="public" table="m_survey_scorecards"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="question_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_survey_responses_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_survey_questions"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="a_text" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="a_value" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="sequence_no" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_survey_responses_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="survey_responses_question_id" unique="false">
            <column ascending="true" name="question_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_survey_scorecards" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="survey_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_survey_scorecards_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_surveys"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="question_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_survey_scorecards_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_survey_questions"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="response_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_survey_scorecards_ibfk_3" implied="false" onDeleteCascade="false" schema="public" table="m_survey_responses"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="user_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_survey_scorecards_ibfk_4" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="client_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_survey_scorecards_ibfk_5" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_on" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="a_value" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_survey_scorecards_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_survey_scorecards_client" unique="false">
            <column ascending="true" name="client_id"/>
         </index>
         <index name="response_id" unique="false">
            <column ascending="true" name="response_id"/>
         </index>
         <index name="survey_scorecards_question_id" unique="false">
            <column ascending="true" name="question_id"/>
         </index>
         <index name="survey_scorecards_survey_id" unique="false">
            <column ascending="true" name="survey_id"/>
         </index>
         <index name="survey_scorecards_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_surveys" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="survey_id" foreignKey="m_survey_components_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_survey_components"/>
            <child catalog="fineract_default" column="survey_id" foreignKey="m_survey_lookup_tables_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_survey_lookup_tables"/>
            <child catalog="fineract_default" column="survey_id" foreignKey="m_survey_questions_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_survey_questions"/>
            <child catalog="fineract_default" column="survey_id" foreignKey="m_survey_scorecards_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_survey_scorecards"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="a_key" nullable="false" remarks="" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="a_name" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="true" remarks="" size="4000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="country_code" nullable="false" remarks="" size="2" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="valid_from" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="valid_to" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_surveys_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_tax_component" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="tax_component_id" foreignKey="fk_loan_charge_tax_details_component" implied="false" onDeleteCascade="false" schema="public" table="m_loan_charge_tax_details"/>
            <child catalog="fineract_default" column="tax_component_id" foreignKey="FK_savings_account_transaction_tax_details_tax_component" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account_transaction_tax_details"/>
            <child catalog="fineract_default" column="tax_component_id" foreignKey="FK_tax_component_history_tax_component_id" implied="false" onDeleteCascade="false" schema="public" table="m_tax_component_history"/>
            <child catalog="fineract_default" column="tax_component_id" foreignKey="FK_tax_group_mappings_tax_component" implied="false" onDeleteCascade="false" schema="public" table="m_tax_group_mappings"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="percentage" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="debit_account_type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="debit_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_tax_component_debit_gl_account" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="credit_account_type_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="credit_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_tax_component_credit_gl_account" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="start_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="createdby_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_tax_component_createdby" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="created_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="lastmodifiedby_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_tax_component_lastmodifiedby" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="lastmodified_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_tax_component_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_tax_component_createdby" unique="false">
            <column ascending="true" name="createdby_id"/>
         </index>
         <index name="FK_tax_component_credit_gl_account" unique="false">
            <column ascending="true" name="credit_account_id"/>
         </index>
         <index name="FK_tax_component_debit_gl_account" unique="false">
            <column ascending="true" name="debit_account_id"/>
         </index>
         <index name="FK_tax_component_lastmodifiedby" unique="false">
            <column ascending="true" name="lastmodifiedby_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_tax_component_history" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="tax_component_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_tax_component_history_tax_component_id" implied="false" onDeleteCascade="false" schema="public" table="m_tax_component"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="percentage" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="start_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="end_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="createdby_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_tax_component_history_createdby" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="lastmodifiedby_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_tax_component_history_lastmodifiedby" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="lastmodified_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_tax_component_history_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_tax_component_history_createdby" unique="false">
            <column ascending="true" name="createdby_id"/>
         </index>
         <index name="FK_tax_component_history_lastmodifiedby" unique="false">
            <column ascending="true" name="lastmodifiedby_id"/>
         </index>
         <index name="FK_tax_component_history_tax_component_id" unique="false">
            <column ascending="true" name="tax_component_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_tax_group" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="tax_group_id" foreignKey="FK_m_charge_m_tax_group" implied="false" onDeleteCascade="false" schema="public" table="m_charge"/>
            <child catalog="fineract_default" column="tax_group_id" foreignKey="FK_savings_account_tax_group" implied="false" onDeleteCascade="false" schema="public" table="m_savings_account"/>
            <child catalog="fineract_default" column="tax_group_id" foreignKey="FK_savings_product_tax_group" implied="false" onDeleteCascade="false" schema="public" table="m_savings_product"/>
            <child catalog="fineract_default" column="tax_group_id" foreignKey="FK_tax_group_mappings_tax_group" implied="false" onDeleteCascade="false" schema="public" table="m_tax_group_mappings"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="createdby_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_tax_group_createdby" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="lastmodifiedby_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_tax_group_lastmodifiedby" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="lastmodified_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_tax_group_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_tax_group_createdby" unique="false">
            <column ascending="true" name="createdby_id"/>
         </index>
         <index name="FK_tax_group_lastmodifiedby" unique="false">
            <column ascending="true" name="lastmodifiedby_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_tax_group_mappings" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="tax_group_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_tax_group_mappings_tax_group" implied="false" onDeleteCascade="false" schema="public" table="m_tax_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="tax_component_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_tax_group_mappings_tax_component" implied="false" onDeleteCascade="false" schema="public" table="m_tax_component"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="start_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="end_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="createdby_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_tax_group_mappings_createdby" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="lastmodifiedby_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_tax_group_mappings_lastmodifiedby" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="lastmodified_date" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_tax_group_mappings_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_tax_group_mappings_createdby" unique="false">
            <column ascending="true" name="createdby_id"/>
         </index>
         <index name="FK_tax_group_mappings_lastmodifiedby" unique="false">
            <column ascending="true" name="lastmodifiedby_id"/>
         </index>
         <index name="FK_tax_group_mappings_tax_component" unique="false">
            <column ascending="true" name="tax_component_id"/>
         </index>
         <index name="FK_tax_group_mappings_tax_group" unique="false">
            <column ascending="true" name="tax_group_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_tellers" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="teller_id" foreignKey="FK_m_cashiers_m_teller" implied="false" onDeleteCascade="false" schema="public" table="m_cashiers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="office_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_tellers_m_office" implied="false" onDeleteCascade="false" schema="public" table="m_office"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="debit_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_tellers_gl_account_debit_account_id" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="credit_account_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_tellers_gl_account_credit_account_id" implied="false" onDeleteCascade="false" schema="public" table="acc_gl_account"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="name" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="description" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="valid_from" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="valid_to" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="state" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_tellers_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="FK_m_tellers_gl_account_credit_account_id" unique="false">
            <column ascending="true" name="credit_account_id"/>
         </index>
         <index name="FK_m_tellers_gl_account_debit_account_id" unique="false">
            <column ascending="true" name="debit_account_id"/>
         </index>
         <index name="IK_m_tellers_m_office" unique="false">
            <column ascending="true" name="office_id"/>
         </index>
         <index name="m_tellers_office_name_unq" unique="true">
            <column ascending="true" name="office_id"/>
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_template" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="ugd_template_id" foreignKey="fk_ugd_template_id" implied="false" onDeleteCascade="false" schema="public" table="m_hook"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="text" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="entity" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="type" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_template_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_template_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_template_m_templatemappers" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="m_template_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="mappers_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <index name="m_template_id" unique="false">
            <column ascending="true" name="m_template_id"/>
         </index>
         <index name="m_template_m_templatemappers_mappers_id_key" unique="true">
            <column ascending="true" name="mappers_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_templatemappers" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="mapperkey" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="mapperorder" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="mappervalue" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_templatemappers_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_trial_balance" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="office_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="account_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="entry_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="created_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="closing_balance" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
      </table>
      <table catalog="fineract_default" name="m_wc_breach_configuration" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="breach_id" foreignKey="FK_m_wc_loan_breach_cfg" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
            <child catalog="fineract_default" column="breach_id" foreignKey="FK_m_wc_loan_product_breach_cfg" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="breach_frequency" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="breach_frequency_type" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="breach_amount_calculation_type" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="breach_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="PK_m_wc_breach_configuration" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="uq_m_wc_breach_configuration_name" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_delinquency_configuration" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="bucket_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_wc_delinquency_configuration_on_bucket" implied="false" onDeleteCascade="false" schema="public" table="m_delinquency_bucket"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="frequency" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="frequency_type" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="minimum_payment" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="minimum_payment_type" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="created_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="last_modified_on_utc" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="pk_m_wc_delinquency_configuration" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="uc_m_wc_delinquency_configuration_bucket" unique="true">
            <column ascending="true" name="bucket_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="loan_id" foreignKey="fk_m_wc_loan_amort_model_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_amortization_model"/>
            <child catalog="fineract_default" column="wc_loan_id" foreignKey="FK_m_wc_loan_balance_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_balance"/>
            <child catalog="fineract_default" column="wc_loan_id" foreignKey="FK_wc_loan_breach_action_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_breach_action"/>
            <child catalog="fineract_default" column="wc_loan_id" foreignKey="FK_wc_breach_schedule_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_breach_schedule"/>
            <child catalog="fineract_default" column="wc_loan_id" foreignKey="FK_wc_loan_delinquency_action_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_delinquency_action"/>
            <child catalog="fineract_default" column="wc_loan_id" foreignKey="FK_wc_delinquency_range_schedule_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_delinquency_range_schedule"/>
            <child catalog="fineract_default" column="wc_loan_id" foreignKey="FK_m_wc_loan_disbursement_detail_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_disbursement_detail"/>
            <child catalog="fineract_default" column="wc_loan_id" foreignKey="fk_wc_near_breach_action_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_near_breach_action"/>
            <child catalog="fineract_default" column="wc_loan_id" foreignKey="FK_m_wc_loan_note_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_note"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="FK_wc_loan_originator_mapping_wc_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_originator_mapping"/>
            <child catalog="fineract_default" column="wc_loan_id" foreignKey="m_wc_loan_payment_allocation_rule_loan_fk" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_payment_allocation_rule"/>
            <child catalog="fineract_default" column="wc_loan_id" foreignKey="fk_wc_rate_change_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_period_payment_rate_change"/>
            <child catalog="fineract_default" column="loan_id" foreignKey="fk_m_wc_loan_range_delinquency_tag_on_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_range_delinquency_tag"/>
            <child catalog="fineract_default" column="wc_loan_id" foreignKey="FK_m_wc_loan_transaction_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="version" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="6" name="loan_status_id" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="last_closed_business_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="account_no" nullable="true" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="disbursedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="client_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_client" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="fund_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_fund" implied="false" onDeleteCascade="false" schema="public" table="m_fund"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_product" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="submittedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="rejectedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="rejectedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_rejected_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="approvedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="approvedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_approved_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="closedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="closedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_closed_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="expected_maturedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="maturedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="23" name="principal_amount_proposed" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="24" name="approved_principal" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::character varying" digits="0" id="25" name="currency_code" nullable="true" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="currency_digits" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="currency_multiplesof" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="28" name="principal_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="29" name="period_payment_rate" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="repayment_every" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="NULL::character varying" digits="0" id="31" name="repayment_frequency_enum" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="NULL::character varying" digits="0" id="32" name="amortization_type" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="npv_day_count" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="34" name="discount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="delinquency_bucket_classification_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_delinquency_bucket" implied="false" onDeleteCascade="false" schema="public" table="m_delinquency_bucket"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="loan_counter" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="loan_product_counter" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="delinquency_grace_days" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="delinquency_start_type" nullable="true" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="wc_loan_product_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_loan_product" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="41" name="breach_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_breach_cfg" implied="false" onDeleteCascade="false" schema="public" table="m_wc_breach_configuration"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="42" name="near_breach_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_near_breach" implied="false" onDeleteCascade="false" schema="public" table="m_wc_near_breach"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="43" name="discount_proposed" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="44" name="discount_approved" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="45" name="total_payment_volume" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="46" name="breach_grace_days" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="47" name="breach_start_type" nullable="true" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="48" name="is_charged_off" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="49" name="charged_off_on_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="50" name="charge_off_reason_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_charge_off_reason" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="51" name="charged_off_by_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_charged_off_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="52" name="is_fraud" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="53" name="written_off_on_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="54" name="write_off_reason_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_write_off_reason" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="55" name="overpaid_on_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="'TPV'::character varying" digits="0" id="56" name="payment_amount_calculation_strategy" nullable="false" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="57" name="annual_eir" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="58" name="payment_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_wc_loan_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="IND_m_wc_loan_client_id" unique="false">
            <column ascending="true" name="client_id"/>
         </index>
         <index name="IND_m_wc_loan_external_id" unique="false">
            <column ascending="true" name="external_id"/>
         </index>
         <index name="IND_m_wc_loan_loan_status_id" unique="false">
            <column ascending="true" name="loan_status_id"/>
         </index>
         <index name="IND_m_wc_loan_product_id" unique="false">
            <column ascending="true" name="product_id"/>
         </index>
         <index name="m_wc_loan_external_id_key" unique="true">
            <column ascending="true" name="external_id"/>
         </index>
         <index name="wc_loan_account_no_UNIQUE" unique="true">
            <column ascending="true" name="account_no"/>
         </index>
         <checkConstraint constraint="product_id IS NOT NULL" name="m_wc_loan_product_id_not_null1"/>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_account_locks" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="version" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="lock_owner" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="lock_placed_on" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="error" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="stacktrace" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="lock_placed_on_cob_business_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="loan_id" sequenceNumberInPK="1"/>
         <index name="pk_m_wc_loan_account_locks" unique="true">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_amortization_model" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="version" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_wc_loan_amort_model_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="json_model" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="business_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="json_model_version" nullable="false" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_wc_loan_amortization_model_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="uc_m_wc_loan_amort_model_loan" unique="true">
            <column ascending="true" name="loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_balance" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="wc_loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_balance_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="principal_paid" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="realized_income_from_discount_fee" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="version" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="9" name="overpayment_amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="10" name="principal" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="11" name="fee" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="12" name="fee_paid" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="13" name="penalty" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="14" name="penalty_paid" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="15" name="total_disbursement" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="16" name="total_discount_fee" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="17" name="total_discount_fee_adjustment" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="18" name="breach_pastdue_amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="19" name="principal_adjustment" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="20" name="principal_written_off" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="21" name="fee_written_off" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="22" name="penalty_written_off" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="23" name="total_recovered" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="24" name="fee_waived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="25" name="penalty_waived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_wc_loan_balance_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_wc_loan_balance_wc_loan_id_key" unique="true">
            <column ascending="true" name="wc_loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_breach_action" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="wc_loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_loan_breach_action_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="action" nullable="false" remarks="" size="128" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="start_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="end_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_loan_breach_action_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_loan_breach_action_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="minimum_payment" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="minimum_payment_type" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="frequency" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="frequency_type" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="restart_period_from_reset_date" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_wc_loan_breach_action_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="IND_wc_loan_breach_action_loan_id" unique="false">
            <column ascending="true" name="wc_loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_breach_schedule" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="wc_loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_breach_schedule_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="period_number" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="from_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="to_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="number_of_days" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="min_payment_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="paid_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="outstanding_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="near_breach" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="breach" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_breach_schedule_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_breach_schedule_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="15" name="reset" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="16" name="base_min_payment_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_wc_loan_breach_schedule_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="IND_wc_breach_schedule_loan_id" unique="false">
            <column ascending="true" name="wc_loan_id"/>
         </index>
         <index name="uc_wc_breach_schedule_loan_period" unique="true">
            <column ascending="true" name="wc_loan_id"/>
            <column ascending="true" name="period_number"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_charge" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="wc_loan_charge_id" foreignKey="fk_wc_charge_paid_by_charge" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_charge_paid_by"/>
            <child catalog="fineract_default" column="to_loan_charge_id" foreignKey="fk_m_wc_loan_transaction_relation_on_to_loan_charge" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_transaction_relation"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="charge_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="is_penalty" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="charge_time_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="charge_calculation_type" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="6" name="charge_payment_mode" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="7" name="amount_paid" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="8" name="amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="9" name="is_paid" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="10" name="is_active" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="due_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_loan_charge_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_loan_charge_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="submitted_on_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="16" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="17" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="18" name="amount_written_off" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="19" name="amount_waived" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_wc_loan_charge_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="m_wc_loan_charge_external_id_key" unique="true">
            <column ascending="true" name="external_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_charge_paid_by" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="wc_loan_transaction_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_wc_charge_paid_by_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="wc_loan_charge_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_wc_charge_paid_by_charge" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_charge"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_wc_loan_charge_paid_by_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_wc_charge_paid_by_charge" unique="false">
            <column ascending="true" name="wc_loan_charge_id"/>
         </index>
         <index name="uq_m_wc_loan_charge_paid_by_transaction_charge" unique="true">
            <column ascending="true" name="wc_loan_transaction_id"/>
            <column ascending="true" name="wc_loan_charge_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_delinquency_action" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="wc_loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_loan_delinquency_action_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="action" nullable="false" remarks="" size="128" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="start_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="end_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_loan_delinquency_action_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_loan_delinquency_action_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="minimum_payment" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="minimum_payment_type" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="frequency" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="frequency_type" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="start_new_period" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_wc_loan_delinquency_action_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="IND_wc_loan_delinquency_action_loan_id" unique="false">
            <column ascending="true" name="wc_loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_delinquency_range_schedule" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="range_id" foreignKey="fk_m_wc_loan_range_delinquency_tag_on_range" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_range_delinquency_tag"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="wc_loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_delinquency_range_schedule_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="period_number" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="from_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="to_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="expected_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="paid_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="outstanding_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="min_payment_criteria_met" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_delinquency_range_schedule_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_delinquency_range_schedule_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="delinquent_days" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="delinquent_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="15" name="version" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="16" name="base_expected_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="17" name="reset" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_wc_loan_delinquency_range_schedule_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="IND_wc_delinquency_range_schedule_loan_id" unique="false">
            <column ascending="true" name="wc_loan_id"/>
         </index>
         <index name="uc_wc_delinquency_range_schedule_loan_period" unique="true">
            <column ascending="true" name="wc_loan_id"/>
            <column ascending="true" name="period_number"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_disbursement_detail" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="wc_loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_disbursement_detail_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="expected_disburse_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="expected_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="expected_maturity_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="actual_disburse_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="actual_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="disbursedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_disbursement_detail_user" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_wc_loan_disbursement_detail_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_near_breach_action" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="wc_loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_wc_near_breach_action_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="action" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="threshold" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="frequency" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="frequency_type" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_wc_near_breach_action_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_wc_near_breach_action_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="CURRENT_DATE" digits="0" id="10" name="submitted_on_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_wc_loan_near_breach_action_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_wc_near_breach_action_loan" unique="false">
            <column ascending="true" name="wc_loan_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_note" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="wc_loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_note_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="note" nullable="true" remarks="" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_note_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_note_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_wc_loan_note_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_originator_mapping" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_loan_originator_mapping_wc_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="originator_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_loan_originator_mapping_originator" implied="false" onDeleteCascade="false" schema="public" table="m_loan_originator"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_loan_originator_mapping_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_loan_originator_mapping_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_wc_loan_originator_mapping_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_wc_loan_originator_mapping_originator" unique="false">
            <column ascending="true" name="originator_id"/>
         </index>
         <index name="UQ_wc_loan_originator_mapping_wc_loan_originator" unique="true">
            <column ascending="true" name="loan_id"/>
            <column ascending="true" name="originator_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_payment_allocation_rule" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="wc_loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_wc_loan_payment_allocation_rule_loan_fk" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="transaction_type" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="allocation_types" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_par_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_par_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_wc_loan_payment_allocation_rule_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="IND_m_wc_loan_payment_allocation_rule_loan_id" unique="false">
            <column ascending="true" name="wc_loan_id"/>
         </index>
         <index name="uq_m_wc_loan_payment_allocation_rule" unique="true">
            <column ascending="true" name="wc_loan_id"/>
            <column ascending="true" name="transaction_type"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_period_payment_rate_change" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="wc_loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_wc_rate_change_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="effective_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="previous_rate" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="new_rate" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="is_reversed" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="reversed_on_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_wc_rate_change_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_wc_rate_change_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="0" digits="0" id="9" name="version" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="CURRENT_DATE" digits="0" id="12" name="submitted_on_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="calculated_annual_eir" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="daily_payment_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="segment_term" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_wc_loan_period_payment_rate_change_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_wc_rate_change_loan_date" unique="false">
            <column ascending="true" name="wc_loan_id"/>
            <column ascending="true" name="effective_date"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_product" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="product_id" foreignKey="FK_m_wc_loan_product" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
            <child catalog="fineract_default" column="wc_loan_product_id" foreignKey="FK_wc_loan_product" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
            <child catalog="fineract_default" column="wc_loan_product_id" foreignKey="m_wc_loan_product_configurable_attributes_fk" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_product_configurable_attributes"/>
            <child catalog="fineract_default" column="wc_loan_product_id" foreignKey="m_wc_loan_product_payment_allocation_rule_fk" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_product_payment_allocation_rule"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="short_name" nullable="false" remarks="" size="4" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="fund_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_loan_product_fund" implied="false" onDeleteCascade="false" schema="public" table="m_fund"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="start_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="close_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="description" nullable="true" remarks="" size="500" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="currency_code" nullable="false" remarks="" size="3" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="currency_digits" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="currency_multiplesof" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="amortization_type" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="delinquency_bucket_classification_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_loan_product_delinquency_bucket" implied="false" onDeleteCascade="false" schema="public" table="m_delinquency_bucket"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="npv_day_count" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="14" name="min_principal_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="principal_amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="16" name="max_principal_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="17" name="min_period_payment_rate" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="18" name="period_payment_rate" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="19" name="max_period_payment_rate" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="NULL::numeric" digits="6" id="20" name="discount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="repayment_every" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="repayment_frequency_enum" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="delinquency_grace_days" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="delinquency_start_type" nullable="true" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="breach_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_product_breach_cfg" implied="false" onDeleteCascade="false" schema="public" table="m_wc_breach_configuration"/>
         </column>
         <column autoUpdated="false" defaultValue="'NONE'::character varying" digits="0" id="26" name="accounting_type" nullable="false" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="near_breach_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_product_near_breach" implied="false" onDeleteCascade="false" schema="public" table="m_wc_near_breach"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="breach_grace_days" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="breach_start_type" nullable="true" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'TPV'::character varying" digits="0" id="30" name="payment_amount_calculation_strategy" nullable="false" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="31" name="annual_eir" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="32" name="min_annual_eir" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="33" name="max_annual_eir" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="34" name="payment_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="35" name="min_payment_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="36" name="max_payment_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_wc_loan_product_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="IND_wc_loan_product_external_id" unique="false">
            <column ascending="true" name="external_id"/>
         </index>
         <index name="IND_wc_loan_product_fund_id" unique="false">
            <column ascending="true" name="fund_id"/>
         </index>
         <index name="m_wc_loan_product_external_id_key" unique="true">
            <column ascending="true" name="external_id"/>
         </index>
         <index name="m_wc_loan_product_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <index name="m_wc_loan_product_short_name_key" unique="true">
            <column ascending="true" name="short_name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_product_configurable_attributes" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="wc_loan_product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_wc_loan_product_configurable_attributes_fk" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_product"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="2" name="delinquency_bucket_classification_overridable" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="discount_default_overridable" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="period_payment_frequency_overridable" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="period_payment_frequency_type_overridable" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="breach_overridable" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_wc_loan_product_configurable_attributes_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="IND_wc_loan_product_configurable_attributes_product_id" unique="false">
            <column ascending="true" name="wc_loan_product_id"/>
         </index>
         <index name="m_wc_loan_product_configurable_attribute_wc_loan_product_id_key" unique="true">
            <column ascending="true" name="wc_loan_product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_product_payment_allocation_rule" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="wc_loan_product_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="m_wc_loan_product_payment_allocation_rule_fk" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="transaction_type" nullable="false" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="allocation_types" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_loan_product_payment_allocation_rule_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_wc_loan_product_payment_allocation_rule_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_wc_loan_product_payment_allocation_rule_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="IND_wc_loan_product_payment_allocation_rule_product_id" unique="false">
            <column ascending="true" name="wc_loan_product_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_range_delinquency_tag" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="delinquency_range_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_wc_loan_range_delinquency_tag_on_delinquency_range" implied="false" onDeleteCascade="false" schema="public" table="m_delinquency_range"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_wc_loan_range_delinquency_tag_on_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="range_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_wc_loan_range_delinquency_tag_on_range" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_delinquency_range_schedule"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="addedon_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="liftedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="outstanding_amount" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="version" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="pk_m_wc_loan_range_delinquency_tag" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_transaction" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="wc_loan_transaction_id" foreignKey="fk_wc_charge_paid_by_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_charge_paid_by"/>
            <child catalog="fineract_default" column="wc_loan_transaction_id" foreignKey="FK_m_wc_loan_transaction_allocation_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_transaction_allocation"/>
            <child catalog="fineract_default" column="from_loan_transaction_id" foreignKey="fk_m_wc_loan_transaction_relation_on_from_loan_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_transaction_relation"/>
            <child catalog="fineract_default" column="to_loan_transaction_id" foreignKey="fk_m_wc_loan_transaction_relation_on_to_loan_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_transaction_relation"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="wc_loan_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_transaction_loan" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="payment_detail_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_transaction_payment_detail" implied="false" onDeleteCascade="false" schema="public" table="m_payment_detail"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="classification_cv_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_transaction_classification_cv" implied="false" onDeleteCascade="false" schema="public" table="m_code_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="transaction_type_id" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="transaction_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="submitted_on_date" nullable="false" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="transaction_amount" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="9" name="version" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_transaction_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_transaction_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="14" name="is_reversed" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="reversal_external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="reversed_on_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="pk_m_wc_loan_transaction" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="IND_m_wc_loan_transaction_wc_loan_id" unique="false">
            <column ascending="true" name="wc_loan_id"/>
         </index>
         <index name="wc_loan_transaction_external_id_UNIQUE" unique="true">
            <column ascending="true" name="external_id"/>
         </index>
         <index name="wc_loan_transaction_reversal_external_id_UNIQUE" unique="true">
            <column ascending="true" name="reversal_external_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_transaction_allocation" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="wc_loan_transaction_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_transaction_allocation_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="principal_portion" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="fee_charges_portion" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="penalty_charges_portion" nullable="true" remarks="" size="19" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="5" name="version" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_transaction_allocation_created_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="FK_m_wc_loan_transaction_allocation_last_modified_by" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="0" digits="6" id="10" name="overpayment_portion" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="pk_m_wc_loan_transaction_allocation" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="IND_m_wc_loan_transaction_allocation_transaction_id" unique="false">
            <column ascending="true" name="wc_loan_transaction_id"/>
         </index>
         <index name="uq_m_wc_loan_transaction_allocation_transaction_id" unique="true">
            <column ascending="true" name="wc_loan_transaction_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_loan_transaction_relation" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="created_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="last_modified_by" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="from_loan_transaction_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_wc_loan_transaction_relation_on_from_loan_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="to_loan_transaction_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_wc_loan_transaction_relation_on_to_loan_transaction" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_transaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="relation_type_enum" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="last_modified_on_utc" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="to_loan_charge_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_m_wc_loan_transaction_relation_on_to_loan_charge" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_charge"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="pk_m_wc_loan_transaction_relation" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_wc_near_breach" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="near_breach_id" foreignKey="FK_m_wc_loan_near_breach" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan"/>
            <child catalog="fineract_default" column="near_breach_id" foreignKey="FK_m_wc_loan_product_near_breach" implied="false" onDeleteCascade="false" schema="public" table="m_wc_loan_product"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="near_breach_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="near_breach_frequency" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="near_breach_frequency_type" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="near_breach_threshold" nullable="false" remarks="" size="19" type="numeric" typeCode="2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="PK_m_wc_near_breach" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="uq_m_wc_near_breach_name" unique="true">
            <column ascending="true" name="near_breach_name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="m_working_days" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="recurrence" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="repayment_rescheduling_enum" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="extend_term_daily_repayments" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="extend_term_holiday_repayment" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="m_working_days_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="notification_generator" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="notification_id" foreignKey="notification_mapper_ibfk_3" implied="false" onDeleteCascade="false" schema="public" table="notification_mapper"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="object_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="object_identifier" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="action" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="actor" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="is_system_generated" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="notification_content" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_at" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="notification_generator_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="notification_mapper" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="notification_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="notification_mapper_ibfk_3" implied="false" onDeleteCascade="false" schema="public" table="notification_generator"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="user_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="notification_mapper_ibfk_2" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="is_read" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="notification_mapper_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="notification_id" unique="false">
            <column ascending="true" name="notification_id"/>
         </index>
         <index name="notification_mapper_user" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="oauth_access_token" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="token_id" nullable="true" remarks="" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="token" nullable="true" remarks="" size="10" type="oid" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="authentication_id" nullable="true" remarks="" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="user_name" nullable="true" remarks="" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="client_id" nullable="true" remarks="" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="authentication" nullable="true" remarks="" size="10" type="oid" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="refresh_token" nullable="true" remarks="" size="256" type="varchar" typeCode="12"/>
      </table>
      <table catalog="fineract_default" name="oauth_client_details" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="client_id" nullable="false" remarks="" size="128" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="resource_ids" nullable="true" remarks="" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="client_secret" nullable="true" remarks="" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="scope" nullable="true" remarks="" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="authorized_grant_types" nullable="true" remarks="" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="web_server_redirect_uri" nullable="true" remarks="" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="authorities" nullable="true" remarks="" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="access_token_validity" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="refresh_token_validity" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="additional_information" nullable="true" remarks="" size="4096" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="10" name="autoapprove" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="client_id" sequenceNumberInPK="1"/>
         <index name="oauth_client_details_pkey" unique="true">
            <column ascending="true" name="client_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="oauth_refresh_token" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="token_id" nullable="true" remarks="" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="token" nullable="true" remarks="" size="10" type="oid" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="authentication" nullable="true" remarks="" size="10" type="oid" typeCode="-5"/>
      </table>
      <table catalog="fineract_default" name="ppi_likelihoods" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="code" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="250" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="ppi_likelihoods_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="ppi_likelihoods_ppi" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="likelihood_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ppi_name" nullable="false" remarks="" size="250" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="100" digits="0" id="3" name="enabled" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="ppi_likelihoods_ppi_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="ppi_scores" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="score_from" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="score_to" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="ppi_scores_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="r_enum_value" numRows="198" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="enum_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="enum_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="enum_message_property" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="enum_value" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="enum_type" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="enum_name" sequenceNumberInPK="1"/>
         <primaryKey column="enum_id" sequenceNumberInPK="2"/>
         <index name="r_enum_value_pkey" unique="true">
            <column ascending="true" name="enum_name"/>
            <column ascending="true" name="enum_id"/>
         </index>
         <index name="enum_message_property" unique="true">
            <column ascending="true" name="enum_name"/>
            <column ascending="true" name="enum_message_property"/>
         </index>
         <index name="enum_value" unique="true">
            <column ascending="true" name="enum_name"/>
            <column ascending="true" name="enum_value"/>
         </index>
      </table>
      <table catalog="fineract_default" name="ref_loan_transaction_processing_strategy" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="code" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="sort_order" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="ref_loan_transaction_processing_strategy_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="ref_loan_transaction_processing_strategy_code_key" unique="true">
            <column ascending="true" name="code"/>
         </index>
      </table>
      <table catalog="fineract_default" name="rpt_sequence" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="rpt_sequence_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="scheduled_email_campaign" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="email_campaign_id" foreignKey="fk_schedule_email_campign1" implied="false" onDeleteCascade="false" schema="public" table="scheduled_email_messages_outbound"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="campaign_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="campaign_type" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="business_rule_id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="param_value" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="status_enum" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="email_subject" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="email_message" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="email_attachment_file_format" nullable="true" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="stretchy_report_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="scheduled_email_campaign_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="stretchy_report"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="stretchy_report_param_map" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="closedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="closedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="submittedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="submittedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="approvedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="approvedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="recurrence" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="18" name="next_trigger_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="19" name="last_trigger_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="20" name="recurrence_start_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="21" name="is_visible" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="previous_run_error_log" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="previous_run_error_message" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="previous_run_status" nullable="true" remarks="" size="10" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="scheduled_email_campaign_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="scheduled_email_campaign_ibfk_1" unique="false">
            <column ascending="true" name="stretchy_report_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="scheduled_email_configuration" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="value" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="scheduled_email_configuration_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="scheduled_email_configuration_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="scheduled_email_messages_outbound" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="group_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="sefkgroup000000001" implied="false" onDeleteCascade="false" schema="public" table="m_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="client_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="sefkclient00000001" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="staff_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="sefkstaff000000001" implied="false" onDeleteCascade="false" schema="public" table="m_staff"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="email_campaign_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_schedule_email_campign1" implied="false" onDeleteCascade="false" schema="public" table="scheduled_email_campaign"/>
         </column>
         <column autoUpdated="false" defaultValue="100" digits="0" id="5" name="status_enum" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="email_address" nullable="false" remarks="" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="email_subject" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="message" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="campaign_name" nullable="true" remarks="" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="submittedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="error_message" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="scheduled_email_messages_outbound_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_schedule_email_campign1" unique="false">
            <column ascending="true" name="email_campaign_id"/>
         </index>
         <index name="sefkclient00000001" unique="false">
            <column ascending="true" name="client_id"/>
         </index>
         <index name="sefkgroup000000001" unique="false">
            <column ascending="true" name="group_id"/>
         </index>
         <index name="sefkstaff000000001" unique="false">
            <column ascending="true" name="staff_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="scheduler_detail" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="1" name="is_suspended" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="2" name="execute_misfired_jobs" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="3" name="reset_scheduler_on_bootup" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="scheduler_detail_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="sms_campaign" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <child catalog="fineract_default" column="campaign_id" foreignKey="fkcampaign00000001" implied="false" onDeleteCascade="false" schema="public" table="sms_messages_outbound"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="campaign_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="campaign_type" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="campaign_trigger_type" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="report_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="sms_campaign_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="stretchy_report"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="provider_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="param_value" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="status_enum" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="message" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="submittedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="submittedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="approvedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="approvedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="closedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="closedon_userid" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="recurrence" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="16" name="next_trigger_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="17" name="last_trigger_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="18" name="recurrence_start_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="19" name="is_visible" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="20" name="is_notification" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="sms_campaign_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="campaign_name_UNIQUE" unique="true">
            <column ascending="true" name="campaign_name"/>
         </index>
         <index name="report_id" unique="false">
            <column ascending="true" name="report_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="sms_messages_outbound" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="group_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkgroup000000001" implied="false" onDeleteCascade="false" schema="public" table="m_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="client_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkclient00000001" implied="false" onDeleteCascade="false" schema="public" table="m_client"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="staff_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkstaff000000001" implied="false" onDeleteCascade="false" schema="public" table="m_staff"/>
         </column>
         <column autoUpdated="false" defaultValue="100" digits="0" id="4" name="status_enum" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="mobile_no" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="message" nullable="false" remarks="" size="1000" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="campaign_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fkcampaign00000001" implied="false" onDeleteCascade="false" schema="public" table="sms_campaign"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="external_id" nullable="true" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="submittedon_date" nullable="true" remarks="" size="13" type="date" typeCode="91"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="delivered_on_date" nullable="true" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="11" name="is_notification" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="sms_messages_outbound_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fkcampaign00000001" unique="false">
            <column ascending="true" name="campaign_id"/>
         </index>
         <index name="fkclient00000001" unique="false">
            <column ascending="true" name="client_id"/>
         </index>
         <index name="fkgroup000000001" unique="false">
            <column ascending="true" name="group_id"/>
         </index>
         <index name="fkstaff000000001" unique="false">
            <column ascending="true" name="staff_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="stretchy_parameter" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <child catalog="fineract_default" column="parent_id" foreignKey="fk_stretchy_parameter_001" implied="false" onDeleteCascade="false" schema="public" table="stretchy_parameter"/>
            <child catalog="fineract_default" column="parameter_id" foreignKey="fk_report_parameter_002" implied="false" onDeleteCascade="false" schema="public" table="stretchy_report_parameter"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="parameter_name" nullable="false" remarks="" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="parameter_variable" nullable="true" remarks="" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="parameter_label" nullable="false" remarks="" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="parameter_displayType" nullable="false" remarks="" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="parameter_FormatType" nullable="false" remarks="" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="parameter_default" nullable="false" remarks="" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="special" nullable="true" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="selectOne" nullable="true" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="selectAll" nullable="true" remarks="" size="1" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="parameter_sql" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="parent_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="fk_stretchy_parameter_001" implied="false" onDeleteCascade="false" schema="public" table="stretchy_parameter"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="stretchy_parameter_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_stretchy_parameter_001_idx" unique="false">
            <column ascending="true" name="parent_id"/>
         </index>
         <index name="stretchy_parameter_parameter_name_key" unique="true">
            <column ascending="true" name="parameter_name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="stretchy_report" numRows="87" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <child catalog="fineract_default" column="stretchy_report_id" foreignKey="m_report_mailing_job_ibfk_3" implied="false" onDeleteCascade="false" schema="public" table="m_report_mailing_job"/>
            <child catalog="fineract_default" column="stretchy_report_id" foreignKey="scheduled_email_campaign_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="scheduled_email_campaign"/>
            <child catalog="fineract_default" column="report_id" foreignKey="sms_campaign_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="sms_campaign"/>
            <child catalog="fineract_default" column="report_id" foreignKey="fk_report_parameter_001" implied="false" onDeleteCascade="true" schema="public" table="stretchy_report_parameter"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="report_name" nullable="false" remarks="" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="report_type" nullable="false" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="report_subtype" nullable="true" remarks="" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="report_category" nullable="true" remarks="" size="45" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="report_sql" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="7" name="core_report" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="8" name="use_report" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="9" name="self_service_user_report" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="stretchy_report_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="stretchy_report_report_name_key" unique="true">
            <column ascending="true" name="report_name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="stretchy_report_parameter" numRows="259" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="report_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="fk_report_parameter_001" implied="false" onDeleteCascade="true" schema="public" table="stretchy_report"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="parameter_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="fk_report_parameter_002" implied="false" onDeleteCascade="false" schema="public" table="stretchy_parameter"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="report_parameter_name" nullable="true" remarks="" size="45" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="stretchy_report_parameter_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="fk_report_parameter_001_idx" unique="false">
            <column ascending="true" name="report_id"/>
         </index>
         <index name="fk_report_parameter_002_idx" unique="false">
            <column ascending="true" name="parameter_id"/>
         </index>
         <index name="report_parameter_unique" unique="true">
            <column ascending="true" name="report_id"/>
            <column ascending="true" name="parameter_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="twofactor_access_token" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="token" nullable="false" remarks="" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="appuser_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5">
            <parent catalog="fineract_default" column="id" foreignKey="fk_2fa_access_token_user_id" implied="false" onDeleteCascade="false" schema="public" table="m_appuser"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="valid_from" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="valid_to" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="enabled" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="twofactor_access_token_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="token" unique="false">
            <column ascending="true" name="token"/>
         </index>
         <index name="token_appuser_UNIQUE" unique="true">
            <column ascending="true" name="token"/>
            <column ascending="true" name="appuser_id"/>
         </index>
         <index name="user" unique="false">
            <column ascending="true" name="appuser_id"/>
         </index>
      </table>
      <table catalog="fineract_default" name="twofactor_configuration" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="" size="40" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="value" nullable="true" remarks="" size="1024" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="twofactor_configuration_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="twofactor_configuration_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="x_registered_table" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="registered_table_name" nullable="false" remarks="" size="50" type="varchar" typeCode="12">
            <child catalog="fineract_default" column="x_registered_table_name" foreignKey="m_entity_datatable_check_ibfk_1" implied="false" onDeleteCascade="false" schema="public" table="m_entity_datatable_check"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="application_table_name" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="entity_subtype" nullable="true" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="100" digits="0" id="3" name="category" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="registered_table_name" sequenceNumberInPK="1"/>
         <index name="x_registered_table_pkey" unique="true">
            <column ascending="true" name="registered_table_name"/>
         </index>
      </table>
      <table catalog="fineract_default" name="x_table_column_code_mappings" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="column_alias_name" nullable="false" remarks="" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="code_id" nullable="false" remarks="" size="10" type="int4" typeCode="4">
            <parent catalog="fineract_default" column="id" foreignKey="FK_x_code_id" implied="false" onDeleteCascade="false" schema="public" table="m_code"/>
         </column>
         <primaryKey column="column_alias_name" sequenceNumberInPK="1"/>
         <index name="x_table_column_code_mappings_pkey" unique="true">
            <column ascending="true" name="column_alias_name"/>
         </index>
         <index name="FK_x_code_id" unique="false">
            <column ascending="true" name="code_id"/>
         </index>
      </table>
   </tables>
   <routines>
      <routine dataAccess="MODIFIES" deterministic="false" name="uuid_generate_v1()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="false" name="uuid_generate_v1mc()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_generate_v3(namespace uuid, name text)" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN" name="namespace" type="uuid"/>
            <parameter mode="IN" name="name" type="text"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="false" name="uuid_generate_v4()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_generate_v5(namespace uuid, name text)" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN" name="namespace" type="uuid"/>
            <parameter mode="IN" name="name" type="text"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_nil()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_ns_dns()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_ns_oid()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_ns_url()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_ns_x500()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[Redacted, use --include-routine-definition]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
   </routines>
</database>
