src-db/database/model/tables/C_GLITEM_ACCT.xml
changeset 1605 8a0fe0193bef
parent 756 ae11e4610537
child 5551 7a30caea85b5
equal deleted inserted replaced
1604:a1c518e6ed93 1605:8a0fe0193bef
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     2   <database name="TABLE C_GLITEM_ACCT">
     2   <database name="TABLE C_GLITEM_ACCT">
     3     <table name="C_GLITEM_ACCT" primaryKey="C_GLITEM_ACCT_KEY">
     3     <table name="C_GLITEM_ACCT" primaryKey="C_GLITEM_ACCT_KEY">
     4       <column name="C_GLITEM_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
     4       <column name="C_GLITEM_ACCT_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
     5         <default/>
       
     6         <onCreateDefault><![CDATA[get_uuid()]]></onCreateDefault>
       
     7       </column>
       
     8       <column name="C_GLITEM_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
     5         <default/>
     9         <default/>
     6         <onCreateDefault/>
    10         <onCreateDefault/>
     7       </column>
    11       </column>
     8       <column name="C_ACCTSCHEMA_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
    12       <column name="C_ACCTSCHEMA_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
     9         <default/>
    13         <default/>
    10         <onCreateDefault/>
    14         <onCreateDefault/>
    11       </column>
    15       </column>
    12       <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
    16       <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
    13         <default/>
    17         <default/>
    14         <onCreateDefault/>
    18         <onCreateDefault/>
    15       </column>
    19       </column>
    16       <column name="AD_ORG_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
    20       <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
    17         <default/>
    21         <default/>
    18         <onCreateDefault/>
    22         <onCreateDefault/>
    19       </column>
    23       </column>
    20       <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
    24       <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
    21         <default><![CDATA[Y]]></default>
    25         <default><![CDATA[Y]]></default>
    23       </column>
    27       </column>
    24       <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
    28       <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
    25         <default><![CDATA[SYSDATE]]></default>
    29         <default><![CDATA[SYSDATE]]></default>
    26         <onCreateDefault/>
    30         <onCreateDefault/>
    27       </column>
    31       </column>
    28       <column name="CREATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
    32       <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
    29         <default/>
    33         <default/>
    30         <onCreateDefault/>
    34         <onCreateDefault/>
    31       </column>
    35       </column>
    32       <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
    36       <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
    33         <default><![CDATA[SYSDATE]]></default>
    37         <default><![CDATA[SYSDATE]]></default>
    34         <onCreateDefault/>
    38         <onCreateDefault/>
    35       </column>
    39       </column>
    36       <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
    40       <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
    37         <default/>
    41         <default/>
    38         <onCreateDefault/>
    42         <onCreateDefault/>
    39       </column>
    43       </column>
    40       <column name="GLITEM_DEBIT_ACCT" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
    44       <column name="GLITEM_DEBIT_ACCT" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
    41         <default/>
    45         <default/>
    42         <onCreateDefault/>
    46         <onCreateDefault/>
    43       </column>
    47       </column>
    44       <column name="GLITEM_CREDIT_ACCT" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
    48       <column name="GLITEM_CREDIT_ACCT" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
    45         <default/>
    49         <default/>
    46         <onCreateDefault/>
    50         <onCreateDefault/>
    47       </column>
    51       </column>
    48       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_CGLITEMACCT">
    52       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_CGLITEMACCT">
    49         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
    53         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
    61         <reference local="GLITEM_CREDIT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
    65         <reference local="GLITEM_CREDIT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
    62       </foreign-key>
    66       </foreign-key>
    63       <foreign-key foreignTable="C_VALIDCOMBINATION" name="GLITEMDEBITACCT_CGLITEMACCT">
    67       <foreign-key foreignTable="C_VALIDCOMBINATION" name="GLITEMDEBITACCT_CGLITEMACCT">
    64         <reference local="GLITEM_DEBIT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
    68         <reference local="GLITEM_DEBIT_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
    65       </foreign-key>
    69       </foreign-key>
       
    70       <unique name="CGLITEMACCT_CGLITEMID_CACCT_UN">
       
    71         <unique-column name="C_GLITEM_ID"/>
       
    72         <unique-column name="C_ACCTSCHEMA_ID"/>
       
    73       </unique>
    66       <check name="C_GLITEM_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
    74       <check name="C_GLITEM_ACCT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
    67     </table>
    75     </table>
    68   </database>
    76   </database>