src-db/database/model/tables/C_CHARGE_ACCT.xml
changeset 756 ae11e4610537
parent 735 daced7e311c9
child 1605 8a0fe0193bef
equal deleted inserted replaced
755:16b55e593268 756:ae11e4610537
       
     1 <?xml version="1.0"?>
       
     2   <database name="TABLE C_CHARGE_ACCT">
       
     3     <table name="C_CHARGE_ACCT" primaryKey="C_CHARHE_ACCT_KEY">
       
     4       <column name="C_CHARGE_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
     5         <default/>
       
     6         <onCreateDefault/>
       
     7       </column>
       
     8       <column name="C_ACCTSCHEMA_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
     9         <default/>
       
    10         <onCreateDefault/>
       
    11       </column>
       
    12       <column name="AD_CLIENT_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
    13         <default/>
       
    14         <onCreateDefault/>
       
    15       </column>
       
    16       <column name="AD_ORG_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
    17         <default/>
       
    18         <onCreateDefault/>
       
    19       </column>
       
    20       <column name="ISACTIVE" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
       
    21         <default><![CDATA[Y]]></default>
       
    22         <onCreateDefault/>
       
    23       </column>
       
    24       <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
       
    25         <default><![CDATA[SYSDATE]]></default>
       
    26         <onCreateDefault/>
       
    27       </column>
       
    28       <column name="CREATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
    29         <default/>
       
    30         <onCreateDefault/>
       
    31       </column>
       
    32       <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
       
    33         <default><![CDATA[SYSDATE]]></default>
       
    34         <onCreateDefault/>
       
    35       </column>
       
    36       <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
    37         <default/>
       
    38         <onCreateDefault/>
       
    39       </column>
       
    40       <column name="CH_EXPENSE_ACCT" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
    41         <default/>
       
    42         <onCreateDefault/>
       
    43       </column>
       
    44       <column name="CH_REVENUE_ACCT" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
    45         <default/>
       
    46         <onCreateDefault/>
       
    47       </column>
       
    48       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_CCHARGEACCT">
       
    49         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       
    50       </foreign-key>
       
    51       <foreign-key foreignTable="AD_ORG" name="ADORG_CCHARGEACCT">
       
    52         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       
    53       </foreign-key>
       
    54       <foreign-key foreignTable="C_ACCTSCHEMA" name="CACCTSCHEMA_CCHARGEACCT" onDelete="cascade">
       
    55         <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
       
    56       </foreign-key>
       
    57       <foreign-key foreignTable="C_CHARGE" name="CCHRAGE_CCHARGEACCT">
       
    58         <reference local="C_CHARGE_ID" foreign="C_CHARGE_ID"/>
       
    59       </foreign-key>
       
    60       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_CHEXPENSE_CCHARGE">
       
    61         <reference local="CH_EXPENSE_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       
    62       </foreign-key>
       
    63       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_CHREVENUE_CCHARGE">
       
    64         <reference local="CH_REVENUE_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
       
    65       </foreign-key>
       
    66       <check name="C_CHARGE_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
       
    67     </table>
       
    68   </database>