src-db/database/model/tables/AD_PINSTANCE_PARA.xml
changeset 1605 8a0fe0193bef
parent 756 ae11e4610537
child 5551 7a30caea85b5
--- a/src-db/database/model/tables/AD_PINSTANCE_PARA.xml	Wed Sep 03 17:10:52 2008 +0000
+++ b/src-db/database/model/tables/AD_PINSTANCE_PARA.xml	Wed Sep 03 17:55:37 2008 +0000
@@ -1,11 +1,15 @@
 <?xml version="1.0"?>
   <database name="TABLE AD_PINSTANCE_PARA">
     <table name="AD_PINSTANCE_PARA" primaryKey="AD_PINSTANCE_PARA_KEY">
-      <column name="AD_PINSTANCE_ID" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
+      <column name="AD_PINSTANCE_PARA_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault><![CDATA[get_uuid()]]></onCreateDefault>
+      </column>
+      <column name="AD_PINSTANCE_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
         <default/>
         <onCreateDefault/>
       </column>
-      <column name="SEQNO" primaryKey="true" required="true" type="DECIMAL" size="10,0" autoIncrement="false">
+      <column name="SEQNO" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
         <default/>
         <onCreateDefault/>
       </column>
@@ -45,11 +49,11 @@
         <default/>
         <onCreateDefault/>
       </column>
-      <column name="AD_CLIENT_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
+      <column name="AD_CLIENT_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
         <default/>
         <onCreateDefault/>
       </column>
-      <column name="AD_ORG_ID" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
+      <column name="AD_ORG_ID" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
         <default/>
         <onCreateDefault/>
       </column>
@@ -57,7 +61,7 @@
         <default><![CDATA[SYSDATE]]></default>
         <onCreateDefault/>
       </column>
-      <column name="CREATEDBY" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
+      <column name="CREATEDBY" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
         <default/>
         <onCreateDefault/>
       </column>
@@ -65,7 +69,7 @@
         <default><![CDATA[SYSDATE]]></default>
         <onCreateDefault/>
       </column>
-      <column name="UPDATEDBY" primaryKey="false" required="false" type="DECIMAL" size="10,0" autoIncrement="false">
+      <column name="UPDATEDBY" primaryKey="false" required="false" type="VARCHAR" size="32" autoIncrement="false">
         <default/>
         <onCreateDefault/>
       </column>
@@ -82,5 +86,9 @@
       <foreign-key foreignTable="AD_PINSTANCE" name="ADPINSTANCE_ADPINSTANCEPARA" onDelete="cascade">
         <reference local="AD_PINSTANCE_ID" foreign="AD_PINSTANCE_ID"/>
       </foreign-key>
+      <unique name="ADPINSTANCEPARA_ADPINSTANCE_UN">
+        <unique-column name="AD_PINSTANCE_ID"/>
+        <unique-column name="SEQNO"/>
+      </unique>
     </table>
   </database>