src-db/database/model/tables/C_PROJECT_ACCT.xml
changeset 5551 7a30caea85b5
parent 1605 8a0fe0193bef
child 8504 802eae4a434d
--- a/src-db/database/model/tables/C_PROJECT_ACCT.xml	Thu Nov 26 16:35:30 2009 +0100
+++ b/src-db/database/model/tables/C_PROJECT_ACCT.xml	Thu Nov 26 17:36:43 2009 +0100
@@ -49,25 +49,25 @@
         <default/>
         <onCreateDefault/>
       </column>
-      <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_CPROJECTACCT">
+      <foreign-key foreignTable="AD_CLIENT" name="C_PROJECT_ACCT_AD_CLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="ADORG_CPROJECTACCT">
+      <foreign-key foreignTable="AD_ORG" name="C_PROJECT_ACCT_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
+      <foreign-key foreignTable="C_ACCTSCHEMA" name="C_PROJECT_ACCT_C_ACCTSCHEMA" onDelete="cascade">
+        <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_VALIDCOMBINATION" name="C_PROJECT_ACCT_PJ_ASSET_ACCT">
+        <reference local="PJ_ASSET_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="C_VALIDCOMBINATION" name="C_PROJECT_ACCT_PJ_WIP_ACCT">
+        <reference local="PJ_WIP_ACCT" foreign="C_VALIDCOMBINATION_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="C_PROJECT" name="C_PROJECT_PROJECTACCT" onDelete="cascade">
         <reference local="C_PROJECT_ID" foreign="C_PROJECT_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="C_ACCTSCHEMA" name="CACCTSCHEMA_CPROJECTACCT" onDelete="cascade">
-        <reference local="C_ACCTSCHEMA_ID" foreign="C_ACCTSCHEMA_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>
-      <unique name="CPROJECTACCT_CPROJECTID_CAC_UN">
+      <unique name="C_PROJECT_ACCT_PROJECT_ACCT_UN">
         <unique-column name="C_PROJECT_ID"/>
         <unique-column name="C_ACCTSCHEMA_ID"/>
       </unique>