src-db/database/model/tables/FIN_FINANCIAL_ACCOUNT_ACCT.xml
author Eduardo Argal Guibert <eduardo.argal@openbravo.com>
Wed, 24 Feb 2010 02:23:06 +0100
changeset 6832 497ed4fec4f2
child 6874 2874fe456c25
permissions -rw-r--r--
Accounting + Financial account accounts window
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@6832
    68
      <foreign-key foreignTable="AD_CLIENT" name="FIN_FINACC_ACCT_AD_CLIENT">
eduardo@6832
    69
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
eduardo@6832
    70
      </foreign-key>
eduardo@6832
    71
      <foreign-key foreignTable="AD_ORG" name="FIN_FINACC_ACCT_AD_ORG">
eduardo@6832
    72
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
eduardo@6832
    73
      </foreign-key>
eduardo@6832
    74
      <foreign-key foreignTable="C_ACCTSCHEMA" name="FIN_FINACC_ACCT_C_ACCTSCHEM" onDelete="cascade">
eduardo@6832
    75
        <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
eduardo@6832
    76
      </foreign-key>
eduardo@6832
    77
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_CREDIT">
eduardo@6832
    78
        <reference local="FIN_CREDIT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@6832
    79
      </foreign-key>
eduardo@6832
    80
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_DEBIT">
eduardo@6832
    81
        <reference local="FIN_DEBIT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@6832
    82
      </foreign-key>
eduardo@6832
    83
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_DEPOSIT">
eduardo@6832
    84
        <reference local="FIN_DEPOSIT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@6832
    85
      </foreign-key>
eduardo@6832
    86
      <foreign-key foreignTable="FIN_FINANCIAL_ACCOUNT" name="FIN_FINACC_ACCT_FINACC">
eduardo@6832
    87
        <reference local="FIN_FINANCIAL_ACCOUNT_ID" foreign="FIN_FINANCIAL_ACCOUNT_ID"/>
eduardo@6832
    88
      </foreign-key>
eduardo@6832
    89
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_MAKEPAYMENT">
eduardo@6832
    90
        <reference local="FIN_MAKEPAYMENT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@6832
    91
      </foreign-key>
eduardo@6832
    92
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_RECEIVEPAYMENT">
eduardo@6832
    93
        <reference local="FIN_RECEIVEPAYMENT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@6832
    94
      </foreign-key>
eduardo@6832
    95
      <foreign-key foreignTable="C_VALIDCOMBINATION" name="FIN_FINACC_ACCT_WITHDRAWAL">
eduardo@6832
    96
        <reference local="FIN_WITHDRAWAL_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
eduardo@6832
    97
      </foreign-key>
eduardo@6832
    98
      <unique name="FIN_FINACC_ACCT_ACCTSCHEMA_UN">
eduardo@6832
    99
        <unique-column name="FIN_FINANCIAL_ACCOUNT_ID"/>
eduardo@6832
   100
        <unique-column name="C_ACCTSCHEMA_ID"/>
eduardo@6832
   101
      </unique>
eduardo@6832
   102
      <check name="FIN_FINACC_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
eduardo@6832
   103
    </table>
eduardo@6832
   104
  </database>