From 6a1cec3fc420e61835605d93b1da36e514f74f08 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Sat, 12 Jun 2010 06:26:48 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=B0=20trunk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit +YUCHENG HU+ git-svn-id: https://svn.code.sf.net/p/hawebs/svn@134 a2543c7e-f6e9-4f8a-8bff-1ffc34733512 --- oss/vtiger/trunk/schema/DatabaseSchema.xml | 7184 ++++++++++++++++++++ 1 file changed, 7184 insertions(+) create mode 100644 oss/vtiger/trunk/schema/DatabaseSchema.xml diff --git a/oss/vtiger/trunk/schema/DatabaseSchema.xml b/oss/vtiger/trunk/schema/DatabaseSchema.xml new file mode 100644 index 00000000..cc2bce01 --- /dev/null +++ b/oss/vtiger/trunk/schema/DatabaseSchema.xml @@ -0,0 +1,7184 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + user_name + + + user_password + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + smcreatorid + + + smownerid + + + modifiedby + + + deleted + + + smownerid + deleted + + Type=InnoDB +
+ + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + name + + + + modifiedby + + + tabid + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + tabid + + Type=InnoDB +
+ + + ADD CONSTRAINT fk_1_vtiger_blocks FOREIGN KEY (tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + tabid + + + fieldname + + + block + + + displaytype + + Type=InnoDB +
+ + + ADD CONSTRAINT fk_1_vtiger_field FOREIGN KEY (tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + account_type + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_account FOREIGN KEY (accountid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_accountbillads FOREIGN KEY (accountaddressid) REFERENCES vtiger_account(accountid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_accountshipads FOREIGN KEY (accountaddressid) REFERENCES vtiger_account(accountid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_accountscf FOREIGN KEY (accountid) REFERENCES vtiger_account(accountid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + accountid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_contactdetails FOREIGN KEY (contactid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_contactsubdetails FOREIGN KEY (contactsubscriptionid) REFERENCES vtiger_contactdetails(contactid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_contactaddress FOREIGN KEY (contactaddressid) REFERENCES vtiger_contactdetails(contactid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_contactscf FOREIGN KEY (contactid) REFERENCES vtiger_contactdetails(contactid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_portalinfo FOREIGN KEY (id) REFERENCES vtiger_contactdetails(contactid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_customerdetails FOREIGN KEY (customerid) REFERENCES vtiger_contactdetails(contactid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + converted + leadstatus + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_leaddetails FOREIGN KEY (leadid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_leadsubdetails FOREIGN KEY (leadsubscriptionid) REFERENCES vtiger_leaddetails(leadid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_leadaddress FOREIGN KEY (leadaddressid) REFERENCES vtiger_leaddetails(leadid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_leadscf FOREIGN KEY (leadid) REFERENCES vtiger_leaddetails(leadid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + title + + + notesid + + + crmid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_notes FOREIGN KEY (notesid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + accountid + + + potentialid + + + sales_stage + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_potential FOREIGN KEY (potentialid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + potentialid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_potstagehistory FOREIGN KEY (potentialid) REFERENCES vtiger_potential(potentialid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_potentialscf FOREIGN KEY (potentialid) REFERENCES vtiger_potential(potentialid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + activityid + subject + + + activitytype + date_start + + + date_start + due_date + + + date_start + time_start + + + eventstatus + + + status + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_activity FOREIGN KEY (activityid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + attachmentsid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_attachments FOREIGN KEY (attachmentsid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + attachmentsid + + + crmid + + + attachmentsid + crmid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_seattachmentsrel FOREIGN KEY (attachmentsid) REFERENCES vtiger_attachments(attachmentsid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_seattachmentsrel FOREIGN KEY (crmid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + +
+ + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_competitor FOREIGN KEY (competitorid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + potentialid + + + competitorid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_potcompetitorrel FOREIGN KEY (competitorid) REFERENCES vtiger_competitor(competitorid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_potcompetitorrel FOREIGN KEY (potentialid) REFERENCES vtiger_potential(potentialid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_vendor FOREIGN KEY (vendorid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_products FOREIGN KEY (productid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + currency + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + visibility + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + manufacturer + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + productid + filename + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_productcollaterals FOREIGN KEY (productid) REFERENCES vtiger_products(productid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + roleid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_user2role FOREIGN KEY (roleid) REFERENCES vtiger_role(roleid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_user2role FOREIGN KEY (userid) REFERENCES vtiger_users(id) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + groupname + + + Type=InnoDB +
+ + + + + + + + + + + groupid + userid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_users2group FOREIGN KEY (groupid) REFERENCES vtiger_groups(groupid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_users2group FOREIGN KEY (userid) REFERENCES vtiger_users(id) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_group2grouprel FOREIGN KEY (containsgroupid) REFERENCES vtiger_groups(groupid) ON DELETE CASCADE ON UPDATE CASCADE +ADD CONSTRAINT fk_2_vtiger_group2grouprel FOREIGN KEY (groupid) REFERENCES vtiger_groups(groupid) ON DELETE CASCADE ON UPDATE CASCADE +Type=InnoDB + + +
+ + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_group2role FOREIGN KEY (groupid) REFERENCES vtiger_groups(groupid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_group2role FOREIGN KEY (roleid) REFERENCES vtiger_role(roleid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_group2rs FOREIGN KEY (groupid) REFERENCES vtiger_groups(groupid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_group2rs FOREIGN KEY (roleandsubid) REFERENCES vtiger_role(roleid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + leadid + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_leadpotrel FOREIGN KEY (leadid) REFERENCES vtiger_leaddetails(leadid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_leadpotrel FOREIGN KEY (potentialid) REFERENCES vtiger_potential(potentialid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + campaignstatus + + + campaignname + + + campaignid + + Type=InnoDB +
+ + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_campaignscf FOREIGN KEY (campaignid) REFERENCES vtiger_campaign(campaignid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + contactid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_campaigncontrel FOREIGN KEY (campaignid) REFERENCES vtiger_campaign(campaignid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_campaigncontrel FOREIGN KEY (contactid) REFERENCES vtiger_contactdetails(contactid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + leadid + campaignid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_campaignleadrel FOREIGN KEY (campaignid) REFERENCES vtiger_campaign(campaignid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_campaignleadrel FOREIGN KEY (leadid) REFERENCES vtiger_leaddetails(leadid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + contactid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_leadcontrel FOREIGN KEY (leadcontrel_contactid_idx) REFERENCES vtiger_contactdetails(contactid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_leadcontrel FOREIGN KEY (leadid) REFERENCES vtiger_leaddetails(leadid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + accountid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_leadacctrel FOREIGN KEY (accountid) REFERENCES vtiger_account(accountid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_leadacctrel FOREIGN KEY (leadid) REFERENCES vtiger_leaddetails(leadid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + potentialid + + + contactid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_contpotentialrel FOREIGN KEY (contactid) REFERENCES vtiger_contactdetails(contactid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_contpotentialrel FOREIGN KEY (potentialid) REFERENCES vtiger_potential(potentialid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dealname + + + Type=InnoDB +
+ + + + + + + + + + + + + + contactid + + + activityid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_cntactivityrel FOREIGN KEY (activityid) REFERENCES vtiger_activity(activityid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_cntactivityrel FOREIGN KEY (contactid) REFERENCES vtiger_contactdetails(contactid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + name + + + + createdby + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_lar FOREIGN KEY (createdby) REFERENCES vtiger_users(id) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + notesid + + + crmid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_crmentitynotesrel FOREIGN KEY (crmid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_crmentitynotesrel FOREIGN KEY (notesid) REFERENCES vtiger_notes(notesid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + ticketid + + + status + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_troubletickets FOREIGN KEY (ticketid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + ticketid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_ticketcomments FOREIGN KEY (ticketid) REFERENCES vtiger_troubletickets(ticketid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + activityid + + + smid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_salesmanactivityrel FOREIGN KEY (activityid) REFERENCES vtiger_activity(activityid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_salesmanactivityrel FOREIGN KEY (smid) REFERENCES vtiger_users(id) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + vendorid + + + contactid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_vendorcontactrel FOREIGN KEY (contactid) REFERENCES vtiger_contactdetails(contactid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_vendorcontactrel FOREIGN KEY (vendorid) REFERENCES vtiger_vendor(vendorid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + smid + + + id + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_salesmanticketrel FOREIGN KEY (id) REFERENCES vtiger_troubletickets(ticketid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_salesmanticketrel FOREIGN KEY (smid) REFERENCES vtiger_users(id) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + activityid + + + crmid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_seactivityrel FOREIGN KEY (activityid) REFERENCES vtiger_activity(activityid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_seactivityrel FOREIGN KEY (crmid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + productid + + + crmid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_seproductsrel FOREIGN KEY (crmid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_seproductsrel FOREIGN KEY (productid) REFERENCES vtiger_products(productid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + crmid + + + ticketid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_seticketsrel FOREIGN KEY (crmid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_seticketsrel FOREIGN KEY (ticketid) REFERENCES vtiger_troubletickets(ticketid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + assigned_user_id + module + name + deleted + + Type=InnoDB +
+ + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_defaultcv FOREIGN KEY (tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + foldername + templatename + subject + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + + id + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_faq FOREIGN KEY (id) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + faqid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_faqcomments FOREIGN KEY (faqid) REFERENCES vtiger_faq(id) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + assigned_user_id + name + deleted + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + notesid + + + crmid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_senotesrel FOREIGN KEY (crmid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_senotesrel FOREIGN KEY (notesid) REFERENCES vtiger_notes(notesid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + ticket_id + + Type=InnoDB +
+ + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_ticketcf FOREIGN KEY (ticketid) REFERENCES vtiger_troubletickets(ticketid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_productcf FOREIGN KEY (productid) REFERENCES vtiger_products(productid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + assigned_user_id + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + deploymentstatus + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + ownership + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + rating + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + region + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + accounttype + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + contacttype + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + source + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + opportunity_type + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + stage + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + status + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + status + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + status + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + status + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + stage + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + priority + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + businesstype + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + industry + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + revenuetype + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + activitytype + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + usertype + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + purpose + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + status + + + Type=InnoDB +
+ + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + profileid + globalactionid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_profile2globalpermissions FOREIGN KEY (profileid) REFERENCES vtiger_profile(profileid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + profileid + tabid + + Type=InnoDB +
+ + + + + + + + + + + + + + + profileid + tabid + operation + + Type=InnoDB +
+ + + + + + + + + + + + + + profileid + tabid + fieldname + + + tabid + profileid + + + visible + profileid + + Type=InnoDB +
+ + + + + + + + + + roleid + profileid + + Type=InnoDB +
+ + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_def_org_share FOREIGN KEY (permission) REFERENCES vtiger_org_share_action_mapping(share_action_id) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + tabid + fieldid + + + tabid + + + visible + fieldid + + Type=InnoDB +
+ + + + + + + + + + + + + + + profileid + tabid + activityid + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + productcategory + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + vendorid + + + contactid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_salesorder FOREIGN KEY (contactid) REFERENCES vtiger_contactdetails(contactid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_salesorder FOREIGN KEY (salesorderid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_salesorder FOREIGN KEY (vendorid) REFERENCES vtiger_vendor(vendorid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_sobillads FOREIGN KEY (sobilladdressid) REFERENCES vtiger_salesorder(salesorderid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_soshipads FOREIGN KEY (soshipaddressid) REFERENCES vtiger_salesorder(salesorderid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_salesordercf FOREIGN KEY (salesorderid) REFERENCES vtiger_salesorder(salesorderid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + schedulednotificationname + + + Type=InnoDB +
+ + + + + + + + + + + + + activityid + + + productid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_activityproductrel FOREIGN KEY (activityid) REFERENCES vtiger_activity(activityid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_activityproductrel FOREIGN KEY (productid) REFERENCES vtiger_products(productid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + relation_id + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_vendorcf FOREIGN KEY (vendorid) REFERENCES vtiger_vendor(vendorid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_pricebook FOREIGN KEY (pricebookid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_pricebookcf FOREIGN KEY (pricebookid) REFERENCES vtiger_pricebook(pricebookid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + pricebookid + + + productid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_pricebookproductrel FOREIGN KEY (pricebookid) REFERENCES vtiger_pricebook(pricebookid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + quotestage + + + potentialid + + + contactid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_quotes FOREIGN KEY (contactid) REFERENCES vtiger_contactdetails(contactid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_quotes FOREIGN KEY (quoteid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_quotes FOREIGN KEY (potentialid) REFERENCES vtiger_potential(potentialid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_quotesbillads FOREIGN KEY (quotebilladdressid) REFERENCES vtiger_quotes(quoteid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_quotesshipads FOREIGN KEY (quoteshipaddressid) REFERENCES vtiger_quotes(quoteid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_quotescf FOREIGN KEY (quoteid) REFERENCES vtiger_quotes(quoteid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + vendorid + + + quoteid + + + contactid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_purchaseorder FOREIGN KEY (contactid) REFERENCES vtiger_contactdetails(contactid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_purchaseorder FOREIGN KEY (purchaseorderid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_purchaseorder FOREIGN KEY (quoteid) REFERENCES vtiger_quotes(quoteid) ON DELETE CASCADE +ADD CONSTRAINT fk_4_vtiger_purchaseorder FOREIGN KEY (vendorid) REFERENCES vtiger_vendor(vendorid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_pobillads FOREIGN KEY (pobilladdressid) REFERENCES vtiger_purchaseorder(purchaseorderid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_poshipads FOREIGN KEY (poshipaddressid) REFERENCES vtiger_purchaseorder(purchaseorderid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_purchaseordercf FOREIGN KEY (purchaseorderid) REFERENCES vtiger_purchaseorder(purchaseorderid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + invoiceid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_invoice FOREIGN KEY (invoiceid) REFERENCES vtiger_crmentity(crmid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_invoice FOREIGN KEY (salesorderid) REFERENCES vtiger_salesorder(salesorderid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_invoicebillads FOREIGN KEY (invoicebilladdressid) REFERENCES vtiger_invoice(invoiceid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_invoiceshipads FOREIGN KEY (invoiceshipaddressid) REFERENCES vtiger_invoice(invoiceid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_invoicecf FOREIGN KEY (invoiceid) REFERENCES vtiger_invoice(invoiceid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + + + entitytype + + + Type=InnoDB +
+ + + ADD CONSTRAINT fk_1_vtiger_customview FOREIGN KEY (entitytype) REFERENCES vtiger_tab (name) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + + + + + + + + + + columnindex + + + cvid + + Type=InnoDB +
+ + + ADD CONSTRAINT fk_1_vtiger_cvcolumnlist FOREIGN KEY (cvid) REFERENCES vtiger_customview (cvid) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + cvid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_cvstdfilter FOREIGN KEY (cvid) REFERENCES vtiger_customview (cvid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + cvid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_cvadvfilter FOREIGN KEY (cvid) REFERENCES vtiger_customview (cvid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + cvid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_customaction FOREIGN KEY (cvid) REFERENCES vtiger_customview (cvid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + queryid + + Type=InnoDB +
+ + + + + + + + + + + + + + + + queryid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_selectcolumn FOREIGN KEY (queryid) REFERENCES vtiger_selectquery (queryid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + queryid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_relcriteria FOREIGN KEY (queryid) REFERENCES vtiger_selectquery (queryid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + queryid + + + folderid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_report FOREIGN KEY (folderid) REFERENCES vtiger_reportfolder (folderid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_report FOREIGN KEY (queryid) REFERENCES vtiger_selectquery (queryid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_reportmodules FOREIGN KEY (reportmodulesid) REFERENCES vtiger_report (reportid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_reportsortcol FOREIGN KEY (reportid) REFERENCES vtiger_report (reportid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + datefilterid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_reportdatefilter FOREIGN KEY (datefilterid) REFERENCES vtiger_report (reportid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + reportsummaryid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_reportsummary FOREIGN KEY (reportsummaryid) REFERENCES vtiger_report (reportid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + usageunit + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + glacct + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + quotestage + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + invoicestatus + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + postatus + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + sostatus + + + Type=InnoDB + +
+ + + + + + + + + + + + + + + + + + + carrier + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + taxclass + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + recurringtype + + + Type=InnoDB +
+ + + + + + + + + + + + + + + Type=InnoDB +
+ + + ADD CONSTRAINT fk_1_vtiger_recurringevents FOREIGN KEY (activityid) REFERENCES vtiger_activity(activityid) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_org_share_action2tab FOREIGN KEY (share_action_id) REFERENCES vtiger_org_share_action_mapping(share_action_id) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_org_share_action2tab FOREIGN KEY (tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + tabid + user_id + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_moduleowners FOREIGN KEY (tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + crmid + flag + + Type=InnoDB +
+ + + + + + + + + + + Type=InnoDB + + tabid + +
+ + +ADD CONSTRAINT fk_1_vtiger_datashare_module_rel FOREIGN KEY (tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + share_groupid + + + to_groupid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_datashare_grp2grp FOREIGN KEY (shareid) REFERENCES vtiger_datashare_module_rel(shareid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_datashare_grp2grp FOREIGN KEY (share_groupid) REFERENCES vtiger_groups(groupid) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_datashare_grp2grp FOREIGN KEY (to_groupid) REFERENCES vtiger_groups(groupid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + share_groupid + + + to_roleid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_datashare_grp2role FOREIGN KEY (shareid) REFERENCES vtiger_datashare_module_rel(shareid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_datashare_grp2role FOREIGN KEY (share_groupid) REFERENCES vtiger_groups(groupid) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_datashare_grp2role FOREIGN KEY (to_roleid) REFERENCES vtiger_role(roleid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + share_groupid + + + to_roleandsubid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_datashare_grp2rs FOREIGN KEY (shareid) REFERENCES vtiger_datashare_module_rel(shareid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_datashare_grp2rs FOREIGN KEY (share_groupid) REFERENCES vtiger_groups(groupid) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_datashare_grp2rs FOREIGN KEY (to_roleandsubid) REFERENCES vtiger_role(roleid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + share_roleid + + + to_groupid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_datashare_role2group FOREIGN KEY (shareid) REFERENCES vtiger_datashare_module_rel(shareid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_datashare_role2group FOREIGN KEY (to_groupid) REFERENCES vtiger_groups(groupid) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_datashare_role2group FOREIGN KEY (share_roleid) REFERENCES vtiger_role(roleid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + share_roleid + + + to_roleid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_datashare_role2role FOREIGN KEY (shareid) REFERENCES vtiger_datashare_module_rel(shareid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_datashare_role2role FOREIGN KEY (share_roleid) REFERENCES vtiger_role(roleid) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_datashare_role2role FOREIGN KEY (to_roleid) REFERENCES vtiger_role(roleid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + share_roleid + + + to_roleandsubid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_datashare_role2rs FOREIGN KEY (shareid) REFERENCES vtiger_datashare_module_rel(shareid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_datashare_role2rs FOREIGN KEY (share_roleid) REFERENCES vtiger_role(roleid) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_datashare_role2rs FOREIGN KEY (to_roleandsubid) REFERENCES vtiger_role(roleid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + share_roleandsubid + + + to_groupid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_datashare_rs2grp FOREIGN KEY (shareid) REFERENCES vtiger_datashare_module_rel(shareid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_datashare_rs2grp FOREIGN KEY (to_groupid) REFERENCES vtiger_groups(groupid) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_datashare_rs2grp FOREIGN KEY (share_roleandsubid) REFERENCES vtiger_role(roleid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + share_roleandsubid + + + to_roleid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_datashare_rs2role FOREIGN KEY (shareid) REFERENCES vtiger_datashare_module_rel(shareid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_datashare_rs2role FOREIGN KEY (share_roleandsubid) REFERENCES vtiger_role(roleid) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_datashare_rs2role FOREIGN KEY (to_roleid) REFERENCES vtiger_role(roleid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + share_roleandsubid + + + to_roleandsubid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_datashare_rs2rs FOREIGN KEY (shareid) REFERENCES vtiger_datashare_module_rel(shareid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_datashare_rs2rs FOREIGN KEY (share_roleandsubid) REFERENCES vtiger_role(roleid) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_datashare_rs2rs FOREIGN KEY (to_roleandsubid) REFERENCES vtiger_role(roleid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + tabid + + + relatedto_tabid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_datashare_relatedmodules FOREIGN KEY (relatedto_tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_datashare_relatedmodules FOREIGN KEY (tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + shareid + permission + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + parenttabid + parenttab_label + visible + + Type=InnoDB +
+ + + + + + + + + + + + + + userid + shareduserid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_tmp_read_user_sharing_per FOREIGN KEY (tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_tmp_read_user_sharing_per FOREIGN KEY (shareduserid) REFERENCES vtiger_users(id) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_tmp_read_user_sharing_per FOREIGN KEY (userid) REFERENCES vtiger_users(id) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + userid + sharedgroupid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_tmp_read_group_sharing_per FOREIGN KEY (sharedgroupid) REFERENCES vtiger_groups(groupid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_tmp_read_group_sharing_per FOREIGN KEY (tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_tmp_read_group_sharing_per FOREIGN KEY (userid) REFERENCES vtiger_users(id) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + userid + shareduserid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_tmp_write_user_sharing_per FOREIGN KEY (tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_tmp_write_user_sharing_per FOREIGN KEY (shareduserid) REFERENCES vtiger_users(id) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_tmp_write_user_sharing_per FOREIGN KEY (userid) REFERENCES vtiger_users(id) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + userid + sharedgroupid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_tmp_write_group_sharing_per FOREIGN KEY (sharedgroupid) REFERENCES vtiger_groups(groupid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_tmp_write_group_sharing_per FOREIGN KEY (tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_tmp_write_group_sharing_per FOREIGN KEY (userid) REFERENCES vtiger_users(id) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + userid + shareduserid + relatedtabid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_tmp_read_user_rel_sharing_per FOREIGN KEY (relatedtabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_tmp_read_user_rel_sharing_per FOREIGN KEY (tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_tmp_read_user_rel_sharing_per FOREIGN KEY (shareduserid) REFERENCES vtiger_users(id) ON DELETE CASCADE +ADD CONSTRAINT fk_4_vtiger_tmp_read_user_rel_sharing_per FOREIGN KEY (userid) REFERENCES vtiger_users(id) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + userid + sharedgroupid + tabid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_tmp_read_group_rel_sharing_per FOREIGN KEY (sharedgroupid) REFERENCES vtiger_groups(groupid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_tmp_read_group_rel_sharing_per FOREIGN KEY (relatedtabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_tmp_read_group_rel_sharing_per FOREIGN KEY (tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE +ADD CONSTRAINT fk_4_vtiger_tmp_read_group_rel_sharing_per FOREIGN KEY (userid) REFERENCES vtiger_users(id) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + userid + shareduserid + tabid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_tmp_write_user_rel_sharing_per FOREIGN KEY (relatedtabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_tmp_write_user_rel_sharing_per FOREIGN KEY (tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_tmp_write_user_rel_sharing_per FOREIGN KEY (shareduserid) REFERENCES vtiger_users(id) ON DELETE CASCADE +ADD CONSTRAINT fk_4_vtiger_tmp_write_user_rel_sharing_per FOREIGN KEY (userid) REFERENCES vtiger_users(id) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + userid + sharedgroupid + tabid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_tmp_write_group_rel_sharing_per FOREIGN KEY (sharedgroupid) REFERENCES vtiger_groups(groupid) ON DELETE CASCADE +ADD CONSTRAINT fk_2_vtiger_tmp_write_group_rel_sharing_per FOREIGN KEY (relatedtabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE +ADD CONSTRAINT fk_3_vtiger_tmp_write_group_rel_sharing_per FOREIGN KEY (tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE +ADD CONSTRAINT fk_4_vtiger_tmp_write_group_rel_sharing_per FOREIGN KEY (userid) REFERENCES vtiger_users(id) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + tabid + parenttabid + + Type=InnoDB +
+ + + ADD CONSTRAINT fk_1_vtiger_parenttabrel FOREIGN KEY (tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE + Type=InnoDB + + +
+ + + ADD CONSTRAINT fk_2_vtiger_parenttabrel FOREIGN KEY (parenttabid) REFERENCES vtiger_parenttab(parenttabid) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + campaigntype + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + campaignstatus + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + expectedresponse + + + Type=InnoDB +
+ + + + + + + + + + name + + + Type=InnoDB +
+ + + + + + + + + + + + + + roleid + picklistid + picklistvalueid + + Type=InnoDB +
+ + ADD CONSTRAINT fk_1_vtiger_role2picklist FOREIGN KEY (roleid) REFERENCES vtiger_role (roleid) ON DELETE CASCADE + Type=InnoDB + + +
+ + ADD CONSTRAINT fk_2_vtiger_role2picklist FOREIGN KEY (picklistid) REFERENCES vtiger_picklist (picklistid) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + portalname + + Type=InnoDB +
+ + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + creatorid + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + nick + + + session + + + ping + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + + chat_from + + + chat_to + + + born + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_chat_msg FOREIGN KEY (chat_from) REFERENCES vtiger_chat_users(id) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + msg + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_chat_pchat FOREIGN KEY (msg) REFERENCES vtiger_chat_msg(id) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + msg + + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_chat_pvchat FOREIGN KEY (msg) REFERENCES vtiger_chat_msg(id) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + tag_id + tagger_id + object_id + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + taxname + + + Type=InnoDB +
+ + + + + + + + + + + + + productid + + + taxid + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + source + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + source + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + source + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + source + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + purchaseorderid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_postatushistory FOREIGN KEY (purchaseorderid) REFERENCES vtiger_purchaseorder(purchaseorderid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + salesorderid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_sostatushistory FOREIGN KEY (salesorderid) REFERENCES vtiger_salesorder(salesorderid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + quoteid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_quotestagehistory FOREIGN KEY (quoteid) REFERENCES vtiger_quotes(quoteid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + + + + + + invoiceid + + Type=InnoDB +
+ + +ADD CONSTRAINT fk_1_vtiger_invoicestatushistory FOREIGN KEY (invoiceid) REFERENCES vtiger_invoice(invoiceid) ON DELETE CASCADE +Type=InnoDB + + +
+ + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + id + + + productid + + Type=InnoDB +
+ + + + + + + + + + + + + + + + taxname + + + Type=InnoDB +
+ + + + + + id + + Type=InnoDB +
+ + + + + + + + + + + + + smid + + + attachmentsid + + Type=InnoDB +
+ + + ADD CONSTRAINT fk_1_vtiger_salesmanattachmentsrel FOREIGN KEY (smid) REFERENCES vtiger_users(id) ON DELETE CASCADE + ADD CONSTRAINT fk_2_vtiger_salesmanattachmentsrel FOREIGN KEY (attachmentsid) REFERENCES vtiger_attachments(attachmentsid) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + + tabid + + Type=InnoDB +
+ + + ADD CONSTRAINT fk_1_vtiger_entityname FOREIGN KEY (tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + userid + tabid + + Type=InnoDB +
+ + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + stuffid + + Type=InnoDB +
+ + ADD CONSTRAINT fk_1_vtiger_homestuff FOREIGN KEY (userid) REFERENCES vtiger_users(id) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + stuffid + + Type=InnoDB +
+ + + ADD CONSTRAINT fk_1_vtiger_homemodule FOREIGN KEY (stuffid) REFERENCES vtiger_homestuff(stuffid) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + stuffid + + Type=InnoDB +
+ + + ADD CONSTRAINT fk_1_vtiger_homemoduleflds FOREIGN KEY (stuffid) REFERENCES vtiger_homemodule(stuffid) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + + + + + + stuffid + + Type=InnoDB +
+ + + ADD CONSTRAINT fk_1_vtiger_homerss FOREIGN KEY (stuffid) REFERENCES vtiger_homestuff(stuffid) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + + + + stuffid + + Type=InnoDB +
+ + + ADD CONSTRAINT fk_1_vtiger_homedashbd FOREIGN KEY (stuffid) REFERENCES vtiger_homestuff(stuffid) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + + + + + + + + + stuffid + + Type=InnoDB +
+ + + ADD CONSTRAINT fk_1_vtiger_homedefault FOREIGN KEY (stuffid) REFERENCES vtiger_homestuff(stuffid) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + + + + + + + + + uitype + + Type=InnoDB +
+ + + + + + + + + + + Type=InnoDB +
+ + + ADD CONSTRAINT `fk_1_vtiger_referencetype` FOREIGN KEY (`fieldtypeid`) REFERENCES `vtiger_ws_fieldtype` (`fieldtypeid`) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + + + + + + + + + userid + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + Type=InnoDB +
+ + + ADD CONSTRAINT `fk_1_vtiger_ws_actor_tables` FOREIGN KEY (`webservice_entity_id`) REFERENCES `vtiger_ws_entity` (`id`) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + table_name + field_name + + Type=InnoDB +
+ + + + + + + + + + + Type=InnoDB +
+ + + ADD CONSTRAINT `vtiger_fk_1_actors_referencetype` FOREIGN KEY (`fieldtypeid`) REFERENCES `vtiger_ws_entity_fieldtype` (`fieldtypeid`) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + eventhandler_id + + Type=InnoDB +
+ + + + + + + + + + + + + eventhandler_id + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + Type=InnoDB +
+ + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + Type=InnoDB +
+ + + + + Type=InnoDB +
+ + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + Type=InnoDB +
+ + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + workflow_id + + Type=InnoDB +
+ + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + task_id + + Type=InnoDB +
+ + + + + + + + + + + task_id + entity_id + + Type=InnoDB +
+ + + + + + + + + + + + + + + + workflowtasks_entitymethod_id + + Type=InnoDB +
+ + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + + + + num_id + + + semodule + active + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + Type=InnoDB + + tabid + linktype + +
+ + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + + + + + + + + + + Type=InnoDB +
+ + + ADD CONSTRAINT fk_1_vtiger_settings_field FOREIGN KEY (blockid) REFERENCES vtiger_settings_blocks(blockid) ON DELETE CASCADE + Type=InnoDB + + +
+ + + + + + + + + Type=InnoDB +
+ + + + + + Type=InnoDB + + crmid + mailid + + +
+ + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + + Type=InnoDB +
+ + + + + + + + Type=InnoDB +
+ + + + + + + + + + + + Type=InnoDB +
+ + + ADD CONSTRAINT fk_1_vtiger_user_module_preferences FOREIGN KEY (userid) REFERENCES vtiger_users(id) ON DELETE CASCADE ON UPDATE CASCADE + ADD CONSTRAINT fk_2_vtiger_user_module_preferences FOREIGN KEY (tabid) REFERENCES vtiger_tab(tabid) ON DELETE CASCADE ON UPDATE CASCADE + Type=InnoDB + + +
+ + + + + + + + + + + Type=InnoDB +
+ + + + + + + + + Type=InnoDB +
+ + + + + + + + + + + Type=InnoDB +
+ +