src-db/database/model/tables/AD_VAL_RULE.xml
changeset 5551 7a30caea85b5
parent 2586 683779f1e610
child 8504 802eae4a434d
--- a/src-db/database/model/tables/AD_VAL_RULE.xml	Thu Nov 26 16:35:30 2009 +0100
+++ b/src-db/database/model/tables/AD_VAL_RULE.xml	Thu Nov 26 17:36:43 2009 +0100
@@ -53,13 +53,13 @@
         <default><![CDATA[0]]></default>
         <onCreateDefault><![CDATA[SELECT AD_MODULE_ID FROM AD_MODULE WHERE AD_MODULE_ID<>'0' AND TYPE='M']]></onCreateDefault>
       </column>
-      <foreign-key foreignTable="AD_MODULE" name="ADMODULE_ADVALRULE">
+      <foreign-key foreignTable="AD_CLIENT" name="AD_VAL_RULE_AD_CLIENT">
+        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="AD_MODULE" name="AD_VAL_RULE_AD_MODULE">
         <reference local="AD_MODULE_ID" foreign="AD_MODULE_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="AD_CLIENT" name="VAL_RULECLIENT">
-        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
-      </foreign-key>
-      <foreign-key foreignTable="AD_ORG" name="VAL_RULEORG">
+      <foreign-key foreignTable="AD_ORG" name="AD_VAL_RULE_AD_ORG">
         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       </foreign-key>
       <check name="AD_VAL_RULE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>