src-db/database/model/tables/AD_ATTRIBUTE.xml
changeset 799 fef2c5e2feb7
parent 798 4994e5a604bb
child 800 1ad8094b366f
equal deleted inserted replaced
798:4994e5a604bb 799:fef2c5e2feb7
     1 <?xml version="1.0"?>
       
     2   <database name="TABLE AD_ATTRIBUTE">
       
     3     <table name="AD_ATTRIBUTE" primaryKey="AD_ATTRIBUTE_KEY">
       
     4       <column name="AD_ATTRIBUTE_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
     5         <default/>
       
     6         <onCreateDefault/>
       
     7       </column>
       
     8       <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
     9         <default/>
       
    10         <onCreateDefault/>
       
    11       </column>
       
    12       <column name="AD_ORG_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
    13         <default/>
       
    14         <onCreateDefault/>
       
    15       </column>
       
    16       <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
    17         <default><![CDATA[Y]]></default>
       
    18         <onCreateDefault/>
       
    19       </column>
       
    20       <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
       
    21         <default><![CDATA[SYSDATE]]></default>
       
    22         <onCreateDefault/>
       
    23       </column>
       
    24       <column name="CREATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
    25         <default/>
       
    26         <onCreateDefault/>
       
    27       </column>
       
    28       <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
       
    29         <default><![CDATA[SYSDATE]]></default>
       
    30         <onCreateDefault/>
       
    31       </column>
       
    32       <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
    33         <default/>
       
    34         <onCreateDefault/>
       
    35       </column>
       
    36       <column name="NAME" primaryKey="false" required="true" type="NVARCHAR" size="60" autoIncrement="false">
       
    37         <default/>
       
    38         <onCreateDefault/>
       
    39       </column>
       
    40       <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
       
    41         <default/>
       
    42         <onCreateDefault/>
       
    43       </column>
       
    44       <column name="HELP" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false">
       
    45         <default/>
       
    46         <onCreateDefault/>
       
    47       </column>
       
    48       <column name="AD_TABLE_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
    49         <default/>
       
    50         <onCreateDefault/>
       
    51       </column>
       
    52       <column name="AD_REFERENCE_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
       
    53         <default/>
       
    54         <onCreateDefault/>
       
    55       </column>
       
    56       <column name="AD_REFERENCE_VALUE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
    57         <default/>
       
    58         <onCreateDefault/>
       
    59       </column>
       
    60       <column name="AD_VAL_RULE_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
    61         <default/>
       
    62         <onCreateDefault/>
       
    63       </column>
       
    64       <column name="CALLOUT" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false">
       
    65         <default/>
       
    66         <onCreateDefault/>
       
    67       </column>
       
    68       <column name="VALUEMIN" primaryKey="false" required="false" type="NVARCHAR" size="20" autoIncrement="false">
       
    69         <default/>
       
    70         <onCreateDefault/>
       
    71       </column>
       
    72       <column name="VALUEMAX" primaryKey="false" required="false" type="NVARCHAR" size="20" autoIncrement="false">
       
    73         <default/>
       
    74         <onCreateDefault/>
       
    75       </column>
       
    76       <column name="DEFAULTVALUE" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false">
       
    77         <default/>
       
    78         <onCreateDefault/>
       
    79       </column>
       
    80       <column name="ISREADONLY" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
    81         <default><![CDATA[N]]></default>
       
    82         <onCreateDefault/>
       
    83       </column>
       
    84       <column name="ISUPDATEABLE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
    85         <default><![CDATA[Y]]></default>
       
    86         <onCreateDefault/>
       
    87       </column>
       
    88       <column name="ISMANDATORY" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
    89         <default><![CDATA[N]]></default>
       
    90         <onCreateDefault/>
       
    91       </column>
       
    92       <column name="ISENCRYPTED" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
    93         <default><![CDATA[N]]></default>
       
    94         <onCreateDefault/>
       
    95       </column>
       
    96       <column name="FIELDLENGTH" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
    97         <default/>
       
    98         <onCreateDefault/>
       
    99       </column>
       
   100       <column name="DISPLAYLENGTH" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   101         <default/>
       
   102         <onCreateDefault/>
       
   103       </column>
       
   104       <column name="DISPLAYLOGIC" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false">
       
   105         <default/>
       
   106         <onCreateDefault/>
       
   107       </column>
       
   108       <column name="VFORMAT" primaryKey="false" required="false" type="NVARCHAR" size="60" autoIncrement="false">
       
   109         <default/>
       
   110         <onCreateDefault/>
       
   111       </column>
       
   112       <column name="ISSAMELINE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
   113         <default><![CDATA[N]]></default>
       
   114         <onCreateDefault/>
       
   115       </column>
       
   116       <column name="ISHEADING" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
   117         <default><![CDATA[N]]></default>
       
   118         <onCreateDefault/>
       
   119       </column>
       
   120       <column name="ISFIELDONLY" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
   121         <default><![CDATA[N]]></default>
       
   122         <onCreateDefault/>
       
   123       </column>
       
   124       <column name="SEQNO" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
       
   125         <default/>
       
   126         <onCreateDefault/>
       
   127       </column>
       
   128       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_ADATTRIBUTE">
       
   129         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       
   130       </foreign-key>
       
   131       <foreign-key foreignTable="AD_ORG" name="ADORG_ADATTRIBUTE">
       
   132         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       
   133       </foreign-key>
       
   134       <foreign-key foreignTable="AD_REFERENCE" name="ADREFERENCE_ADATTRIBUTE">
       
   135         <reference local="AD_REFERENCE_ID" foreign="AD_REFERENCE_ID"/>
       
   136       </foreign-key>
       
   137       <foreign-key foreignTable="AD_REFERENCE" name="ADREFERENCEVALUE_ADATTRIBUTE">
       
   138         <reference local="AD_REFERENCE_VALUE_ID" foreign="AD_REFERENCE_ID"/>
       
   139       </foreign-key>
       
   140       <foreign-key foreignTable="AD_TABLE" name="ADTABLE_ADATTRIBUTE" onDelete="cascade">
       
   141         <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
       
   142       </foreign-key>
       
   143       <foreign-key foreignTable="AD_VAL_RULE" name="ADVALRULE_ADATTRIBUTE" onDelete="setnull">
       
   144         <reference local="AD_VAL_RULE_ID" foreign="AD_VAL_RULE_ID"/>
       
   145       </foreign-key>
       
   146       <check name="ADATTRIBUTE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
       
   147       <check name="ADATTRIBUTE_ISENCRYPTED_CHECK"><![CDATA[ISENCRYPTED IN ('Y', 'N')]]></check>
       
   148       <check name="ADATTRIBUTE_ISFIELDONLY_CHECK"><![CDATA[ISFIELDONLY IN ('Y', 'N')]]></check>
       
   149       <check name="ADATTRIBUTE_ISHEADING_CHECK"><![CDATA[ISHEADING IN ('Y', 'N')]]></check>
       
   150       <check name="ADATTRIBUTE_ISMANDATORY_CHECK"><![CDATA[ISMANDATORY IN ('Y', 'N')]]></check>
       
   151       <check name="ADATTRIBUTE_ISREADONLY_CHECK"><![CDATA[ISREADONLY IN ('Y', 'N')]]></check>
       
   152       <check name="ADATTRIBUTE_ISSAMELINE_CHECK"><![CDATA[ISSAMELINE IN ('Y', 'N')]]></check>
       
   153       <check name="ADATTRIBUTE_ISUPDATEABLE_CHECK"><![CDATA[ISUPDATEABLE IN ('Y', 'N')]]></check>
       
   154     </table>
       
   155   </database>