database/model/tables/M_OFFER_PRICELIST.xml
changeset 410 ec5115414c8c
parent 238 006d2d0fdea6
child 735 daced7e311c9
--- a/database/model/tables/M_OFFER_PRICELIST.xml	Mon Feb 11 13:16:25 2008 +0000
+++ b/database/model/tables/M_OFFER_PRICELIST.xml	Mon Feb 11 14:32:48 2008 +0000
@@ -11,6 +11,9 @@
       <column name="UPDATEDBY" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
       <column name="M_OFFER_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
       <column name="M_PRICELIST_ID" primaryKey="false" required="true" type="DECIMAL" size="10,0" autoIncrement="false"/>
+      <foreign-key foreignTable="M_OFFER" name="MOFFER_MOFFERPRICELIST">
+        <reference local="M_OFFER_ID" foreign="M_OFFER_ID"/>
+      </foreign-key>
       <foreign-key foreignTable="AD_CLIENT" name="MOFFERPRICELIST_ADCLIENT">
         <reference local="AD_CLIENT_ID" foreign="AD_CLIENT_ID"/>
       </foreign-key>
@@ -20,8 +23,5 @@
       <foreign-key foreignTable="M_PRICELIST" name="MOFFERPRICELIST_MPRICELIST">
         <reference local="M_PRICELIST_ID" foreign="M_PRICELIST_ID"/>
       </foreign-key>
-      <foreign-key foreignTable="M_OFFER" name="MOFFER_MOFFERPRICELIST">
-        <reference local="M_OFFER_ID" foreign="M_OFFER_ID"/>
-      </foreign-key>
     </table>
   </database>