modules/org.openbravo.client.myob/src-db/database/model/tables/OBKMO_WIDGET_INSTANCE.xml
changeset 9076 c4f1a5c7d7c2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/modules/org.openbravo.client.myob/src-db/database/model/tables/OBKMO_WIDGET_INSTANCE.xml	Fri Dec 10 19:47:45 2010 +0100
@@ -0,0 +1,84 @@
+<?xml version="1.0"?>
+  <database name="TABLE OBKMO_WIDGET_INSTANCE">
+    <table name="OBKMO_WIDGET_INSTANCE" primaryKey="OBKMO_WIDGET_INSTANCE_KEY">
+      <column name="OBKMO_WIDGET_INSTANCE_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="OBKMO_WIDGET_CLASS_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <column name="COPIED_FROM" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <column name="POS_COLUMN" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <column name="POS_SEQUENCE" primaryKey="false" required="true" type="DECIMAL" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <column name="VISIBLEAT_ROLE_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <column name="VISIBLEAT_USER_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <column name="PRIORITYNO" primaryKey="false" required="false" type="DECIMAL" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
+      <foreign-key foreignTable="OBKMO_WIDGET_CLASS" name="OBKMO_WIDGET_INSTANCE_CLASS" onDelete="cascade">
+        <reference local="OBKMO_WIDGET_CLASS_ID" foreign="OBKMO_WIDGET_CLASS_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="AD_CLIENT" name="OBKMO_WIDGET_INSTANCE_CLIENT">
+        <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="OBKMO_WIDGET_INSTANCE" name="OBKMO_WIDGET_INSTANCE_INSTANCE" onDelete="cascade">
+        <reference local="COPIED_FROM" foreign="OBKMO_WIDGET_INSTANCE_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="AD_ORG" name="OBKMO_WIDGET_INSTANCE_ORG">
+        <reference local="AD_ORG_ID" foreign="AD_ORG_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="AD_ROLE" name="OBKMO_WIDGET_INSTANCE_VISROLE" onDelete="cascade">
+        <reference local="VISIBLEAT_ROLE_ID" foreign="AD_ROLE_ID"/>
+      </foreign-key>
+      <foreign-key foreignTable="AD_USER" name="OBKMO_WIDGET_INSTANCE_VISUSER" onDelete="cascade">
+        <reference local="VISIBLEAT_USER_ID" foreign="AD_USER_ID"/>
+      </foreign-key>
+      <check name="OBKMO_WIDGET_INSTANC_CHK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
+    </table>
+  </database>