src-db/database/model/tables/FIN_FINANCIAL_ACCOUNT_ACCT.xml
author Eduardo Argal Guibert <eduardo.argal@openbravo.com>
Mon, 17 Jan 2011 12:54:36 +0100
changeset 9860 99069aeec03b
parent 8543 c4a8d1ac4bd7
child 9876 9e5d101c9b60
permissions -rw-r--r--
Adds Dictionary columns for flags in payment and transaction and new accounts for bank statement import
eduardo@6832
     1
<?xml version="1.0"?>
eduardo@6832
     2
  <database name="TABLE FIN_FINANCIAL_ACCOUNT_ACCT">
eduardo@6832
     3
    <table name="FIN_FINANCIAL_ACCOUNT_ACCT" primaryKey="FIN_FINANCIAL_ACCOUNT_ACCT_KEY">
eduardo@6832
     4
      <column name="FIN_FINANCIAL_ACCOUNT_ACCT_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6832
     5
        <default/>
eduardo@6832
     6
        <onCreateDefault><![CDATA[get_uuid()]]></onCreateDefault>
eduardo@6832
     7
      </column>
eduardo@6832
     8
      <column name="FIN_FINANCIAL_ACCOUNT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6832
     9
        <default/>
eduardo@6832
    10
        <onCreateDefault/>
eduardo@6832
    11
      </column>
eduardo@6832
    12
      <column name="C_ACCTSCHEMA_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6832
    13
        <default/>
eduardo@6832
    14
        <onCreateDefault/>
eduardo@6832
    15
      </column>
eduardo@6832
    16
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6832
    17
        <default/>
eduardo@6832
    18
        <onCreateDefault/>
eduardo@6832
    19
      </column>
eduardo@6832
    20
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6832
    21
        <default/>
eduardo@6832
    22
        <onCreateDefault/>
eduardo@6832
    23
      </column>
eduardo@6832
    24
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
eduardo@6832
    25
        <default><![CDATA[Y]]></default>
eduardo@6832
    26
        <onCreateDefault/>
eduardo@6832
    27
      </column>
eduardo@6832
    28
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
eduardo@6832
    29
        <default><![CDATA[SYSDATE]]></default>
eduardo@6832
    30
        <onCreateDefault/>
eduardo@6832
    31
      </column>
eduardo@6832
    32
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6832
    33
        <default/>
eduardo@6832
    34
        <onCreateDefault/>
eduardo@6832
    35
      </column>
eduardo@6832
    36
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
eduardo@6832
    37
        <default><![CDATA[SYSDATE]]></default>
eduardo@6832
    38
        <onCreateDefault/>
eduardo@6832
    39
      </column>
eduardo@6832
    40
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6832
    41
        <default/>
eduardo@6832
    42
        <onCreateDefault/>
eduardo@6832
    43
      </column>
eduardo@6832
    44
      <column name="FIN_RECEIVEPAYMENT_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6832
    45
        <default/>
eduardo@6832
    46
        <onCreateDefault/>
eduardo@6832
    47
      </column>
eduardo@6832
    48
      <column name="FIN_MAKEPAYMENT_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6832
    49
        <default/>
eduardo@6832
    50
        <onCreateDefault/>
eduardo@6832
    51
      </column>
eduardo@6832
    52
      <column name="FIN_DEPOSIT_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6832
    53
        <default/>
eduardo@6832
    54
        <onCreateDefault/>
eduardo@6832
    55
      </column>
eduardo@6832
    56
      <column name="FIN_WITHDRAWAL_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6832
    57
        <default/>
eduardo@6832
    58
        <onCreateDefault/>
eduardo@6832
    59
      </column>
eduardo@6832
    60
      <column name="FIN_DEBIT_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6832
    61
        <default/>
eduardo@6832
    62
        <onCreateDefault/>
eduardo@6832
    63
      </column>
eduardo@6832
    64
      <column name="FIN_CREDIT_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
eduardo@6832
    65
        <default/>
eduardo@6832
    66
        <onCreateDefault/>
eduardo@6832
    67
      </column>
eduardo@8543
    68
      <column name="FIN_BANKFEE_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@6874
    69
        <default/>
gorkaion@6874
    70
        <onCreateDefault/>
gorkaion@6874
    71
      </column>
eduardo@8543
    72
      <column name="FIN_BANKREVALUATIONGAIN_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@6874
    73
        <default/>
gorkaion@6874
    74
        <onCreateDefault/>
gorkaion@6874
    75
      </column>
eduardo@8543
    76
      <column name="FIN_BANKREVALUATIONLOSS_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
gorkaion@6874
    77
        <default/>
gorkaion@6874
    78
        <onCreateDefault/>
gorkaion@6874
    79
      </column>
eduardo@7618
    80
      <column name="FIN_OUT_INTRANSIT_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
eduardo@7618
    81
        <default/>
eduardo@7618
    82
        <onCreateDefault/>
eduardo@7618
    83
      </column>
eduardo@7618
    84
      <column name="FIN_OUT_CLEAR_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
