SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
-- Database: `x2engine71`
-- --------------------------------------------------------
-- Table structure for table `x2_accounts`
CREATE TABLE `x2_accounts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`nameId` varchar(250) DEFAULT NULL,
`firstName` varchar(255) DEFAULT NULL,
`lastName` varchar(255) DEFAULT NULL,
`website` varchar(255) DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
`title` varchar(100) DEFAULT NULL,
`visibility` tinyint(4) DEFAULT '1',
`annualRevenue` decimal(18,2) DEFAULT NULL,
`phone` varchar(40) DEFAULT NULL,
`phone2` varchar(40) DEFAULT NULL,
`email` varchar(250) DEFAULT NULL,
`twitter` varchar(50) DEFAULT NULL,
`linkedin` varchar(100) DEFAULT NULL,
`skype` varchar(32) DEFAULT NULL,
`googleplus` varchar(100) DEFAULT NULL,
`otherUrl` varchar(100) DEFAULT NULL,
`company` varchar(250) DEFAULT NULL,
`modelName` varchar(100) DEFAULT NULL,
`tickerSymbol` varchar(10) DEFAULT NULL,
`employees` int(11) DEFAULT NULL,
`address` varchar(250) DEFAULT NULL,
`address2` varchar(250) DEFAULT NULL,
`city` varchar(250) DEFAULT NULL,
`state` varchar(250) DEFAULT NULL,
`country` varchar(250) DEFAULT NULL,
`zipcode` varchar(250) DEFAULT NULL,
`priority` varchar(40) DEFAULT NULL,
`parentAccount` varchar(250) DEFAULT NULL,
`primaryContact` varchar(250) DEFAULT NULL,
`createDate` bigint(20) DEFAULT NULL,
`facebook` varchar(100) DEFAULT NULL,
`timezone` varchar(250) DEFAULT NULL,
`associatedContacts` text,
`lastUpdated` bigint(20) DEFAULT NULL,
`lastActivity` bigint(20) DEFAULT NULL,
`updatedBy` varchar(50) DEFAULT NULL,
`dupeCheck` tinyint(4) DEFAULT '0',
`trackingKey` varchar(32) DEFAULT NULL,
`leadtype` varchar(250) DEFAULT NULL,
`leadSource` varchar(40) DEFAULT NULL,
`leadstatus` varchar(250) DEFAULT NULL,
`leadDate` bigint(20) DEFAULT NULL,
`leadscore` int(11) DEFAULT NULL,
`interest` varchar(250) DEFAULT NULL,
`dealvalue` decimal(18,2) DEFAULT NULL,
`closedate` bigint(20) DEFAULT NULL,
`rating` tinyint(4) DEFAULT NULL,
`dealstatus` varchar(250) DEFAULT NULL,
`expectedCloseDate` bigint(20) DEFAULT NULL,
`doNotCall` tinyint(4) DEFAULT '0',
`doNotEmail` tinyint(4) DEFAULT '0',
`businessEmail` varchar(250) DEFAULT NULL,
`personalEmail` varchar(250) DEFAULT NULL,
`alternativeEmail` varchar(250) DEFAULT NULL,
`preferredEmail` varchar(250) DEFAULT NULL,
UNIQUE KEY `nameId` (`nameId`),
KEY `parentAccount` (`parentAccount`),
KEY `primaryContact` (`primaryContact`),
KEY `company` (`company`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `x2_actions`
CREATE TABLE `x2_actions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`assignedTo` varchar(255) DEFAULT NULL,
`calendarId` int(10) unsigned DEFAULT NULL,
`subject` varchar(255) DEFAULT NULL,
`visibility` int(11) NOT NULL DEFAULT '1',
`associationId` int(11) NOT NULL,
`associationType` varchar(255) DEFAULT NULL,
`associationName` varchar(100) DEFAULT NULL,
`dueDate` bigint(20) DEFAULT NULL,
`showTime` tinyint(4) NOT NULL DEFAULT '0',
`priority` varchar(10) DEFAULT NULL,
`type` varchar(20) DEFAULT NULL,
`createDate` bigint(20) DEFAULT NULL,
`complete` varchar(5) DEFAULT 'No',
`reminder` varchar(5) DEFAULT NULL,
`completedBy` varchar(50) DEFAULT NULL,
`completeDate` bigint(20) DEFAULT NULL,
`lastUpdated` bigint(20) DEFAULT NULL,
`updatedBy` varchar(50) DEFAULT NULL,
`workflowId` int(11) DEFAULT NULL,
`quoteId` int(10) unsigned DEFAULT NULL,
`stageNumber` int(11) DEFAULT NULL,
`allDay` tinyint(4) DEFAULT NULL,
`color` varchar(20) DEFAULT NULL,
`syncGoogleCalendarEventId` text,
`syncOutlookCalendarEventId` text,
`sticky` tinyint(4) DEFAULT '0',
`flowTriggered` tinyint(4) DEFAULT '0',
`timeSpent` int(11) DEFAULT '0',
`locationId` int(10) unsigned DEFAULT NULL,
UNIQUE KEY `associationType_2` (`associationType`,`associationId`,`workflowId`,`stageNumber`),
KEY `assignedTo` (`assignedTo`),
KEY `associationType` (`associationType`,`associationId`),
KEY `locationId` (`locationId`),
KEY `calendarId` (`calendarId`),
KEY `workflowId` (`workflowId`),
KEY `stageNumber` (`stageNumber`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `x2_actions_to_media`
CREATE TABLE `x2_actions_to_media` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`actionsId` int(10) unsigned NOT NULL,
`mediaId` int(11) NOT NULL,
UNIQUE KEY `actionsId` (`actionsId`,`mediaId`),
KEY `mediaId` (`mediaId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `x2_action_meta_data`
CREATE TABLE `x2_action_meta_data` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`actionId` int(10) unsigned NOT NULL,
`eventSubtype` varchar(100) DEFAULT NULL,
`eventStatus` varchar(100) DEFAULT NULL,
`etag` varchar(255) DEFAULT NULL,
`remoteCalendarUrl` varchar(255) DEFAULT NULL,
`remoteSource` int(11) DEFAULT '0',
`emailImapUid` int(10) unsigned DEFAULT NULL,
`emailInboxId` int(10) unsigned DEFAULT NULL,
`emailUidValidity` int(10) unsigned DEFAULT NULL,
`emailFolderName` varchar(250) DEFAULT NULL,
UNIQUE KEY `emailImapUid` (`emailImapUid`,`emailInboxId`,`emailFolderName`,`emailUidValidity`),
KEY `actionId` (`actionId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `x2_action_text`
CREATE TABLE `x2_action_text` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`actionId` int(10) unsigned DEFAULT NULL,
KEY `actionId` (`actionId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `x2_action_timers`
CREATE TABLE `x2_action_timers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) NOT NULL,
`associationId` int(11) DEFAULT NULL,
`associationType` varchar(250) DEFAULT NULL,
`type` varchar(250) DEFAULT NULL,
`timestamp` bigint(20) DEFAULT NULL,
`endtime` bigint(20) DEFAULT NULL,
`actionId` int(11) DEFAULT NULL,
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `x2_action_to_record`
CREATE TABLE `x2_action_to_record` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`actionId` int(10) unsigned NOT NULL,
`recordId` int(10) unsigned NOT NULL,
`recordType` varchar(32) NOT NULL,
UNIQUE KEY `actionId` (`actionId`,`recordId`,`recordType`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `x2_admin`
CREATE TABLE `x2_admin` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`timeout` int(11) DEFAULT NULL,
`maxUserCount` int(11) DEFAULT '200',
`loginCredsTimeout` int(11) DEFAULT '30',
`tokenPersist` tinyint(4) DEFAULT '1',
`webLeadEmail` varchar(255) DEFAULT NULL,
`webLeadEmailAccount` int(11) NOT NULL DEFAULT '-1',
`webTrackerCooldown` int(11) DEFAULT '60',
`enableWebTracker` tinyint(4) DEFAULT '1',
`enableGeolocation` tinyint(4) DEFAULT '1',
`currency` varchar(3) DEFAULT NULL,
`duplicateFields` varchar(255) NOT NULL DEFAULT 'name',
`chatPollTime` int(11) DEFAULT '3000',
`maxFileSize` int(11) DEFAULT '10',
`locationTrackingFrequency` int(11) DEFAULT '60',
`defaultTheme` int(11) DEFAULT NULL,
`ignoreUpdates` tinyint(4) DEFAULT '0',
`rrId` int(11) DEFAULT '0',
`leadDistribution` varchar(255) DEFAULT NULL,
`onlineOnly` tinyint(4) DEFAULT NULL,
`actionPublisherTabs` text,
`disableAutomaticRecordTagging` tinyint(4) DEFAULT '0',
`emailBulkAccount` int(11) NOT NULL DEFAULT '-1',
`emailNotificationAccount` int(11) NOT NULL DEFAULT '-1',
`emailFromName` varchar(255) NOT NULL DEFAULT 'X2Engine',
`emailFromAddr` varchar(255) NOT NULL DEFAULT '[[admin_email]]',
`emailBatchSize` int(11) NOT NULL DEFAULT '200',
`emailInterval` int(11) NOT NULL DEFAULT '60',
`emailCount` int(11) DEFAULT '0',
`emailStartTime` bigint(20) DEFAULT NULL,
`emailUseSignature` varchar(5) DEFAULT 'user',
`emailType` varchar(20) DEFAULT 'mail',
`emailHost` varchar(255) DEFAULT NULL,
`emailPort` int(11) DEFAULT '25',
`emailUseAuth` varchar(5) DEFAULT 'user',
`emailUser` varchar(255) DEFAULT NULL,
`emailPass` varchar(255) DEFAULT NULL,
`emailSecurity` varchar(10) DEFAULT NULL,
`enableColorDropdownLegend` tinyint(4) DEFAULT '0',
`enforceDefaultTheme` tinyint(4) DEFAULT '0',
`installDate` bigint(20) NOT NULL,
`updateDate` bigint(20) NOT NULL,
`updateInterval` int(11) NOT NULL DEFAULT '0',
`quoteStrictLock` tinyint(4) DEFAULT NULL,
`locationTrackingSwitch` tinyint(4) DEFAULT NULL,
`checkinByDefault` tinyint(4) DEFAULT '1',
`googleIntegration` tinyint(4) DEFAULT NULL,
`outlookIntegration` tinyint(4) DEFAULT NULL,
`inviteKey` varchar(255) DEFAULT NULL,
`workflowBackdateWindow` int(11) NOT NULL DEFAULT '-1',
`workflowBackdateRange` int(11) NOT NULL DEFAULT '-1',
`workflowBackdateReassignment` tinyint(4) NOT NULL DEFAULT '1',
`unique_id` varchar(32) NOT NULL DEFAULT 'none',
`edition` varchar(10) NOT NULL DEFAULT 'opensource',
`serviceCaseEmailAccount` int(11) NOT NULL DEFAULT '-1',
`serviceCaseFromEmailAddress` text,
`serviceCaseFromEmailName` text,
`serviceCaseEmailSubject` text,
`serviceCaseEmailMessage` text,
`srrId` int(11) DEFAULT '0',
`sgrrId` int(11) DEFAULT '0',
`serviceDistribution` varchar(255) DEFAULT NULL,
`serviceOnlineOnly` tinyint(4) DEFAULT NULL,
`eventDeletionTime` int(11) DEFAULT NULL,
`eventDeletionTypes` text,
`properCaseNames` int(11) DEFAULT '1',
`contactNameFormat` varchar(255) DEFAULT NULL,
`gaTracking_public` varchar(20) DEFAULT NULL,
`gaTracking_internal` varchar(20) DEFAULT NULL,
`sessionLog` tinyint(4) DEFAULT '0',
`userActionBackdating` tinyint(4) DEFAULT '0',
`historyPrivacy` varchar(20) DEFAULT 'default',
`batchTimeout` int(11) DEFAULT '300',
`locationTrackingDistance` int(11) DEFAULT '1',
`massActionsBatchSize` int(11) DEFAULT '10',
`externalBaseUrl` varchar(255) DEFAULT NULL,
`externalBaseUri` varchar(255) DEFAULT NULL,
`assetBaseUrls` varchar(255) DEFAULT NULL,
`enableAssetDomains` tinyint(4) NOT NULL DEFAULT '0',
`appName` varchar(255) DEFAULT NULL,
`appDescription` varchar(255) DEFAULT NULL,
`x2FlowRespectsDoNotEmail` tinyint(4) DEFAULT '0',
`doNotEmailPage` longtext,
`EmailUnSubPage` longtext,
`doNotEmailLinkText` varchar(255) DEFAULT NULL,
`enableUnsubscribeHeader` tinyint(4) DEFAULT '0',
`twitterCredentialsId` int(10) unsigned DEFAULT NULL,
`dropboxCredentialsId` int(10) unsigned DEFAULT NULL,
`linkedInCredentialsId` int(10) unsigned DEFAULT NULL,
`twitterRateLimits` text,
`linkedInRateLimits` text,
`dropboxRateLimits` text,
`triggerLogMax` int(10) unsigned DEFAULT '1000000',
`googleCredentialsId` int(10) unsigned DEFAULT NULL,
`jasperCredentialsId` int(10) unsigned DEFAULT NULL,
`hubCredentialsId` int(10) unsigned DEFAULT NULL,
`twoFactorCredentialsId` int(10) unsigned DEFAULT NULL,
`disableAnonContactNotifs` tinyint(4) DEFAULT '0',
`outlookCredentialsId` int(10) unsigned DEFAULT NULL,
`imapPollTimeout` int(11) DEFAULT '10',
`accessControlMethod` varchar(15) DEFAULT 'blacklist',
`loginTimeout` int(11) DEFAULT '900',
`failedLoginsBeforeCaptcha` int(11) DEFAULT '5',
`maxFailedLogins` int(11) DEFAULT '100',
`maxLoginHistory` int(11) DEFAULT '5000',
`maxFailedLoginHistory` int(11) DEFAULT '5000',
`scanUploads` tinyint(4) DEFAULT '0',
`enableFingerprinting` tinyint(4) DEFAULT '1',
`identityThreshold` int(11) DEFAULT '13',
`maxAnonContacts` int(11) DEFAULT '5000',
`maxAnonActions` int(11) DEFAULT '10000',
`performHostnameLookups` tinyint(4) DEFAULT '1',
`passwordRequirements` varchar(250) DEFAULT NULL,
KEY `twitterCredentialsId` (`twitterCredentialsId`),
KEY `linkedInCredentialsId` (`linkedInCredentialsId`),
KEY `dropboxCredentialsId` (`dropboxCredentialsId`),
KEY `googleCredentialsId` (`googleCredentialsId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
-- Dumping data for table `x2_admin`
INSERT INTO `x2_admin` VALUES
(1, 3600, 200, 30, 1, '[[admin_email]]', -1, 60, 1, 1, 'USD', 'name', 3000, 10, 60, NULL, 0, 0, NULL, NULL, NULL, 0, -1, -1, 'X2Engine', '[[admin_email]]', 200, 60, 0, NULL, 'user', NULL, 'mail', NULL, 25, 'user', NULL, NULL, NULL, 0, 0, [[timestamp]], 0, 0, 0, 1, 1, NULL, NULL, NULL, -1, -1, 1, 'none', 'opensource', -1, '[[admin_email]]', 'Tech Support', 'Tech Support', 'Hello {first} {last},\n\nJust wanted to check in with you about the support case you created. It is number {case}. We will get back to you as soon as possible.', 0, 0, NULL, NULL, NULL, 0, '["record_create","record_deleted","action_reminder","action_complete","calendar_event","case_escalated","email_opened","email_sent","notif","weblead_create","web_activity","workflow_complete","workflow_revert","workflow_start"]', 1, NULL, NULL, NULL, 0, 0, 'default', 300, 1, 10, '[[protocol]]://[[domhost]]', '[[relativeurl]]/', NULL, 0, '[[site_name]]', 'Your App Description', 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 1000000, NULL, NULL, NULL, NULL, 0, NULL, 10, NULL, NULL, NULL, 'blacklist', NULL, NULL, 900, 5, 100, 5000, 5000, 0, 1, 13, 5000, 10000, 1, NULL);
-- --------------------------------------------------------
-- Table structure for table `x2_anon_contact`
CREATE TABLE `x2_anon_contact` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`createDate` bigint(20) NOT NULL,
`lastUpdated` bigint(20) DEFAULT NULL,
`fingerprintId` int(11) NOT NULL,
`trackingKey` varchar(32) DEFAULT NULL,
`email` varchar(250) DEFAULT NULL,
`reverseIp` varchar(250) DEFAULT NULL,
`leadscore` int(11) DEFAULT NULL,
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `x2_api_hooks`
CREATE TABLE `x2_api_hooks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`event` varchar(50) DEFAULT NULL,
`modelName` varchar(100) DEFAULT NULL,
`target_url` varchar(255) DEFAULT NULL,
`userId` int(11) NOT NULL DEFAULT '1',
`directPayload` tinyint(4) DEFAULT '0',
`createDate` bigint(20) DEFAULT NULL,
KEY `event` (`event`,`modelName`),
KEY `createDate` (`createDate`),
KEY `target_url` (`target_url`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `x2_auth_assignment`
CREATE TABLE `x2_auth_assignment` (
`itemname` varchar(64) NOT NULL,
`userid` varchar(64) NOT NULL,
PRIMARY KEY (`itemname`,`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `x2_auth_cache`
CREATE TABLE `x2_auth_cache` (
`authItem` varchar(100) NOT NULL,
`userId` int(11) NOT NULL,
`expire` int(11) NOT NULL,
`value` tinyint(1) DEFAULT NULL,
`params` varchar(100) NOT NULL,
PRIMARY KEY (`userId`,`authItem`,`params`),
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `x2_auth_item`
CREATE TABLE `x2_auth_item` (
`name` varchar(64) NOT NULL,
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- Dumping data for table `x2_auth_item`
INSERT INTO `x2_auth_item` VALUES
('AccountsAccountsCampaign', 0, '', NULL, 'N;'),
('AccountsAccountsReport', 0, '', NULL, 'N;'),
('AccountsAddUser', 0, '', NULL, 'N;'),
('AccountsAdmin', 0, '', NULL, 'N;'),
('AccountsAdminAccess', 1, '', NULL, 'N;'),
('AccountsAjaxGetModelAutocomplete', 0, '', NULL, 'N;'),
('AccountsBasicAccess', 1, '', NULL, 'N;'),
('AccountsCreate', 0, '', NULL, 'N;'),
('AccountsDelete', 0, '', NULL, 'N;'),
('AccountsDeleteNote', 0, '', NULL, 'N;'),
('AccountsDeletePrivate', 1, 'Delete their own records.', 'return $this->checkAssignment($params);', 'N;'),
('AccountsExportAccountsReport', 0, '', NULL, 'N;'),
('AccountsFullAccess', 1, '', NULL, 'N;'),
('AccountsGetItems', 0, '', NULL, 'N;'),
('AccountsGetX2ModelInput', 0, '', NULL, 'N;'),
('AccountsIndex', 0, '', NULL, 'N;'),
('AccountsInlineEmail', 0, '', NULL, 'N;'),
('AccountsMinimumRequirements', 1, '', NULL, 'N;'),
('AccountsMobileActionHistoryAttachmentsPublish', 0, '', NULL, 'N;'),
('AccountsMobileActionHistoryPublish', 0, '', NULL, 'N;'),
('AccountsMobileCreate', 0, '', NULL, 'N;'),
('AccountsMobileDelete', 0, '', NULL, 'N;'),
('AccountsMobileIndex', 0, '', NULL, 'N;'),
('AccountsMobileUpdate', 0, '', NULL, 'N;'),
('AccountsMobileView', 0, '', NULL, 'N;'),
('AccountsPrivateFullAccess', 1, '', NULL, 'N;'),
('AccountsPrivateReadOnlyAccess', 1, '', NULL, 'N;'),
('AccountsPrivateUpdateAccess', 1, '', NULL, 'N;'),
('AccountsQtip', 0, '', NULL, 'N;'),
('AccountsQuickView', 0, '', NULL, 'N;'),
('AccountsReadOnlyAccess', 1, '', NULL, 'N;'),
('AccountsRemoveUser', 0, '', NULL, 'N;'),
('AccountsSearch', 0, '', NULL, 'N;'),
('AccountsShareAccount', 0, '', NULL, 'N;'),
('AccountsUpdate', 0, '', NULL, 'N;'),
('AccountsUpdateAccess', 1, '', NULL, 'N;'),
('AccountsUpdatePrivate', 1, 'Update their own records', 'return $this->checkAssignment($params);', 'N;'),
('AccountsView', 0, '', NULL, 'N;'),
('AccountsViewPrivate', 1, 'View their own records', 'return $this->checkAssignment($params);', 'N;'),
('AccountsX2GridViewMassAction', 0, '', NULL, 'N;'),
('ActionsAdmin', 0, '', NULL, 'N;'),
('ActionsAdminAccess', 1, '', NULL, 'N;'),
('ActionsAjaxGetModelAutocomplete', 0, '', NULL, 'N;'),
('ActionsBasicAccess', 1, '', NULL, 'N;'),
('ActionsCaptcha', 0, '', 'return true', 'N;'),
('ActionsComplete', 0, '', NULL, 'N;'),
('ActionsCompleteSelected', 0, '', NULL, 'N;'),
('ActionsCopyEvent', 0, '', NULL, 'N;'),
('ActionsCreate', 0, '', NULL, 'N;'),