src-db/database/model/tables/AD_VAL_RULE.xml
changeset 5551 7a30caea85b5
parent 2586 683779f1e610
child 8504 802eae4a434d
equal deleted inserted replaced
5550:055ee9baf5df 5551:7a30caea85b5
    51       </column>
    51       </column>
    52       <column name="AD_MODULE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
    52       <column name="AD_MODULE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
    53         <default><![CDATA[0]]></default>
    53         <default><![CDATA[0]]></default>
    54         <onCreateDefault><![CDATA[SELECT AD_MODULE_ID FROM AD_MODULE WHERE AD_MODULE_ID<>'0' AND TYPE='M']]></onCreateDefault>
    54         <onCreateDefault><![CDATA[SELECT AD_MODULE_ID FROM AD_MODULE WHERE AD_MODULE_ID<>'0' AND TYPE='M']]></onCreateDefault>
    55       </column>
    55       </column>
    56       <foreign-key foreignTable="AD_MODULE" name="ADMODULE_ADVALRULE">
    56       <foreign-key foreignTable="AD_CLIENT" name="AD_VAL_RULE_AD_CLIENT">
       
    57         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       
    58       </foreign-key>
       
    59       <foreign-key foreignTable="AD_MODULE" name="AD_VAL_RULE_AD_MODULE">
    57         <reference local="AD_MODULE_ID" foreign="AD_MODULE_ID"/>
    60         <reference local="AD_MODULE_ID" foreign="AD_MODULE_ID"/>
    58       </foreign-key>
    61       </foreign-key>
    59       <foreign-key foreignTable="AD_CLIENT" name="VAL_RULECLIENT">
    62       <foreign-key foreignTable="AD_ORG" name="AD_VAL_RULE_AD_ORG">
    60         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       
    61       </foreign-key>
       
    62       <foreign-key foreignTable="AD_ORG" name="VAL_RULEORG">
       
    63         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
    63         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
    64       </foreign-key>
    64       </foreign-key>
    65       <check name="AD_VAL_RULE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
    65       <check name="AD_VAL_RULE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
    66     </table>
    66     </table>
    67   </database>
    67   </database>