database/model/tables/C_PROJECT_ACCT.xml
changeset 94 4e7ba7b8a4ad
parent 0 0247c26f10c6
child 170 4b5493776a7f
equal deleted inserted replaced
93:058b91261f0d 94:4e7ba7b8a4ad
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     2 <database name="TABLE C_PROJECT_ACCT">
     2   <database name="TABLE C_PROJECT_ACCT">
     3     <table name="C_PROJECT_ACCT" primaryKey="C_PROJECT_ACCT_KEY">
     3     <table name="C_PROJECT_ACCT" primaryKey="C_PROJECT_ACCT_KEY">
     4       <column name="C_PROJECT_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     4       <column name="C_PROJECT_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     5       <column name="C_ACCTSCHEMA_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     5       <column name="C_ACCTSCHEMA_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     6       <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     6       <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     7       <column name="AD_ORG_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     7       <column name="AD_ORG_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
    10       <column name="CREATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
    10       <column name="CREATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
    11       <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
    11       <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
    12       <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
    12       <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
    13       <column name="PJ_ASSET_ACCT" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
    13       <column name="PJ_ASSET_ACCT" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
    14       <column name="PJ_WIP_ACCT" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
    14       <column name="PJ_WIP_ACCT" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false"/>
    15 <check name="C_PROJECT_ACCT_ISACTIVE_CHECK" condition="IsActive in ('Y','N')"/> 
       
    16       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_CPROJECTACCT">
    15       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_CPROJECTACCT">
    17         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
    16         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
    18       </foreign-key>
    17       </foreign-key>
    19       <foreign-key foreignTable="AD_ORG" name="ADORG_CPROJECTACCT">
    18       <foreign-key foreignTable="AD_ORG" name="ADORG_CPROJECTACCT">
    20         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
    19         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
    21       </foreign-key>
    20       </foreign-key>
    22       <foreign-key foreignTable="C_ACCTSCHEMA" name="CACCTSCHEMA_CPROJECTACCT"   onDelete="cascade">
    21       <foreign-key foreignTable="C_ACCTSCHEMA" name="CACCTSCHEMA_CPROJECTACCT" onDelete="cascade">
    23         <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
    22         <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
    24       </foreign-key>
    23       </foreign-key>
    25       <foreign-key foreignTable="C_PROJECT" name="C_PROJECT_PROJECTACCT"   onDelete="cascade">
    24       <foreign-key foreignTable="C_PROJECT" name="C_PROJECT_PROJECTACCT" onDelete="cascade">
    26         <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
    25         <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
    27       </foreign-key>
    26       </foreign-key>
    28       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_PJWIP_CPROJECT">
    27       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_PJWIP_CPROJECT">
    29         <reference local="PJ_WIP_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
    28         <reference local="PJ_WIP_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
    30       </foreign-key>
    29       </foreign-key>
    31       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_PJASSET_CPROJECT">
    30       <foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_PJASSET_CPROJECT">
    32         <reference local="PJ_ASSET_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
    31         <reference local="PJ_ASSET_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
    33       </foreign-key>
    32       </foreign-key>
       
    33       <check name="C_PROJECT_ACCT_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
    34     </table>
    34     </table>
    35 </database>
    35   </database>