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