src-db/database/model/tables/M_OFFER_BP_GROUP.xml
author Juan Pablo Aroztegi <juanpablo.aroztegi@openbravo.com>
Wed, 03 Sep 2008 17:55:37 +0000
changeset 1605 8a0fe0193bef
parent 756 ae11e4610537
child 8504 802eae4a434d
permissions -rw-r--r--
Merge r2.5x intro trunk
carlos@0
     1
<?xml version="1.0"?>
adrian@94
     2
  <database name="TABLE M_OFFER_BP_GROUP">
carlos@0
     3
    <table name="M_OFFER_BP_GROUP" primaryKey="M_OFFER_BP_GROUP_KEY">
juanpablo@1605
     4
      <column name="M_OFFER_BP_GROUP_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
     5
        <default/>
antonio@735
     6
        <onCreateDefault/>
antonio@735
     7
      </column>
juanpablo@1605
     8
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
     9
        <default/>
antonio@735
    10
        <onCreateDefault/>
antonio@735
    11
      </column>
juanpablo@1605
    12
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    13
        <default/>
antonio@735
    14
        <onCreateDefault/>
antonio@735
    15
      </column>
antonio@735
    16
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
antonio@735
    17
        <default><![CDATA[Y]]></default>
antonio@735
    18
        <onCreateDefault/>
antonio@735
    19
      </column>
antonio@735
    20
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    21
        <default><![CDATA[SYSDATE]]></default>
antonio@735
    22
        <onCreateDefault/>
antonio@735
    23
      </column>
juanpablo@1605
    24
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    25
        <default/>
antonio@735
    26
        <onCreateDefault/>
antonio@735
    27
      </column>
antonio@735
    28
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
antonio@735
    29
        <default><![CDATA[SYSDATE]]></default>
antonio@735
    30
        <onCreateDefault/>
antonio@735
    31
      </column>
juanpablo@1605
    32
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    33
        <default/>
antonio@735
    34
        <onCreateDefault/>
antonio@735
    35
      </column>
juanpablo@1605
    36
      <column name="M_OFFER_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    37
        <default/>
antonio@735
    38
        <onCreateDefault/>
antonio@735
    39
      </column>
juanpablo@1605
    40
      <column name="C_BP_GROUP_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
antonio@735
    41
        <default/>
antonio@735
    42
        <onCreateDefault/>
antonio@735
    43
      </column>
adrian@170
    44
      <foreign-key foreignTable="C_BP_GROUP" name="M_OFFER_BP_GROUP_BP_GROUP">
adrian@170
    45
        <reference local="C_BP_GROUP_ID" foreign="C_BP_GROUP_ID"/>
adrian@170
    46
      </foreign-key>
carlos@0
    47
      <foreign-key foreignTable="AD_CLIENT" name="M_OFFER_BP_GROUP_CLIENT">
carlos@0
    48
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
carlos@0
    49
      </foreign-key>
adrian@170
    50
      <foreign-key foreignTable="M_OFFER" name="M_OFFER_BP_GROUP_OFFER">
adrian@170
    51
        <reference local="M_OFFER_ID" foreign="M_OFFER_ID"/>
adrian@170
    52
      </foreign-key>
carlos@0
    53
      <foreign-key foreignTable="AD_ORG" name="M_OFFER_BP_GROUP_ORG">
carlos@0
    54
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
carlos@0
    55
      </foreign-key>
carlos@0
    56
      <unique name="M_OFFER_BP_GROUP_UNIQUE">
carlos@0
    57
        <unique-column name="C_BP_GROUP_ID"/>
carlos@0
    58
        <unique-column name="M_OFFER_ID"/>
carlos@0
    59
      </unique>
ivan@258
    60
      <check name="M_OFFER_BP_GROU_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
carlos@0
    61
    </table>
adrian@94
    62
  </database>