src-db/database/model/tables/M_OFFER_BP_GROUP.xml
author Asier Lostalé <asier.lostale@openbravo.com>
Thu, 11 Oct 2012 11:02:15 +0200
changeset 18321 0fdc34fde17d
parent 8505 a2bb7e6fb443
permissions -rw-r--r--
[discount] Added missing indexes
<?xml version="1.0"?>
  <database name="TABLE M_OFFER_BP_GROUP">
    <table name="M_OFFER_BP_GROUP" primaryKey="M_OFFER_BP_GROUP_KEY">
      <column name="M_OFFER_BP_GROUP_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="AD_CLIENT_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="AD_ORG_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="ISACTIVE" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
        <default><![CDATA[Y]]></default>
        <onCreateDefault/>
      </column>
      <column name="CREATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
        <default><![CDATA[SYSDATE]]></default>
        <onCreateDefault/>
      </column>
      <column name="CREATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="UPDATED" primaryKey="false" required="true" type="TIMESTAMP" size="7" autoIncrement="false">
        <default><![CDATA[SYSDATE]]></default>
        <onCreateDefault/>
      </column>
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="M_OFFER_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="C_BP_GROUP_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <foreign-key foreignTable="C_BP_GROUP" name="M_OFFER_BP_GROUP_BP_GROUP">
        <reference local="C_BP_GROUP_ID" foreign="C_BP_GROUP_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_CLIENT" name="M_OFFER_BP_GROUP_CLIENT">
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
      </foreign-key>
      <foreign-key foreignTable="M_OFFER" name="M_OFFER_BP_GROUP_OFFER">
        <reference local="M_OFFER_ID" foreign="M_OFFER_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_ORG" name="M_OFFER_BP_GROUP_ORG">
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
      </foreign-key>
      <index name="M_OFFERBPGRP_OFFER_IDX" unique="false">
        <index-column name="M_OFFER_ID"/>
      </index>
      <unique name="M_OFFER_BP_GROUP_UNIQUE">
        <unique-column name="C_BP_GROUP_ID"/>
        <unique-column name="M_OFFER_ID"/>
      </unique>
      <check name="M_OFFER_BP_GROU_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
    </table>
  </database>