modules/org.openbravo.client.application/src-db/database/model/tables/OBUIAPP_VIEW_IMPL.xml
author Harpreet Singh <harpreet@openbravo.com>
Fri, 10 Dec 2010 19:47:45 +0100
changeset 9076 c4f1a5c7d7c2
child 14255 15d911f25076
permissions -rw-r--r--
Added 3.0 modules to modules dir and changed the VERSION number
harpreet@9076
     1
<?xml version="1.0"?>
harpreet@9076
     2
  <database name="TABLE OBUIAPP_VIEW_IMPL">
harpreet@9076
     3
    <table name="OBUIAPP_VIEW_IMPL" primaryKey="OBUIAPP_VI_KEY">
harpreet@9076
     4
      <column name="OBUIAPP_VIEW_IMPL_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
harpreet@9076
     5
        <default/>
harpreet@9076
     6
        <onCreateDefault/>
harpreet@9076
     7
      </column>
harpreet@9076
     8
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
harpreet@9076
     9
        <default/>
harpreet@9076
    10
        <onCreateDefault/>
harpreet@9076
    11
      </column>
harpreet@9076
    12
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
harpreet@9076
    13
        <default/>
harpreet@9076
    14
        <onCreateDefault/>
harpreet@9076
    15
      </column>
harpreet@9076
    16
      <column name="AD_MODULE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
harpreet@9076
    17
        <default/>
harpreet@9076
    18
        <onCreateDefault/>
harpreet@9076
    19
      </column>
harpreet@9076
    20
      <column name="OBCLKER_TEMPLATE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
harpreet@9076
    21
        <default/>
harpreet@9076
    22
        <onCreateDefault/>
harpreet@9076
    23
      </column>
harpreet@9076
    24
      <column name="NAME" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
harpreet@9076
    25
        <default/>
harpreet@9076
    26
        <onCreateDefault/>
harpreet@9076
    27
      </column>
harpreet@9076
    28
      <column name="DESCRIPTION" primaryKey="false" required="false" type="VARCHAR" size="255" autoIncrement="false">
harpreet@9076
    29
        <default/>
harpreet@9076
    30
        <onCreateDefault/>
harpreet@9076
    31
      </column>
harpreet@9076
    32
      <column name="CLASSNAME" primaryKey="false" required="false" type="VARCHAR" size="300" autoIncrement="false">
harpreet@9076
    33
        <default/>
harpreet@9076
    34
        <onCreateDefault/>
harpreet@9076
    35
      </column>
harpreet@9076
    36
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
harpreet@9076
    37
        <default><![CDATA[Y]]></default>
harpreet@9076
    38
        <onCreateDefault/>
harpreet@9076
    39
      </column>
harpreet@9076
    40
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
harpreet@9076
    41
        <default><![CDATA[SYSDATE]]></default>
harpreet@9076
    42
        <onCreateDefault/>
harpreet@9076
    43
      </column>
harpreet@9076
    44
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
harpreet@9076
    45
        <default/>
harpreet@9076
    46
        <onCreateDefault/>
harpreet@9076
    47
      </column>
harpreet@9076
    48
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
harpreet@9076
    49
        <default><![CDATA[SYSDATE]]></default>
harpreet@9076
    50
        <onCreateDefault/>
harpreet@9076
    51
      </column>
harpreet@9076
    52
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
harpreet@9076
    53
        <default/>
harpreet@9076
    54
        <onCreateDefault/>
harpreet@9076
    55
      </column>
harpreet@9076
    56
      <foreign-key foreignTable="AD_CLIENT" name="OBUIAPP_VI_AD_CLIENT">
harpreet@9076
    57
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
harpreet@9076
    58
      </foreign-key>
harpreet@9076
    59
      <foreign-key foreignTable="AD_MODULE" name="OBUIAPP_VI_AD_MODULE">
harpreet@9076
    60
        <reference local="AD_MODULE_ID" foreign="AD_MODULE_ID"/>
harpreet@9076
    61
      </foreign-key>
harpreet@9076
    62
      <foreign-key foreignTable="AD_ORG" name="OBUIAPP_VI_AD_ORG">
harpreet@9076
    63
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
harpreet@9076
    64
      </foreign-key>
harpreet@9076
    65
      <foreign-key foreignTable="OBCLKER_TEMPLATE" name="OBUIAPP_VI_OBCLKER_TEMPLATE">
harpreet@9076
    66
        <reference local="OBCLKER_TEMPLATE_ID" foreign="OBCLKER_TEMPLATE_ID"/>
harpreet@9076
    67
      </foreign-key>
harpreet@9076
    68
      <unique name="OBUIAPP_VIEW_IMPL_NAME">
harpreet@9076
    69
        <unique-column name="AD_CLIENT_ID"/>
harpreet@9076
    70
        <unique-column name="AD_MODULE_ID"/>
harpreet@9076
    71
        <unique-column name="NAME"/>
harpreet@9076
    72
      </unique>
harpreet@9076
    73
      <check name="OBUIAPP_VI_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
harpreet@9076
    74
    </table>
harpreet@9076
    75
  </database>