src-db/database/model/tables/C_EXTERNALPOS_CATEGORY.xml
author David Miguelez <david.miguelez@openbravo.com>
Mon, 29 Apr 2013 13:47:02 +0200
changeset 20246 ad7168af39fc
parent 8505 a2bb7e6fb443
child 20969 385a318c6d30
permissions -rw-r--r--
Fixes Issue 15768. Executes trigger before deleting record.
<?xml version="1.0"?>
  <database name="TABLE C_EXTERNALPOS_CATEGORY">
    <table name="C_EXTERNALPOS_CATEGORY" primaryKey="C_EXTERNALPOS_CATEGORY_KEY">
      <column name="C_EXTERNALPOS_CATEGORY_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="C_EXTERNALPOS_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="M_PRODUCT_CATEGORY_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <foreign-key foreignTable="AD_CLIENT" name="C_EXTERNALPOS_CATEGORY_AD_CLIE">
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_ORG" name="C_EXTERNALPOS_CATEGORY_AD_ORG">
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
      </foreign-key>
      <foreign-key foreignTable="C_EXTERNALPOS" name="C_EXTERNALPOS_CATEGORY_C_EXTER">
        <reference local="C_EXTERNALPOS_ID" foreign="C_EXTERNALPOS_ID"/>
      </foreign-key>
      <foreign-key foreignTable="M_PRODUCT_CATEGORY" name="C_EXTERNALPOS_CATEGORY_M_PRODU">
        <reference local="M_PRODUCT_CATEGORY_ID" foreign="M_PRODUCT_CATEGORY_ID"/>
      </foreign-key>
      <unique name="C_EXTPOSCAT_PRODCATEGORY_UN">
        <unique-column name="M_PRODUCT_CATEGORY_ID"/>
        <unique-column name="C_EXTERNALPOS_ID"/>
      </unique>
      <check name="C_EXTERNALPOS_C_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
    </table>
  </database>