core-jgi/db/ddlutils/model/C_PROJECT_ACCT.xml

33 lines
2.2 KiB
XML
Raw Normal View History

2006-12-29 05:41:07 +07:00
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="default" defaultIdMethod="none">
<table name="C_PROJECT_ACCT">
<column name="C_PROJECT_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="C_ACCTSCHEMA_ID" primaryKey="true" required="true" type="ID" autoIncrement="false"/>
<column name="AD_CLIENT_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="AD_ORG_ID" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
<column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="CURRENT_TIMESTAMP" autoIncrement="false"/>
<column name="CREATEDBY" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="CURRENT_TIMESTAMP" autoIncrement="false"/>
<column name="UPDATEDBY" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="PJ_ASSET_ACCT" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<column name="PJ_WIP_ACCT" primaryKey="false" required="true" type="ID" autoIncrement="false"/>
<foreign-key foreignTable="C_ACCTSCHEMA" name="CACCTSCHEMA_CPROJECTACCT">
<reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
</foreign-key>
<foreign-key foreignTable="C_PROJECT" name="C_PROJECT_PROJECTACCT">
<reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
</foreign-key>
<foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_PJASSET_CPROJECT">
<reference local="PJ_ASSET_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
</foreign-key>
<foreign-key foreignTable="C_VALIDCOMBINATION" name="VC_PJWIP_CPROJECT">
<reference local="PJ_WIP_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
</foreign-key>
<check>
<rule><![CDATA[IsActive in ('Y','N')]]></rule>
</check>
</table>
</database>