src-db/database/model/tables/R_CONTACTINTEREST.xml
changeset 1738 d8dcb2ecfd14
parent 1605 8a0fe0193bef
child 5148 6c00a64a7557
--- a/src-db/database/model/tables/R_CONTACTINTEREST.xml	Wed Oct 01 12:34:44 2008 +0000
+++ b/src-db/database/model/tables/R_CONTACTINTEREST.xml	Wed Oct 01 12:57:20 2008 +0000
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
   <database name="TABLE R_CONTACTINTEREST">
-    <table name="R_CONTACTINTEREST">
+    <table name="R_CONTACTINTEREST" primaryKey="R_CONTACTINTEREST_KEY">
       <column name="R_INTERESTAREA_ID" primaryKey="false" required="true" type="VARCHAR" size="32" autoIncrement="false">
         <default/>
         <onCreateDefault/>
@@ -45,6 +45,10 @@
         <default/>
         <onCreateDefault/>
       </column>
+      <column name="R_CONTACTINTEREST_ID" primaryKey="true" required="true" type="VARCHAR" size="32" autoIncrement="false">
+        <default/>
+        <onCreateDefault/>
+      </column>
       <foreign-key foreignTable="AD_CLIENT" name="ADCLIENT_RCONTACTINTEREST">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
@@ -57,10 +61,6 @@
       <foreign-key foreignTable="R_INTERESTAREA" name="RINTERESTAREA_RCONTACTINTEREST">
         <reference local="R_INTERESTAREA_ID" foreign="R_INTERESTAREA_ID"/>
       </foreign-key>
-      <unique name="R_CONTACTINTEREST_KEY">
-        <unique-column name="AD_USER_ID"/>
-        <unique-column name="R_INTERESTAREA_ID"/>
-      </unique>
       <check name="R_CONTACTINTERE_ISACTIVE_CHECK"><![CDATA[ISACTIVE IN ('Y', 'N')]]></check>
     </table>
   </database>