src-db/database/model/tables/FIN_FINANCIAL_ACCOUNT_ACCT.xml
author Gorka Ion Damián <gorkaion.damian@openbravo.com>
Wed, 24 Mar 2010 20:00:39 +0100
changeset 6874 2874fe456c25
parent 6832 497ed4fec4f2
child 7054 46cc1fd3be75
permissions -rw-r--r--
Added several tables and columns to DB and AD.
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>
gorkaion@6874
    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>
gorkaion@6874
    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>
gorkaion@6874
    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@6832
    80
      <foreign-key foreignTable="AD_CLIENT" name="FIN_FINACC_ACCT_AD_CLIENT">
eduardo@6832
    81
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
eduardo@6832
    82
      </foreign-key>
eduardo@6832
    83
      <foreign-key foreignTable="AD_ORG" name="FIN_FINACC_ACCT_AD_ORG">
eduardo@6832
    84
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
eduardo@6832
    85
      </foreign-key>
gorkaion@6874
    86
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_BANKFEE">
gorkaion@6874
    87
        <reference local="FIN_BANKFEE_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
gorkaion@6874
    88
      </foreign-key>
eduardo@6832
    89
      <foreign-key foreignTable="C_ACCTSCHEMA" name="FIN_FINACC_ACCT_C_ACCTSCHEM" onDelete="cascade">
eduardo@6832
    90
        <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
eduardo@6832
    91
      </foreign-key>
eduardo@6832
    92
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_CREDIT">
eduardo@6832
    93
        <reference local="FIN_CREDIT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@6832
    94
      </foreign-key>
eduardo@6832
    95
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_DEBIT">
eduardo@6832
    96
        <reference local="FIN_DEBIT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@6832
    97
      </foreign-key>
eduardo@6832
    98
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_DEPOSIT">
eduardo@6832
    99
        <reference local="FIN_DEPOSIT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@6832
   100
      </foreign-key>
eduardo@6832
   101
      <foreign-key foreignTable="FIN_FINANCIAL_ACCOUNT" name="FIN_FINACC_ACCT_FINACC">
eduardo@6832
   102
        <reference local="FIN_FINANCIAL_ACCOUNT_ID" foreign="FIN_FINANCIAL_ACCOUNT_ID"/>
eduardo@6832
   103
      </foreign-key>
eduardo@6832
   104
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_MAKEPAYMENT">
eduardo@6832
   105
        <reference local="FIN_MAKEPAYMENT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@6832
   106
      </foreign-key>
eduardo@6832
   107
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_RECEIVEPAYMENT">
eduardo@6832
   108
        <reference local="FIN_RECEIVEPAYMENT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@6832
   109
      </foreign-key>
gorkaion@6874
   110
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_REVALGAIN">
gorkaion@6874
   111
        <reference local="FIN_BANKREVALUATIONGAIN_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
gorkaion@6874
   112
      </foreign-key>
gorkaion@6874
   113
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_REVALLOSS">
gorkaion@6874
   114
        <reference local="FIN_BANKREVALUATIONLOSS_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
gorkaion@6874
   115
      </foreign-key>
eduardo@6832
   116
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_WITHDRAWAL">
eduardo@6832
   117
        <reference local="FIN_WITHDRAWAL_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@6832
   118
      </foreign-key>
eduardo@6832
   119
      <unique name="FIN_FINACC_ACCT_ACCTSCHEMA_UN">
eduardo@6832
   120
        <unique-column name="FIN_FINANCIAL_ACCOUNT_ID"/>
eduardo@6832
   121
        <unique-column name="C_ACCTSCHEMA_ID"/>
eduardo@6832
   122
      </unique>
eduardo@6832
   123
      <check name="FIN_FINACC_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
eduardo@6832
   124
    </table>
eduardo@6832
   125
  </database>