modules/org.openbravo.client.kernel/src-db/database/model/tables/OBCLKER_TEMPLATE.xml
author RM packaging bot <staff.rm@openbravo.com>
Fri, 18 Feb 2011 11:24:00 +0100
changeset 10773 bdc077357683
child 21129 39da19e84a24
permissions -rw-r--r--
Add modules for 3.0RC2
staff@10773
     1
<?xml version="1.0"?>
staff@10773
     2
  <database name="TABLE OBCLKER_TEMPLATE">
staff@10773
     3
    <table name="OBCLKER_TEMPLATE" primaryKey="OBCLKER_TEMPLATE_KEY">
staff@10773
     4
      <column name="OBCLKER_TEMPLATE_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
staff@10773
     5
        <default/>
staff@10773
     6
        <onCreateDefault/>
staff@10773
     7
      </column>
staff@10773
     8
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
staff@10773
     9
        <default/>
staff@10773
    10
        <onCreateDefault/>
staff@10773
    11
      </column>
staff@10773
    12
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
staff@10773
    13
        <default/>
staff@10773
    14
        <onCreateDefault/>
staff@10773
    15
      </column>
staff@10773
    16
      <column name="AD_MODULE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
staff@10773
    17
        <default/>
staff@10773
    18
        <onCreateDefault><![CDATA[SELECT AD_MODULE_ID FROM AD_MODULE WHERE AD_MODULE_ID<>'0' AND TYPE='M']]></onCreateDefault>
staff@10773
    19
      </column>
staff@10773
    20
      <column name="NAME" primaryKey="false" required="true" type="NVARCHAR" size="60" autoIncrement="false">
staff@10773
    21
        <default/>
staff@10773
    22
        <onCreateDefault/>
staff@10773
    23
      </column>
staff@10773
    24
      <column name="DESCRIPTION" primaryKey="false" required="false" type="NVARCHAR" size="255" autoIncrement="false">
staff@10773
    25
        <default/>
staff@10773
    26
        <onCreateDefault/>
staff@10773
    27
      </column>
staff@10773
    28
      <column name="OVERRIDES_TEMPLATE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
staff@10773
    29
        <default/>
staff@10773
    30
        <onCreateDefault/>
staff@10773
    31
      </column>
staff@10773
    32
      <column name="TEMPLATE" primaryKey="false" required="false" type="VARCHAR" size="2000" autoIncrement="false">
staff@10773
    33
        <default/>
staff@10773
    34
        <onCreateDefault/>
staff@10773
    35
      </column>
staff@10773
    36
      <column name="TEMPLATECLASSPATHLOCATION" primaryKey="false" required="false" type="VARCHAR" size="200" autoIncrement="false">
staff@10773
    37
        <default/>
staff@10773
    38
        <onCreateDefault/>
staff@10773
    39
      </column>
staff@10773
    40
      <column name="TEMPLATE_LANGUAGE" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
staff@10773
    41
        <default/>
staff@10773
    42
        <onCreateDefault/>
staff@10773
    43
      </column>
staff@10773
    44
      <column name="COMPONENT_TYPE" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
staff@10773
    45
        <default/>
staff@10773
    46
        <onCreateDefault/>
staff@10773
    47
      </column>
staff@10773
    48
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
staff@10773
    49
        <default><![CDATA[Y]]></default>
staff@10773
    50
        <onCreateDefault/>
staff@10773
    51
      </column>
staff@10773
    52
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
staff@10773
    53
        <default><![CDATA[SYSDATE]]></default>
staff@10773
    54
        <onCreateDefault/>
staff@10773
    55
      </column>
staff@10773
    56
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
staff@10773
    57
        <default/>
staff@10773
    58
        <onCreateDefault/>
staff@10773
    59
      </column>
staff@10773
    60
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
staff@10773
    61
        <default><![CDATA[SYSDATE]]></default>
staff@10773
    62
        <onCreateDefault/>
staff@10773
    63
      </column>
staff@10773
    64
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
staff@10773
    65
        <default/>
staff@10773
    66
        <onCreateDefault/>
staff@10773
    67
      </column>
staff@10773
    68
      <foreign-key foreignTable="AD_CLIENT" name="OBCLKER_T_AD_CLIENT">
staff@10773
    69
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
staff@10773
    70
      </foreign-key>
staff@10773
    71
      <foreign-key foreignTable="AD_MODULE" name="OBCLKER_T_AD_MODULE">
staff@10773
    72
        <reference local="AD_MODULE_ID" foreign="AD_MODULE_ID"/>
staff@10773
    73
      </foreign-key>
staff@10773
    74
      <foreign-key foreignTable="AD_ORG" name="OBCLKER_T_AD_ORG">
staff@10773
    75
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
staff@10773
    76
      </foreign-key>
staff@10773
    77
      <foreign-key foreignTable="OBCLKER_TEMPLATE" name="OBCLKER_T_OVERRIDES">
staff@10773
    78
        <reference local="OVERRIDES_TEMPLATE_ID" foreign="OBCLKER_TEMPLATE_ID"/>
staff@10773
    79
      </foreign-key>
staff@10773
    80
      <unique name="OBCLKER_T_NAME">
staff@10773
    81
        <unique-column name="NAME"/>
staff@10773
    82
      </unique>
staff@10773
    83
      <check name="OBCLKER_CT_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
staff@10773
    84
    </table>
staff@10773
    85
  </database>