[Vtigercrm-commits] [vtiger-commits] r4293 - /vtigercrm/trunk/schema/DatabaseSchema.xml
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat Mar 18 06:19:10 EST 2006
Author: richie
Date: Sat Mar 18 04:19:05 2006
New Revision: 4293
Log:
attempted to fix all the FK errors in this.
Still a long way to go
Modified:
vtigercrm/trunk/schema/DatabaseSchema.xml
Modified: vtigercrm/trunk/schema/DatabaseSchema.xml
==============================================================================
--- vtigercrm/trunk/schema/DatabaseSchema.xml (original)
+++ vtigercrm/trunk/schema/DatabaseSchema.xml Sat Mar 18 04:19:05 2006
@@ -914,8 +914,6 @@
</table>
-
-
<table name="potential" alter="true">
<constraint>ADD CONSTRAINT fk_Potential FOREIGN KEY (potentialid) REFERENCES crmentity(crmid) ON DELETE CASCADE </constraint>
@@ -939,7 +937,7 @@
<field name="amount" type="N"></field>
<field name="stage" type="C" size="100"></field>
- <field name="probability" type="N" size="2.3"></field>
+ <field name="probability" type="N" size="3.2"></field>
<field name="expectedrevenue" type="N"></field>
<field name="closedate" type="D"></field>
<field name="lastmodified" type="T">
@@ -947,15 +945,15 @@
</field>
<opt>Type=InnoDB</opt>
- <index name="PotStageHistory_IDX1">
- <col>potentialid</col>
- </index>
- <data>
- </data>
- </table>
-
-
- <table name="potstagehistory" alter="true">
+ <index name="potstagehistory_IDX1">
+ <col>historyid</col>
+ </index>
+ <data>
+ </data>
+ </table>
+
+
+ <table name="potstagehistory" alter="true">
<constraint>ADD CONSTRAINT fk_PotStageHistory FOREIGN KEY (potentialid) REFERENCES potential(potentialid) ON DELETE CASCADE </constraint>
@@ -1245,6 +1243,53 @@
<data>
</data>
</table>
+
+
+
+
+ <table name="vendor">
+ <field name="vendorid" type="I" size="19">
+ <KEY/>
+ <NOTNULL/>
+ <DEFAULT value="0"/>
+ </field>
+ <field name="vendorname" type="C" size="100"></field>
+ <field name="phone" type="C" size="100"></field>
+ <field name="email" type="C" size="100"></field>
+ <field name="website" type="C" size="100"></field>
+ <field name="glacct" type="C" size="50"></field>
+ <field name="category" type="C" size="50"></field>
+ <field name="street" type="X"></field>
+ <field name="city" type="C" size="30"></field>
+ <field name="state" type="C" size="30"></field>
+ <field name="pobox" type="C" size="30"></field>
+ <field name="postalcode" type="C" size="100"></field>
+ <field name="country" type="C" size="100"></field>
+ <field name="description" type="X"></field>
+
+<opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+
+
+ <table name="vendor" alter="true">
+ <constraint>ADD CONSTRAINT fk_Vendor FOREIGN KEY (vendorid) REFERENCES crmentity(crmid) ON DELETE CASCADE</constraint>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+
+
+
+
+
+
+
+
+
<table name="products">
@@ -1484,7 +1529,11 @@
</field>
<field name="description" type="X"></field>
- <opt>Type=InnoDB</opt>
+ <opt>Type=InnoDB</opt>
+
+ <index name="idx_groups_123group">
+ <col>groupname</col>
+ </index>
<data>
</data>
</table>
@@ -1499,7 +1548,7 @@
<KEY/>
</field>
<index name="idx_users2group">
- <col>groupname</col>
+ <col>groupid</col>
<col>userid</col>
</index>
<data>
@@ -1660,6 +1709,59 @@
<data>
</data>
</table>
+
+
+
+
+
+ <table name="campaign">
+ <field name="campaignname" type="C" size="255">
+ <KEY/>
+ </field>
+ <field name="campaigntype" type="C" size="255">
+ </field>
+ <field name="campaignstatus" type="C" size="255">
+ </field>
+ <field name="expectedrevenue" type="N" size="11.3">
+ </field>
+ <field name="budgetcost" type="N" size="11.3">
+ </field>
+ <field name="actualcost" type="N" size="11.3">
+ </field>
+ <field name="expectedresponse" type="N" size="10.0">
+ </field>
+ <field name="numsent" type="N" size="11.0">
+ </field>
+ <field name="campaignid" type="I" size="7">
+ </field>
+ <field name="closingdate" type="D"></field>
+
+
+ <opt>Type=InnoDB</opt>
+ <index name="idx_campaignid">
+ <col>campaignstatus</col>
+ </index>
+ <index name="idx_campaignname">
+ <col>campaignname</col>
+ </index>
+ <index name="idx_campaignid">
+ <col>campaignid</col>
+ </index>
+ </table>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<table name="campaigncontrel">
<field name="campaignid" type="I" size="19">
@@ -1679,6 +1781,16 @@
</data>
</table>
+ <table name="campaigncontrel" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_CampaignContRel2 FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE</constraint>
+
+ <opt>Type=InnoDB</opt>
+
+ <data>
+ </data>
+ </table>
+
<table name="campaigncontrel" alter="true">
<constraint>ADD CONSTRAINT fk_CampaignContRel1 FOREIGN KEY (campaignid) REFERENCES campaign(contactid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -1687,15 +1799,7 @@
</data>
</table>
- <table name="campaigncontrel" alter="true">
-
- <constraint>ADD CONSTRAINT fk_CampaignContRel2 FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE</constraint>
-
- <opt>Type=InnoDB</opt>
-
- <data>
- </data>
- </table>
+
<table name="campaignleadrel">
<field name="campaignid" type="I" size="19">
@@ -1715,18 +1819,20 @@
</data>
</table>
- <table name="campaignleadrel" alter="true">
-
- <constraint>ADD CONSTRAINT fk_CampaignLeadRel1 FOREIGN KEY (campaignid) REFERENCES campaign(campaignid) ON DELETE CASCADE</constraint>
+ <table name="campaignleadrel" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_CampaignLeadRel2423 FOREIGN KEY (leadid) REFERENCES leaddetails(leadid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
<data>
</data>
</table>
- <table name="campaignleadrel" alter="true">
-
- <constraint>ADD CONSTRAINT fk_CampaignLeadRel2 FOREIGN KEY (leadid) REFERENCES leaddetails(leadid) ON DELETE CASCADE</constraint>
+
+
+ <table name="campaignleadrel" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_CampaignLeadRel1234 FOREIGN KEY (campaignid) REFERENCES campaign(campaignid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -1853,7 +1959,7 @@
<table name="contpotentialrel" alter="true">
- <constraint>ADD CONSTRAINT fk_ContPotentialRel FOREIGN KEY (potentialid) REFERENCES potential(potentialid) ON DELETE CASCADE </constraint>
+ <constraint>ADD CONSTRAINT fk_ContPotentialRel123 FOREIGN KEY (potentialid) REFERENCES potential(potentialid) ON DELETE CASCADE </constraint>
<opt>Type=InnoDB</opt>
@@ -1875,7 +1981,7 @@
<DEFAULT value="0"/>
</field>
- <field name="dealprobability" type="N" size="2.3">
+ <field name="dealprobability" type="N" size="3.2">
<NOTNULL/>
<DEFAULT value="0"/>
</field>
@@ -1927,7 +2033,7 @@
<table name="cntactivityrel" alter="true">
- <constraint>ADD CONSTRAINT fk_CntActivityRel FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE </constraint>
+ <constraint>ADD CONSTRAINT fk_CntActivityRelQ23 FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE </constraint>
<opt>Type=InnoDB</opt>
@@ -1975,7 +2081,7 @@
<table name="lar" alter="true">
- <constraint>ADD CONSTRAINT fk_LAR FOREIGN KEY (createdby) REFERENCES users(id) ON DELETE CASCADE </constraint>
+ <constraint>ADD CONSTRAINT fk_LAR23 FOREIGN KEY (createdby) REFERENCES users(id) ON DELETE CASCADE </constraint>
<opt>Type=InnoDB</opt>
@@ -2007,7 +2113,7 @@
<table name="crmentitynotesrel" alter="true">
- <constraint>ADD CONSTRAINT fk_crmentityNotes FOREIGN KEY (crmid) REFERENCES crmentity(crmid) ON DELETE CASCADE </constraint>
+ <constraint>ADD CONSTRAINT fk_crmentityNotes23 FOREIGN KEY (crmid) REFERENCES crmentity(crmid) ON DELETE CASCADE </constraint>
<opt>Type=InnoDB</opt>
@@ -2060,7 +2166,7 @@
</table>
<table name="troubletickets" alter="true">
- <constraint>ADD CONSTRAINT fk_troubleticketsCF FOREIGN KEY (ticketid) REFERENCES crmentity(crmid) ON DELETE CASCADE </constraint>
+ <constraint>ADD CONSTRAINT fk_troubleticketsCF12 FOREIGN KEY (ticketid) REFERENCES crmentity(crmid) ON DELETE CASCADE </constraint>
<opt>Type=InnoDB</opt>
@@ -2095,7 +2201,7 @@
</table>
<table name="ticketcomments" alter="true">
- <constraint>ADD CONSTRAINT fk_ticketcommentsCF FOREIGN KEY (ticketid) REFERENCES troubletickets(ticketid) ON DELETE CASCADE </constraint>
+ <constraint>ADD CONSTRAINT fk_ticketcommentsCF23 FOREIGN KEY (ticketid) REFERENCES troubletickets(ticketid) ON DELETE CASCADE </constraint>
<opt>Type=InnoDB</opt>
@@ -2125,7 +2231,7 @@
<table name="salesmanactivityrel" alter="true">
- <constraint>ADD CONSTRAINT fk_SalesmanActivityRel FOREIGN KEY (smid) REFERENCES users(id) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_SalesmanActivityRel23 FOREIGN KEY (smid) REFERENCES users(id) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2167,7 +2273,7 @@
<table name="vendorcontactrel" alter="true">
- <constraint>ADD CONSTRAINT fk_VendorContactRel FOREIGN KEY (vendorid) REFERENCES vendor(vendorid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_VendorContactRel45 FOREIGN KEY (vendorid) REFERENCES vendor(vendorid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2210,7 +2316,7 @@
<table name="salesmanticketrel" alter="true">
- <constraint>ADD CONSTRAINT fk_SalesmanTicketRel FOREIGN KEY (smid) REFERENCES users(id) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_SalesmanTicketRel344 FOREIGN KEY (smid) REFERENCES users(id) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2443,7 +2549,7 @@
<table name="leadgrouprelation" alter="true">
- <constraint>ADD CONSTRAINT fk_leadgrouprelation FOREIGN KEY (leadid) REFERENCES leaddetails(leadid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_leadgrouprelation567 FOREIGN KEY (leadid) REFERENCES leaddetails(leadid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2481,7 +2587,7 @@
<table name="accountgrouprelation" alter="true">
- <constraint>ADD CONSTRAINT fk_accountgrouprelation FOREIGN KEY (accountid) REFERENCES account(accountid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_accountgrouprelation123 FOREIGN KEY (accountid) REFERENCES account(accountid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2493,7 +2599,7 @@
<table name="accountgrouprelation" alter="true">
- <constraint>ADD CONSTRAINT fk_accountgrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(name) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_accountgrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(groupname) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2518,7 +2624,7 @@
<table name="contactgrouprelation" alter="true">
- <constraint>ADD CONSTRAINT fk_contactgrouprelation FOREIGN KEY (accountid) REFERENCES contactdetails(contactid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_contactgrouprelation123 FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2528,7 +2634,7 @@
<table name="contactgrouprelation" alter="true">
- <constraint>ADD CONSTRAINT fk_contactgrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(name) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_contactgrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(groupname) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2553,7 +2659,7 @@
<table name="potentialgrouprelation" alter="true">
- <constraint>ADD CONSTRAINT fk_potentialgrouprelation FOREIGN KEY (potentialid) REFERENCES potential(potentialid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_potentialgrouprelation67 FOREIGN KEY (potentialid) REFERENCES potential(potentialid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2563,7 +2669,7 @@
<table name="potentialgrouprelation" alter="true">
- <constraint>ADD CONSTRAINT fk_potentialgrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(name) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_potentialgrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(groupname) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2588,7 +2694,7 @@
<table name="quotegrouprelation" alter="true">
- <constraint>ADD CONSTRAINT fk_quotegrouprelation FOREIGN KEY (quoteid) REFERENCES quotes(quoteid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_quotegrouprelation132 FOREIGN KEY (quoteid) REFERENCES quotes(quoteid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2598,7 +2704,7 @@
<table name="quotegrouprelation" alter="true">
- <constraint>ADD CONSTRAINT fk_quotegrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(name) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_quotegrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(groupname) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2623,7 +2729,7 @@
<table name="sogrouprelation" alter="true">
- <constraint>ADD CONSTRAINT fk_sogrouprelation FOREIGN KEY (salesorderid) REFERENCES salesorder(salesorderid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_sogrouprelation78 FOREIGN KEY (salesorderid) REFERENCES salesorder(salesorderid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2633,7 +2739,7 @@
<table name="sogrouprelation" alter="true">
- <constraint>ADD CONSTRAINT fk_sogrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(name) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_sogrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(groupname) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2658,7 +2764,7 @@
<table name="invoicegrouprelation" alter="true">
- <constraint>ADD CONSTRAINT fk_invoicegrouprelation FOREIGN KEY (invoiceid) REFERENCES invoices(invoiceid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_invoicegrouprelation234 FOREIGN KEY (invoiceid) REFERENCES invoices(invoiceid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2668,7 +2774,7 @@
<table name="invoicegrouprelation" alter="true">
- <constraint>ADD CONSTRAINT fk_invoicegrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(name) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_invoicegrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(groupname) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2693,7 +2799,7 @@
<table name="pogrouprelation" alter="true">
- <constraint>ADD CONSTRAINT fk_pogrouprelation FOREIGN KEY (purchaseorderid) REFERENCES purchaseorder(purchaseorderid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_pogrouprelation123 FOREIGN KEY (purchaseorderid) REFERENCES purchaseorder(purchaseorderid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2703,7 +2809,7 @@
<table name="pogrouprelation" alter="true">
- <constraint>ADD CONSTRAINT fk_pogrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(name) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_pogrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(groupname) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2746,7 +2852,7 @@
<table name="activitygrouprelation" alter="true">
- <constraint>ADD CONSTRAINT fk_activitygrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(name) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_activitygrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(groupname) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2788,7 +2894,7 @@
<table name="ticketgrouprelation" alter="true">
- <constraint>ADD CONSTRAINT fk_ticketgrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(name) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_ticketgrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(groupname) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -2847,7 +2953,7 @@
<table name="defaultcv" alter="true">
- <constraint>ADD CONSTRAINT fk_defaultcv FOREIGN KEY (tabid) REFERENCES tab(tabid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_defaultcv12 FOREIGN KEY (tabid) REFERENCES tab(tabid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
<data>
@@ -2907,7 +3013,7 @@
</table>
<table name="faq" alter="true">
- <constraint>ADD CONSTRAINT fk_faqCF FOREIGN KEY (id) REFERENCES crmentity(crmid) ON DELETE CASCADE </constraint>
+ <constraint>ADD CONSTRAINT fk_faqCF34 FOREIGN KEY (id) REFERENCES crmentity(crmid) ON DELETE CASCADE </constraint>
<opt>Type=InnoDB</opt>
@@ -2937,7 +3043,7 @@
</table>
<table name="faqcomments" alter="true">
- <constraint>ADD CONSTRAINT fk_faqcommentsCF FOREIGN KEY (faqid) REFERENCES faq(id) ON DELETE CASCADE </constraint>
+ <constraint>ADD CONSTRAINT fk_faqcommentsCF123 FOREIGN KEY (faqid) REFERENCES faq(id) ON DELETE CASCADE </constraint>
<opt>Type=InnoDB</opt>
@@ -3019,7 +3125,7 @@
<table name="senotesrel" alter="true">
- <constraint>ADD CONSTRAINT fk_SeNotesRel FOREIGN KEY (notesid) REFERENCES notes(notesid) ON DELETE CASCADE </constraint>
+ <constraint>ADD CONSTRAINT fk_SeNotesRel23 FOREIGN KEY (notesid) REFERENCES notes(notesid) ON DELETE CASCADE </constraint>
<opt>Type=InnoDB</opt>
@@ -3082,7 +3188,7 @@
<table name="ticketcf" alter="true">
- <constraint>ADD CONSTRAINT fk_HelpDeskCF FOREIGN KEY (ticketid) REFERENCES troubletickets(ticketid) ON DELETE CASCADE </constraint>
+ <constraint>ADD CONSTRAINT fk_HelpDeskCF23 FOREIGN KEY (ticketid) REFERENCES troubletickets(ticketid) ON DELETE CASCADE </constraint>
<opt>Type=InnoDB</opt>
@@ -3103,7 +3209,7 @@
<table name="productcf" alter="true">
- <constraint>ADD CONSTRAINT fk_ProductCF FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE </constraint>
+ <constraint>ADD CONSTRAINT fk_ProductCF34 FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE </constraint>
<opt>Type=InnoDB</opt>
@@ -3534,7 +3640,7 @@
<DEFAULT value="1"/>
</field>
- <field name="probability" type="N" size="2.3">
+ <field name="probability" type="N" size="3.2">
<DEFAULT value="0"/>
</field>
<opt>Type=InnoDB</opt> <index name="OpportunityStage_UK0">
@@ -4166,7 +4272,7 @@
</data>
</table>
<table name="def_org_share" alter="true">
- <constraint>ADD CONSTRAINT fk_def_org_share FOREIGN KEY (permission) REFERENCES org_share_action_mapping(share_action_id) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_def_org_share23 FOREIGN KEY (permission) REFERENCES org_share_action_mapping(share_action_id) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
<data>
</data>
@@ -4245,682 +4351,7 @@
- <table name="notificationscheduler">
- <field name="schedulednotificationid" type="I" size="19">
- <KEY/>
- <AUTOINCREMENT/>
- </field>
- <field name="schedulednotificationname" type="C" size="200">
- </field>
- <field name="active" type="I" size="1">
- </field>
- <field name="notificationsubject" type="C" size="200">
- </field>
- <field name="notificationbody" type="X" >
- </field>
- <field name="label" type="C" size="50">
- </field>
- <opt>Type=InnoDB</opt>
- <index name="notificationscheduler_UK0">
- <UNIQUE/>
- <col>schedulednotificationname</col>
- </index>
- <data>
- </data>
- </table>
-
-
- <table name="activityproductrel">
- <field name="activityid" type="I" size="19">
- <KEY/>
- <DEFAULT value="0"/>
- </field>
- <field name="productid" type="I" size="19">
- <KEY/>
- <DEFAULT value="0"/>
- </field>
- <opt>Type=InnoDB</opt> <index name="activityproductrel_IDX0">
- <col>activityid</col>
- </index>
- <opt>Type=InnoDB</opt> <index name="activityproductRel_IDX1">
- <col>productid</col>
- </index>
- <data>
- </data>
- </table>
-
-
-
- <table name="activityproductrel" alter="true">
-
- <constraint>ADD CONSTRAINT fk_activityproductRel FOREIGN KEY (activityid) REFERENCES activity(activityid) ON DELETE CASCADE </constraint>
-
- <opt>Type=InnoDB</opt>
-
- <data>
- </data>
- </table>
-
-
- <table name="activityproductrel" alter="true">
-
- <constraint>ADD CONSTRAINT fk_activityproductrel1 FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE </constraint>
-
- <opt>Type=InnoDB</opt>
-
- <data>
- </data>
- </table>
-
- <table name="relatedlists">
- <field name="relation_id" type="I" size="19">
- <KEY/>
- </field>
- <field name="tabid" type="I" size="10"></field>
- <field name="related_tabid" type="I" size="10"></field>
- <field name="name" type="C" size="100"></field>
- <field name="sequence" type="I" size="10"></field>
- <field name="label" type="C" size="100"></field>
- <field name="presence" type="I" size="10">
- <NOTNULL/>
- <DEFAULT value="0"/>
- </field>
- <index name="idx_profile2tab">
- <col>relation_id</col>
- </index>
-
- <data>
- </data>
- </table>
-
- <table name="rss">
- <field name="rssid" type="I" size="19">
- <KEY/>
- </field>
- <field name="rssurl" type="C" size="200">
- <NOTNULL/>
- <DEFAULT value=""/>
- </field>
- <field name="rsstitle" type="C" size="200"></field>
- <field name="rsstype" type="I" size="10">
- <DEFAULT value="0"/>
- </field>
- <field name="starred" type="I" size="1">
- <DEFAULT value="0"/>
- </field>
- <field name="rsscategory" type="C" size="100">
- <DEFAULT value=""/>
- </field>
- <data>
- </data>
- </table>
-
- <table name="rsscategory">
- <field name="rsscategoryid" type="I" size="19">
- <KEY/>
- <AUTOINCREMENT/>
- </field>
- <field name="rsscategory" type="C" size="200">
- <NOTNULL/>
- </field>
- <field name="sortorderid" type="I" size="19">
- <NOTNULL/>
- <DEFAULT value="0"/>
- </field>
- <field name="presence" type="I" size="1">
- <NOTNULL/>
- <DEFAULT value="1"/>
- </field>
- <opt>Type=InnoDB</opt> <index name="RssCategory_UK0">
- <UNIQUE/>
- <col>rsscategory</col>
- </index>
- <data>
- </data>
- </table>
-
- <table name="vendor">
- <field name="vendorid" type="I" size="19">
- <KEY/>
- <NOTNULL/>
- <DEFAULT value="0"/>
- </field>
- <field name="vendorname" type="C" size="100"></field>
- <field name="phone" type="C" size="100"></field>
- <field name="email" type="C" size="100"></field>
- <field name="website" type="C" size="100"></field>
- <field name="glacct" type="C" size="50"></field>
- <field name="category" type="C" size="50"></field>
- <field name="street" type="X"></field>
- <field name="city" type="C" size="30"></field>
- <field name="state" type="C" size="30"></field>
- <field name="pobox" type="C" size="30"></field>
- <field name="postalcode" type="C" size="100"></field>
- <field name="country" type="C" size="100"></field>
- <field name="description" type="X"></field>
-
-<opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
-
-
- <table name="vendor" alter="true">
- <constraint>ADD CONSTRAINT fk_Vendor FOREIGN KEY (vendorid) REFERENCES crmentity(crmid) ON DELETE CASCADE</constraint>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
- <table name="vendorcf">
- <field name="vendorid" type="I" size="19">
- <KEY/>
- <DEFAULT value="0"/>
- </field>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
-
- <table name="vendorcf" alter="true">
-
- <constraint>ADD CONSTRAINT fk_VendorCF FOREIGN KEY (vendorid) REFERENCES vendor(vendorid) ON DELETE CASCADE </constraint>
-
- <opt>Type=InnoDB</opt>
-
- <data>
- </data>
- </table>
-
- <table name="pricebook">
- <field name="pricebookid" type="I" size="19">
- <KEY/>
- <NOTNULL/>
- <DEFAULT value="0"/>
- </field>
- <field name="bookname" type="C" size="100"></field>
- <field name="active" type="I" size="1"></field>
- <field name="description" type="X"></field>
-
-
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
- <table name="pricebook" alter="true">
- <constraint>ADD CONSTRAINT fk_PriceBook FOREIGN KEY (pricebookid) REFERENCES crmentity(crmid) ON DELETE CASCADE</constraint>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
- <table name="pricebookcf">
- <field name="pricebookid" type="I" size="19">
- <KEY/>
- <DEFAULT value="0"/>
- </field>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
-
- <table name="pricebookcf" alter="true">
-
- <constraint>ADD CONSTRAINT fk_PriceBookCF FOREIGN KEY (pricebookid) REFERENCES pricebook(pricebookid) ON DELETE CASCADE </constraint>
-
- <opt>Type=InnoDB</opt>
-
- <data>
- </data>
- </table>
-
- <table name="pricebookproductrel">
- <field name="pricebookid" type="I" size="19">
- <KEY/>
- </field>
- <field name="productid" type="I" size="19">
- <KEY/>
- </field>
- <field name="listprice" type="N" size="11.3"></field>
- <opt>Type=InnoDB</opt> <index name="PriceBookProductRel_IDX0">
- <col>pricebookid</col>
- </index>
- <opt>Type=InnoDB</opt> <index name="PriceBookProductRel_IDX1">
- <col>productid</col>
- </index>
- <data>
- </data>
- </table>
-
-
- <table name="pricebookproductrel" alter="true">
-
- <constraint>ADD CONSTRAINT fk_PriceBookProductRel FOREIGN KEY (pricebookid) REFERENCES pricebook(pricebookid) ON DELETE CASCADE </constraint>
-
- <opt>Type=InnoDB</opt>
-
- <data>
- </data>
- </table>
-
-
- <table name="pricebookproductrel" alter="true">
-
- <constraint>ADD CONSTRAINT fk_PriceBookProductRel2 FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE </constraint>
-
- <opt>Type=InnoDB</opt>
-
- <data>
- </data>
- </table>
-
- <table name="mail_accounts">
- <field name="account_id" type="I" size="11">
- <KEY/>
- </field>
- <field name="user_id" type="I" size="11">
- <NOTNULL/>
- </field>
- <field name="display_name" type="C" size="50">
- </field>
- <field name="mail_id" type="C" size="50">
- </field>
- <field name="account_name" type="C" size="50">
- </field>
- <field name="mail_protocol" type="C" size="20">
- </field>
- <field name="mail_username" type="C" size="50">
- <NOTNULL/>
- </field>
- <field name="mail_password" type="C" size="20">
- <NOTNULL/>
- </field>
- <field name="mail_servername" type="C" size="50">
- </field>
- <field name="box_refresh" type="I" size="10">
- </field>
- <field name="mails_per_page" type="I" size="10">
- </field>
- <field name="ssltype" type="C" size="50">
- </field>
- <field name="sslmeth" type="C" size="50">
- </field>
- <field name="showbody" type="C" size="10">
- </field>
- <field name="status" type="C" size="10">
- </field>
- <field name="set_default" type="I" size="2">
- </field>
- <data>
- </data>
- </table>
-
- <table name="quotes">
- <field name="quoteid" type="I" size="19">
- <KEY/>
- <NOTNULL/>
- <DEFAULT value="0"/>
- </field>
- <field name="subject" type="C" size="100"></field>
- <field name="potentialid" type="I" size="19"></field>
- <field name="quotestage" type="C" size="200"></field>
- <field name="validtill" type="D"></field>
- <field name="team" type="C" size="200"></field>
- <field name="contactid" type="I" size="19"></field>
- <field name="currency" type="C" size="100"></field>
- <field name="subtotal" type="N" size="11.3"></field>
- <field name="carrier" type="C" size='100'></field>
- <field name="shipping" type="C" size="100"></field>
- <field name="inventorymanager" type="I" size="19"></field>
- <field name="type" type="C" size="100"></field>
- <field name="tax" type="N" size="11.3"></field>
- <field name="adjustment" type="N" size="11.3"></field>
- <field name="total" type="N" size="11.3"></field>
- <field name="accountid" type="I" size="19"></field>
- <field name="terms_conditions" type="X"></field>
- <index name="quotestage">
- <col>quoteid</col>
- </index>
- <index name="potentialid2">
- <col>potentialid</col>
- </index>
- <index name="contactid">
- <col>contactid</col>
- </index>
-
-<opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
-
-
- <table name="quotes" alter="true">
- <constraint>ADD CONSTRAINT fk_Quotes1 FOREIGN KEY (quoteid) REFERENCES crmentity(crmid) ON DELETE CASCADE</constraint>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
- <table name="quotes" alter="true">
- <constraint>ADD CONSTRAINT fk_Quotes2 FOREIGN KEY (potentialid) REFERENCES potential(potentialid) ON DELETE CASCADE</constraint>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
- <table name="quotes" alter="true">
- <constraint>ADD CONSTRAINT fk_Quotes3 FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE</constraint>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
- <table name="quotesbillads">
- <field name="quotebilladdressid" type="I" size="19">
- <KEY/>
- <DEFAULT value="0"/>
- </field>
- <field name="bill_city" type="C" size="30"></field>
- <field name="bill_code" type="C" size="30"></field>
- <field name="bill_country" type="C" size="30"></field>
- <field name="bill_state" type="C" size="30"></field>
- <field name="bill_street" type="C" size="250"></field>
- <field name="bill_pobox" type="C" size="30"></field>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
-
- <table name="quotesbillads" alter="true">
-
- <constraint>ADD CONSTRAINT fk_QuotesBillAds FOREIGN KEY (quotebilladdressid) REFERENCES quotes(quoteid) ON DELETE CASCADE</constraint>
-
- <opt>Type=InnoDB</opt>
-
- <data>
- </data>
- </table>
-
-
- <table name="quotesshipads">
- <field name="quoteshipaddressid" type="I" size="19">
- <KEY/>
- <DEFAULT value="0"/>
- </field>
- <field name="ship_city" type="C" size="30"></field>
- <field name="ship_code" type="C" size="30"></field>
- <field name="ship_country" type="C" size="30"></field>
- <field name="ship_state" type="C" size="30"></field>
- <field name="ship_street" type="C" size="250"></field>
- <field name="ship_pobox" type="C" size="30"></field>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
- <table name="quotesshipads" alter="true">
-
- <constraint>ADD CONSTRAINT fk_QuotesShipAds FOREIGN KEY (quoteshipaddressid) REFERENCES quotes(quoteid) ON DELETE CASCADE </constraint>
-
- <opt>Type=InnoDB</opt>
-
- <data>
- </data>
- </table>
-
- <table name="quotescf">
- <field name="quoteid" type="I" size="19">
- <KEY/>
- <DEFAULT value="0"/>
- </field>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
-
- <table name="quotescf" alter="true">
-
- <constraint>ADD CONSTRAINT fk_QuotesCF FOREIGN KEY (quoteid) REFERENCES quotes(quoteid) ON DELETE CASCADE </constraint>
-
- <opt>Type=InnoDB</opt>
-
- <data>
- </data>
- </table>
-
-
- <table name="quotesproductrel">
- <field name="quoteid" type="I" size="19">
- <KEY/>
- </field>
- <field name="productid" type="I" size="19">
- <KEY/>
- </field>
- <field name="quantity" type="I" size="19"></field>
- <field name="listprice" type="N" size="11.3"></field>
- <opt>Type=InnoDB</opt> <index name="QuotesProductRel_IDX0">
- <col>quoteid</col>
- </index>
- <opt>Type=InnoDB</opt> <index name="QuotesProductRel_IDX1">
- <col>productid</col>
- </index>
- <data>
- </data>
- </table>
-
-
- <table name="quotesproductrel" alter="true">
-
- <constraint>ADD CONSTRAINT fk_QuotesProductRel FOREIGN KEY (quoteid) REFERENCES quotes(quoteid) ON DELETE CASCADE </constraint>
-
- <opt>Type=InnoDB</opt>
-
- <data>
- </data>
- </table>
-
-
- <table name="quotesproductrel" alter="true">
-
- <constraint>ADD CONSTRAINT fk_QuotesProductRel2 FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE </constraint>
-
- <opt>Type=InnoDB</opt>
-
- <data>
- </data>
- </table>
-
-
- <table name="purchaseorder">
- <field name="purchaseorderid" type="I" size="19">
- <KEY/>
- <NOTNULL/>
- <DEFAULT value="0"/>
- </field>
- <field name="subject" type="C" size="100"></field>
- <field name="quoteid" type="I" size="19"></field>
- <field name="vendorid" type="I" size="19"></field>
- <field name="requisition_no" type="C" size="100"></field>
- <field name="tracking_no" type="C" size="100"></field>
- <field name="contactid" type="I" size="19"></field>
- <field name="duedate" type="D"></field>
- <field name="carrier" type="C" size='100'></field>
- <field name="type" type="C" size="100"></field>
- <field name="salestax" type="N" size="11.3"></field>
- <field name="adjustment" type="N" size="11.3"></field>
- <field name="salescommission" type="N" size="11.3"></field>
- <field name="exciseduty" type="N" size="11.3"></field>
- <field name="total" type="N" size="11.3"></field>
- <field name="subtotal" type="N" size="11.3"></field>
- <field name="terms_conditions" type="X"></field>
- <field name="postatus" type="C" size="200"></field>
- <index name="PO_Vend_IDX">
- <col>vendorid</col>
- </index>
- <index name="PO_Quote_IDX">
- <col>quoteid</col>
- </index>
- <index name="PO_Contact_IDX">
- <col>contactid</col>
- </index>
-
-<opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
-
-
- <table name="purchaseorder" alter="true">
- <constraint>ADD CONSTRAINT fk_PO1 FOREIGN KEY (purchaseorderid) REFERENCES crmentity(crmid) ON DELETE CASCADE</constraint>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
- <table name="purchaseorder" alter="true">
- <constraint>ADD CONSTRAINT fk_PO2 FOREIGN KEY (vendorid) REFERENCES vendor(vendorid) ON DELETE CASCADE</constraint>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
- <table name="purchaseorder" alter="true">
- <constraint>ADD CONSTRAINT fk_PO2 FOREIGN KEY (quoteid) REFERENCES quotes(quoteid) ON DELETE CASCADE</constraint>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
- <table name="purchaseorder" alter="true">
- <constraint>ADD CONSTRAINT fk_PO3 FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE</constraint>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
- <table name="pobillads">
- <field name="pobilladdressid" type="I" size="19">
- <KEY/>
- <DEFAULT value="0"/>
- </field>
- <field name="bill_city" type="C" size="30"></field>
- <field name="bill_code" type="C" size="30"></field>
- <field name="bill_country" type="C" size="30"></field>
- <field name="bill_state" type="C" size="30"></field>
- <field name="bill_street" type="C" size="250"></field>
- <field name="bill_pobox" type="C" size="30"></field>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
-
- <table name="pobillads" alter="true">
-
- <constraint>ADD CONSTRAINT fk_PoBillAds FOREIGN KEY (pobilladdressid) REFERENCES purchaseorder(purchaseorderid) ON DELETE CASCADE</constraint>
-
- <opt>Type=InnoDB</opt>
-
- <data>
- </data>
- </table>
-
-
- <table name="poshipads">
- <field name="poshipaddressid" type="I" size="19">
- <KEY/>
- <DEFAULT value="0"/>
- </field>
- <field name="ship_city" type="C" size="30"></field>
- <field name="ship_code" type="C" size="30"></field>
- <field name="ship_country" type="C" size="30"></field>
- <field name="ship_state" type="C" size="30"></field>
- <field name="ship_street" type="C" size="250"></field>
- <field name="ship_pobox" type="C" size="30"></field>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
- <table name="poshipads" alter="true">
-
- <constraint>ADD CONSTRAINT fk_PoShipAds FOREIGN KEY (poshipaddressid) REFERENCES purchaseorder(purchaseorderid) ON DELETE CASCADE </constraint>
-
- <opt>Type=InnoDB</opt>
-
- <data>
- </data>
- </table>
-
- <table name="purchaseordercf">
- <field name="purchaseorderid" type="I" size="19">
- <KEY/>
- <DEFAULT value="0"/>
- </field>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
-
- <table name="purchaseordercf" alter="true">
-
- <constraint>ADD CONSTRAINT fk_PoCF FOREIGN KEY (purchaseorderid) REFERENCES purchaseorder(purchaseorderid) ON DELETE CASCADE </constraint>
-
- <opt>Type=InnoDB</opt>
-
- <data>
- </data>
- </table>
-
-
- <table name="poproductrel">
- <field name="purchaseorderid" type="I" size="19">
- <KEY/>
- </field>
- <field name="productid" type="I" size="19">
- <KEY/>
- </field>
- <field name="quantity" type="I" size="19"></field>
- <field name="listprice" type="N" size="11.3"></field>
- <opt>Type=InnoDB</opt> <index name="PoProductRel_IDX0">
- <col>quoteid</col>
- </index>
- <opt>Type=InnoDB</opt> <index name="PoProductRel_IDX1">
- <col>productid</col>
- </index>
- <data>
- </data>
- </table>
-
-
- <table name="poproductrel" alter="true">
-
- <constraint>ADD CONSTRAINT fk_PoProductRel FOREIGN KEY (purchaseorderid) REFERENCES purchaseorder(purchaseorderid) ON DELETE CASCADE </constraint>
-
- <opt>Type=InnoDB</opt>
-
- <data>
- </data>
- </table>
-
-
- <table name="poproductrel" alter="true">
-
- <constraint>ADD CONSTRAINT fk_PoProductRel2 FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE </constraint>
-
- <opt>Type=InnoDB</opt>
-
- <data>
- </data>
- </table>
+
<table name="salesorder">
<field name="salesorderid" type="I" size="19">
@@ -4978,19 +4409,12 @@
</table>
<table name="salesorder" alter="true">
- <constraint>ADD CONSTRAINT fk_SO4 FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE</constraint>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
- <table name="salesorder" alter="true">
- <constraint>ADD CONSTRAINT fk_SO3 FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE</constraint>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
-
+ <constraint>ADD CONSTRAINT fk_SO4 FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE</constraint>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
<table name="sobillads">
<field name="sobilladdressid" type="I" size="19">
<KEY/>
@@ -5010,7 +4434,7 @@
<table name="sobillads" alter="true">
- <constraint>ADD CONSTRAINT fk_SoBillAds FOREIGN KEY (sobilladdressid) REFERENCES salesorder(salesorderid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_SoBillAds12 FOREIGN KEY (sobilladdressid) REFERENCES salesorder(salesorderid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -5037,7 +4461,7 @@
<table name="soshipads" alter="true">
- <constraint>ADD CONSTRAINT fk_SoShipAds FOREIGN KEY (soshipaddressid) REFERENCES salesorder(salesorderid) ON DELETE CASCADE </constraint>
+ <constraint>ADD CONSTRAINT fk_SoShipAds3 FOREIGN KEY (soshipaddressid) REFERENCES salesorder(salesorderid) ON DELETE CASCADE </constraint>
<opt>Type=InnoDB</opt>
@@ -5058,7 +4482,7 @@
<table name="salesordercf" alter="true">
- <constraint>ADD CONSTRAINT fk_SoCF FOREIGN KEY (salesorderid) REFERENCES salesorder(salesorderid) ON DELETE CASCADE </constraint>
+ <constraint>ADD CONSTRAINT fk_SoCF234 FOREIGN KEY (salesorderid) REFERENCES salesorder(salesorderid) ON DELETE CASCADE </constraint>
<opt>Type=InnoDB</opt>
@@ -5089,7 +4513,7 @@
<table name="soproductrel" alter="true">
- <constraint>ADD CONSTRAINT fk_SoProductRel FOREIGN KEY (salesorderid) REFERENCES salesorder(salesorderid) ON DELETE CASCADE </constraint>
+ <constraint>ADD CONSTRAINT fk_SoProductRel123 FOREIGN KEY (salesorderid) REFERENCES salesorder(salesorderid) ON DELETE CASCADE </constraint>
<opt>Type=InnoDB</opt>
@@ -5107,6 +4531,659 @@
<data>
</data>
</table>
+
+
+
+
+
+
+
+
+
+
+ <table name="notificationscheduler">
+ <field name="schedulednotificationid" type="I" size="19">
+ <KEY/>
+ <AUTOINCREMENT/>
+ </field>
+ <field name="schedulednotificationname" type="C" size="200">
+ </field>
+ <field name="active" type="I" size="1">
+ </field>
+ <field name="notificationsubject" type="C" size="200">
+ </field>
+ <field name="notificationbody" type="X" >
+ </field>
+ <field name="label" type="C" size="50">
+ </field>
+ <opt>Type=InnoDB</opt>
+ <index name="notificationscheduler_UK0">
+ <UNIQUE/>
+ <col>schedulednotificationname</col>
+ </index>
+ <data>
+ </data>
+ </table>
+
+
+ <table name="activityproductrel">
+ <field name="activityid" type="I" size="19">
+ <KEY/>
+ <DEFAULT value="0"/>
+ </field>
+ <field name="productid" type="I" size="19">
+ <KEY/>
+ <DEFAULT value="0"/>
+ </field>
+ <opt>Type=InnoDB</opt> <index name="activityproductrel_IDX0">
+ <col>activityid</col>
+ </index>
+ <opt>Type=InnoDB</opt> <index name="activityproductRel_IDX1">
+ <col>productid</col>
+ </index>
+ <data>
+ </data>
+ </table>
+
+
+
+ <table name="activityproductrel" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_activityproductRel34 FOREIGN KEY (activityid) REFERENCES activity(activityid) ON DELETE CASCADE </constraint>
+
+ <opt>Type=InnoDB</opt>
+
+ <data>
+ </data>
+ </table>
+
+
+ <table name="activityproductrel" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_activityproductrel1 FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE </constraint>
+
+ <opt>Type=InnoDB</opt>
+
+ <data>
+ </data>
+ </table>
+
+ <table name="relatedlists">
+ <field name="relation_id" type="I" size="19">
+ <KEY/>
+ </field>
+ <field name="tabid" type="I" size="10"></field>
+ <field name="related_tabid" type="I" size="10"></field>
+ <field name="name" type="C" size="100"></field>
+ <field name="sequence" type="I" size="10"></field>
+ <field name="label" type="C" size="100"></field>
+ <field name="presence" type="I" size="10">
+ <NOTNULL/>
+ <DEFAULT value="0"/>
+ </field>
+ <index name="idx_profile2tab">
+ <col>relation_id</col>
+ </index>
+
+ <data>
+ </data>
+ </table>
+
+ <table name="rss">
+ <field name="rssid" type="I" size="19">
+ <KEY/>
+ </field>
+ <field name="rssurl" type="C" size="200">
+ <NOTNULL/>
+ <DEFAULT value=""/>
+ </field>
+ <field name="rsstitle" type="C" size="200"></field>
+ <field name="rsstype" type="I" size="10">
+ <DEFAULT value="0"/>
+ </field>
+ <field name="starred" type="I" size="1">
+ <DEFAULT value="0"/>
+ </field>
+ <field name="rsscategory" type="C" size="100">
+ <DEFAULT value=""/>
+ </field>
+ <data>
+ </data>
+ </table>
+
+ <table name="rsscategory">
+ <field name="rsscategoryid" type="I" size="19">
+ <KEY/>
+ <AUTOINCREMENT/>
+ </field>
+ <field name="rsscategory" type="C" size="200">
+ <NOTNULL/>
+ </field>
+ <field name="sortorderid" type="I" size="19">
+ <NOTNULL/>
+ <DEFAULT value="0"/>
+ </field>
+ <field name="presence" type="I" size="1">
+ <NOTNULL/>
+ <DEFAULT value="1"/>
+ </field>
+ <opt>Type=InnoDB</opt> <index name="RssCategory_UK0">
+ <UNIQUE/>
+ <col>rsscategory</col>
+ </index>
+ <data>
+ </data>
+ </table>
+
+ <table name="vendorcf">
+ <field name="vendorid" type="I" size="19">
+ <KEY/>
+ <DEFAULT value="0"/>
+ </field>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+
+ <table name="vendorcf" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_VendorCF234 FOREIGN KEY (vendorid) REFERENCES vendor(vendorid) ON DELETE CASCADE </constraint>
+
+ <opt>Type=InnoDB</opt>
+
+ <data>
+ </data>
+ </table>
+
+ <table name="pricebook">
+ <field name="pricebookid" type="I" size="19">
+ <KEY/>
+ <NOTNULL/>
+ <DEFAULT value="0"/>
+ </field>
+ <field name="bookname" type="C" size="100"></field>
+ <field name="active" type="I" size="1"></field>
+ <field name="description" type="X"></field>
+
+
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+ <table name="pricebook" alter="true">
+ <constraint>ADD CONSTRAINT fk_PriceBook234 FOREIGN KEY (pricebookid) REFERENCES crmentity(crmid) ON DELETE CASCADE</constraint>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+ <table name="pricebookcf">
+ <field name="pricebookid" type="I" size="19">
+ <KEY/>
+ <DEFAULT value="0"/>
+ </field>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+
+ <table name="pricebookcf" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_PriceBookCF12 FOREIGN KEY (pricebookid) REFERENCES pricebook(pricebookid) ON DELETE CASCADE </constraint>
+
+ <opt>Type=InnoDB</opt>
+
+ <data>
+ </data>
+ </table>
+
+ <table name="pricebookproductrel">
+ <field name="pricebookid" type="I" size="19">
+ <KEY/>
+ </field>
+ <field name="productid" type="I" size="19">
+ <KEY/>
+ </field>
+ <field name="listprice" type="N" size="11.3"></field>
+ <opt>Type=InnoDB</opt> <index name="PriceBookProductRel_IDX0">
+ <col>pricebookid</col>
+ </index>
+ <opt>Type=InnoDB</opt> <index name="PriceBookProductRel_IDX1">
+ <col>productid</col>
+ </index>
+ <data>
+ </data>
+ </table>
+
+
+ <table name="pricebookproductrel" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_PriceBookProductRel5 FOREIGN KEY (pricebookid) REFERENCES pricebook(pricebookid) ON DELETE CASCADE </constraint>
+
+ <opt>Type=InnoDB</opt>
+
+ <data>
+ </data>
+ </table>
+
+
+ <table name="pricebookproductrel" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_PriceBookProductRel2 FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE </constraint>
+
+ <opt>Type=InnoDB</opt>
+
+ <data>
+ </data>
+ </table>
+
+ <table name="mail_accounts">
+ <field name="account_id" type="I" size="11">
+ <KEY/>
+ </field>
+ <field name="user_id" type="I" size="11">
+ <NOTNULL/>
+ </field>
+ <field name="display_name" type="C" size="50">
+ </field>
+ <field name="mail_id" type="C" size="50">
+ </field>
+ <field name="account_name" type="C" size="50">
+ </field>
+ <field name="mail_protocol" type="C" size="20">
+ </field>
+ <field name="mail_username" type="C" size="50">
+ <NOTNULL/>
+ </field>
+ <field name="mail_password" type="C" size="20">
+ <NOTNULL/>
+ </field>
+ <field name="mail_servername" type="C" size="50">
+ </field>
+ <field name="box_refresh" type="I" size="10">
+ </field>
+ <field name="mails_per_page" type="I" size="10">
+ </field>
+ <field name="ssltype" type="C" size="50">
+ </field>
+ <field name="sslmeth" type="C" size="50">
+ </field>
+ <field name="showbody" type="C" size="10">
+ </field>
+ <field name="status" type="C" size="10">
+ </field>
+ <field name="set_default" type="I" size="2">
+ </field>
+ <data>
+ </data>
+ </table>
+
+ <table name="quotes">
+ <field name="quoteid" type="I" size="19">
+ <KEY/>
+ <NOTNULL/>
+ <DEFAULT value="0"/>
+ </field>
+ <field name="subject" type="C" size="100"></field>
+ <field name="potentialid" type="I" size="19"></field>
+ <field name="quotestage" type="C" size="200"></field>
+ <field name="validtill" type="D"></field>
+ <field name="team" type="C" size="200"></field>
+ <field name="contactid" type="I" size="19"></field>
+ <field name="currency" type="C" size="100"></field>
+ <field name="subtotal" type="N" size="11.3"></field>
+ <field name="carrier" type="C" size='100'></field>
+ <field name="shipping" type="C" size="100"></field>
+ <field name="inventorymanager" type="I" size="19"></field>
+ <field name="type" type="C" size="100"></field>
+ <field name="tax" type="N" size="11.3"></field>
+ <field name="adjustment" type="N" size="11.3"></field>
+ <field name="total" type="N" size="11.3"></field>
+ <field name="accountid" type="I" size="19"></field>
+ <field name="terms_conditions" type="X"></field>
+ <index name="quotestage">
+ <col>quoteid</col>
+ </index>
+ <index name="potentialid2">
+ <col>potentialid</col>
+ </index>
+ <index name="contactid">
+ <col>contactid</col>
+ </index>
+
+<opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+
+
+ <table name="quotes" alter="true">
+ <constraint>ADD CONSTRAINT fk_Quotes1 FOREIGN KEY (quoteid) REFERENCES crmentity(crmid) ON DELETE CASCADE</constraint>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+ <table name="quotes" alter="true">
+ <constraint>ADD CONSTRAINT fk_Quotes2 FOREIGN KEY (potentialid) REFERENCES potential(potentialid) ON DELETE CASCADE</constraint>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+ <table name="quotes" alter="true">
+ <constraint>ADD CONSTRAINT fk_Quotes3 FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE</constraint>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+ <table name="quotesbillads">
+ <field name="quotebilladdressid" type="I" size="19">
+ <KEY/>
+ <DEFAULT value="0"/>
+ </field>
+ <field name="bill_city" type="C" size="30"></field>
+ <field name="bill_code" type="C" size="30"></field>
+ <field name="bill_country" type="C" size="30"></field>
+ <field name="bill_state" type="C" size="30"></field>
+ <field name="bill_street" type="C" size="250"></field>
+ <field name="bill_pobox" type="C" size="30"></field>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+
+ <table name="quotesbillads" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_QuotesBillAds3 FOREIGN KEY (quotebilladdressid) REFERENCES quotes(quoteid) ON DELETE CASCADE</constraint>
+
+ <opt>Type=InnoDB</opt>
+
+ <data>
+ </data>
+ </table>
+
+
+ <table name="quotesshipads">
+ <field name="quoteshipaddressid" type="I" size="19">
+ <KEY/>
+ <DEFAULT value="0"/>
+ </field>
+ <field name="ship_city" type="C" size="30"></field>
+ <field name="ship_code" type="C" size="30"></field>
+ <field name="ship_country" type="C" size="30"></field>
+ <field name="ship_state" type="C" size="30"></field>
+ <field name="ship_street" type="C" size="250"></field>
+ <field name="ship_pobox" type="C" size="30"></field>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+ <table name="quotesshipads" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_QuotesShipAds35 FOREIGN KEY (quoteshipaddressid) REFERENCES quotes(quoteid) ON DELETE CASCADE </constraint>
+
+ <opt>Type=InnoDB</opt>
+
+ <data>
+ </data>
+ </table>
+
+ <table name="quotescf">
+ <field name="quoteid" type="I" size="19">
+ <KEY/>
+ <DEFAULT value="0"/>
+ </field>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+
+ <table name="quotescf" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_QuotesCF135 FOREIGN KEY (quoteid) REFERENCES quotes(quoteid) ON DELETE CASCADE </constraint>
+
+ <opt>Type=InnoDB</opt>
+
+ <data>
+ </data>
+ </table>
+
+
+ <table name="quotesproductrel">
+ <field name="quoteid" type="I" size="19">
+ <KEY/>
+ </field>
+ <field name="productid" type="I" size="19">
+ <KEY/>
+ </field>
+ <field name="quantity" type="I" size="19"></field>
+ <field name="listprice" type="N" size="11.3"></field>
+ <opt>Type=InnoDB</opt> <index name="QuotesProductRel_IDX0">
+ <col>quoteid</col>
+ </index>
+ <opt>Type=InnoDB</opt> <index name="QuotesProductRel_IDX1">
+ <col>productid</col>
+ </index>
+ <data>
+ </data>
+ </table>
+
+
+ <table name="quotesproductrel" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_QuotesProductRel674 FOREIGN KEY (quoteid) REFERENCES quotes(quoteid) ON DELETE CASCADE </constraint>
+
+ <opt>Type=InnoDB</opt>
+
+ <data>
+ </data>
+ </table>
+
+
+ <table name="quotesproductrel" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_QuotesProductRel2 FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE </constraint>
+
+ <opt>Type=InnoDB</opt>
+
+ <data>
+ </data>
+ </table>
+
+
+ <table name="purchaseorder">
+ <field name="purchaseorderid" type="I" size="19">
+ <KEY/>
+ <NOTNULL/>
+ <DEFAULT value="0"/>
+ </field>
+ <field name="subject" type="C" size="100"></field>
+ <field name="quoteid" type="I" size="19"></field>
+ <field name="vendorid" type="I" size="19"></field>
+ <field name="requisition_no" type="C" size="100"></field>
+ <field name="tracking_no" type="C" size="100"></field>
+ <field name="contactid" type="I" size="19"></field>
+ <field name="duedate" type="D"></field>
+ <field name="carrier" type="C" size='100'></field>
+ <field name="type" type="C" size="100"></field>
+ <field name="salestax" type="N" size="11.3"></field>
+ <field name="adjustment" type="N" size="11.3"></field>
+ <field name="salescommission" type="N" size="11.3"></field>
+ <field name="exciseduty" type="N" size="11.3"></field>
+ <field name="total" type="N" size="11.3"></field>
+ <field name="subtotal" type="N" size="11.3"></field>
+ <field name="terms_conditions" type="X"></field>
+ <field name="postatus" type="C" size="200"></field>
+ <index name="PO_Vend_IDX">
+ <col>vendorid</col>
+ </index>
+ <index name="PO_Quote_IDX">
+ <col>quoteid</col>
+ </index>
+ <index name="PO_Contact_IDX">
+ <col>contactid</col>
+ </index>
+
+<opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+
+
+ <table name="purchaseorder" alter="true">
+ <constraint>ADD CONSTRAINT fk_PO1 FOREIGN KEY (purchaseorderid) REFERENCES crmentity(crmid) ON DELETE CASCADE</constraint>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+ <table name="purchaseorder" alter="true">
+ <constraint>ADD CONSTRAINT fk_PO2 FOREIGN KEY (vendorid) REFERENCES vendor(vendorid) ON DELETE CASCADE</constraint>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+ <table name="purchaseorder" alter="true">
+ <constraint>ADD CONSTRAINT fk_PO2345 FOREIGN KEY (quoteid) REFERENCES quotes(quoteid) ON DELETE CASCADE</constraint>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+ <table name="purchaseorder" alter="true">
+ <constraint>ADD CONSTRAINT fk_PO3 FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE</constraint>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+ <table name="pobillads">
+ <field name="pobilladdressid" type="I" size="19">
+ <KEY/>
+ <DEFAULT value="0"/>
+ </field>
+ <field name="bill_city" type="C" size="30"></field>
+ <field name="bill_code" type="C" size="30"></field>
+ <field name="bill_country" type="C" size="30"></field>
+ <field name="bill_state" type="C" size="30"></field>
+ <field name="bill_street" type="C" size="250"></field>
+ <field name="bill_pobox" type="C" size="30"></field>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+
+ <table name="pobillads" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_PoBillAds57 FOREIGN KEY (pobilladdressid) REFERENCES purchaseorder(purchaseorderid) ON DELETE CASCADE</constraint>
+
+ <opt>Type=InnoDB</opt>
+
+ <data>
+ </data>
+ </table>
+
+
+ <table name="poshipads">
+ <field name="poshipaddressid" type="I" size="19">
+ <KEY/>
+ <DEFAULT value="0"/>
+ </field>
+ <field name="ship_city" type="C" size="30"></field>
+ <field name="ship_code" type="C" size="30"></field>
+ <field name="ship_country" type="C" size="30"></field>
+ <field name="ship_state" type="C" size="30"></field>
+ <field name="ship_street" type="C" size="250"></field>
+ <field name="ship_pobox" type="C" size="30"></field>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+ <table name="poshipads" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_PoShipAds34 FOREIGN KEY (poshipaddressid) REFERENCES purchaseorder(purchaseorderid) ON DELETE CASCADE </constraint>
+
+ <opt>Type=InnoDB</opt>
+
+ <data>
+ </data>
+ </table>
+
+ <table name="purchaseordercf">
+ <field name="purchaseorderid" type="I" size="19">
+ <KEY/>
+ <DEFAULT value="0"/>
+ </field>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+
+ <table name="purchaseordercf" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_PoCF78 FOREIGN KEY (purchaseorderid) REFERENCES purchaseorder(purchaseorderid) ON DELETE CASCADE </constraint>
+
+ <opt>Type=InnoDB</opt>
+
+ <data>
+ </data>
+ </table>
+
+
+ <table name="poproductrel">
+ <field name="purchaseorderid" type="I" size="19">
+ <KEY/>
+ </field>
+ <field name="productid" type="I" size="19">
+ <KEY/>
+ </field>
+ <field name="quantity" type="I" size="19"></field>
+ <field name="listprice" type="N" size="11.3"></field>
+ <opt>Type=InnoDB</opt> <index name="PoProductRel_IDX0">
+ <col>quoteid</col>
+ </index>
+ <opt>Type=InnoDB</opt> <index name="PoProductRel_IDX1">
+ <col>productid</col>
+ </index>
+ <data>
+ </data>
+ </table>
+
+
+ <table name="poproductrel" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_PoProductRel67 FOREIGN KEY (purchaseorderid) REFERENCES purchaseorder(purchaseorderid) ON DELETE CASCADE </constraint>
+
+ <opt>Type=InnoDB</opt>
+
+ <data>
+ </data>
+ </table>
+
+
+ <table name="poproductrel" alter="true">
+
+ <constraint>ADD CONSTRAINT fk_PoProductRel2 FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE </constraint>
+
+ <opt>Type=InnoDB</opt>
+
+ <data>
+ </data>
+ </table>
+
<table name="invoice">
<field name="invoiceid" type="I" size="19">
@@ -5179,7 +5256,7 @@
<table name="invoicebillads" alter="true">
- <constraint>ADD CONSTRAINT fk_InvoiceBillAds FOREIGN KEY (invoicebilladdressid) REFERENCES invoice(invoiceid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_InvoiceBillAds47923 FOREIGN KEY (invoicebilladdressid) REFERENCES invoice(invoiceid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
@@ -5206,7 +5283,7 @@
<table name="invoiceshipads" alter="true">
- <constraint>ADD CONSTRAINT fk_InvoiceShipAds FOREIGN KEY (invoiceshipaddressid) REFERENCES invoice(invoiceid) ON DELETE CASCADE </constraint>
+ <constraint>ADD CONSTRAINT fk_InvoiceShipAds8 FOREIGN KEY (invoiceshipaddressid) REFERENCES invoice(invoiceid) ON DELETE CASCADE </constraint>
<opt>Type=InnoDB</opt>
@@ -5227,7 +5304,7 @@
<table name="invoicecf" alter="true">
- <constraint>ADD CONSTRAINT fk_InvoiceCF FOREIGN KEY (invoiceid) REFERENCES invoice(invoiceid) ON DELETE CASCADE </constraint>
+ <constraint>ADD CONSTRAINT fk_InvoiceCF687 FOREIGN KEY (invoiceid) REFERENCES invoice(invoiceid) ON DELETE CASCADE </constraint>
<opt>Type=InnoDB</opt>
@@ -5259,7 +5336,7 @@
<table name="invoiceproductrel" alter="true">
- <constraint>ADD CONSTRAINT fk_InvoiceProductRel FOREIGN KEY (invoiceid) REFERENCES invoice(invoiceid) ON DELETE CASCADE </constraint>
+ <constraint>ADD CONSTRAINT fk_InvoiceProductRel5 FOREIGN KEY (invoiceid) REFERENCES invoice(invoiceid) ON DELETE CASCADE </constraint>
<opt>Type=InnoDB</opt>
@@ -5277,6 +5354,16 @@
<data>
</data>
</table>
+
+
+
+
+
+
+
+
+
+
<table name="activity_reminder">
<field name="activity_id" type="I" size="11">
@@ -5314,9 +5401,6 @@
<NOTNULL/>
</field>
<opt>Type=InnoDB</opt>
- <index name="customview">
- <col>cvid</col>
- </index>
<data>
</data>
</table>
@@ -5737,6 +5821,12 @@
</data>
</table>
+
+
+
+
+
+
<table name="quotestage">
<field name="quotestageid" type="I" size="19">
<KEY/>
@@ -5762,6 +5852,8 @@
</data>
</table>
+
+
<table name="invoicestatus">
<field name="inovicestatusid" type="I" size="19">
<KEY/>
@@ -5835,7 +5927,16 @@
</index>
<data>
</data>
- </table>
+
+ </table>
+
+
+
+
+
+
+
+
<table name="carrier">
<field name="carrierid" type="I" size="19">
@@ -5881,7 +5982,7 @@
</field>
<opt>Type=InnoDB</opt> <index name="carrier_UK02">
<UNIQUE/>
- <col>carrier</col>
+ <col>taxclass</col>
</index>
<data>
</data>
@@ -5925,12 +6026,20 @@
</field>
<opt>Type=InnoDB</opt> <index name="RecurringEvent_UK0">
<UNIQUE/>
- <col>status</col>
- </index>
- <data>
-
- </data>
- </table>
+ <col>recurringtype</col>
+ </index>
+ <data>
+
+ </data>
+ </table>
+
+
+
+
+
+
+
+
<table name="recurringevents">
<field name="recurringid" type="I" size="19">
@@ -6010,11 +6119,19 @@
</table>
<table name="profile2globalpermissions" alter="true">
- <constraint>ADD CONSTRAINT fk_profile2globalpermissions FOREIGN KEY (profileid) REFERENCES profile(profileid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_profile2globalpermissions57 FOREIGN KEY (profileid) REFERENCES profile(profileid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
<data>
</data>
</table>
+
+
+
+
+
+
+
+
<table name="actionmapping">
<field name="actionid" type="I" size="19">
@@ -6030,6 +6147,16 @@
</data>
</table>
+
+
+
+
+
+
+
+
+
+
<table name="org_share_action_mapping">
<field name="share_action_id" type="I" size="19">
<KEY/>
@@ -6042,6 +6169,15 @@
</data>
</table>
+
+
+
+
+
+
+
+
+
<table name="org_share_action2tab">
<field name="share_action_id" type="I" size="19">
<KEY/>
@@ -6054,18 +6190,50 @@
</data>
</table>
<table name="org_share_action2tab" alter="true">
- <constraint>ADD CONSTRAINT fk_org_share_action2tab FOREIGN KEY (share_action_id) REFERENCES org_share_action_mapping(share_action_id) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_org_share_action2tab123 FOREIGN KEY (share_action_id) REFERENCES org_share_action_mapping(share_action_id) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
<data>
</data>
</table>
<table name="org_share_action2tab" alter="true">
- <constraint>ADD CONSTRAINT fk_org_share_action2tab1 FOREIGN KEY (tab) REFERENCES tab(tabid) ON DELETE CASCADE</constraint>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
+ <constraint>ADD CONSTRAINT fk_org_share_action2tab12345 FOREIGN KEY (tab) REFERENCES tab(tabid) ON DELETE CASCADE</constraint>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<table name="moduleowners">
@@ -6077,13 +6245,34 @@
<field name="user_id" type="C" size="11">
<NOTNULL/>
</field>
- </table>
+ <opt>Type=InnoDB</opt>
+ <index name="moduleowners_UK11">
+
+ <col>tabid</col>
+ <col>user_id</col>
+ </index>
+ </table>
+
+
+
<table name="moduleowners" alter="true">
- <constraint>ADD CONSTRAINT fk_ModuleOwners FOREIGN KEY (tabid) REFERENCES tab(tabid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_ModuleOwners123 FOREIGN KEY (tabid) REFERENCES tab(tabid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
<data>
</data>
</table>
+
+
+
+
+
+
+
+
+
+
+
+
<table name="ownernotify">
<field name="crmid" type="I" size="19">
</field>
@@ -6092,10 +6281,29 @@
<field name="flag" type="I" size="3">
</field>
<opt>Type=InnoDB</opt>
+ <index name="ownernotify_UK1">
+
+ <col>crmid</col>
+ <col>flag</col>
+
+ </index>
<data>
</data>
</table>
+
+
+
+
+
+
+
+
+
+
+
+
+
<table name="datashare_module_rel">
<field name="shareid" type="I" size="19">
<KEY/>
@@ -6112,7 +6320,7 @@
</table>
<table name="datashare_module_rel" alter="true">
- <constraint>ADD CONSTRAINT fk_datashare_module_rel FOREIGN KEY (tabid) REFERENCES tab(tabid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_datashare_module_rel456 FOREIGN KEY (tabid) REFERENCES tab(tabid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
<data>
</data>
@@ -6137,7 +6345,7 @@
</index>
</table>
<table name="datashare_grp2grp" alter="true">
- <constraint>ADD CONSTRAINT fk_datashare_grp2grp FOREIGN KEY (shareid) REFERENCES datashare_module_rel(shareid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_datashare_grp2grp789 FOREIGN KEY (shareid) REFERENCES datashare_module_rel(shareid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
<data>
</data>
@@ -6175,7 +6383,7 @@
</index>
</table>
<table name="datashare_grp2role" alter="true">
- <constraint>ADD CONSTRAINT fk_datashare_grp2role FOREIGN KEY (shareid) REFERENCES datashare_module_rel(shareid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_datashare_grp2role345 FOREIGN KEY (shareid) REFERENCES datashare_module_rel(shareid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
<data>
</data>
@@ -6212,7 +6420,7 @@
</index>
</table>
<table name="datashare_grp2rs" alter="true">
- <constraint>ADD CONSTRAINT fk_datashare_grp2rs FOREIGN KEY (shareid) REFERENCES datashare_module_rel(shareid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_datashare_grp2rs36 FOREIGN KEY (shareid) REFERENCES datashare_module_rel(shareid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
<data>
</data>
@@ -6229,6 +6437,13 @@
<data>
</data>
</table>
+
+
+
+
+
+
+
<table name="datashare_role2group">
<field name="shareid" type="I" size="19">
@@ -6249,7 +6464,7 @@
</index>
</table>
<table name="datashare_role2group" alter="true">
- <constraint>ADD CONSTRAINT fk_datashare_role2group FOREIGN KEY (shareid) REFERENCES datashare_module_rel(shareid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_datashare_role2group568 FOREIGN KEY (shareid) REFERENCES datashare_module_rel(shareid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
<data>
</data>
@@ -6287,7 +6502,7 @@
</index>
</table>
<table name="datashare_role2role" alter="true">
- <constraint>ADD CONSTRAINT fk_datashare_role2role FOREIGN KEY (shareid) REFERENCES datashare_module_rel(shareid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_datashare_role2role345 FOREIGN KEY (shareid) REFERENCES datashare_module_rel(shareid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
<data>
</data>
@@ -6325,7 +6540,7 @@
</index>
</table>
<table name="datashare_role2rs" alter="true">
- <constraint>ADD CONSTRAINT fk_datashare_role2rs FOREIGN KEY (shareid) REFERENCES datashare_module_rel(shareid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_datashare_role2rs987 FOREIGN KEY (shareid) REFERENCES datashare_module_rel(shareid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
<data>
</data>
@@ -6342,6 +6557,17 @@
<data>
</data>
</table>
+
+
+
+
+
+
+
+
+
+
+
<table name="datashare_rs2grp">
<field name="shareid" type="I" size="19">
@@ -6362,7 +6588,7 @@
</index>
</table>
<table name="datashare_rs2grp" alter="true">
- <constraint>ADD CONSTRAINT fk_datashare_rs2grp FOREIGN KEY (shareid) REFERENCES datashare_module_rel(shareid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_datashare_rs2grpQ2 FOREIGN KEY (shareid) REFERENCES datashare_module_rel(shareid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
<data>
</data>
@@ -6379,6 +6605,19 @@
<data>
</data>
</table>
+
+
+
+
+
+
+
+
+
+
+
+
+
<table name="datashare_rs2role">
<field name="shareid" type="I" size="19">
@@ -6399,7 +6638,7 @@
</index>
</table>
<table name="datashare_rs2role" alter="true">
- <constraint>ADD CONSTRAINT fk_datashare_rs2role FOREIGN KEY (shareid) REFERENCES datashare_module_rel(shareid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_datashare_rs2role122 FOREIGN KEY (shareid) REFERENCES datashare_module_rel(shareid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
<data>
</data>
@@ -6416,6 +6655,16 @@
<data>
</data>
</table>
+
+
+
+
+
+
+
+
+
+
<table name="datashare_rs2rs">
<field name="shareid" type="I" size="19">
@@ -6436,7 +6685,7 @@
</index>
</table>
<table name="datashare_rs2rs" alter="true">
- <constraint>ADD CONSTRAINT fk_datashare_rs2rs FOREIGN KEY (shareid) REFERENCES datashare_module_rel(shareid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_datashare_rs2rs353 FOREIGN KEY (shareid) REFERENCES datashare_module_rel(shareid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
<data>
</data>
@@ -6453,6 +6702,27 @@
<data>
</data>
</table>
+
+
+
+ <table name="datashare_rs2rs" alter="true">
+ <constraint>ADD CONSTRAINT fk_campaign8567 FOREIGN KEY (crmid) REFERENCES crmentity(crmid) ON DELETE CASCADE</constraint>
+ <opt>Type=InnoDB</opt>
+ <data>
+ </data>
+ </table>
+
+
+
+
+
+
+
+
+
+
+
+
<table name="datashare_relatedmodules">
<field name="datashare_relatedmodule_id" type="I" size="19">
@@ -6471,7 +6741,7 @@
</index>
</table>
<table name="datashare_relatedmodules" alter="true">
- <constraint>ADD CONSTRAINT fk_datashare_relatedmodules FOREIGN KEY (tabid) REFERENCES tab(tabid) ON DELETE CASCADE</constraint>
+ <constraint>ADD CONSTRAINT fk_datashare_relatedmodules123 FOREIGN KEY (tabid) REFERENCES tab(tabid) ON DELETE CASCADE</constraint>
<opt>Type=InnoDB</opt>
<data>
</data>
@@ -6492,7 +6762,22 @@
</field>
<field name="permission" type="I" size="19">
</field>
- </table>
+<opt>Type=InnoDB</opt>
+ <index name="datashare_relatedmodule_permission_UK1">
+
+ <col>shareid</col>
+ <col>permission</col>
+ </index>
+ </table>
+
+
+
+
+
+
+
+
+
<table name="parenttab">
<field name="parenttabid" type="I" size="19"><NOTNULL/>
@@ -6504,10 +6789,75 @@
</field>
<field name="visible" type="I" size="2"><NOTNULL/><DEFAULT value="0"/>
</field>
+ <index name="parenttab_UK1">
+
+ <col>parenttabid</col>
+ <col>parenttab_label</col>
+ <col>visible</col>
+ </index>
</table>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<table name="tmp_read_user_sharing_per">
<field name="userid" type="I" size="11">
<KEY/>
@@ -6518,12 +6868,16 @@
<field name="shareduserid" type="I" size="11">
<KEY/>
</field>
- <opt>Type=InnoDB</opt>
- <data>
-
- </data>
- </table>
-
+ <opt>Type=InnoDB</opt>
+ <index name="tmp_read_user_sharing_per_UK1">
+
+ <col>userid</col>
+ <col>shareduserid</col>
+ </index>
+ <data>
+
+ </data>
+ </table>
<table name="tmp_read_user_sharing_per" alter="true">
@@ -6555,6 +6909,14 @@
<data>
</data>
</table>
+
+
+
+
+
+
+
+
<table name="tmp_read_group_sharing_per">
@@ -6567,7 +6929,12 @@
<field name="sharedgroupid" type="I" size="11">
<KEY/>
</field>
- <opt>Type=InnoDB</opt>
+ <opt>Type=InnoDB</opt>
+ <index name="tmp_read_group_sharing_per_UK1">
+
+ <col>userid</col>
+ <col>sharedgroupid</col>
+ </index>
<data>
</data>
@@ -6616,7 +6983,12 @@
<field name="shareduserid" type="I" size="11">
<KEY/>
</field>
- <opt>Type=InnoDB</opt>
+ <opt>Type=InnoDB</opt>
+ <index name="tmp_write_user_sharing_per_UK1">
+
+ <col>userid</col>
+ <col>shareduserid</col>
+ </index>
<data>
</data>
@@ -6667,6 +7039,11 @@
<KEY/>
</field>
<opt>Type=InnoDB</opt>
+ <index name="tmp_write_group_sharing_per_UK1">
+
+ <col>userid</col>
+ <col>sharedgroupid</col>
+ </index>
<data>
</data>
@@ -6703,6 +7080,13 @@
<data>
</data>
</table>
+
+
+
+
+
+
+
@@ -6720,6 +7104,12 @@
<KEY/>
</field>
<opt>Type=InnoDB</opt>
+ <index name="tmp_read_user_rel_sharing_per_UK1">
+
+ <col>userid</col>
+ <col>shareduserid</col>
+ <col>relatedtabid</col>
+ </index>
<data>
</data>
@@ -6766,6 +7156,17 @@
<data>
</data>
</table>
+
+
+
+
+
+
+
+
+
+
+
<table name="tmp_read_group_rel_sharing_per">
@@ -6782,6 +7183,12 @@
<KEY/>
</field>
<opt>Type=InnoDB</opt>
+ <index name="tmp_read_group_rel_sharing_per_UK1">
+
+ <col>userid</col>
+ <col>sharedgroupid</col>
+ <col>tabid</col>
+ </index>
<data>
</data>
@@ -6844,7 +7251,13 @@
<field name="shareduserid" type="I" size="11">
<KEY/>
</field>
- <opt>Type=InnoDB</opt>
+ <opt>Type=InnoDB</opt>
+ <index name="tmp_write_user_rel_sharing_per_UK1">
+
+ <col>userid</col>
+ <col>shareduserid</col>
+ <col>tabid</col>
+ </index>
<data>
</data>
@@ -6891,6 +7304,13 @@
<data>
</data>
</table>
+
+
+
+
+
+
+
<table name="tmp_write_group_rel_sharing_per">
@@ -6907,6 +7327,12 @@
<KEY/>
</field>
<opt>Type=InnoDB</opt>
+ <index name="tmp_write_group_rel_sharing_per_UK1">
+
+ <col>userid</col>
+ <col>sharedgroupid</col>
+ <col>tabid</col>
+ </index>
<data>
</data>
@@ -6953,6 +7379,12 @@
<data>
</data>
</table>
+
+
+
+
+
+
<table name="parenttabrel">
@@ -6962,47 +7394,25 @@
</field>
<field name="sequence" type="I" size="3"><NOTNULL/>
</field>
+ <opt>Type=InnoDB</opt> <index name="parenttabrelUK01">
+ <col>tabid</col>
+ <col>parenttabid</col>
+ </index>
</table>
- <table name="campaign">
- <field name="campaignname" type="C" size="255">
- <KEY/>
- </field>
- <field name="campaigntype" type="C" size="255">
- </field>
- <field name="campaignstatus" type="C" size="255">
- </field>
- <field name="expectedrevenue" type="N" size="11.3">
- </field>
- <field name="budgetcost" type="N" size="11.3">
- </field>
- <field name="actualcost" type="N" size="11.3">
- </field>
- <field name="expectedresponse" type="N" size="10.0">
- </field>
- <field name="numsent" type="N" size="11.0">
- </field>
- <field name="campaignid" type="I" size="7">
- </field>
- <field name="closingdate" type="D"></field>
-
-
- <opt>Type=InnoDB</opt>
- <index name="idx_campaignid">
- <col>campaignid</col>
- </index>
- <index name="idx_campaignname">
- <col>campaignname</col>
- </index>
- </table>
- <table name="datashare_rs2rs" alter="true">
- <constraint>ADD CONSTRAINT fk_campaign FOREIGN KEY (crmid) REFERENCES crmentity(crmid) ON DELETE CASCADE</constraint>
- <opt>Type=InnoDB</opt>
- <data>
- </data>
- </table>
+
+
+
+
+
+
+
+
+
+
+
@@ -7055,13 +7465,22 @@
<NOTNULL/>
<DEFAULT value="1"/>
</field>
- <opt>Type=InnoDB</opt> <index name="Campaigntype_UK02">
- <UNIQUE/>
- <col>campaigntype</col>
- </index>
- <data>
- </data>
- </table>
+ <opt>Type=InnoDB</opt>
+ <index name="Campaignstatus_UK01">
+
+ <col>campaignstatus</col>
+ </index>
+ <data>
+ </data>
+ </table>
+
+
+
+
+
+
+
+
<table name="portal">
<field name="portalid" type="I" size="19">
@@ -7076,6 +7495,10 @@
<field name="sequence" type="I" size="3">
<NOTNULL/>
</field>
+ <opt>Type=InnoDB</opt>
+ <index name="portal_UK01">
+ <col>portalname</col>
+ </index>
</table>
@@ -7090,7 +7513,51 @@
<field name="time" type="T">
<DEFTIMESTAMP/>
</field>
- </table>
+ <opt>Type=InnoDB</opt>
+ <index name="announcement_UK01">
+ <col>creatorid</col>
+ </index>
+ </table>
+
+
+
+
+
+<table name="chat_users">
+ <field name="id" type="I" size="20">
+ <AUTOINCREMENT/>
+ <NOTNULL/>
+ <KEY/>
+ </field>
+ <field name="nick" type="C" size="50">
+ <NOTNULL/>
+ </field>
+ <field name="session" type="C" size="50">
+ <NOTNULL/>
+ </field>
+ <field name="ip" type="C" size="20">
+ <DEFAULT value="000.000.000.000"/>
+ <NOTNULL/>
+ </field>
+ <field name="ping" type="T">
+ <DEFAULT value="0000-00-00 00:00:00"/>
+ </field>
+
+ <opt>Type=InnoDB</opt>
+ <index name="chat_users_IDX0">
+ <col>nick</col>
+ </index>
+ <opt>Type=InnoDB</opt> <index name="chat_users_IDX1">
+ <col>session</col>
+ </index>
+ <index name="chat_users_IDX2">
+ <col>ping</col>
+ </index>
+ </table>
+
+
+
+
<table name="chat_msg">
<field name="id" type="I" size="20">
@@ -7136,6 +7603,10 @@
</data>
</table>
+
+
+
+
<table name="chat_pchat">
<field name="id" type="I" size="20">
<AUTOINCREMENT/>
@@ -7157,6 +7628,14 @@
<data>
</data>
</table>
+
+
+
+
+
+
+
+
<table name="chat_pvchat">
<field name="id" type="I" size="20">
@@ -7180,36 +7659,22 @@
</table>
-<table name="chat_users">
- <field name="id" type="I" size="20">
- <AUTOINCREMENT/>
- <NOTNULL/>
- <KEY/>
- </field>
- <field name="nick" type="C" size="50">
- <NOTNULL/>
- </field>
- <field name="session" type="C" size="50">
- <NOTNULL/>
- </field>
- <field name="ip" type="C" size="20">
- <DEFAULT value="000.000.000.000"/>
- <NOTNULL/>
- </field>
- <field name="ping" type="T">
- <DEFAULT value="0000-00-00 00:00:00"/>
- </field>
-
- <opt>Type=InnoDB</opt> <index name="chat_users_IDX0">
- <col>nick</col>
- </index>
- <opt>Type=InnoDB</opt> <index name="chat_users_IDX1">
- <col>session</col>
- </index>
- <index name="chat_users_IDX2">
- <col>ping</col>
- </index>
- </table>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
<table name="freetags">
<field name="id" type="I" size="19">
@@ -7256,8 +7721,6 @@
<col>tagger_id</col>
<col>object_id</col>
</index>
- <data>
- </data>
</table>
More information about the vtigercrm-commits
mailing list