src-db/database/model/tables/AD_DATASET_TABLE.xml
author Antonio Moreno <antonio.moreno@openbravo.com>
Wed, 10 Dec 2008 10:21:35 +0000
changeset 2276 6f0fae641f4f
parent 2173 f35165459454
child 2323 696b6f8067e8
permissions -rw-r--r--
Added onCreateDefault attributes for AD_MODULE_ID columns in application dictionary tables
<?xml version="1.0"?>
  <database name="TABLE AD_DATASET_TABLE">
    <table name="AD_DATASET_TABLE" primaryKey="AD_DATASET_TABLE_KEY">
      <column name="AD_DATASET_TABLE_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="AD_DATASET_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="AD_TABLE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="INCLUDEALLCOLUMNS" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
        <default><![CDATA[Y]]></default>
        <onCreateDefault/>
      </column>
      <column name="WHERECLAUSE" primaryKey="false" required="false" type="VARCHAR" size="2000" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="EXCLUDEAUDITINFO" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
        <default><![CDATA[N]]></default>
        <onCreateDefault/>
      </column>
      <column name="ISBUSINESSOBJECT" primaryKey="false" required="false" type="CHAR" size="1" autoIncrement="false">
        <default><![CDATA[N]]></default>
        <onCreateDefault/>
      </column>
      <column name="AD_MODULE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default><![CDATA[0]]></default>
        <onCreateDefault><![CDATA[SELECT AD_MODULE_ID FROM AD_MODULE WHERE AD_MODULE_ID<>'0']]></onCreateDefault>
      </column>
      <foreign-key foreignTable="AD_DATASET" name="ADDATASET_ADDSTABLE">
        <reference local="AD_DATASET_ID" foreign="AD_DATASET_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_MODULE" name="ADMODULE_ADDSTABLE">
        <reference local="AD_MODULE_ID" foreign="AD_MODULE_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_TABLE" name="ADTABLE_ADDSTABLE">
        <reference local="AD_TABLE_ID" foreign="AD_TABLE_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_CLIENT" name="CLIENT_ADDSTABLE">
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_ORG" name="ORG_ADDSTABLE">
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
      </foreign-key>
      <check name="ADDSTABLE_ALLCOLUMNS_CHECK"><![CDATA[INCLUDEALLCOLUMNS IN ('Y', 'N')]]></check>
      <check name="ADDSTABLE_BUSINESSOBJ_CHECK"><![CDATA[ISBUSINESSOBJECT IN ('Y', 'N')]]></check>
      <check name="ADDSTABLE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
    </table>
  </database>