Type=InnoDB
user_name
user_password
Type=InnoDB
smcreatorid
Type=InnoDB
smownerid
Type=InnoDB
modifiedby
Type=InnoDB
name
Type=InnoDB
modifiedby
ADD CONSTRAINT fk_pi FOREIGN KEY (tabid) REFERENCES tab(tabid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_Account FOREIGN KEY (accountid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_AccountBillAds FOREIGN KEY (accountaddressid) REFERENCES account(accountid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_AccountShipAds FOREIGN KEY (accountaddressid) REFERENCES account(accountid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_AccountsCF FOREIGN KEY (accountid) REFERENCES account(accountid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_ContactDetails FOREIGN KEY (contactid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_ContactSubDetails FOREIGN KEY (contactsubscriptionid) REFERENCES contactdetails(contactid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_ContactAddress FOREIGN KEY (contactaddressid) REFERENCES contactdetails(contactid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_ContactsCF FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_PortalInfo FOREIGN KEY (id) REFERENCES contactdetails(contactid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_CustomerDetails FOREIGN KEY (customerid) REFERENCES contactdetails(contactid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_LeadDetails FOREIGN KEY (leadid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_LeadSubDetails FOREIGN KEY (leadsubscriptionid) REFERENCES leaddetails(leadid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_LeadAddress FOREIGN KEY (leadaddressid) REFERENCES leaddetails(leadid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_LeadsCF FOREIGN KEY (leadid) REFERENCES leaddetails(leadid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
title
notesid
crmid
Type=InnoDB
ADD CONSTRAINT fk_Notes FOREIGN KEY (notesid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
accountid
Type=InnoDB
ADD CONSTRAINT fk_Potential FOREIGN KEY (potentialid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_PotStageHistory FOREIGN KEY (potentialid) REFERENCES potential(potentialid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_PotentialsCF2 FOREIGN KEY (potentialid) REFERENCES potential(potentialid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
activityid
subject
ADD CONSTRAINT fk_Activity FOREIGN KEY (activityid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_Attachments FOREIGN KEY (attachmentsid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
attachmentsid
Type=InnoDB
crmid
ADD CONSTRAINT fk_SeAttachmentsRel FOREIGN KEY (attachmentsid) REFERENCES attachments(attachmentsid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_SeAttachmentsRel2 FOREIGN KEY (crmid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_Competitor FOREIGN KEY (competitorid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
potentialid
Type=InnoDB
competitorid
ADD CONSTRAINT fk_PotCompetitorRel FOREIGN KEY (potentialid) REFERENCES potential(potentialid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_PotCompetitorRel2 FOREIGN KEY (competitorid) REFERENCES competitor(competitorid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_productsCF FOREIGN KEY (productid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
productid
filename
Type=InnoDB
ADD CONSTRAINT fk_productcollaterals FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_user2role1 FOREIGN KEY (userid) REFERENCES users(id) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_user2role2 FOREIGN KEY (roleid) REFERENCES role(roleid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_users2group FOREIGN KEY (groupname) REFERENCES groups(name) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
leadid
Type=InnoDB
ADD CONSTRAINT fk_LeadPotRel1 FOREIGN KEY (leadid) REFERENCES leaddetails(leadid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_LeadPotRel2 FOREIGN KEY (potentialid) REFERENCES potential(potentialid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_LeadContRel1 FOREIGN KEY (leadid) REFERENCES leaddetails(leadid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_LeadContRel2 FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_LeadAcctRel1 FOREIGN KEY (leadid) REFERENCES leaddetails(leadid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_LeadAcctRel2 FOREIGN KEY (accountid) REFERENCES account(accountid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
potentialid
Type=InnoDB
contactid
ADD CONSTRAINT fk_ContPotentialRel1 FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_ContPotentialRel FOREIGN KEY (potentialid) REFERENCES potential(potentialid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
contactid
Type=InnoDB
ADD CONSTRAINT fk_CntActivityRel FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_CntActivityRel2 FOREIGN KEY (activityid) REFERENCES activity(activityid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
name
Type=InnoDB
createdby
ADD CONSTRAINT fk_LAR FOREIGN KEY (createdby) REFERENCES users(id) ON DELETE CASCADE
Type=InnoDB
notesid
crmid
Type=InnoDB
ADD CONSTRAINT fk_crmentityNotes FOREIGN KEY (crmid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_crmentityNotes2 FOREIGN KEY (notesid) REFERENCES notes(notesid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_troubleticketsCF FOREIGN KEY (ticketid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_ticketcommentsCF FOREIGN KEY (ticketid) REFERENCES troubletickets(ticketid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
activityid
Type=InnoDB
smid
ADD CONSTRAINT fk_SalesmanActivityRel FOREIGN KEY (smid) REFERENCES users(id) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_SalesmanActivityRel2 FOREIGN KEY (activityid) REFERENCES activity(activityid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
vendorid
Type=InnoDB
contactid
ADD CONSTRAINT fk_VendorContactRel FOREIGN KEY (vendorid) REFERENCES vendor(vendorid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_VendorContactRel FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
smid
Type=InnoDB
id
ADD CONSTRAINT fk_SalesmanTicketRel FOREIGN KEY (smid) REFERENCES users(id) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_SalesmanTicketRel2 FOREIGN KEY (id) REFERENCES troubletickets(ticketid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
activityid
Type=InnoDB
crmid
ADD CONSTRAINT fk_SeActivityRel1 FOREIGN KEY (crmid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_SeActivityRel2 FOREIGN KEY (activityid) REFERENCES activity(activityid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
productid
Type=InnoDB
crmid
ADD CONSTRAINT fk_SeProductsRel1 FOREIGN KEY (crmid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_SeProductsRel2 FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
crmid
Type=InnoDB
ticketid
ADD CONSTRAINT fk_SeTicketsRel1 FOREIGN KEY (crmid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_SeTicketsRel2 FOREIGN KEY (ticketid) REFERENCES troubletickets(ticketid) ON DELETE CASCADE
Type=InnoDB
assigned_user_id
module
name
deleted
Type=InnoDB
leadid
groupname
ADD CONSTRAINT fk_leadgrouprelation FOREIGN KEY (leadid) REFERENCES leaddetails(leadid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_leadgrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(name) ON DELETE CASCADE
Type=InnoDB
activityid
groupname
Type=InnoDB
ADD CONSTRAINT fk_activitygrouprelation1 FOREIGN KEY (activityid) REFERENCES activity(activityid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_activitygrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(name) ON DELETE CASCADE
Type=InnoDB
ticketid
groupname
Type=InnoDB
ADD CONSTRAINT fk_ticketgrouprelation1 FOREIGN KEY (ticketid) REFERENCES troubletickets(ticketid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_ticketgrouprelation2 FOREIGN KEY (groupname) REFERENCES groups(name) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_defaultcv FOREIGN KEY (tabid) REFERENCES tab(tabid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_emails FOREIGN KEY (emailid) REFERENCES activity(activityid) ON DELETE CASCADE
Type=InnoDB
foldername
templatename
subject
ADD CONSTRAINT fk_faqCF FOREIGN KEY (id) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_faqcommentsCF FOREIGN KEY (faqid) REFERENCES faq(id) ON DELETE CASCADE
Type=InnoDB
assigned_user_id
name
deleted
Type=InnoDB
notesid
Type=InnoDB
crmid
ADD CONSTRAINT fk_SeNotesRel FOREIGN KEY (notesid) REFERENCES notes(notesid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_SeNotesRel2 FOREIGN KEY (crmid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
rolename
tabid
actionname
ADD CONSTRAINT fk_HelpDeskCF FOREIGN KEY (ticketid) REFERENCES troubletickets(ticketid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_ProductCF FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
deploymentstatus
Type=InnoDB
opportunity_type
profileid
tabid
Operation
profileid
tabid
fieldname
profileid
tabid
activityid
Type=InnoDB
productcategory
Type=InnoDB
schedulednotificationname
Type=InnoDB
activityid
Type=InnoDB
productid
ADD CONSTRAINT fk_activityproductRel FOREIGN KEY (activityid) REFERENCES activity(activityid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_activityproductrel1 FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_Vendor FOREIGN KEY (vendorid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_VendorCF FOREIGN KEY (vendorid) REFERENCES vendor(vendorid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_PriceBook FOREIGN KEY (pricebookid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_PriceBookCF FOREIGN KEY (pricebookid) REFERENCES pricebook(pricebookid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
pricebookid
Type=InnoDB
productid
ADD CONSTRAINT fk_PriceBookProductRel FOREIGN KEY (pricebookid) REFERENCES pricebook(pricebookid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_PriceBookProductRel2 FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_Quotes1 FOREIGN KEY (quoteid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_Quotes2 FOREIGN KEY (potentialid) REFERENCES potential(potentialid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_Quotes3 FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_QuotesBillAds FOREIGN KEY (quotebilladdressid) REFERENCES quotes(quoteid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_QuotesShipAds FOREIGN KEY (quoteshipaddressid) REFERENCES quotes(quoteid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_QuotesCF FOREIGN KEY (quoteid) REFERENCES quotes(quoteid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
quoteid
Type=InnoDB
productid
ADD CONSTRAINT fk_QuotesProductRel FOREIGN KEY (quoteid) REFERENCES quotes(quoteid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_QuotesProductRel2 FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_PO1 FOREIGN KEY (purchaseorderid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_PO2 FOREIGN KEY (vendorid) REFERENCES vendor(vendorid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_PO2 FOREIGN KEY (quoteid) REFERENCES quotes(quote) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_PO3 FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_PoBillAds FOREIGN KEY (pobilladdressid) REFERENCES purchaseorder(purchaseorderid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_PoShipAds FOREIGN KEY (poshipaddressid) REFERENCES purchaseorder(purchaseorderid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_PoCF FOREIGN KEY (purchaseorderid) REFERENCES purchaseorder(purchaseorderid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
quoteid
Type=InnoDB
productid
ADD CONSTRAINT fk_PoProductRel FOREIGN KEY (purchaseorderid) REFERENCES purchaseorder(purchaseorderid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_PoProductRel2 FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_SO1 FOREIGN KEY (salesorderid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_SO2 FOREIGN KEY (vendorid) REFERENCES vendor(vendorid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_SO2 FOREIGN KEY (purchaseorderid) REFERENCES purchaseorder(purchaseorderid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_SO3 FOREIGN KEY (contactid) REFERENCES contactdetails(contactid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_SoBillAds FOREIGN KEY (sobilladdressid) REFERENCES salesorder(salesorderid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_SoShipAds FOREIGN KEY (soshipaddressid) REFERENCES salesorder(salesorderid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_SoCF FOREIGN KEY (salesorderid) REFERENCES salesorder(salesorderid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
salesorderid
Type=InnoDB
productid
ADD CONSTRAINT fk_SoProductRel FOREIGN KEY (salesorderid) REFERENCES salesorder(salesorderid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_SoProductRel2 FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_Invoice1 FOREIGN KEY (invoiceid) REFERENCES crmentity(crmid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_Invoice2 FOREIGN KEY (purchaseorderid) REFERENCES purchaseorder(purchaseorderid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_InvoiceBillAds FOREIGN KEY (invoicebilladdressid) REFERENCES invoice(invoiceid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_InvoiceShipAds FOREIGN KEY (invoiceshipaddressid) REFERENCES invoice(invoiceid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_InvoiceCF FOREIGN KEY (invoiceid) REFERENCES invoice(invoiceid) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
invoice
Type=InnoDB
productid
ADD CONSTRAINT fk_InvoiceProductRel FOREIGN KEY (invoiceid) REFERENCES invoice(invoiceid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT fk_InvoiceProductRel2 FOREIGN KEY (productid) REFERENCES products(productid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT cvcolumnlist_FK1 FOREIGN KEY (cvid) REFERENCES customview (cvid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT cvstdfilter_FK1 FOREIGN KEY (cvid) REFERENCES customview (cvid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT cvadvfilter_FK1 FOREIGN KEY (cvid) REFERENCES customview (cvid) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT customaction_FK1 FOREIGN KEY (cvid) REFERENCES customview (cvid) ON DELETE CASCAD
E
Type=InnoDB
ADD CONSTRAINT selectcolumn_FK1 FOREIGN KEY (QUERYID) REFERENCES selectquery (QUERYID) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT relcriteria_FK1 FOREIGN KEY (QUERYID) REFERENCES selectquery (QUERYID) ON DELETE CASCADE
Type=InnoDB
queryid
folderid
Type=InnoDB
ADD CONSTRAINT report_FK1 FOREIGN KEY (QUERYID) REFERENCES selectquery (QUERYID) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT report_FK2 FOREIGN KEY (FOLDERID) REFERENCES reportfolder (FOLDERID) ON DELETE CASCADE
Type=InnoDB
reportmodulesid
Type=InnoDB
ADD CONSTRAINT reportmodules_FK1 FOREIGN KEY (REPORTMODULESID) REFERENCES report (REPORTID) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT reportsortcol_FK1 FOREIGN KEY (REPORTID) REFERENCES report (REPORTID) ON DELETE CASCADE
Type=InnoDB
ADD CONSTRAINT reportdatefilter_FK1 FOREIGN KEY (DATEFILTERID) REFERENCES report (REPORTID) ON DELETE CASCADE
Type=InnoDB
reportsummaryid
Type=InnoDB
ADD CONSTRAINT reportsummary_FK1 FOREIGN KEY (REPORTSUMMARYID) REFERENCES report (REPORTID) ON DELETE CASCADE
Type=InnoDB
Type=InnoDB
invoicestatus