modules/org.openbravo.userinterface.selector/src-db/database/model/tables/OBUISEL_SELECTOR.xml
changeset 9076 c4f1a5c7d7c2
child 9999 ace3d9ec29a7
equal deleted inserted replaced
9075:b3ea04de2722 9076:c4f1a5c7d7c2
       
     1 <?xml version="1.0"?>
       
     2   <database name="TABLE OBUISEL_SELECTOR">
       
     3     <table name="OBUISEL_SELECTOR" primaryKey="OBUISEL_SELECTOR_KEY">
       
     4       <column name="OBUISEL_SELECTOR_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
     5         <default/>
       
     6         <onCreateDefault/>
       
     7       </column>
       
     8       <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
     9         <default/>
       
    10         <onCreateDefault/>
       
    11       </column>
       
    12       <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
    13         <default/>
       
    14         <onCreateDefault/>
       
    15       </column>
       
    16       <column name="AD_MODULE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
       
    17         <default/>
       
    18         <onCreateDefault><![CDATA[SELECT AD_MODULE_ID FROM AD_MODULE WHERE AD_MODULE_ID<>'0' AND TYPE='M']]></onCreateDefault>
       
    19       </column>
       
    20       <column name="NAME" primaryKey="false" required="true" type="NVARCHAR" size="60" autoIncrement="false">
       
    21         <default/>
       
    22         <onCreateDefault/>
       
    23       </column>
       
    24       <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
       
    25         <default/>
       
    26         <onCreateDefault/>
       
    27       </column>
       
    28       <column name="HELP" primaryKey="false" required="false" type="NVARCHAR" size="2000" autoIncrement="false">
       
    29         <default/>
       
    30         <onCreateDefault/>
       
    31       </column>
       
    32       <column name="AD_REFERENCE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
       
    33         <default/>
       
    34         <onCreateDefault/>
       
    35       </column>
       
    36       <column name="AD_TABLE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
       
    37         <default/>
       
    38         <onCreateDefault/>
       
    39       </column>
       
    40       <column name="AD_COLUMN_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
       
    41         <default/>
       
    42         <onCreateDefault/>
       
    43       </column>
       
    44       <column name="WHERECLAUSE" primaryKey="false" required="false" type="VARCHAR" size="2000" autoIncrement="false">
       
    45         <default/>
       
    46         <onCreateDefault/>
       
    47       </column>
       
    48       <column name="FILTER_EXPRESSION" primaryKey="false" required="false" type="VARCHAR" size="2000" autoIncrement="false">
       
    49         <default/>
       
    50         <onCreateDefault/>
       
    51       </column>
       
    52       <column name="OBSERDS_DATASOURCE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
       
    53         <default/>
       
    54         <onCreateDefault/>
       
    55       </column>
       
    56       <column name="OBCLKER_TEMPLATE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
    57         <default/>
       
    58         <onCreateDefault/>
       
    59       </column>
       
    60       <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
       
    61         <default><![CDATA[Y]]></default>
       
    62         <onCreateDefault/>
       
    63       </column>
       
    64       <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
       
    65         <default><![CDATA[SYSDATE]]></default>
       
    66         <onCreateDefault/>
       
    67       </column>
       
    68       <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
    69         <default/>
       
    70         <onCreateDefault/>
       
    71       </column>
       
    72       <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
       
    73         <default><![CDATA[SYSDATE]]></default>
       
    74         <onCreateDefault/>
       
    75       </column>
       
    76       <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
       
    77         <default/>
       
    78         <onCreateDefault/>
       
    79       </column>
       
    80       <column name="VALUEFIELD_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
       
    81         <default/>
       
    82         <onCreateDefault/>
       
    83       </column>
       
    84       <column name="DISPLAYFIELD_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
       
    85         <default/>
       
    86         <onCreateDefault/>
       
    87       </column>
       
    88       <column name="SUGGESTIONTEXTMATCHSTYLE" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
       
    89         <default><![CDATA[startsWith]]></default>
       
    90         <onCreateDefault><![CDATA['startsWith']]></onCreateDefault>
       
    91       </column>
       
    92       <column name="POPUPTEXTMATCHSTYLE" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
       
    93         <default><![CDATA[startsWith]]></default>
       
    94         <onCreateDefault><![CDATA['startsWith']]></onCreateDefault>
       
    95       </column>
       
    96       <foreign-key foreignTable="AD_CLIENT" name="OBUISEL_S_AD_CLIENT">
       
    97         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       
    98       </foreign-key>
       
    99       <foreign-key foreignTable="AD_COLUMN" name="OBUISEL_S_AD_COLUMN">
       
   100         <reference local="AD_COLUMN_ID" foreign="AD_COLUMN_ID"/>
       
   101       </foreign-key>
       
   102       <foreign-key foreignTable="AD_MODULE" name="OBUISEL_S_AD_MODULE">
       
   103         <reference local="AD_MODULE_ID" foreign="AD_MODULE_ID"/>
       
   104       </foreign-key>
       
   105       <foreign-key foreignTable="AD_ORG" name="OBUISEL_S_AD_ORG">
       
   106         <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
       
   107       </foreign-key>
       
   108       <foreign-key foreignTable="AD_REFERENCE" name="OBUISEL_S_AD_REFERENCE">
       
   109         <reference local="AD_REFERENCE_ID" foreign="AD_REFERENCE_ID"/>
       
   110       </foreign-key>
       
   111       <foreign-key foreignTable="AD_TABLE" name="OBUISEL_S_AD_TABLE">
       
   112         <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
       
   113       </foreign-key>
       
   114       <foreign-key foreignTable="OBUISEL_SELECTOR_FIELD" name="OBUISEL_S_DISPLAYFIELD">
       
   115         <reference local="DISPLAYFIELD_ID" foreign="OBUISEL_SELECTOR_FIELD_ID"/>
       
   116       </foreign-key>
       
   117       <foreign-key foreignTable="OBCLKER_TEMPLATE" name="OBUISEL_S_OBCLKER_T">
       
   118         <reference local="OBCLKER_TEMPLATE_ID" foreign="OBCLKER_TEMPLATE_ID"/>
       
   119       </foreign-key>
       
   120       <foreign-key foreignTable="OBSERDS_DATASOURCE" name="OBUISEL_S_OBSERDS_DS">
       
   121         <reference local="OBSERDS_DATASOURCE_ID" foreign="OBSERDS_DATASOURCE_ID"/>
       
   122       </foreign-key>
       
   123       <foreign-key foreignTable="OBUISEL_SELECTOR_FIELD" name="OBUISEL_S_VALUEFIELD">
       
   124         <reference local="VALUEFIELD_ID" foreign="OBUISEL_SELECTOR_FIELD_ID"/>
       
   125       </foreign-key>
       
   126       <unique name="OBUISEL_S_NAME">
       
   127         <unique-column name="NAME"/>
       
   128         <unique-column name="AD_REFERENCE_ID"/>
       
   129       </unique>
       
   130       <check name="OBUISEL_SEL_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
       
   131     </table>
       
   132   </database>