eduardo@7618
    85
        <default/>
eduardo@7618
    86
        <onCreateDefault/>
eduardo@7618
    87
      </column>
eduardo@7618
    88
      <column name="FIN_IN_INTRANSIT_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
eduardo@7618
    89
        <default/>
eduardo@7618
    90
        <onCreateDefault/>
eduardo@7618
    91
      </column>
eduardo@7618
    92
      <column name="FIN_IN_CLEAR_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
eduardo@7618
    93
        <default/>
eduardo@7618
    94
        <onCreateDefault/>
eduardo@7618
    95
      </column>
eduardo@9860
    96
      <column name="FIN_ASSET_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
eduardo@9860
    97
        <default/>
eduardo@9860
    98
        <onCreateDefault/>
eduardo@9860
    99
      </column>
eduardo@9860
   100
      <column name="FIN_TRANSITORY_ACCT" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
eduardo@9860
   101
        <default/>
eduardo@9860
   102
        <onCreateDefault/>
eduardo@9860
   103
      </column>
eduardo@6832
   104
      <foreign-key foreignTable="AD_CLIENT" name="FIN_FINACC_ACCT_AD_CLIENT">
eduardo@6832
   105
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
eduardo@6832
   106
      </foreign-key>
eduardo@6832
   107
      <foreign-key foreignTable="AD_ORG" name="FIN_FINACC_ACCT_AD_ORG">
eduardo@6832
   108
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
eduardo@6832
   109
      </foreign-key>
gorkaion@6874
   110
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_BANKFEE">
gorkaion@6874
   111
        <reference local="FIN_BANKFEE_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
gorkaion@6874
   112
      </foreign-key>
eduardo@6832
   113
      <foreign-key foreignTable="C_ACCTSCHEMA" name="FIN_FINACC_ACCT_C_ACCTSCHEM" onDelete="cascade">
eduardo@6832
   114
        <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
eduardo@6832
   115
      </foreign-key>
eduardo@6832
   116
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_CREDIT">
eduardo@6832
   117
        <reference local="FIN_CREDIT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@6832
   118
      </foreign-key>
eduardo@6832
   119
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_DEBIT">
eduardo@6832
   120
        <reference local="FIN_DEBIT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@6832
   121
      </foreign-key>
eduardo@6832
   122
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_DEPOSIT">
eduardo@6832
   123
        <reference local="FIN_DEPOSIT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@6832
   124
      </foreign-key>
eduardo@6832
   125
      <foreign-key foreignTable="FIN_FINANCIAL_ACCOUNT" name="FIN_FINACC_ACCT_FINACC">
eduardo@6832
   126
        <reference local="FIN_FINANCIAL_ACCOUNT_ID" foreign="FIN_FINANCIAL_ACCOUNT_ID"/>
eduardo@6832
   127
      </foreign-key>
eduardo@7618
   128
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_INCLEAR">
eduardo@7618
   129
        <reference local="FIN_IN_CLEAR_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@7618
   130
      </foreign-key>
eduardo@7618
   131
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_ININTRANSIT">
eduardo@7618
   132
        <reference local="FIN_IN_INTRANSIT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@7618
   133
      </foreign-key>
eduardo@6832
   134
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_MAKEPAYMENT">
eduardo@6832
   135
        <reference local="FIN_MAKEPAYMENT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@6832
   136
      </foreign-key>
eduardo@7618
   137
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_OUTCLEAR">
eduardo@7618
   138
        <reference local="FIN_OUT_CLEAR_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@7618
   139
      </foreign-key>
eduardo@7618
   140
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_OUTINTRANSIT">
eduardo@7618
   141
        <reference local="FIN_OUT_INTRANSIT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@7618
   142
      </foreign-key>
eduardo@6832
   143
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_RECEIVEPAYMENT">
eduardo@6832
   144
        <reference local="FIN_RECEIVEPAYMENT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@6832
   145
      </foreign-key>
gorkaion@6874
   146
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_REVALGAIN">
gorkaion@6874
   147
        <reference local="FIN_BANKREVALUATIONGAIN_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
gorkaion@6874
   148
      </foreign-key>
gorkaion@6874
   149
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_REVALLOSS">
gorkaion@6874
   150
        <reference local="FIN_BANKREVALUATIONLOSS_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
gorkaion@6874
   151
      </foreign-key>
eduardo@6832
   152
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_WITHDRAWAL">
eduardo@6832
   153
        <reference local="FIN_WITHDRAWAL_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@6832
   154
      </foreign-key>
eduardo@6832
   155
      <unique name="FIN_FINACC_ACCT_ACCTSCHEMA_UN">
eduardo@6832
   156
        <unique-column name="FIN_FINANCIAL_ACCOUNT_ID"/>
eduardo@6832
   157
        <unique-column name="C_ACCTSCHEMA_ID"/>
eduardo@6832
   158
      </unique>
stefan@8505
   159
      <check name="FIN_FINACC_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
eduardo@6832
   160
    </table>
eduardo@6832
   161
  </database>