src-db/database/model/tables/AD_MODEL_OBJECT.xml
author Asier Lostalé <asier.lostale@openbravo.com>
Fri, 12 Mar 2010 13:14:36 +0100
changeset 6690 391825256589
parent 5551 7a30caea85b5
child 6861 1aad37fa921c
permissions -rw-r--r--
fixed bug 12601: Is not possible to delete a window tab using postgresql
<?xml version="1.0"?>
  <database name="TABLE AD_MODEL_OBJECT">
    <table name="AD_MODEL_OBJECT" primaryKey="AD_MODEL_OBJECT_KEY">
      <column name="AD_MODEL_OBJECT_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/>
        <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/>
        <onCreateDefault/>
      </column>
      <column name="UPDATEDBY" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="ACTION" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="AD_TAB_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="CLASSNAME" primaryKey="false" required="true" type="VARCHAR" size="1000" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="ISDEFAULT" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
        <default><![CDATA[N]]></default>
        <onCreateDefault/>
      </column>
      <column name="AD_TASK_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="AD_WORKFLOW_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="AD_PROCESS_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="AD_FORM_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="AD_REFERENCE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="AD_CALLOUT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="AD_MODULE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="OBJECT_TYPE" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
        <default><![CDATA[S]]></default>
        <onCreateDefault><![CDATA['S']]></onCreateDefault>
      </column>
      <column name="LOADONSTARTUP" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="SEQNO" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <column name="NAME" primaryKey="false" required="false" type="VARCHAR" size="60" autoIncrement="false">
        <default/>
        <onCreateDefault/>
      </column>
      <foreign-key foreignTable="AD_CALLOUT" name="AD_MODEL_OBJECT_AD_CALLOUT">
        <reference local="AD_CALLOUT_ID" foreign="AD_CALLOUT_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_CLIENT" name="AD_MODEL_OBJECT_AD_CLIENT">
        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_FORM" name="AD_MODEL_OBJECT_AD_FORM">
        <reference local="AD_FORM_ID" foreign="AD_FORM_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_MODULE" name="AD_MODEL_OBJECT_AD_MODULE">
        <reference local="AD_MODULE_ID" foreign="AD_MODULE_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_ORG" name="AD_MODEL_OBJECT_AD_ORG">
        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_PROCESS" name="AD_MODEL_OBJECT_AD_PROCESS">
        <reference local="AD_PROCESS_ID" foreign="AD_PROCESS_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_REFERENCE" name="AD_MODEL_OBJECT_AD_REFERENCE" onDelete="cascade">
        <reference local="AD_REFERENCE_ID" foreign="AD_REFERENCE_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_TAB" name="AD_MODEL_OBJECT_AD_TAB" onDelete="cascade">
        <reference local="AD_TAB_ID" foreign="AD_TAB_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_TASK" name="AD_MODEL_OBJECT_AD_TASK">
        <reference local="AD_TASK_ID" foreign="AD_TASK_ID"/>
      </foreign-key>
      <foreign-key foreignTable="AD_WORKFLOW" name="AD_MODEL_OBJECT_AD_WORKFLOW">
        <reference local="AD_WORKFLOW_ID" foreign="AD_WORKFLOW_ID"/>
      </foreign-key>
      <unique name="AD_MODEL_OBJECT_CLASSNAME">
        <unique-column name="CLASSNAME"/>
      </unique>
      <check name="AD_MODEL_OBJECT_ISACTIVE_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
      <check name="AD_MODEL_OBJECT_ISDEFAULT_CHK"><![CDATA[ISDEFAULT IN ('Y', 'N')]]></check>
    </table>
  </database>