database/model/tables/AD_TREEBAR.xml
changeset 94 4e7ba7b8a4ad
parent 0 0247c26f10c6
child 238 006d2d0fdea6
equal deleted inserted replaced
93:058b91261f0d 94:4e7ba7b8a4ad
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     2 <database name="TABLE AD_TREEBAR">
     2   <database name="TABLE AD_TREEBAR">
     3     <table name="AD_TREEBAR" primaryKey="AD_TREEBAR_KEY">
     3     <table name="AD_TREEBAR" primaryKey="AD_TREEBAR_KEY">
     4       <column name="AD_TREE_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     4       <column name="AD_TREE_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     5       <column name="AD_USER_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     5       <column name="AD_USER_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     6       <column name="NODE_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     6       <column name="NODE_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     7       <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     7       <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
     9       <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
     9       <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" default="Y" autoIncrement="false"/>
    10       <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
    10       <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
    11       <column name="CREATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
    11       <column name="CREATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
    12       <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
    12       <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" default="SYSDATE" autoIncrement="false"/>
    13       <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
    13       <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
    14       <check name="AD_TREEBAR_ISACTIVE_CHECK" condition="IsActive in ('Y','N')"/> 
       
    15       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_ADTREEBAR">
    14       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_ADTREEBAR">
    16         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
    15         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
    17       </foreign-key>
    16       </foreign-key>
    18       <foreign-key foreignTable="AD_ORG" name="ADORG_ADTREEBAR">
    17       <foreign-key foreignTable="AD_ORG" name="ADORG_ADTREEBAR">
    19         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
    18         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
    20       </foreign-key>
    19       </foreign-key>
    21       <foreign-key foreignTable="AD_TREE" name="ADTREE_ADTREEBAR"   onDelete="cascade">
    20       <foreign-key foreignTable="AD_TREE" name="ADTREE_ADTREEBAR" onDelete="cascade">
    22         <reference local="AD_TREE_ID" foreign="AD_TREE_ID"/>
    21         <reference local="AD_TREE_ID" foreign="AD_TREE_ID"/>
    23       </foreign-key>
    22       </foreign-key>
    24       <foreign-key foreignTable="AD_USER" name="ADUSER_ADTREEBAR"   onDelete="cascade">
    23       <foreign-key foreignTable="AD_USER" name="ADUSER_ADTREEBAR" onDelete="cascade">
    25         <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
    24         <reference local="AD_USER_ID" foreign="AD_USER_ID"/>
    26       </foreign-key>
    25       </foreign-key>
       
    26       <check name="AD_TREEBAR_ISACTIVE_CHECK" condition="IsActive in (&apos;Y&apos;,&apos;N&apos;)"/>
    27     </table>
    27     </table>
    28 </database>
    28   </database>