src-db/database/model/tables/AD_WORKFLOW.xml
changeset 5551 7a30caea85b5
parent 2586 683779f1e610
child 8504 802eae4a434d
equal deleted inserted replaced
5550:055ee9baf5df 5551:7a30caea85b5
    55       </column>
    55       </column>
    56       <column name="AD_MODULE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
    56       <column name="AD_MODULE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
    57         <default><![CDATA[0]]></default>
    57         <default><![CDATA[0]]></default>
    58         <onCreateDefault><![CDATA[SELECT AD_MODULE_ID FROM AD_MODULE WHERE AD_MODULE_ID<>'0' AND TYPE='M']]></onCreateDefault>
    58         <onCreateDefault><![CDATA[SELECT AD_MODULE_ID FROM AD_MODULE WHERE AD_MODULE_ID<>'0' AND TYPE='M']]></onCreateDefault>
    59       </column>
    59       </column>
    60       <foreign-key foreignTable="AD_WF_NODE" name="ADWFNODE_ADWORKFLOW">
    60       <foreign-key foreignTable="AD_CLIENT" name="AD_WORKFLOW_AD_CLIENT">
    61         <reference local="AD_WF_NODE_ID" foreign="AD_WF_NODE_ID"/>
    61         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
    62       </foreign-key>
    62       </foreign-key>
    63       <foreign-key foreignTable="AD_MODULE" name="ADWORKFLOW_ADMODULE">
    63       <foreign-key foreignTable="AD_MODULE" name="AD_WORKFLOW_AD_MODULE">
    64         <reference local="AD_MODULE_ID" foreign="AD_MODULE_ID"/>
    64         <reference local="AD_MODULE_ID" foreign="AD_MODULE_ID"/>
    65       </foreign-key>
    65       </foreign-key>
    66       <foreign-key foreignTable="AD_CLIENT" name="WORKFLOWCLIENT">
    66       <foreign-key foreignTable="AD_ORG" name="AD_WORKFLOW_AD_ORG">
    67         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
    67         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
    68       </foreign-key>
    68       </foreign-key>
    69       <foreign-key foreignTable="AD_ORG" name="WORKFLOWORG">
    69       <foreign-key foreignTable="AD_WF_NODE" name="AD_WORKFLOW_AD_WF_NODE">
    70         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
    70         <reference local="AD_WF_NODE_ID" foreign="AD_WF_NODE_ID"/>
    71       </foreign-key>
    71       </foreign-key>
    72       <unique name="AD_WORKFLOW_NAME">
    72       <unique name="AD_WORKFLOW_NAME">
    73         <unique-column name="AD_CLIENT_ID"/>
    73         <unique-column name="AD_CLIENT_ID"/>
    74         <unique-column name="NAME"/>
    74         <unique-column name="NAME"/>
    75       </unique>
    75       </unique>