0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
sugarcrm
/
6.5.16-25
/
standard
/
scripts
/
[
Home
]
File: schema.mysql
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Estructura de tabla para la tabla `accounts` -- CREATE TABLE IF NOT EXISTS `accounts` ( `id` char(36) NOT NULL, `name` varchar(150) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `description` text, `deleted` tinyint(1) DEFAULT '0', `assigned_user_id` char(36) DEFAULT NULL, `account_type` varchar(50) DEFAULT NULL, `industry` varchar(50) DEFAULT NULL, `annual_revenue` varchar(100) DEFAULT NULL, `phone_fax` varchar(100) DEFAULT NULL, `billing_address_street` varchar(150) DEFAULT NULL, `billing_address_city` varchar(100) DEFAULT NULL, `billing_address_state` varchar(100) DEFAULT NULL, `billing_address_postalcode` varchar(20) DEFAULT NULL, `billing_address_country` varchar(255) DEFAULT NULL, `rating` varchar(100) DEFAULT NULL, `phone_office` varchar(100) DEFAULT NULL, `phone_alternate` varchar(100) DEFAULT NULL, `website` varchar(255) DEFAULT NULL, `ownership` varchar(100) DEFAULT NULL, `employees` varchar(10) DEFAULT NULL, `ticker_symbol` varchar(10) DEFAULT NULL, `shipping_address_street` varchar(150) DEFAULT NULL, `shipping_address_city` varchar(100) DEFAULT NULL, `shipping_address_state` varchar(100) DEFAULT NULL, `shipping_address_postalcode` varchar(20) DEFAULT NULL, `shipping_address_country` varchar(255) DEFAULT NULL, `parent_id` char(36) DEFAULT NULL, `sic_code` varchar(10) DEFAULT NULL, `campaign_id` char(36) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_accnt_id_del` (`id`,`deleted`), KEY `idx_accnt_name_del` (`name`,`deleted`), KEY `idx_accnt_assigned_del` (`deleted`,`assigned_user_id`), KEY `idx_accnt_parent_id` (`parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `accounts_audit` -- CREATE TABLE IF NOT EXISTS `accounts_audit` ( `id` char(36) NOT NULL, `parent_id` char(36) NOT NULL, `date_created` datetime DEFAULT NULL, `created_by` varchar(36) DEFAULT NULL, `field_name` varchar(100) DEFAULT NULL, `data_type` varchar(100) DEFAULT NULL, `before_value_string` varchar(255) DEFAULT NULL, `after_value_string` varchar(255) DEFAULT NULL, `before_value_text` text, `after_value_text` text, PRIMARY KEY (`id`), KEY `idx_accounts_parent_id` (`parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `accounts_bugs` -- CREATE TABLE IF NOT EXISTS `accounts_bugs` ( `id` varchar(36) NOT NULL, `account_id` varchar(36) DEFAULT NULL, `bug_id` varchar(36) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_acc_bug_acc` (`account_id`), KEY `idx_acc_bug_bug` (`bug_id`), KEY `idx_account_bug` (`account_id`,`bug_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `accounts_cases` -- CREATE TABLE IF NOT EXISTS `accounts_cases` ( `id` varchar(36) NOT NULL, `account_id` varchar(36) DEFAULT NULL, `case_id` varchar(36) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_acc_case_acc` (`account_id`), KEY `idx_acc_acc_case` (`case_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `accounts_contacts` -- CREATE TABLE IF NOT EXISTS `accounts_contacts` ( `id` varchar(36) NOT NULL, `contact_id` varchar(36) DEFAULT NULL, `account_id` varchar(36) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_account_contact` (`account_id`,`contact_id`), KEY `idx_contid_del_accid` (`contact_id`,`deleted`,`account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `accounts_opportunities` -- CREATE TABLE IF NOT EXISTS `accounts_opportunities` ( `id` varchar(36) NOT NULL, `opportunity_id` varchar(36) DEFAULT NULL, `account_id` varchar(36) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_account_opportunity` (`account_id`,`opportunity_id`), KEY `idx_oppid_del_accid` (`opportunity_id`,`deleted`,`account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `acl_actions` -- CREATE TABLE IF NOT EXISTS `acl_actions` ( `id` char(36) NOT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `name` varchar(150) DEFAULT NULL, `category` varchar(100) DEFAULT NULL, `acltype` varchar(100) DEFAULT NULL, `aclaccess` int(3) DEFAULT NULL, `deleted` tinyint(1) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_aclaction_id_del` (`id`,`deleted`), KEY `idx_category_name` (`category`,`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `acl_actions` -- INSERT INTO `acl_actions` (`id`, `date_entered`, `date_modified`, `modified_user_id`, `created_by`, `name`, `category`, `acltype`, `aclaccess`, `deleted`) VALUES ('10a32313-fded-6f09-e79f-519b40f52527', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'EAPM', 'module', 89, 0), ('10ff6723-d85e-2bad-b0f5-519b40e77233', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'EAPM', 'module', 90, 0), ('11722a72-8628-495e-7d9b-519b40243294', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'EAPM', 'module', 90, 0), ('11d69383-fe0f-8570-3444-519b40cbc3f7', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'EAPM', 'module', 90, 0), ('123076d6-52e8-1f88-73c6-519b40069414', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'EAPM', 'module', 90, 0), ('12866988-a613-ed99-d958-519b40c1bd00', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'EAPM', 'module', 90, 0), ('12d817f8-90f4-7574-7f4a-519b407af136', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'EAPM', 'module', 90, 0), ('132775f3-14ac-167b-ba7f-519b40e46079', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'EAPM', 'module', 90, 0), ('21dd07b6-005d-4411-625e-519b40e14d31', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'Campaigns', 'module', 89, 0), ('227126f2-b006-30d3-f240-519b40181bdb', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'Campaigns', 'module', 90, 0), ('22f387e0-3437-ae6f-ba63-519b409adc70', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'Campaigns', 'module', 90, 0), ('23766d13-e07b-7122-fb0d-519b401628fa', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'Campaigns', 'module', 90, 0), ('23f3db2f-019b-9bab-ebe6-519b40f40985', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'Campaigns', 'module', 90, 0), ('241e3c27-c538-d6da-4661-519b40e1d42e', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'Calls', 'module', 89, 0), ('24888881-bb0c-2742-83bd-519b405ac82f', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'Campaigns', 'module', 90, 0), ('24b17161-6794-3e37-059f-519b40c93077', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'Calls', 'module', 90, 0), ('2502d59c-4e9b-c6af-2b97-519b405ce21e', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'Campaigns', 'module', 90, 0), ('25420fff-5c16-8622-d4bd-519b40125cd9', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'Calls', 'module', 90, 0), ('259c7c87-c191-129a-0c50-519b40f36c92', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'Calls', 'module', 90, 0), ('25a873a5-f46f-87a1-3b1b-519b40d2f50e', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'Campaigns', 'module', 90, 0), ('25f0a723-7653-e429-69ae-519b4092d528', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'Calls', 'module', 90, 0), ('264bc235-008a-653b-2d8e-519b40bc26d1', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'Calls', 'module', 90, 0), ('26dc14b4-e722-cc0a-d4c9-519b406c7ffa', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'Calls', 'module', 90, 0), ('27334bd3-1c74-9011-30fe-519b4068deba', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'Calls', 'module', 90, 0), ('3bed9415-b0fa-18c1-f3b5-519b4085f248', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'ProspectLists', 'module', 89, 0), ('3c9783d7-e698-7923-bd28-519b4078b078', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'ProspectLists', 'module', 90, 0), ('3d2624ab-fe32-f404-e419-519b40eb24b5', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'ProspectLists', 'module', 90, 0), ('3d9bc14d-0834-c5de-8131-519b405cf2c9', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'ProspectLists', 'module', 90, 0), ('3e10ed2b-2a68-1980-cdaf-519b40a23d4d', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'ProspectLists', 'module', 90, 0), ('3e7a5e14-8f27-b174-129c-519b403d8ff4', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'Emails', 'module', 89, 0), ('3e7c4ae4-7fd5-8721-55a2-519b403fb191', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'ProspectLists', 'module', 90, 0), ('3ed3c2bc-c69d-1eeb-da68-519b40c9cf94', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'ProspectLists', 'module', 90, 0), ('3f1a1a42-2d14-d5cc-45bd-519b40bc8a83', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'Emails', 'module', 90, 0), ('3f3f8991-e9ae-9364-03f6-519b405e0ab4', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'ProspectLists', 'module', 90, 0), ('3fb55700-3101-4222-4342-519b405cf57a', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'Emails', 'module', 90, 0), ('4042c23c-b096-7f55-3c03-519b408312e3', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'Emails', 'module', 90, 0), ('40e18a29-73ab-7c6e-afaf-519b4099fc9c', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'Emails', 'module', 90, 0), ('4213668d-d669-fb8d-6c6b-519b40f78293', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'Emails', 'module', 90, 0), ('42afc37e-75fb-d060-d035-519b40e42fbc', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'Emails', 'module', 90, 0), ('43dc581f-07eb-ee5d-34d6-519b4068da7f', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'Emails', 'module', 90, 0), ('45de3284-7650-b4d0-9d6b-519b40b0cba1', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'Prospects', 'module', 89, 0), ('464d15dd-ae99-a582-569d-519b40b5f4bf', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'Prospects', 'module', 90, 0), ('46ac77c0-1262-2ea4-ff5e-519b4011701f', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'Prospects', 'module', 90, 0), ('47066e1f-0b92-ebc0-50e9-519b40970d95', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'Prospects', 'module', 90, 0), ('47b222e9-881b-3625-5e2e-519b40f95a88', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'Prospects', 'module', 90, 0), ('4807ebb0-2e32-8821-9455-519b407f62c1', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'Prospects', 'module', 90, 0), ('48616cc4-d9a6-d515-b6d4-519b4006bac4', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'Prospects', 'module', 90, 0), ('48b2dbb8-75ac-1ce3-9cd4-519b40e8d854', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'Prospects', 'module', 90, 0), ('59ae9465-5947-d99d-85fb-519b40dee628', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'EmailMarketing', 'module', 89, 0), ('5a3bb8a6-cbfb-4a51-5dbc-519b40cd214e', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'EmailMarketing', 'module', 90, 0), ('5a6a2509-23f3-683a-d3ec-519b409f4e0d', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'Meetings', 'module', 89, 0), ('5ab816ab-88c7-e216-5426-519b403d6c83', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'EmailMarketing', 'module', 90, 0), ('5b07227a-0f7e-e4ae-6b9c-519b401016ec', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'Meetings', 'module', 90, 0), ('5b3b8aa7-4054-07b1-ac56-519b40fa0e9d', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'EmailMarketing', 'module', 90, 0), ('5be9d543-d603-3a56-e2fa-519b40206cb3', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'EmailMarketing', 'module', 90, 0), ('5c544125-3dc6-6486-dec2-519b40a7404b', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'Meetings', 'module', 90, 0), ('5c673231-3a78-352d-b38b-519b40ac508b', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'EmailMarketing', 'module', 90, 0), ('5ce13a34-1a65-4303-3f2a-519b40ef2ece', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'Meetings', 'module', 90, 0), ('5cf3f81a-f316-8e8f-bd85-519b4046a07a', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'EmailMarketing', 'module', 90, 0), ('5d72c29b-90dc-9c86-b58f-519b40fcdfad', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'Meetings', 'module', 90, 0), ('5d7a22f3-adf3-6838-f463-519b407a4512', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'EmailMarketing', 'module', 90, 0), ('5e0cf721-376e-addc-81e0-519b40ff30df', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'Meetings', 'module', 90, 0), ('5e93e025-8caa-e133-f04a-519b40d09c2d', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'Meetings', 'module', 90, 0), ('5f9840cc-6b48-01df-bc3a-519b40f75286', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'Meetings', 'module', 90, 0), ('628455f7-fe44-fa34-1e5b-519b4072d33f', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'Leads', 'module', 89, 0), ('6360c28a-21f0-a14f-699d-519b40d17296', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'Leads', 'module', 90, 0), ('63e907f6-3300-f7d6-2a21-519b4094b8af', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'Leads', 'module', 90, 0), ('6477611a-4418-2f13-af2e-519b405263c8', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'Leads', 'module', 90, 0), ('64f9bb7f-9008-66a9-a9b5-519b4023aad9', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'Leads', 'module', 90, 0), ('65b30070-b5c3-0d9a-ee94-519b40591c1e', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'Leads', 'module', 90, 0), ('662dc8fc-0087-8002-2ecb-519b409ab37e', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'Leads', 'module', 90, 0), ('66b8066b-ad29-8574-35ef-519b4020030c', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'Leads', 'module', 90, 0), ('6d7927ec-327f-ee45-dad0-519b4077b743', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'Tasks', 'module', 89, 0), ('6e0ae086-c3e4-78ae-9bef-519b405b4c3d', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'Tasks', 'module', 90, 0), ('6ec98d09-12ac-6fe5-32df-519b406be1a8', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'Tasks', 'module', 90, 0), ('6f2cd816-dcb2-6b24-93d4-519b4064dc6e', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'Tasks', 'module', 90, 0), ('6f976b82-4026-9ced-41d9-519b405df160', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'Tasks', 'module', 90, 0), ('6fedc7c7-842d-3141-6152-519b408f02bd', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'Tasks', 'module', 90, 0), ('7041504c-b23a-13fa-8c12-519b40c98409', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'Tasks', 'module', 90, 0), ('709a6e05-81dd-4336-9309-519b4065f677', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'Tasks', 'module', 90, 0), ('8d660b8d-e6a5-a29c-c10c-519b40379719', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'ProjectTask', 'module', 89, 0), ('9051e034-fd73-452f-8a63-519b40240f84', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'Cases', 'module', 89, 0), ('90bd4e80-9527-edea-4182-519b40572774', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'Cases', 'module', 90, 0), ('91324068-e957-7467-26ee-519b407d48f6', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'Cases', 'module', 90, 0), ('91b72a91-460f-e20e-8940-519b40573e86', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'Cases', 'module', 90, 0), ('9236fd76-1eb3-e44f-f253-519b40e4d9ae', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'Cases', 'module', 90, 0), ('927c0cf3-3073-09e4-ae84-519b40efa7c1', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'Notes', 'module', 89, 0), ('92b003ad-967e-9f96-1971-519b404f0885', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'Cases', 'module', 90, 0), ('933a418b-a608-5f53-51a1-519b40cc8a34', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'Cases', 'module', 90, 0), ('94396042-1644-377b-f3d4-519b402fd0b4', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'Cases', 'module', 90, 0), ('96e202db-87c2-0001-1313-519b40ef3e2c', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'ProjectTask', 'module', 90, 0), ('9a800f3c-00e1-4378-4bb7-519b40d701d9', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'Notes', 'module', 90, 0), ('9d3d98a3-9425-12c5-2151-519b408cf1fd', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'Contacts', 'module', 89, 0), ('9da1c853-d459-95da-c00e-519b40cc5519', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'Contacts', 'module', 90, 0), ('9dfdbe20-8f5d-746f-24b6-519b405fa8dd', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'Contacts', 'module', 90, 0), ('9e67be60-e349-951e-7372-519b407474dd', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'Contacts', 'module', 90, 0), ('9eb6b76e-38b2-9d51-77d2-519b402d62a3', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'Contacts', 'module', 90, 0), ('9f5a9b73-a293-ec07-d8b5-519b40a057db', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'Contacts', 'module', 90, 0), ('9f6d01ba-6ecf-a272-d301-519b4040069f', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'ProjectTask', 'module', 90, 0), ('9fad29c0-bfb6-b24f-b290-519b407d818c', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'Contacts', 'module', 90, 0), ('a002fc84-ccf1-fed8-5c3c-519b40a67e1a', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'Contacts', 'module', 90, 0), ('a0f50492-c5b1-eb61-36e7-519b40a06dba', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'Notes', 'module', 90, 0), ('a86b0fcb-757f-b2ce-7595-519b40c49542', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'ProjectTask', 'module', 90, 0), ('b034054a-6f37-8e5f-d6c3-519b40b6b637', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'ProjectTask', 'module', 90, 0), ('b0bc4447-172c-c21a-977f-519b40948bbe', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'Bugs', 'module', 89, 0), ('b1504d4e-f2ab-a807-28d9-519b40a48317', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'Bugs', 'module', 90, 0), ('b1d61d26-008e-cfce-ac15-519b40e4ddc0', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'Bugs', 'module', 90, 0), ('b264c1b7-dab1-0d92-8ca7-519b40ee9ff1', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'Bugs', 'module', 90, 0), ('b2e668d5-73b4-e0ab-8f63-519b4030efbc', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'Bugs', 'module', 90, 0), ('b36f942c-f070-28b2-ba75-519b40203a02', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'Bugs', 'module', 90, 0), ('b3f22dbc-ac75-20b0-ec20-519b40f7f1cd', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'Bugs', 'module', 90, 0), ('b476e85c-96d0-9f0a-57e0-519b4054de17', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'Bugs', 'module', 90, 0), ('b6460e83-2717-e0eb-b0f7-519b40cd2d98', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'ProjectTask', 'module', 90, 0), ('b6aa01fa-10e3-c4a7-4d05-519b4058f8ce', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'Notes', 'module', 90, 0), ('bbc807cf-a431-d15c-4f81-519b40e0e14a', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'ProjectTask', 'module', 90, 0), ('bde4011a-2b3a-0fd0-fbfe-519b4082f57e', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'Notes', 'module', 90, 0), ('c1140e29-8a55-a5be-d747-519b402d1dae', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'ProjectTask', 'module', 90, 0), ('c2aec594-e82b-0be3-5684-519b408c1375', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'Accounts', 'module', 89, 0), ('c3a265b7-4b4d-576c-2304-519b4065171a', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'Accounts', 'module', 90, 0), ('c42414f9-c4cf-9f12-9aad-519b407680d0', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'Accounts', 'module', 90, 0), ('c4af0bab-666b-a254-9853-519b409f9998', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'Accounts', 'module', 90, 0), ('c52e7734-0c17-278b-8329-519b4094a30d', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'Accounts', 'module', 90, 0), ('c5f112d2-bdd8-63d6-1a95-519b40f55228', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'Accounts', 'module', 90, 0), ('c6427b13-ba54-9b47-c8dd-519b400addf3', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'Documents', 'module', 89, 0), ('c683fe53-e0be-fdf5-cc21-519b4044267f', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'Accounts', 'module', 90, 0), ('c6ba0821-7c0f-7028-47a0-519b40301930', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'Documents', 'module', 90, 0), ('c70d2023-deb4-dbdb-d718-519b4044fdc8', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'Accounts', 'module', 90, 0), ('c71fd47a-4485-36d3-3e55-519b40860161', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'Documents', 'module', 90, 0), ('c780303c-6357-1fad-a64d-519b4024f4b4', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'Documents', 'module', 90, 0), ('c7d9103e-0ffb-3357-edee-519b401f12f9', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'Documents', 'module', 90, 0), ('c82d9b08-2f8e-6ebd-914a-519b408681ab', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'Documents', 'module', 90, 0), ('c88f1ad2-35f7-1a7a-f1c8-519b4098f6dd', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'Documents', 'module', 90, 0), ('c8db7a3a-d8a0-2ddc-dfa4-519b40888eac', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'Documents', 'module', 90, 0), ('cd47cb0c-8c2e-a635-9c33-519b40caa26f', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'Users', 'module', 89, 0), ('cddec2d9-bc23-984f-0a66-519b40d15f5a', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'Users', 'module', 90, 0), ('ce665053-92b8-fb1f-bf7f-519b40021c06', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'Users', 'module', 90, 0), ('ced908a0-2b2b-5771-ad14-519b40527e89', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'Notes', 'module', 90, 0), ('cee393f8-b639-ffc7-77b8-519b409fce3f', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'Users', 'module', 90, 0), ('cf5f70ad-12a1-4c91-9544-519b4053cd6b', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'Users', 'module', 90, 0), ('cfd9b056-3437-79ad-a0d1-519b408240f8', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'Users', 'module', 90, 0), ('d0861a70-ed0c-5187-10cb-519b40577a5c', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'Users', 'module', 90, 0), ('d10097c3-45da-b6e7-87b5-519b40c33fb3', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'Users', 'module', 90, 0), ('d97d058b-4b07-1d59-222b-519b403fe2ed', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'Notes', 'module', 90, 0), ('da9d8db7-f1b4-fdd4-8b36-519b403591b5', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'Opportunities', 'module', 89, 0), ('db1835a0-d4ef-2c04-4498-519b406246cd', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'Opportunities', 'module', 90, 0), ('db73ada8-ebfd-810b-9864-519b40cf35ab', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'Opportunities', 'module', 90, 0), ('dbd10be6-bcc1-da42-2918-519b40be9d28', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'Opportunities', 'module', 90, 0), ('dc2b90cd-4404-037c-fc2e-519b4035bade', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'Opportunities', 'module', 90, 0), ('dc7d7dad-7a35-97fb-69fa-519b40a8e673', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'Opportunities', 'module', 90, 0), ('dccc33dc-7e35-e07e-b4ae-519b4048a766', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'Opportunities', 'module', 90, 0), ('dd3b0aef-117c-d434-ecd2-519b4016bce4', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'Opportunities', 'module', 90, 0), ('ece2e534-8115-f003-78f8-519b40a9cc27', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'Project', 'module', 89, 0), ('ed72d154-a003-b511-225b-519b4086515d', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'Project', 'module', 90, 0), ('edf2adc1-70bb-80b8-2ddc-519b40530c3b', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'Project', 'module', 90, 0), ('eec06157-783d-b595-5747-519b404c4a1b', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'access', 'EmailTemplates', 'module', 89, 0), ('eed2ac7c-5d82-2e39-6fad-519b4044707a', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'Project', 'module', 90, 0), ('ef5c9043-ca0f-1113-e6cd-519b4083cf97', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'view', 'EmailTemplates', 'module', 90, 0), ('ef653a27-4753-f1e0-0e1b-519b40d6ace3', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'Project', 'module', 90, 0), ('efe6ad69-8dc9-6c76-81f9-519b40c2905a', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'list', 'EmailTemplates', 'module', 90, 0), ('f0075528-dd72-26bb-2847-519b4057972a', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'Project', 'module', 90, 0), ('f07ae20f-ee65-25f2-5b1e-519b4085067a', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'edit', 'EmailTemplates', 'module', 90, 0), ('f08e4e44-7fc7-06ac-4f6a-519b40042878', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'Project', 'module', 90, 0), ('f10cfe38-1eb1-bcfb-834b-519b40c9ecd8', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'delete', 'EmailTemplates', 'module', 90, 0), ('f1199e5b-d0ef-32ab-b04a-519b40f3b83d', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'Project', 'module', 90, 0), ('f187c56c-ce12-cf18-3446-519b406e1b64', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'import', 'EmailTemplates', 'module', 90, 0), ('f201f88b-1a68-2cdb-8d24-519b404850a9', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'export', 'EmailTemplates', 'module', 90, 0), ('f27c850f-5350-83dc-8019-519b408733fc', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'EmailTemplates', 'module', 90, 0), ('f6a80a3b-c6a8-61b8-92db-519b403d3cdc', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '', 'massupdate', 'Notes', 'module', 90, 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `acl_roles` -- CREATE TABLE IF NOT EXISTS `acl_roles` ( `id` char(36) NOT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `name` varchar(150) DEFAULT NULL, `description` text, `deleted` tinyint(1) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_aclrole_id_del` (`id`,`deleted`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `acl_roles_actions` -- CREATE TABLE IF NOT EXISTS `acl_roles_actions` ( `id` varchar(36) NOT NULL, `role_id` varchar(36) DEFAULT NULL, `action_id` varchar(36) DEFAULT NULL, `access_override` int(3) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_acl_role_id` (`role_id`), KEY `idx_acl_action_id` (`action_id`), KEY `idx_aclrole_action` (`role_id`,`action_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `acl_roles_users` -- CREATE TABLE IF NOT EXISTS `acl_roles_users` ( `id` varchar(36) NOT NULL, `role_id` varchar(36) DEFAULT NULL, `user_id` varchar(36) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_aclrole_id` (`role_id`), KEY `idx_acluser_id` (`user_id`), KEY `idx_aclrole_user` (`role_id`,`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `address_book` -- CREATE TABLE IF NOT EXISTS `address_book` ( `assigned_user_id` char(36) NOT NULL, `bean` varchar(50) DEFAULT NULL, `bean_id` char(36) NOT NULL, KEY `ab_user_bean_idx` (`assigned_user_id`,`bean`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `bugs` -- CREATE TABLE IF NOT EXISTS `bugs` ( `id` char(36) NOT NULL, `name` varchar(255) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `description` text, `deleted` tinyint(1) DEFAULT '0', `assigned_user_id` char(36) DEFAULT NULL, `bug_number` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(255) DEFAULT NULL, `status` varchar(100) DEFAULT NULL, `priority` varchar(100) DEFAULT NULL, `resolution` varchar(255) DEFAULT NULL, `work_log` text, `found_in_release` varchar(255) DEFAULT NULL, `fixed_in_release` varchar(255) DEFAULT NULL, `source` varchar(255) DEFAULT NULL, `product_category` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `bugsnumk` (`bug_number`), KEY `bug_number` (`bug_number`), KEY `idx_bug_name` (`name`), KEY `idx_bugs_assigned_user` (`assigned_user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `bugs_audit` -- CREATE TABLE IF NOT EXISTS `bugs_audit` ( `id` char(36) NOT NULL, `parent_id` char(36) NOT NULL, `date_created` datetime DEFAULT NULL, `created_by` varchar(36) DEFAULT NULL, `field_name` varchar(100) DEFAULT NULL, `data_type` varchar(100) DEFAULT NULL, `before_value_string` varchar(255) DEFAULT NULL, `after_value_string` varchar(255) DEFAULT NULL, `before_value_text` text, `after_value_text` text, PRIMARY KEY (`id`), KEY `idx_bugs_parent_id` (`parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `calls` -- CREATE TABLE IF NOT EXISTS `calls` ( `id` char(36) NOT NULL, `name` varchar(50) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `description` text, `deleted` tinyint(1) DEFAULT '0', `assigned_user_id` char(36) DEFAULT NULL, `duration_hours` int(2) DEFAULT NULL, `duration_minutes` int(2) DEFAULT NULL, `date_start` datetime DEFAULT NULL, `date_end` datetime DEFAULT NULL, `parent_type` varchar(255) DEFAULT NULL, `status` varchar(100) DEFAULT 'Planned', `direction` varchar(100) DEFAULT NULL, `parent_id` char(36) DEFAULT NULL, `reminder_time` int(11) DEFAULT '-1', `email_reminder_time` int(11) DEFAULT '-1', `email_reminder_sent` tinyint(1) DEFAULT '0', `outlook_id` varchar(255) DEFAULT NULL, `repeat_type` varchar(36) DEFAULT NULL, `repeat_interval` int(3) DEFAULT '1', `repeat_dow` varchar(7) DEFAULT NULL, `repeat_until` date DEFAULT NULL, `repeat_count` int(7) DEFAULT NULL, `repeat_parent_id` char(36) DEFAULT NULL, `recurring_source` varchar(36) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_call_name` (`name`), KEY `idx_status` (`status`), KEY `idx_calls_date_start` (`date_start`), KEY `idx_calls_par_del` (`parent_id`,`parent_type`,`deleted`), KEY `idx_calls_assigned_del` (`deleted`,`assigned_user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `calls_contacts` -- CREATE TABLE IF NOT EXISTS `calls_contacts` ( `id` varchar(36) NOT NULL, `call_id` varchar(36) DEFAULT NULL, `contact_id` varchar(36) DEFAULT NULL, `required` varchar(1) DEFAULT '1', `accept_status` varchar(25) DEFAULT 'none', `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_con_call_call` (`call_id`), KEY `idx_con_call_con` (`contact_id`), KEY `idx_call_contact` (`call_id`,`contact_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `calls_leads` -- CREATE TABLE IF NOT EXISTS `calls_leads` ( `id` varchar(36) NOT NULL, `call_id` varchar(36) DEFAULT NULL, `lead_id` varchar(36) DEFAULT NULL, `required` varchar(1) DEFAULT '1', `accept_status` varchar(25) DEFAULT 'none', `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_lead_call_call` (`call_id`), KEY `idx_lead_call_lead` (`lead_id`), KEY `idx_call_lead` (`call_id`,`lead_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `calls_users` -- CREATE TABLE IF NOT EXISTS `calls_users` ( `id` varchar(36) NOT NULL, `call_id` varchar(36) DEFAULT NULL, `user_id` varchar(36) DEFAULT NULL, `required` varchar(1) DEFAULT '1', `accept_status` varchar(25) DEFAULT 'none', `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_usr_call_call` (`call_id`), KEY `idx_usr_call_usr` (`user_id`), KEY `idx_call_users` (`call_id`,`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `campaigns` -- CREATE TABLE IF NOT EXISTS `campaigns` ( `id` char(36) NOT NULL, `name` varchar(50) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', `assigned_user_id` char(36) DEFAULT NULL, `tracker_key` int(11) NOT NULL AUTO_INCREMENT, `tracker_count` int(11) DEFAULT '0', `refer_url` varchar(255) DEFAULT 'http://', `tracker_text` varchar(255) DEFAULT NULL, `start_date` date DEFAULT NULL, `end_date` date DEFAULT NULL, `status` varchar(100) DEFAULT NULL, `impressions` int(11) DEFAULT '0', `currency_id` char(36) DEFAULT NULL, `budget` double DEFAULT NULL, `expected_cost` double DEFAULT NULL, `actual_cost` double DEFAULT NULL, `expected_revenue` double DEFAULT NULL, `campaign_type` varchar(100) DEFAULT NULL, `objective` text, `content` text, `frequency` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), KEY `camp_auto_tracker_key` (`tracker_key`), KEY `idx_campaign_name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `campaigns_audit` -- CREATE TABLE IF NOT EXISTS `campaigns_audit` ( `id` char(36) NOT NULL, `parent_id` char(36) NOT NULL, `date_created` datetime DEFAULT NULL, `created_by` varchar(36) DEFAULT NULL, `field_name` varchar(100) DEFAULT NULL, `data_type` varchar(100) DEFAULT NULL, `before_value_string` varchar(255) DEFAULT NULL, `after_value_string` varchar(255) DEFAULT NULL, `before_value_text` text, `after_value_text` text, PRIMARY KEY (`id`), KEY `idx_campaigns_parent_id` (`parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `campaign_log` -- CREATE TABLE IF NOT EXISTS `campaign_log` ( `id` char(36) NOT NULL, `campaign_id` char(36) DEFAULT NULL, `target_tracker_key` varchar(36) DEFAULT NULL, `target_id` varchar(36) DEFAULT NULL, `target_type` varchar(100) DEFAULT NULL, `activity_type` varchar(100) DEFAULT NULL, `activity_date` datetime DEFAULT NULL, `related_id` varchar(36) DEFAULT NULL, `related_type` varchar(100) DEFAULT NULL, `archived` tinyint(1) DEFAULT '0', `hits` int(11) DEFAULT '0', `list_id` char(36) DEFAULT NULL, `deleted` tinyint(1) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `more_information` varchar(100) DEFAULT NULL, `marketing_id` char(36) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_camp_tracker` (`target_tracker_key`), KEY `idx_camp_campaign_id` (`campaign_id`), KEY `idx_camp_more_info` (`more_information`), KEY `idx_target_id` (`target_id`), KEY `idx_target_id_deleted` (`target_id`,`deleted`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `campaign_trkrs` -- CREATE TABLE IF NOT EXISTS `campaign_trkrs` ( `id` char(36) NOT NULL, `tracker_name` varchar(30) DEFAULT NULL, `tracker_url` varchar(255) DEFAULT 'http://', `tracker_key` int(11) NOT NULL AUTO_INCREMENT, `campaign_id` char(36) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `is_optout` tinyint(1) DEFAULT '0', `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `campaign_tracker_key_idx` (`tracker_key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `cases` -- CREATE TABLE IF NOT EXISTS `cases` ( `id` char(36) NOT NULL, `name` varchar(255) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `description` text, `deleted` tinyint(1) DEFAULT '0', `assigned_user_id` char(36) DEFAULT NULL, `case_number` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(255) DEFAULT NULL, `status` varchar(100) DEFAULT NULL, `priority` varchar(100) DEFAULT NULL, `resolution` text, `work_log` text, `account_id` char(36) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `casesnumk` (`case_number`), KEY `case_number` (`case_number`), KEY `idx_case_name` (`name`), KEY `idx_account_id` (`account_id`), KEY `idx_cases_stat_del` (`assigned_user_id`,`status`,`deleted`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `cases_audit` -- CREATE TABLE IF NOT EXISTS `cases_audit` ( `id` char(36) NOT NULL, `parent_id` char(36) NOT NULL, `date_created` datetime DEFAULT NULL, `created_by` varchar(36) DEFAULT NULL, `field_name` varchar(100) DEFAULT NULL, `data_type` varchar(100) DEFAULT NULL, `before_value_string` varchar(255) DEFAULT NULL, `after_value_string` varchar(255) DEFAULT NULL, `before_value_text` text, `after_value_text` text, PRIMARY KEY (`id`), KEY `idx_cases_parent_id` (`parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `cases_bugs` -- CREATE TABLE IF NOT EXISTS `cases_bugs` ( `id` varchar(36) NOT NULL, `case_id` varchar(36) DEFAULT NULL, `bug_id` varchar(36) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_cas_bug_cas` (`case_id`), KEY `idx_cas_bug_bug` (`bug_id`), KEY `idx_case_bug` (`case_id`,`bug_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `config` -- CREATE TABLE IF NOT EXISTS `config` ( `category` varchar(32) DEFAULT NULL, `name` varchar(32) DEFAULT NULL, `value` text, KEY `idx_config_cat` (`category`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `config` -- INSERT INTO `config` (`category`, `name`, `value`) VALUES ('notify', 'fromaddress', 'do_not_reply@example.com'), ('notify', 'fromname', 'SugarCRM'), ('notify', 'send_by_default', '1'), ('notify', 'on', '1'), ('notify', 'send_from_assigning_user', '0'), ('info', 'sugar_version', '@@SUGAR_VERSION@@'), ('MySettings', 'tab', 'YToxNjp7aTowO3M6NDoiSG9tZSI7aToxO3M6ODoiQWNjb3VudHMiO2k6MjtzOjg6IkNvbnRhY3RzIjtpOjM7czoxMzoiT3Bwb3J0dW5pdGllcyI7aTo0O3M6NToiTGVhZHMiO2k6NTtzOjg6IkNhbGVuZGFyIjtpOjY7czo5OiJEb2N1bWVudHMiO2k6NztzOjY6IkVtYWlscyI7aTo4O3M6OToiQ2FtcGFpZ25zIjtpOjk7czo1OiJDYWxscyI7aToxMDtzOjg6Ik1lZXRpbmdzIjtpOjExO3M6NToiVGFza3MiO2k6MTI7czo1OiJOb3RlcyI7aToxMztzOjU6IkNhc2VzIjtpOjE0O3M6OToiUHJvc3BlY3RzIjtpOjE1O3M6MTM6IlByb3NwZWN0TGlzdHMiO30='), ('portal', 'on', '0'), ('tracker', 'Tracker', '1'), ('system', 'skypeout_on', '1'), ('sugarfeed', 'enabled', '1'), ('sugarfeed', 'module_UserFeed', '1'), ('sugarfeed', 'module_Cases', '1'), ('sugarfeed', 'module_Contacts', '1'), ('sugarfeed', 'module_Leads', '1'), ('sugarfeed', 'module_Opportunities', '1'), ('Update', 'CheckUpdates', '@@CHECK_FOR_UPDATES@@'), ('system', 'name', '@@TITLE@@'), ('license', 'msg_admin', ''), ('license', 'msg_all', ''), ('license', 'last_validation', 'success'), ('license', 'latest_versions', 'YToxOntpOjA7YToyOntzOjc6InZlcnNpb24iO3M6NjoiNi41LjEzIjtzOjExOiJkZXNjcmlwdGlvbiI7czoxNjM6IlRoZSBsYXRlc3QgdmVyc2lvbiBvZiBTdWdhckNSTSBpcyA2LjUuMTMuICBQbGVhc2UgdmlzaXQgPGEgaHJlZj0iaHR0cDovL3N1cHBvcnQuc3VnYXJjcm0uY29tIiB0YXJnZXQ9Il9uZXciPnN1cHBvcnQuc3VnYXJjcm0uY29tPC9hPiB0byBhY3F1aXJlIHRoZSBsYXRlc3QgdmVyc2lvbi4iO319'), ('Update', 'last_check_date', '1369129160'), ('system', 'adminwizard', '1'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `contacts` -- CREATE TABLE IF NOT EXISTS `contacts` ( `id` char(36) NOT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `description` text, `deleted` tinyint(1) DEFAULT '0', `assigned_user_id` char(36) DEFAULT NULL, `salutation` varchar(255) DEFAULT NULL, `first_name` varchar(100) DEFAULT NULL, `last_name` varchar(100) DEFAULT NULL, `title` varchar(100) DEFAULT NULL, `department` varchar(255) DEFAULT NULL, `do_not_call` tinyint(1) DEFAULT '0', `phone_home` varchar(100) DEFAULT NULL, `phone_mobile` varchar(100) DEFAULT NULL, `phone_work` varchar(100) DEFAULT NULL, `phone_other` varchar(100) DEFAULT NULL, `phone_fax` varchar(100) DEFAULT NULL, `primary_address_street` varchar(150) DEFAULT NULL, `primary_address_city` varchar(100) DEFAULT NULL, `primary_address_state` varchar(100) DEFAULT NULL, `primary_address_postalcode` varchar(20) DEFAULT NULL, `primary_address_country` varchar(255) DEFAULT NULL, `alt_address_street` varchar(150) DEFAULT NULL, `alt_address_city` varchar(100) DEFAULT NULL, `alt_address_state` varchar(100) DEFAULT NULL, `alt_address_postalcode` varchar(20) DEFAULT NULL, `alt_address_country` varchar(255) DEFAULT NULL, `assistant` varchar(75) DEFAULT NULL, `assistant_phone` varchar(100) DEFAULT NULL, `lead_source` varchar(255) DEFAULT NULL, `reports_to_id` char(36) DEFAULT NULL, `birthdate` date DEFAULT NULL, `campaign_id` char(36) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_cont_last_first` (`last_name`,`first_name`,`deleted`), KEY `idx_contacts_del_last` (`deleted`,`last_name`), KEY `idx_cont_del_reports` (`deleted`,`reports_to_id`,`last_name`), KEY `idx_reports_to_id` (`reports_to_id`), KEY `idx_del_id_user` (`deleted`,`id`,`assigned_user_id`), KEY `idx_cont_assigned` (`assigned_user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `contacts_audit` -- CREATE TABLE IF NOT EXISTS `contacts_audit` ( `id` char(36) NOT NULL, `parent_id` char(36) NOT NULL, `date_created` datetime DEFAULT NULL, `created_by` varchar(36) DEFAULT NULL, `field_name` varchar(100) DEFAULT NULL, `data_type` varchar(100) DEFAULT NULL, `before_value_string` varchar(255) DEFAULT NULL, `after_value_string` varchar(255) DEFAULT NULL, `before_value_text` text, `after_value_text` text, PRIMARY KEY (`id`), KEY `idx_contacts_parent_id` (`parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `contacts_bugs` -- CREATE TABLE IF NOT EXISTS `contacts_bugs` ( `id` varchar(36) NOT NULL, `contact_id` varchar(36) DEFAULT NULL, `bug_id` varchar(36) DEFAULT NULL, `contact_role` varchar(50) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_con_bug_con` (`contact_id`), KEY `idx_con_bug_bug` (`bug_id`), KEY `idx_contact_bug` (`contact_id`,`bug_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `contacts_cases` -- CREATE TABLE IF NOT EXISTS `contacts_cases` ( `id` varchar(36) NOT NULL, `contact_id` varchar(36) DEFAULT NULL, `case_id` varchar(36) DEFAULT NULL, `contact_role` varchar(50) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_con_case_con` (`contact_id`), KEY `idx_con_case_case` (`case_id`), KEY `idx_contacts_cases` (`contact_id`,`case_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `contacts_users` -- CREATE TABLE IF NOT EXISTS `contacts_users` ( `id` varchar(36) NOT NULL, `contact_id` varchar(36) DEFAULT NULL, `user_id` varchar(36) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_con_users_con` (`contact_id`), KEY `idx_con_users_user` (`user_id`), KEY `idx_contacts_users` (`contact_id`,`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `cron_remove_documents` -- CREATE TABLE IF NOT EXISTS `cron_remove_documents` ( `id` varchar(36) NOT NULL, `bean_id` varchar(36) DEFAULT NULL, `module` varchar(25) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_cron_remove_document_bean_id` (`bean_id`), KEY `idx_cron_remove_document_stamp` (`date_modified`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `currencies` -- CREATE TABLE IF NOT EXISTS `currencies` ( `id` char(36) NOT NULL, `name` varchar(36) DEFAULT NULL, `symbol` varchar(36) DEFAULT NULL, `iso4217` varchar(3) DEFAULT NULL, `conversion_rate` double DEFAULT '0', `status` varchar(100) DEFAULT NULL, `deleted` tinyint(1) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `created_by` char(36) NOT NULL, PRIMARY KEY (`id`), KEY `idx_currency_name` (`name`,`deleted`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `custom_fields` -- CREATE TABLE IF NOT EXISTS `custom_fields` ( `bean_id` varchar(36) DEFAULT NULL, `set_num` int(11) DEFAULT '0', `field0` varchar(255) DEFAULT NULL, `field1` varchar(255) DEFAULT NULL, `field2` varchar(255) DEFAULT NULL, `field3` varchar(255) DEFAULT NULL, `field4` varchar(255) DEFAULT NULL, `field5` varchar(255) DEFAULT NULL, `field6` varchar(255) DEFAULT NULL, `field7` varchar(255) DEFAULT NULL, `field8` varchar(255) DEFAULT NULL, `field9` varchar(255) DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', KEY `idx_beanid_set_num` (`bean_id`,`set_num`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `documents` -- CREATE TABLE IF NOT EXISTS `documents` ( `id` char(36) NOT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `description` text, `deleted` tinyint(1) DEFAULT '0', `assigned_user_id` char(36) DEFAULT NULL, `document_name` varchar(255) DEFAULT NULL, `doc_id` varchar(100) DEFAULT NULL, `doc_type` varchar(100) DEFAULT 'Sugar', `doc_url` varchar(255) DEFAULT NULL, `active_date` date DEFAULT NULL, `exp_date` date DEFAULT NULL, `category_id` varchar(100) DEFAULT NULL, `subcategory_id` varchar(100) DEFAULT NULL, `status_id` varchar(100) DEFAULT NULL, `document_revision_id` varchar(36) DEFAULT NULL, `related_doc_id` char(36) DEFAULT NULL, `related_doc_rev_id` char(36) DEFAULT NULL, `is_template` tinyint(1) DEFAULT '0', `template_type` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_doc_cat` (`category_id`,`subcategory_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `documents_accounts` -- CREATE TABLE IF NOT EXISTS `documents_accounts` ( `id` varchar(36) NOT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', `document_id` varchar(36) DEFAULT NULL, `account_id` varchar(36) DEFAULT NULL, PRIMARY KEY (`id`), KEY `documents_accounts_account_id` (`account_id`,`document_id`), KEY `documents_accounts_document_id` (`document_id`,`account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `documents_bugs` -- CREATE TABLE IF NOT EXISTS `documents_bugs` ( `id` varchar(36) NOT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', `document_id` varchar(36) DEFAULT NULL, `bug_id` varchar(36) DEFAULT NULL, PRIMARY KEY (`id`), KEY `documents_bugs_bug_id` (`bug_id`,`document_id`), KEY `documents_bugs_document_id` (`document_id`,`bug_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `documents_cases` -- CREATE TABLE IF NOT EXISTS `documents_cases` ( `id` varchar(36) NOT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', `document_id` varchar(36) DEFAULT NULL, `case_id` varchar(36) DEFAULT NULL, PRIMARY KEY (`id`), KEY `documents_cases_case_id` (`case_id`,`document_id`), KEY `documents_cases_document_id` (`document_id`,`case_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `documents_contacts` -- CREATE TABLE IF NOT EXISTS `documents_contacts` ( `id` varchar(36) NOT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', `document_id` varchar(36) DEFAULT NULL, `contact_id` varchar(36) DEFAULT NULL, PRIMARY KEY (`id`), KEY `documents_contacts_contact_id` (`contact_id`,`document_id`), KEY `documents_contacts_document_id` (`document_id`,`contact_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `documents_opportunities` -- CREATE TABLE IF NOT EXISTS `documents_opportunities` ( `id` varchar(36) NOT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', `document_id` varchar(36) DEFAULT NULL, `opportunity_id` varchar(36) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_docu_opps_oppo_id` (`opportunity_id`,`document_id`), KEY `idx_docu_oppo_docu_id` (`document_id`,`opportunity_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `document_revisions` -- CREATE TABLE IF NOT EXISTS `document_revisions` ( `id` varchar(36) NOT NULL, `change_log` varchar(255) DEFAULT NULL, `document_id` varchar(36) DEFAULT NULL, `doc_id` varchar(100) DEFAULT NULL, `doc_type` varchar(100) DEFAULT NULL, `doc_url` varchar(255) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `filename` varchar(255) DEFAULT NULL, `file_ext` varchar(100) DEFAULT NULL, `file_mime_type` varchar(100) DEFAULT NULL, `revision` varchar(100) DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', `date_modified` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `documentrevision_mimetype` (`file_mime_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `eapm` -- CREATE TABLE IF NOT EXISTS `eapm` ( `id` char(36) NOT NULL, `name` varchar(255) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `description` text, `deleted` tinyint(1) DEFAULT '0', `assigned_user_id` char(36) DEFAULT NULL, `password` varchar(255) DEFAULT NULL, `url` varchar(255) DEFAULT NULL, `application` varchar(100) DEFAULT 'webex', `api_data` text, `consumer_key` varchar(255) DEFAULT NULL, `consumer_secret` varchar(255) DEFAULT NULL, `oauth_token` varchar(255) DEFAULT NULL, `oauth_secret` varchar(255) DEFAULT NULL, `validated` tinyint(1) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_app_active` (`assigned_user_id`,`application`,`validated`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `emailman` -- CREATE TABLE IF NOT EXISTS `emailman` ( `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `user_id` char(36) DEFAULT NULL, `id` int(11) NOT NULL AUTO_INCREMENT, `campaign_id` char(36) DEFAULT NULL, `marketing_id` char(36) DEFAULT NULL, `list_id` char(36) DEFAULT NULL, `send_date_time` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `in_queue` tinyint(1) DEFAULT '0', `in_queue_date` datetime DEFAULT NULL, `send_attempts` int(11) DEFAULT '0', `deleted` tinyint(1) DEFAULT '0', `related_id` char(36) DEFAULT NULL, `related_type` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_eman_list` (`list_id`,`user_id`,`deleted`), KEY `idx_eman_campaign_id` (`campaign_id`), KEY `idx_eman_relid_reltype_id` (`related_id`,`related_type`,`campaign_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `emails` -- CREATE TABLE IF NOT EXISTS `emails` ( `id` char(36) NOT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `assigned_user_id` char(36) DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `deleted` tinyint(1) DEFAULT NULL, `date_sent` datetime DEFAULT NULL, `message_id` varchar(255) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `type` varchar(100) DEFAULT NULL, `status` varchar(100) DEFAULT NULL, `flagged` tinyint(1) DEFAULT NULL, `reply_to_status` tinyint(1) DEFAULT NULL, `intent` varchar(100) DEFAULT 'pick', `mailbox_id` char(36) DEFAULT NULL, `parent_type` varchar(100) DEFAULT NULL, `parent_id` char(36) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_email_name` (`name`), KEY `idx_message_id` (`message_id`), KEY `idx_email_parent_id` (`parent_id`), KEY `idx_email_assigned` (`assigned_user_id`,`type`,`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `emails_beans` -- CREATE TABLE IF NOT EXISTS `emails_beans` ( `id` char(36) NOT NULL, `email_id` char(36) DEFAULT NULL, `bean_id` char(36) DEFAULT NULL, `bean_module` varchar(100) DEFAULT NULL, `campaign_data` text, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_emails_beans_bean_id` (`bean_id`), KEY `idx_emails_beans_email_bean` (`email_id`,`bean_id`,`deleted`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `emails_email_addr_rel` -- CREATE TABLE IF NOT EXISTS `emails_email_addr_rel` ( `id` char(36) NOT NULL, `email_id` char(36) NOT NULL, `address_type` varchar(4) DEFAULT NULL, `email_address_id` char(36) NOT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_eearl_email_id` (`email_id`,`address_type`), KEY `idx_eearl_address_id` (`email_address_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `emails_text` -- CREATE TABLE IF NOT EXISTS `emails_text` ( `email_id` char(36) NOT NULL, `from_addr` varchar(255) DEFAULT NULL, `reply_to_addr` varchar(255) DEFAULT NULL, `to_addrs` text, `cc_addrs` text, `bcc_addrs` text, `description` longtext, `description_html` longtext, `raw_source` longtext, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`email_id`), KEY `emails_textfromaddr` (`from_addr`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `email_addresses` -- CREATE TABLE IF NOT EXISTS `email_addresses` ( `id` char(36) NOT NULL, `email_address` varchar(255) DEFAULT NULL, `email_address_caps` varchar(255) DEFAULT NULL, `invalid_email` tinyint(1) DEFAULT '0', `opt_out` tinyint(1) DEFAULT '0', `date_created` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_ea_caps_opt_out_invalid` (`email_address_caps`,`opt_out`,`invalid_email`), KEY `idx_ea_opt_out_invalid` (`email_address`,`opt_out`,`invalid_email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `email_addresses` -- INSERT INTO `email_addresses` (`id`, `email_address`, `email_address_caps`, `invalid_email`, `opt_out`, `date_created`, `date_modified`, `deleted`) VALUES ('395c86c7-4a1d-f114-5b93-519b4090cdd7', 'do_not_reply@example.com', 'DO_NOT_REPLY@EXAMPLE.COM', 0, 0, '2013-05-21 09:39:54', '2013-05-21 09:39:54', 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `email_addr_bean_rel` -- CREATE TABLE IF NOT EXISTS `email_addr_bean_rel` ( `id` char(36) NOT NULL, `email_address_id` char(36) NOT NULL, `bean_id` char(36) NOT NULL, `bean_module` varchar(100) DEFAULT NULL, `primary_address` tinyint(1) DEFAULT '0', `reply_to_address` tinyint(1) DEFAULT '0', `date_created` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_email_address_id` (`email_address_id`), KEY `idx_bean_id` (`bean_id`,`bean_module`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `email_addr_bean_rel` -- INSERT INTO `email_addr_bean_rel` (`id`, `email_address_id`, `bean_id`, `bean_module`, `primary_address`, `reply_to_address`, `date_created`, `date_modified`, `deleted`) VALUES ('394a3f37-1f64-173e-7b22-519b4020b9f3', '395c86c7-4a1d-f114-5b93-519b4090cdd7', '1', 'Users', 1, 0, '2013-05-21 09:39:54', '2013-05-21 09:39:54', 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `email_cache` -- CREATE TABLE IF NOT EXISTS `email_cache` ( `ie_id` char(36) DEFAULT NULL, `mbox` varchar(60) DEFAULT NULL, `subject` varchar(255) DEFAULT NULL, `fromaddr` varchar(100) DEFAULT NULL, `toaddr` varchar(255) DEFAULT NULL, `senddate` datetime DEFAULT NULL, `message_id` varchar(255) DEFAULT NULL, `mailsize` int(10) unsigned DEFAULT NULL, `imap_uid` int(10) unsigned DEFAULT NULL, `msgno` int(10) unsigned DEFAULT NULL, `recent` tinyint(4) DEFAULT NULL, `flagged` tinyint(4) DEFAULT NULL, `answered` tinyint(4) DEFAULT NULL, `deleted` tinyint(4) DEFAULT NULL, `seen` tinyint(4) DEFAULT NULL, `draft` tinyint(4) DEFAULT NULL, KEY `idx_ie_id` (`ie_id`), KEY `idx_mail_date` (`ie_id`,`mbox`,`senddate`), KEY `idx_mail_from` (`ie_id`,`mbox`,`fromaddr`), KEY `idx_mail_subj` (`subject`), KEY `idx_mail_to` (`toaddr`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `email_marketing` -- CREATE TABLE IF NOT EXISTS `email_marketing` ( `id` char(36) NOT NULL, `deleted` tinyint(1) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `from_name` varchar(100) DEFAULT NULL, `from_addr` varchar(100) DEFAULT NULL, `reply_to_name` varchar(100) DEFAULT NULL, `reply_to_addr` varchar(100) DEFAULT NULL, `inbound_email_id` varchar(36) DEFAULT NULL, `date_start` datetime DEFAULT NULL, `template_id` char(36) NOT NULL, `status` varchar(100) DEFAULT NULL, `campaign_id` char(36) DEFAULT NULL, `all_prospect_lists` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_emmkt_name` (`name`), KEY `idx_emmkit_del` (`deleted`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `email_marketing_prospect_lists` -- CREATE TABLE IF NOT EXISTS `email_marketing_prospect_lists` ( `id` varchar(36) NOT NULL, `prospect_list_id` varchar(36) DEFAULT NULL, `email_marketing_id` varchar(36) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `email_mp_prospects` (`email_marketing_id`,`prospect_list_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `email_templates` -- CREATE TABLE IF NOT EXISTS `email_templates` ( `id` char(36) NOT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` varchar(36) DEFAULT NULL, `published` varchar(3) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `description` text, `subject` varchar(255) DEFAULT NULL, `body` text, `body_html` text, `deleted` tinyint(1) DEFAULT NULL, `assigned_user_id` char(36) DEFAULT NULL, `text_only` tinyint(1) DEFAULT NULL, `type` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_email_template_name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `email_templates` -- INSERT INTO `email_templates` (`id`, `date_entered`, `date_modified`, `modified_user_id`, `created_by`, `published`, `name`, `description`, `subject`, `body`, `body_html`, `deleted`, `assigned_user_id`, `text_only`, `type`) VALUES ('76500ee6-9ada-a22e-6e26-519b40f89a74', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '1', 'off', 'System-generated password email', 'This template is used when the System Administrator sends a new password to a user.', 'New account information', '\nHere is your account username and temporary password:\nUsername : $contact_user_user_name\nPassword : $contact_user_user_hash\n\n$config_site_url\n\nAfter you log in using the above password, you may be required to reset the password to one of your own choice.', '<div><table width="550"><tbody><tr><td><p>Here is your account username and temporary password:</p><p>Username : $contact_user_user_name </p><p>Password : $contact_user_user_hash </p><br /><p>$config_site_url</p><br /><p>After you log in using the above password, you may be required to reset the password to one of your own choice.</p> </td> </tr><tr><td></td> </tr></tbody></table></div>', 0, NULL, 0, NULL), ('92a508cc-4875-42d6-1784-519b40a79538', '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '1', 'off', 'Forgot Password email', 'This template is used to send a user a link to click to reset the user''s account password.', 'Reset your account password', '\nYou recently requested on $contact_user_pwd_last_changed to be able to reset your account password.\n\nClick on the link below to reset your password:\n\n$contact_user_link_guid', '<div><table width="550"><tbody><tr><td><p>You recently requested on $contact_user_pwd_last_changed to be able to reset your account password. </p><p>Click on the link below to reset your password:</p><p> $contact_user_link_guid </p> </td> </tr><tr><td></td> </tr></tbody></table></div>', 0, NULL, 0, NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `fields_meta_data` -- CREATE TABLE IF NOT EXISTS `fields_meta_data` ( `id` varchar(255) NOT NULL, `name` varchar(255) DEFAULT NULL, `vname` varchar(255) DEFAULT NULL, `comments` varchar(255) DEFAULT NULL, `help` varchar(255) DEFAULT NULL, `custom_module` varchar(255) DEFAULT NULL, `type` varchar(255) DEFAULT NULL, `len` int(11) DEFAULT NULL, `required` tinyint(1) DEFAULT '0', `default_value` varchar(255) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', `audited` tinyint(1) DEFAULT '0', `massupdate` tinyint(1) DEFAULT '0', `duplicate_merge` smallint(6) DEFAULT '0', `reportable` tinyint(1) DEFAULT '1', `importable` varchar(255) DEFAULT NULL, `ext1` varchar(255) DEFAULT NULL, `ext2` varchar(255) DEFAULT NULL, `ext3` varchar(255) DEFAULT NULL, `ext4` text, PRIMARY KEY (`id`), KEY `idx_meta_id_del` (`id`,`deleted`), KEY `idx_meta_cm_del` (`custom_module`,`deleted`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `folders` -- CREATE TABLE IF NOT EXISTS `folders` ( `id` char(36) NOT NULL, `name` varchar(25) DEFAULT NULL, `folder_type` varchar(25) DEFAULT NULL, `parent_folder` char(36) DEFAULT NULL, `has_child` tinyint(1) DEFAULT '0', `is_group` tinyint(1) DEFAULT '0', `is_dynamic` tinyint(1) DEFAULT '0', `dynamic_query` text, `assign_to_id` char(36) DEFAULT NULL, `created_by` char(36) NOT NULL, `modified_by` char(36) NOT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_parent_folder` (`parent_folder`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `folders_rel` -- CREATE TABLE IF NOT EXISTS `folders_rel` ( `id` char(36) NOT NULL, `folder_id` char(36) NOT NULL, `polymorphic_module` varchar(25) DEFAULT NULL, `polymorphic_id` char(36) NOT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_poly_module_poly_id` (`polymorphic_module`,`polymorphic_id`), KEY `idx_fr_id_deleted_poly` (`folder_id`,`deleted`,`polymorphic_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `folders_subscriptions` -- CREATE TABLE IF NOT EXISTS `folders_subscriptions` ( `id` char(36) NOT NULL, `folder_id` char(36) NOT NULL, `assigned_user_id` char(36) NOT NULL, PRIMARY KEY (`id`), KEY `idx_folder_id_assigned_user_id` (`folder_id`,`assigned_user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `import_maps` -- CREATE TABLE IF NOT EXISTS `import_maps` ( `id` char(36) NOT NULL, `name` varchar(254) DEFAULT NULL, `source` varchar(36) DEFAULT NULL, `enclosure` varchar(1) DEFAULT ' ', `delimiter` varchar(1) DEFAULT ',', `module` varchar(36) DEFAULT NULL, `content` text, `default_values` text, `has_header` tinyint(1) DEFAULT '1', `deleted` tinyint(1) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `assigned_user_id` char(36) DEFAULT NULL, `is_published` varchar(3) DEFAULT 'no', PRIMARY KEY (`id`), KEY `idx_owner_module_name` (`assigned_user_id`,`module`,`name`,`deleted`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `inbound_email` -- CREATE TABLE IF NOT EXISTS `inbound_email` ( `id` varchar(36) NOT NULL, `deleted` tinyint(1) DEFAULT '0', `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `status` varchar(100) DEFAULT 'Active', `server_url` varchar(100) DEFAULT NULL, `email_user` varchar(100) DEFAULT NULL, `email_password` varchar(100) DEFAULT NULL, `port` int(5) DEFAULT NULL, `service` varchar(50) DEFAULT NULL, `mailbox` text, `delete_seen` tinyint(1) DEFAULT '0', `mailbox_type` varchar(10) DEFAULT NULL, `template_id` char(36) DEFAULT NULL, `stored_options` text, `group_id` char(36) DEFAULT NULL, `is_personal` tinyint(1) DEFAULT '0', `groupfolder_id` char(36) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `inbound_email_autoreply` -- CREATE TABLE IF NOT EXISTS `inbound_email_autoreply` ( `id` char(36) NOT NULL, `deleted` tinyint(1) DEFAULT '0', `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `autoreplied_to` varchar(100) DEFAULT NULL, `ie_id` char(36) NOT NULL, PRIMARY KEY (`id`), KEY `idx_ie_autoreplied_to` (`autoreplied_to`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `inbound_email_cache_ts` -- CREATE TABLE IF NOT EXISTS `inbound_email_cache_ts` ( `id` varchar(255) NOT NULL, `ie_timestamp` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `job_queue` -- CREATE TABLE IF NOT EXISTS `job_queue` ( `assigned_user_id` char(36) DEFAULT NULL, `id` char(36) NOT NULL, `name` varchar(255) DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `scheduler_id` char(36) DEFAULT NULL, `execute_time` datetime DEFAULT NULL, `status` varchar(20) DEFAULT NULL, `resolution` varchar(20) DEFAULT NULL, `message` text, `target` varchar(255) DEFAULT NULL, `data` text, `requeue` tinyint(1) DEFAULT '0', `retry_count` tinyint(4) DEFAULT NULL, `failure_count` tinyint(4) DEFAULT NULL, `job_delay` int(11) DEFAULT NULL, `client` varchar(255) DEFAULT NULL, `percent_complete` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_status_scheduler` (`status`,`scheduler_id`), KEY `idx_status_time` (`status`,`execute_time`,`date_entered`), KEY `idx_status_entered` (`status`,`date_entered`), KEY `idx_status_modified` (`status`,`date_modified`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `leads` -- CREATE TABLE IF NOT EXISTS `leads` ( `id` char(36) NOT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `description` text, `deleted` tinyint(1) DEFAULT '0', `assigned_user_id` char(36) DEFAULT NULL, `salutation` varchar(255) DEFAULT NULL, `first_name` varchar(100) DEFAULT NULL, `last_name` varchar(100) DEFAULT NULL, `title` varchar(100) DEFAULT NULL, `department` varchar(100) DEFAULT NULL, `do_not_call` tinyint(1) DEFAULT '0', `phone_home` varchar(100) DEFAULT NULL, `phone_mobile` varchar(100) DEFAULT NULL, `phone_work` varchar(100) DEFAULT NULL, `phone_other` varchar(100) DEFAULT NULL, `phone_fax` varchar(100) DEFAULT NULL, `primary_address_street` varchar(150) DEFAULT NULL, `primary_address_city` varchar(100) DEFAULT NULL, `primary_address_state` varchar(100) DEFAULT NULL, `primary_address_postalcode` varchar(20) DEFAULT NULL, `primary_address_country` varchar(255) DEFAULT NULL, `alt_address_street` varchar(150) DEFAULT NULL, `alt_address_city` varchar(100) DEFAULT NULL, `alt_address_state` varchar(100) DEFAULT NULL, `alt_address_postalcode` varchar(20) DEFAULT NULL, `alt_address_country` varchar(255) DEFAULT NULL, `assistant` varchar(75) DEFAULT NULL, `assistant_phone` varchar(100) DEFAULT NULL, `converted` tinyint(1) DEFAULT '0', `refered_by` varchar(100) DEFAULT NULL, `lead_source` varchar(100) DEFAULT NULL, `lead_source_description` text, `status` varchar(100) DEFAULT NULL, `status_description` text, `reports_to_id` char(36) DEFAULT NULL, `account_name` varchar(255) DEFAULT NULL, `account_description` text, `contact_id` char(36) DEFAULT NULL, `account_id` char(36) DEFAULT NULL, `opportunity_id` char(36) DEFAULT NULL, `opportunity_name` varchar(255) DEFAULT NULL, `opportunity_amount` varchar(50) DEFAULT NULL, `campaign_id` char(36) DEFAULT NULL, `birthdate` date DEFAULT NULL, `portal_name` varchar(255) DEFAULT NULL, `portal_app` varchar(255) DEFAULT NULL, `website` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_lead_acct_name_first` (`account_name`,`deleted`), KEY `idx_lead_last_first` (`last_name`,`first_name`,`deleted`), KEY `idx_lead_del_stat` (`last_name`,`status`,`deleted`,`first_name`), KEY `idx_lead_opp_del` (`opportunity_id`,`deleted`), KEY `idx_leads_acct_del` (`account_id`,`deleted`), KEY `idx_del_user` (`deleted`,`assigned_user_id`), KEY `idx_lead_assigned` (`assigned_user_id`), KEY `idx_lead_contact` (`contact_id`), KEY `idx_reports_to` (`reports_to_id`), KEY `idx_lead_phone_work` (`phone_work`), KEY `idx_leads_id_del` (`id`,`deleted`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `leads_audit` -- CREATE TABLE IF NOT EXISTS `leads_audit` ( `id` char(36) NOT NULL, `parent_id` char(36) NOT NULL, `date_created` datetime DEFAULT NULL, `created_by` varchar(36) DEFAULT NULL, `field_name` varchar(100) DEFAULT NULL, `data_type` varchar(100) DEFAULT NULL, `before_value_string` varchar(255) DEFAULT NULL, `after_value_string` varchar(255) DEFAULT NULL, `before_value_text` text, `after_value_text` text, PRIMARY KEY (`id`), KEY `idx_leads_parent_id` (`parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `linked_documents` -- CREATE TABLE IF NOT EXISTS `linked_documents` ( `id` varchar(36) NOT NULL, `parent_id` varchar(36) DEFAULT NULL, `parent_type` varchar(25) DEFAULT NULL, `document_id` varchar(36) DEFAULT NULL, `document_revision_id` varchar(36) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_parent_document` (`parent_type`,`parent_id`,`document_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `meetings` -- CREATE TABLE IF NOT EXISTS `meetings` ( `id` char(36) NOT NULL, `name` varchar(50) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `description` text, `deleted` tinyint(1) DEFAULT '0', `assigned_user_id` char(36) DEFAULT NULL, `location` varchar(50) DEFAULT NULL, `password` varchar(50) DEFAULT NULL, `join_url` varchar(200) DEFAULT NULL, `host_url` varchar(400) DEFAULT NULL, `displayed_url` varchar(400) DEFAULT NULL, `creator` varchar(50) DEFAULT NULL, `external_id` varchar(50) DEFAULT NULL, `duration_hours` int(3) DEFAULT NULL, `duration_minutes` int(2) DEFAULT NULL, `date_start` datetime DEFAULT NULL, `date_end` datetime DEFAULT NULL, `parent_type` varchar(100) DEFAULT NULL, `status` varchar(100) DEFAULT 'Planned', `type` varchar(255) DEFAULT 'Sugar', `parent_id` char(36) DEFAULT NULL, `reminder_time` int(11) DEFAULT '-1', `email_reminder_time` int(11) DEFAULT '-1', `email_reminder_sent` tinyint(1) DEFAULT '0', `outlook_id` varchar(255) DEFAULT NULL, `sequence` int(11) DEFAULT '0', `repeat_type` varchar(36) DEFAULT NULL, `repeat_interval` int(3) DEFAULT '1', `repeat_dow` varchar(7) DEFAULT NULL, `repeat_until` date DEFAULT NULL, `repeat_count` int(7) DEFAULT NULL, `repeat_parent_id` char(36) DEFAULT NULL, `recurring_source` varchar(36) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_mtg_name` (`name`), KEY `idx_meet_par_del` (`parent_id`,`parent_type`,`deleted`), KEY `idx_meet_stat_del` (`assigned_user_id`,`status`,`deleted`), KEY `idx_meet_date_start` (`date_start`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `meetings_contacts` -- CREATE TABLE IF NOT EXISTS `meetings_contacts` ( `id` varchar(36) NOT NULL, `meeting_id` varchar(36) DEFAULT NULL, `contact_id` varchar(36) DEFAULT NULL, `required` varchar(1) DEFAULT '1', `accept_status` varchar(25) DEFAULT 'none', `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_con_mtg_mtg` (`meeting_id`), KEY `idx_con_mtg_con` (`contact_id`), KEY `idx_meeting_contact` (`meeting_id`,`contact_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `meetings_leads` -- CREATE TABLE IF NOT EXISTS `meetings_leads` ( `id` varchar(36) NOT NULL, `meeting_id` varchar(36) DEFAULT NULL, `lead_id` varchar(36) DEFAULT NULL, `required` varchar(1) DEFAULT '1', `accept_status` varchar(25) DEFAULT 'none', `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_lead_meeting_meeting` (`meeting_id`), KEY `idx_lead_meeting_lead` (`lead_id`), KEY `idx_meeting_lead` (`meeting_id`,`lead_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `meetings_users` -- CREATE TABLE IF NOT EXISTS `meetings_users` ( `id` varchar(36) NOT NULL, `meeting_id` varchar(36) DEFAULT NULL, `user_id` varchar(36) DEFAULT NULL, `required` varchar(1) DEFAULT '1', `accept_status` varchar(25) DEFAULT 'none', `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_usr_mtg_mtg` (`meeting_id`), KEY `idx_usr_mtg_usr` (`user_id`), KEY `idx_meeting_users` (`meeting_id`,`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `notes` -- CREATE TABLE IF NOT EXISTS `notes` ( `assigned_user_id` char(36) DEFAULT NULL, `id` char(36) NOT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `file_mime_type` varchar(100) DEFAULT NULL, `filename` varchar(255) DEFAULT NULL, `parent_type` varchar(255) DEFAULT NULL, `parent_id` char(36) DEFAULT NULL, `contact_id` char(36) DEFAULT NULL, `portal_flag` tinyint(1) DEFAULT NULL, `embed_flag` tinyint(1) DEFAULT '0', `description` text, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_note_name` (`name`), KEY `idx_notes_parent` (`parent_id`,`parent_type`), KEY `idx_note_contact` (`contact_id`), KEY `idx_notes_assigned_del` (`deleted`,`assigned_user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `oauth_consumer` -- CREATE TABLE IF NOT EXISTS `oauth_consumer` ( `id` char(36) NOT NULL, `name` varchar(255) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `description` text, `deleted` tinyint(1) DEFAULT '0', `assigned_user_id` char(36) DEFAULT NULL, `c_key` varchar(255) DEFAULT NULL, `c_secret` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `ckey` (`c_key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `oauth_nonce` -- CREATE TABLE IF NOT EXISTS `oauth_nonce` ( `conskey` varchar(32) NOT NULL, `nonce` varchar(32) NOT NULL, `nonce_ts` bigint(20) DEFAULT NULL, PRIMARY KEY (`conskey`,`nonce`), KEY `oauth_nonce_keyts` (`conskey`,`nonce_ts`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `oauth_tokens` -- CREATE TABLE IF NOT EXISTS `oauth_tokens` ( `id` char(36) NOT NULL, `secret` varchar(32) DEFAULT NULL, `tstate` varchar(1) DEFAULT NULL, `consumer` char(36) NOT NULL, `token_ts` bigint(20) DEFAULT NULL, `verify` varchar(32) DEFAULT NULL, `deleted` tinyint(1) NOT NULL DEFAULT '0', `callback_url` varchar(255) DEFAULT NULL, `assigned_user_id` char(36) DEFAULT NULL, PRIMARY KEY (`id`,`deleted`), KEY `oauth_state_ts` (`tstate`,`token_ts`), KEY `constoken_key` (`consumer`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `opportunities` -- CREATE TABLE IF NOT EXISTS `opportunities` ( `id` char(36) NOT NULL, `name` varchar(50) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `description` text, `deleted` tinyint(1) DEFAULT '0', `assigned_user_id` char(36) DEFAULT NULL, `opportunity_type` varchar(255) DEFAULT NULL, `campaign_id` char(36) DEFAULT NULL, `lead_source` varchar(50) DEFAULT NULL, `amount` double DEFAULT NULL, `amount_usdollar` double DEFAULT NULL, `currency_id` char(36) DEFAULT NULL, `date_closed` date DEFAULT NULL, `next_step` varchar(100) DEFAULT NULL, `sales_stage` varchar(255) DEFAULT NULL, `probability` double DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_opp_name` (`name`), KEY `idx_opp_assigned` (`assigned_user_id`), KEY `idx_opp_id_deleted` (`id`,`deleted`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `opportunities_audit` -- CREATE TABLE IF NOT EXISTS `opportunities_audit` ( `id` char(36) NOT NULL, `parent_id` char(36) NOT NULL, `date_created` datetime DEFAULT NULL, `created_by` varchar(36) DEFAULT NULL, `field_name` varchar(100) DEFAULT NULL, `data_type` varchar(100) DEFAULT NULL, `before_value_string` varchar(255) DEFAULT NULL, `after_value_string` varchar(255) DEFAULT NULL, `before_value_text` text, `after_value_text` text, PRIMARY KEY (`id`), KEY `idx_opportunities_parent_id` (`parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `opportunities_contacts` -- CREATE TABLE IF NOT EXISTS `opportunities_contacts` ( `id` varchar(36) NOT NULL, `contact_id` varchar(36) DEFAULT NULL, `opportunity_id` varchar(36) DEFAULT NULL, `contact_role` varchar(50) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_con_opp_con` (`contact_id`), KEY `idx_con_opp_opp` (`opportunity_id`), KEY `idx_opportunities_contacts` (`opportunity_id`,`contact_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `outbound_email` -- CREATE TABLE IF NOT EXISTS `outbound_email` ( `id` char(36) NOT NULL, `name` varchar(50) DEFAULT NULL, `type` varchar(15) DEFAULT 'user', `user_id` char(36) NOT NULL, `mail_sendtype` varchar(8) DEFAULT 'smtp', `mail_smtptype` varchar(20) DEFAULT 'other', `mail_smtpserver` varchar(100) DEFAULT NULL, `mail_smtpport` int(5) DEFAULT '0', `mail_smtpuser` varchar(100) DEFAULT NULL, `mail_smtppass` varchar(100) DEFAULT NULL, `mail_smtpauth_req` tinyint(1) DEFAULT '0', `mail_smtpssl` int(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `oe_user_id_idx` (`id`,`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `outbound_email` -- INSERT INTO `outbound_email` (`id`, `name`, `type`, `user_id`, `mail_sendtype`, `mail_smtptype`, `mail_smtpserver`, `mail_smtpport`, `mail_smtpuser`, `mail_smtppass`, `mail_smtpauth_req`, `mail_smtpssl`) VALUES ('7bc64968-7a26-3726-2454-519b4028d00a', 'system', 'system', '1', 'SMTP', 'other', '', 25, '', '', 1, 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `project` -- CREATE TABLE IF NOT EXISTS `project` ( `id` char(36) NOT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `assigned_user_id` char(36) DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `name` varchar(50) DEFAULT NULL, `description` text, `deleted` tinyint(1) DEFAULT '0', `estimated_start_date` date DEFAULT NULL, `estimated_end_date` date DEFAULT NULL, `status` varchar(255) DEFAULT NULL, `priority` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `projects_accounts` -- CREATE TABLE IF NOT EXISTS `projects_accounts` ( `id` varchar(36) NOT NULL, `account_id` varchar(36) DEFAULT NULL, `project_id` varchar(36) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_proj_acct_proj` (`project_id`), KEY `idx_proj_acct_acct` (`account_id`), KEY `projects_accounts_alt` (`project_id`,`account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `projects_bugs` -- CREATE TABLE IF NOT EXISTS `projects_bugs` ( `id` varchar(36) NOT NULL, `bug_id` varchar(36) DEFAULT NULL, `project_id` varchar(36) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_proj_bug_proj` (`project_id`), KEY `idx_proj_bug_bug` (`bug_id`), KEY `projects_bugs_alt` (`project_id`,`bug_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `projects_cases` -- CREATE TABLE IF NOT EXISTS `projects_cases` ( `id` varchar(36) NOT NULL, `case_id` varchar(36) DEFAULT NULL, `project_id` varchar(36) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_proj_case_proj` (`project_id`), KEY `idx_proj_case_case` (`case_id`), KEY `projects_cases_alt` (`project_id`,`case_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `projects_contacts` -- CREATE TABLE IF NOT EXISTS `projects_contacts` ( `id` varchar(36) NOT NULL, `contact_id` varchar(36) DEFAULT NULL, `project_id` varchar(36) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_proj_con_proj` (`project_id`), KEY `idx_proj_con_con` (`contact_id`), KEY `projects_contacts_alt` (`project_id`,`contact_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `projects_opportunities` -- CREATE TABLE IF NOT EXISTS `projects_opportunities` ( `id` varchar(36) NOT NULL, `opportunity_id` varchar(36) DEFAULT NULL, `project_id` varchar(36) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_proj_opp_proj` (`project_id`), KEY `idx_proj_opp_opp` (`opportunity_id`), KEY `projects_opportunities_alt` (`project_id`,`opportunity_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `projects_products` -- CREATE TABLE IF NOT EXISTS `projects_products` ( `id` varchar(36) NOT NULL, `product_id` varchar(36) DEFAULT NULL, `project_id` varchar(36) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_proj_prod_project` (`project_id`), KEY `idx_proj_prod_product` (`product_id`), KEY `projects_products_alt` (`project_id`,`product_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `project_task` -- CREATE TABLE IF NOT EXISTS `project_task` ( `id` char(36) NOT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `project_id` char(36) NOT NULL, `project_task_id` int(11) DEFAULT NULL, `name` varchar(50) DEFAULT NULL, `status` varchar(255) DEFAULT NULL, `description` text, `predecessors` text, `date_start` date DEFAULT NULL, `time_start` int(11) DEFAULT NULL, `time_finish` int(11) DEFAULT NULL, `date_finish` date DEFAULT NULL, `duration` int(11) DEFAULT NULL, `duration_unit` text, `actual_duration` int(11) DEFAULT NULL, `percent_complete` int(11) DEFAULT NULL, `date_due` date DEFAULT NULL, `time_due` time DEFAULT NULL, `parent_task_id` int(11) DEFAULT NULL, `assigned_user_id` char(36) DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `priority` varchar(255) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `milestone_flag` tinyint(1) DEFAULT NULL, `order_number` int(11) DEFAULT '1', `task_number` int(11) DEFAULT NULL, `estimated_effort` int(11) DEFAULT NULL, `actual_effort` int(11) DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', `utilization` int(11) DEFAULT '100', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `project_task_audit` -- CREATE TABLE IF NOT EXISTS `project_task_audit` ( `id` char(36) NOT NULL, `parent_id` char(36) NOT NULL, `date_created` datetime DEFAULT NULL, `created_by` varchar(36) DEFAULT NULL, `field_name` varchar(100) DEFAULT NULL, `data_type` varchar(100) DEFAULT NULL, `before_value_string` varchar(255) DEFAULT NULL, `after_value_string` varchar(255) DEFAULT NULL, `before_value_text` text, `after_value_text` text, PRIMARY KEY (`id`), KEY `idx_project_task_parent_id` (`parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `prospects` -- CREATE TABLE IF NOT EXISTS `prospects` ( `id` char(36) NOT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `description` text, `deleted` tinyint(1) DEFAULT '0', `assigned_user_id` char(36) DEFAULT NULL, `salutation` varchar(255) DEFAULT NULL, `first_name` varchar(100) DEFAULT NULL, `last_name` varchar(100) DEFAULT NULL, `title` varchar(100) DEFAULT NULL, `department` varchar(255) DEFAULT NULL, `do_not_call` tinyint(1) DEFAULT '0', `phone_home` varchar(100) DEFAULT NULL, `phone_mobile` varchar(100) DEFAULT NULL, `phone_work` varchar(100) DEFAULT NULL, `phone_other` varchar(100) DEFAULT NULL, `phone_fax` varchar(100) DEFAULT NULL, `primary_address_street` varchar(150) DEFAULT NULL, `primary_address_city` varchar(100) DEFAULT NULL, `primary_address_state` varchar(100) DEFAULT NULL, `primary_address_postalcode` varchar(20) DEFAULT NULL, `primary_address_country` varchar(255) DEFAULT NULL, `alt_address_street` varchar(150) DEFAULT NULL, `alt_address_city` varchar(100) DEFAULT NULL, `alt_address_state` varchar(100) DEFAULT NULL, `alt_address_postalcode` varchar(20) DEFAULT NULL, `alt_address_country` varchar(255) DEFAULT NULL, `assistant` varchar(75) DEFAULT NULL, `assistant_phone` varchar(100) DEFAULT NULL, `tracker_key` int(11) NOT NULL AUTO_INCREMENT, `birthdate` date DEFAULT NULL, `lead_id` char(36) DEFAULT NULL, `account_name` varchar(150) DEFAULT NULL, `campaign_id` char(36) DEFAULT NULL, PRIMARY KEY (`id`), KEY `prospect_auto_tracker_key` (`tracker_key`), KEY `idx_prospects_last_first` (`last_name`,`first_name`,`deleted`), KEY `idx_prospecs_del_last` (`last_name`,`deleted`), KEY `idx_prospects_id_del` (`id`,`deleted`), KEY `idx_prospects_assigned` (`assigned_user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `prospect_lists` -- CREATE TABLE IF NOT EXISTS `prospect_lists` ( `assigned_user_id` char(36) DEFAULT NULL, `id` char(36) NOT NULL, `name` varchar(50) DEFAULT NULL, `list_type` varchar(100) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `deleted` tinyint(1) DEFAULT NULL, `description` text, `domain_name` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_prospect_list_name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `prospect_lists_prospects` -- CREATE TABLE IF NOT EXISTS `prospect_lists_prospects` ( `id` varchar(36) NOT NULL, `prospect_list_id` varchar(36) DEFAULT NULL, `related_id` varchar(36) DEFAULT NULL, `related_type` varchar(25) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_plp_pro_id` (`prospect_list_id`), KEY `idx_plp_rel_id` (`related_id`,`related_type`,`prospect_list_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `prospect_list_campaigns` -- CREATE TABLE IF NOT EXISTS `prospect_list_campaigns` ( `id` varchar(36) NOT NULL, `prospect_list_id` varchar(36) DEFAULT NULL, `campaign_id` varchar(36) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_pro_id` (`prospect_list_id`), KEY `idx_cam_id` (`campaign_id`), KEY `idx_prospect_list_campaigns` (`prospect_list_id`,`campaign_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `relationships` -- CREATE TABLE IF NOT EXISTS `relationships` ( `id` char(36) NOT NULL, `relationship_name` varchar(150) DEFAULT NULL, `lhs_module` varchar(100) DEFAULT NULL, `lhs_table` varchar(64) DEFAULT NULL, `lhs_key` varchar(64) DEFAULT NULL, `rhs_module` varchar(100) DEFAULT NULL, `rhs_table` varchar(64) DEFAULT NULL, `rhs_key` varchar(64) DEFAULT NULL, `join_table` varchar(128) DEFAULT NULL, `join_key_lhs` varchar(128) DEFAULT NULL, `join_key_rhs` varchar(128) DEFAULT NULL, `relationship_type` varchar(64) DEFAULT NULL, `relationship_role_column` varchar(64) DEFAULT NULL, `relationship_role_column_value` varchar(50) DEFAULT NULL, `reverse` tinyint(1) DEFAULT '0', `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_rel_name` (`relationship_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `relationships` -- INSERT INTO `relationships` (`id`, `relationship_name`, `lhs_module`, `lhs_table`, `lhs_key`, `rhs_module`, `rhs_table`, `rhs_key`, `join_table`, `join_key_lhs`, `join_key_rhs`, `relationship_type`, `relationship_role_column`, `relationship_role_column_value`, `reverse`, `deleted`) VALUES ('10023d14-4c25-a3c8-ff02-519b40a57ec3', 'project_tasks_created_by', 'Users', 'users', 'id', 'ProjectTask', 'project_task', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('10860771-0c11-eea9-02a2-519b40ab4422', 'projects_assigned_user', 'Users', 'users', 'id', 'Project', 'project', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('118763d2-8c4f-613a-ac6b-519b40bda7dc', 'notes_assigned_user', 'Users', 'users', 'id', 'Notes', 'notes', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('136fe3d6-fb63-713a-a0f7-519b40b4733b', 'notes_modified_user', 'Users', 'users', 'id', 'Notes', 'notes', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('13f7b5a5-ec1e-273d-1269-519b403471fc', 'eapm_modified_user', 'Users', 'users', 'id', 'EAPM', 'eapm', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('14588c45-c039-f0b6-ba50-519b40e4ee22', 'eapm_created_by', 'Users', 'users', 'id', 'EAPM', 'eapm', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('14b1a709-26df-7175-ac24-519b40b0ebad', 'eapm_assigned_user', 'Users', 'users', 'id', 'EAPM', 'eapm', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('18d7f493-a6df-e16b-f8d5-519b40040985', 'notes_created_by', 'Users', 'users', 'id', 'Notes', 'notes', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('18ea0d89-d5be-f83d-c1d0-519b4019e57e', 'projects_modified_user', 'Users', 'users', 'id', 'Project', 'project', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('1d000833-ea06-26d6-e783-519b401c7b1d', 'projects_emails', 'Project', 'project', 'id', 'Emails', 'emails', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Project', 0, 0), ('1f1a0188-ea9b-c90f-c13b-519b40f1eca7', 'projects_created_by', 'Users', 'users', 'id', 'Project', 'project', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('23563d65-6b97-a215-c218-519b405c82d6', 'oauthkeys_modified_user', 'Users', 'users', 'id', 'OAuthKeys', 'oauthkeys', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('23bc848d-5d79-222e-b148-519b40541080', 'oauthkeys_created_by', 'Users', 'users', 'id', 'OAuthKeys', 'oauthkeys', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('2405f2a7-4da7-17ea-c611-519b40608566', 'oauthkeys_assigned_user', 'Users', 'users', 'id', 'OAuthKeys', 'oauthkeys', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('2836ea95-9ece-6fd3-fc4c-519b40ff8611', 'calls_modified_user', 'Users', 'users', 'id', 'Calls', 'calls', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('289ee99d-4307-a558-0f2e-519b4016b542', 'calls_created_by', 'Users', 'users', 'id', 'Calls', 'calls', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('2900e70a-06dd-36df-ce50-519b4074c71d', 'calls_assigned_user', 'Users', 'users', 'id', 'Calls', 'calls', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('295e1c8a-6bf8-ad1d-96f0-519b404fa903', 'calls_notes', 'Calls', 'calls', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Calls', 0, 0), ('2acba298-f593-0239-5582-519b40aad58c', 'consumer_tokens', 'OAuthKeys', 'oauth_consumer', 'id', 'OAuthTokens', 'oauth_tokens', 'consumer', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('2b5f3ecd-e67f-cb0e-947d-519b40afa23d', 'oauthtokens_assigned_user', 'Users', 'users', 'id', 'OAuthTokens', 'oauth_tokens', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('2ffe4e22-e57b-0a20-02c9-519b40f232e9', 'campaigns_modified_user', 'Users', 'users', 'id', 'Campaigns', 'campaigns', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('3106a2f3-81cf-8a49-d65d-519b406bf2df', 'campaigns_created_by', 'Users', 'users', 'id', 'Campaigns', 'campaigns', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('31817606-891c-5e4d-0b20-519b40ccb12d', 'campaigns_assigned_user', 'Users', 'users', 'id', 'Campaigns', 'campaigns', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('31e9d646-bd65-8c1c-1be1-519b40568091', 'campaign_accounts', 'Campaigns', 'campaigns', 'id', 'Accounts', 'accounts', 'campaign_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('324ceb07-4152-d485-9d0a-519b40eb17bb', 'campaign_contacts', 'Campaigns', 'campaigns', 'id', 'Contacts', 'contacts', 'campaign_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('32c29f8f-5ba0-20be-c47d-519b40c01400', 'campaign_leads', 'Campaigns', 'campaigns', 'id', 'Leads', 'leads', 'campaign_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('332fbe16-7520-a655-c1d5-519b40f007c7', 'campaign_prospects', 'Campaigns', 'campaigns', 'id', 'Prospects', 'prospects', 'campaign_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('338c99e9-bf5b-557d-6fe1-519b40806c51', 'campaign_opportunities', 'Campaigns', 'campaigns', 'id', 'Opportunities', 'opportunities', 'campaign_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('34059928-c1c8-e0eb-bc95-519b4025cf1a', 'campaign_email_marketing', 'Campaigns', 'campaigns', 'id', 'EmailMarketing', 'email_marketing', 'campaign_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('34782026-3ea2-695d-33a5-519b400a3fc1', 'campaign_emailman', 'Campaigns', 'campaigns', 'id', 'EmailMan', 'emailman', 'campaign_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('34d404f2-a03e-e44a-acdc-519b402d5404', 'campaign_campaignlog', 'Campaigns', 'campaigns', 'id', 'CampaignLog', 'campaign_log', 'campaign_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('352279ce-e47e-7b3d-480b-519b4036b736', 'accounts_bugs', 'Accounts', 'accounts', 'id', 'Bugs', 'bugs', 'id', 'accounts_bugs', 'account_id', 'bug_id', 'many-to-many', NULL, NULL, 0, 0), ('3574ee6a-5fbf-acf4-d33b-519b40a81833', 'campaign_assigned_user', 'Users', 'users', 'id', 'Campaigns', 'campaigns', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('35e243dd-dec2-695a-c1df-519b4067c973', 'campaign_modified_user', 'Users', 'users', 'id', 'Campaigns', 'campaigns', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('38dca398-39dc-52fc-0e75-519b4097e7ee', 'accounts_contacts', 'Accounts', 'accounts', 'id', 'Contacts', 'contacts', 'id', 'accounts_contacts', 'account_id', 'contact_id', 'many-to-many', NULL, NULL, 0, 0), ('3ac48596-a1fb-ab60-6765-519b4085ee28', 'accounts_opportunities', 'Accounts', 'accounts', 'id', 'Opportunities', 'opportunities', 'id', 'accounts_opportunities', 'account_id', 'opportunity_id', 'many-to-many', NULL, NULL, 0, 0), ('401fc5a4-2d0f-f08a-9894-519b40d62a10', 'prospectlists_assigned_user', 'Users', 'users', 'id', 'prospectlists', 'prospect_lists', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('410f59a7-ab47-03ab-d691-519b4023dfd3', 'acl_roles_actions', 'ACLRoles', 'acl_roles', 'id', 'ACLActions', 'acl_actions', 'id', 'acl_roles_actions', 'role_id', 'action_id', 'many-to-many', NULL, NULL, 0, 0), ('4300dabc-2eff-c860-f8a6-519b402a96a5', 'acl_roles_users', 'ACLRoles', 'acl_roles', 'id', 'Users', 'users', 'id', 'acl_roles_users', 'role_id', 'user_id', 'many-to-many', NULL, NULL, 0, 0), ('45863364-6525-ef4f-e8a3-519b40f37433', 'emails_assigned_user', 'Users', 'users', 'id', 'Emails', 'emails', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('4592f4e3-a0d8-a23d-8d49-519b40502cad', 'calls_contacts', 'Calls', 'calls', 'id', 'Contacts', 'contacts', 'id', 'calls_contacts', 'call_id', 'contact_id', 'many-to-many', NULL, NULL, 0, 0), ('4653e04d-8f2c-6bbd-17b9-519b40c0bc2b', 'emails_modified_user', 'Users', 'users', 'id', 'Emails', 'emails', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('46f520d6-efd9-407a-3127-519b4090a4d8', 'emails_created_by', 'Users', 'users', 'id', 'Emails', 'emails', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('476a32b7-7202-9287-7c33-519b4083e3b3', 'emails_notes_rel', 'Emails', 'emails', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('47fb386d-c618-a8f3-225a-519b4034e03c', 'emails_contacts_rel', 'Emails', 'emails', 'id', 'Contacts', 'contacts', 'id', 'emails_beans', 'email_id', 'bean_id', 'many-to-many', 'bean_module', 'Contacts', 0, 0), ('4823d0c4-c55d-0c26-9555-519b40171402', 'calls_leads', 'Calls', 'calls', 'id', 'Leads', 'leads', 'id', 'calls_leads', 'call_id', 'lead_id', 'many-to-many', NULL, NULL, 0, 0), ('48926716-1fcd-79dd-7325-519b40b3bb2f', 'emails_accounts_rel', 'Emails', 'emails', 'id', 'Accounts', 'accounts', 'id', 'emails_beans', 'email_id', 'bean_id', 'many-to-many', 'bean_module', 'Accounts', 0, 0), ('490102dd-a3bd-aaac-0a5d-519b40d1d198', 'emails_leads_rel', 'Emails', 'emails', 'id', 'Leads', 'leads', 'id', 'emails_beans', 'email_id', 'bean_id', 'many-to-many', 'bean_module', 'Leads', 0, 0), ('4995b71c-b987-eba2-cf33-519b40b5427d', 'emails_meetings_rel', 'Emails', 'emails', 'id', 'Meetings', 'meetings', 'parent_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('49b4742d-6759-0f68-4c1b-519b4007acda', 'prospects_modified_user', 'Users', 'users', 'id', 'Prospects', 'prospects', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('4a19ad69-c5fd-a557-748b-519b40b568c5', 'calls_users', 'Calls', 'calls', 'id', 'Users', 'users', 'id', 'calls_users', 'call_id', 'user_id', 'many-to-many', NULL, NULL, 0, 0), ('4a25d8b5-46c4-0458-e483-519b40bca1c0', 'prospects_created_by', 'Users', 'users', 'id', 'Prospects', 'prospects', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('4a880223-5783-27a8-a7f7-519b40c83522', 'prospects_assigned_user', 'Users', 'users', 'id', 'Prospects', 'prospects', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('4ad7e554-1921-a21f-f12b-519b408f5cd7', 'prospects_email_addresses', 'Prospects', 'prospects', 'id', 'EmailAddresses', 'email_addresses', 'id', 'email_addr_bean_rel', 'bean_id', 'email_address_id', 'many-to-many', 'bean_module', 'Prospects', 0, 0), ('4b31ef18-d97d-75a7-6c88-519b40da37a3', 'prospects_email_addresses_primary', 'Prospects', 'prospects', 'id', 'EmailAddresses', 'email_addresses', 'id', 'email_addr_bean_rel', 'bean_id', 'email_address_id', 'many-to-many', 'primary_address', '1', 0, 0), ('4be226eb-a049-ef04-64c4-519b40bf3f75', 'prospect_tasks', 'Prospects', 'prospects', 'id', 'Tasks', 'tasks', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Prospects', 0, 0), ('4c27464f-3d10-63d0-11f8-519b4044069e', 'prospect_notes', 'Prospects', 'prospects', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Prospects', 0, 0), ('4c46a871-661f-f429-075d-519b40120563', 'cases_bugs', 'Cases', 'cases', 'id', 'Bugs', 'bugs', 'id', 'cases_bugs', 'case_id', 'bug_id', 'many-to-many', NULL, NULL, 0, 0), ('4c849386-8f2f-bdf8-a7f0-519b4072f41f', 'prospect_meetings', 'Prospects', 'prospects', 'id', 'Meetings', 'meetings', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Prospects', 0, 0), ('4cf82fbe-f665-7553-ce12-519b40d670dc', 'prospect_calls', 'Prospects', 'prospects', 'id', 'Calls', 'calls', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Prospects', 0, 0), ('4d9af072-9c26-df3b-65f7-519b403e6f74', 'prospect_emails', 'Prospects', 'prospects', 'id', 'Emails', 'emails', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Prospects', 0, 0), ('4e1a8781-511e-5cad-f0a1-519b40f72310', 'prospect_campaign_log', 'Prospects', 'prospects', 'id', 'CampaignLog', 'campaign_log', 'target_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('4e22b31f-7a47-ed0b-692b-519b4024df90', 'contacts_bugs', 'Contacts', 'contacts', 'id', 'Bugs', 'bugs', 'id', 'contacts_bugs', 'contact_id', 'bug_id', 'many-to-many', NULL, NULL, 0, 0), ('5050f4d9-9967-7bb8-d56e-519b405b858a', 'contacts_cases', 'Contacts', 'contacts', 'id', 'Cases', 'cases', 'id', 'contacts_cases', 'contact_id', 'case_id', 'many-to-many', NULL, NULL, 0, 0), ('5271fc30-f137-393a-6632-519b40183687', 'contacts_users', 'Contacts', 'contacts', 'id', 'Users', 'users', 'id', 'contacts_users', 'contact_id', 'user_id', 'many-to-many', NULL, NULL, 0, 0), ('55d6beda-e5f7-48b3-582f-519b40559395', 'documents_accounts', 'Documents', 'documents', 'id', 'Accounts', 'accounts', 'id', 'documents_accounts', 'document_id', 'account_id', 'many-to-many', NULL, NULL, 0, 0), ('579e73a5-36dd-2042-fe9a-519b408913e6', 'documents_bugs', 'Documents', 'documents', 'id', 'Bugs', 'bugs', 'id', 'documents_bugs', 'document_id', 'bug_id', 'many-to-many', NULL, NULL, 0, 0), ('596b5ac2-3ab8-567c-a0b0-519b40aca421', 'documents_cases', 'Documents', 'documents', 'id', 'Cases', 'cases', 'id', 'documents_cases', 'document_id', 'case_id', 'many-to-many', NULL, NULL, 0, 0), ('5b45c0da-fa3c-3450-6c27-519b407345f0', 'documents_contacts', 'Documents', 'documents', 'id', 'Contacts', 'contacts', 'id', 'documents_contacts', 'document_id', 'contact_id', 'many-to-many', NULL, NULL, 0, 0), ('5d178284-273b-fa85-b652-519b405e9a1a', 'documents_opportunities', 'Documents', 'documents', 'id', 'Opportunities', 'opportunities', 'id', 'documents_opportunities', 'document_id', 'opportunity_id', 'many-to-many', NULL, NULL, 0, 0), ('5e762415-fe94-6f44-cd53-519b407186e3', 'email_template_email_marketings', 'EmailTemplates', 'email_templates', 'id', 'EmailMarketing', 'email_marketing', 'template_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('614f5dbb-0610-a429-a608-519b40bf5a26', 'meetings_modified_user', 'Users', 'users', 'id', 'Meetings', 'meetings', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('62264cf7-e563-09d9-ee3c-519b4020cf06', 'meetings_created_by', 'Users', 'users', 'id', 'Meetings', 'meetings', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('62cdd9f4-ce59-78c2-8407-519b407d7d2b', 'campaign_campaigntrakers', 'Campaigns', 'campaigns', 'id', 'CampaignTrackers', 'campaign_trkrs', 'campaign_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('62d4853e-d866-89ec-e002-519b4013dc0b', 'meetings_assigned_user', 'Users', 'users', 'id', 'Meetings', 'meetings', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('63071a52-6560-ef32-8f18-519b40e7084a', 'email_marketing_prospect_lists', 'EmailMarketing', 'email_marketing', 'id', 'ProspectLists', 'prospect_lists', 'id', 'email_marketing_prospect_lists', 'email_marketing_id', 'prospect_list_id', 'many-to-many', NULL, NULL, 0, 0), ('635ba4e2-da25-c13a-3466-519b407c9625', 'meetings_notes', 'Meetings', 'meetings', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Meetings', 0, 0), ('651c6308-4d41-6870-5efb-519b400a314f', 'emails_bugs_rel', 'Emails', 'emails', 'id', 'Bugs', 'bugs', 'id', 'emails_beans', 'email_id', 'bean_id', 'many-to-many', 'bean_module', 'Bugs', 0, 0), ('657699e2-9641-7b84-832d-519b406e2826', 'emails_cases_rel', 'Emails', 'emails', 'id', 'Cases', 'cases', 'id', 'emails_beans', 'email_id', 'bean_id', 'many-to-many', 'bean_module', 'Cases', 0, 0), ('65ea22db-8a18-e8ae-cbb2-519b406fbd71', 'emails_opportunities_rel', 'Emails', 'emails', 'id', 'Opportunities', 'opportunities', 'id', 'emails_beans', 'email_id', 'bean_id', 'many-to-many', 'bean_module', 'Opportunities', 0, 0), ('66942035-f1b2-4824-ce6a-519b40b6a1a8', 'emails_tasks_rel', 'Emails', 'emails', 'id', 'Tasks', 'tasks', 'id', 'emails_beans', 'email_id', 'bean_id', 'many-to-many', 'bean_module', 'Tasks', 0, 0), ('66d81f87-fe4e-7222-f245-519b40389e6d', 'emails_users_rel', 'Emails', 'emails', 'id', 'Users', 'users', 'id', 'emails_beans', 'email_id', 'bean_id', 'many-to-many', 'bean_module', 'Users', 0, 0), ('6728e679-74fb-73bc-7063-519b40b37d5a', 'emails_project_task_rel', 'Emails', 'emails', 'id', 'ProjectTask', 'project_task', 'id', 'emails_beans', 'email_id', 'bean_id', 'many-to-many', 'bean_module', 'ProjectTask', 0, 0), ('678486c9-38af-7e14-9a7c-519b40729c7c', 'emails_projects_rel', 'Emails', 'emails', 'id', 'Project', 'project', 'id', 'emails_beans', 'email_id', 'bean_id', 'many-to-many', 'bean_module', 'Project', 0, 0), ('67cc487e-325a-92f2-9f64-519b40048bbc', 'emails_prospects_rel', 'Emails', 'emails', 'id', 'Prospects', 'prospects', 'id', 'emails_beans', 'email_id', 'bean_id', 'many-to-many', 'bean_module', 'Prospects', 0, 0), ('6de43bd6-5720-c6e3-7f98-519b40563ea0', 'leads_documents', 'Leads', 'leads', 'id', 'Documents', 'documents', 'id', 'linked_documents', 'parent_id', 'document_id', 'many-to-many', 'parent_type', 'Leads', 0, 0), ('717eb6c0-fd96-eb20-a005-519b4070bc45', 'tasks_modified_user', 'Users', 'users', 'id', 'Tasks', 'tasks', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('727a9aba-4ede-5f68-d0ab-519b4054c186', 'tasks_created_by', 'Users', 'users', 'id', 'Tasks', 'tasks', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('72e6344f-e3b9-3bc5-272e-519b404be2c9', 'tasks_assigned_user', 'Users', 'users', 'id', 'Tasks', 'tasks', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('7347123f-a336-c9c3-44f6-519b40d05f66', 'tasks_notes', 'Tasks', 'tasks', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('7429b2d8-2d75-9a41-3049-519b400d2772', 'meetings_contacts', 'Meetings', 'meetings', 'id', 'Contacts', 'contacts', 'id', 'meetings_contacts', 'meeting_id', 'contact_id', 'many-to-many', NULL, NULL, 0, 0), ('7486cbb4-49b9-1b49-b2a7-519b401ab3df', 'leads_modified_user', 'Users', 'users', 'id', 'Leads', 'leads', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('75161ffe-a43c-6dc9-f489-519b40aec249', 'leads_created_by', 'Users', 'users', 'id', 'Leads', 'leads', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('7599bf6d-5a55-7c0a-5dbc-519b4079afa5', 'leads_assigned_user', 'Users', 'users', 'id', 'Leads', 'leads', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('7618ed7d-34b5-1d4d-dc45-519b40f6dbfe', 'leads_email_addresses', 'Leads', 'leads', 'id', 'EmailAddresses', 'email_addresses', 'id', 'email_addr_bean_rel', 'bean_id', 'email_address_id', 'many-to-many', 'bean_module', 'Leads', 0, 0), ('7682cb1b-2a6e-e198-9227-519b40665fd9', 'leads_email_addresses_primary', 'Leads', 'leads', 'id', 'EmailAddresses', 'email_addresses', 'id', 'email_addr_bean_rel', 'bean_id', 'email_address_id', 'many-to-many', 'primary_address', '1', 0, 0), ('76fd4f20-1221-6eb9-ce62-519b4050efb2', 'lead_direct_reports', 'Leads', 'leads', 'id', 'Leads', 'leads', 'reports_to_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('770e2089-4f2a-9906-9865-519b408a4bf5', 'meetings_leads', 'Meetings', 'meetings', 'id', 'Leads', 'leads', 'id', 'meetings_leads', 'meeting_id', 'lead_id', 'many-to-many', NULL, NULL, 0, 0), ('777150ed-aa19-badf-5a63-519b40ae356a', 'lead_tasks', 'Leads', 'leads', 'id', 'Tasks', 'tasks', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Leads', 0, 0), ('77d388f1-f265-fa75-18f7-519b4079dc2a', 'lead_notes', 'Leads', 'leads', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Leads', 0, 0), ('78d0a80c-1c55-4cf4-da43-519b4067a479', 'lead_meetings', 'Leads', 'leads', 'id', 'Meetings', 'meetings', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Leads', 0, 0), ('797f25c4-df55-d036-fa3d-519b40b18153', 'lead_calls', 'Leads', 'leads', 'id', 'Calls', 'calls', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Leads', 0, 0), ('798f3982-995f-bcba-7515-519b40b51cd5', 'meetings_users', 'Meetings', 'meetings', 'id', 'Users', 'users', 'id', 'meetings_users', 'meeting_id', 'user_id', 'many-to-many', NULL, NULL, 0, 0), ('79e225bb-ba8f-b184-da9a-519b403cc62e', 'lead_emails', 'Leads', 'leads', 'id', 'Emails', 'emails', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Leads', 0, 0), ('7a56003a-fbcf-4368-cb3d-519b4088bc8b', 'lead_campaign_log', 'Leads', 'leads', 'id', 'CampaignLog', 'campaign_log', 'target_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('7cfe2758-30c0-e60e-d054-519b40b0769f', 'opportunities_contacts', 'Opportunities', 'opportunities', 'id', 'Contacts', 'contacts', 'id', 'opportunities_contacts', 'opportunity_id', 'contact_id', 'many-to-many', NULL, NULL, 0, 0), ('7f9ccf78-f991-cb97-ef1f-519b40e49302', 'projects_accounts', 'Project', 'project', 'id', 'Accounts', 'accounts', 'id', 'projects_accounts', 'project_id', 'account_id', 'many-to-many', NULL, NULL, 0, 0), ('81d8be63-7be8-b734-c338-519b40e62ce6', 'projects_bugs', 'Project', 'project', 'id', 'Bugs', 'bugs', 'id', 'projects_bugs', 'project_id', 'bug_id', 'many-to-many', NULL, NULL, 0, 0), ('8437bdd3-5679-edeb-46f5-519b40b63819', 'projects_cases', 'Project', 'project', 'id', 'Cases', 'cases', 'id', 'projects_cases', 'project_id', 'case_id', 'many-to-many', NULL, NULL, 0, 0), ('8628a59d-e8a3-fa17-2033-519b4089a712', 'projects_contacts', 'Project', 'project', 'id', 'Contacts', 'contacts', 'id', 'projects_contacts', 'project_id', 'contact_id', 'many-to-many', NULL, NULL, 0, 0), ('87f3d78a-5d9e-bc55-4723-519b4037729a', 'projects_opportunities', 'Project', 'project', 'id', 'Opportunities', 'opportunities', 'id', 'projects_opportunities', 'project_id', 'opportunity_id', 'many-to-many', NULL, NULL, 0, 0), ('89f3cd47-a6c1-1c3b-7609-519b40791ded', 'schedulers_created_by_rel', 'Users', 'users', 'id', 'Schedulers', 'schedulers', 'created_by', NULL, NULL, NULL, 'one-to-one', NULL, NULL, 0, 0), ('8a7717d3-3dcd-6fcc-4148-519b40398df2', 'schedulers_modified_user_id_rel', 'Users', 'users', 'id', 'Schedulers', 'schedulers', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('8aee942e-8e66-1c04-c8ba-519b404341f9', 'schedulers_jobs_rel', 'Schedulers', 'schedulers', 'id', 'SchedulersJobs', 'job_queue', 'scheduler_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('8b6d722a-23ea-3cb6-6b48-519b40a2f948', 'prospect_list_campaigns', 'ProspectLists', 'prospect_lists', 'id', 'Campaigns', 'campaigns', 'id', 'prospect_list_campaigns', 'prospect_list_id', 'campaign_id', 'many-to-many', NULL, NULL, 0, 0), ('8d935f4d-85a7-40d9-43d8-519b40f14357', 'schedulersjobs_assigned_user', 'Users', 'users', 'id', 'SchedulersJobs', 'schedulersjobs', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('8da069cc-c46f-735c-aeb0-519b40a722a3', 'prospect_list_contacts', 'ProspectLists', 'prospect_lists', 'id', 'Contacts', 'contacts', 'id', 'prospect_lists_prospects', 'prospect_list_id', 'related_id', 'many-to-many', 'related_type', 'Contacts', 0, 0), ('8e3e7467-a0f8-cbab-1481-519b401ee3d5', 'prospect_list_prospects', 'ProspectLists', 'prospect_lists', 'id', 'Prospects', 'prospects', 'id', 'prospect_lists_prospects', 'prospect_list_id', 'related_id', 'many-to-many', 'related_type', 'Prospects', 0, 0), ('8e600105-3545-7ebb-7c5a-519b401a6969', 'projects_project_tasks', 'Project', 'project', 'id', 'ProjectTask', 'project_task', 'project_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('8ece96ec-7b63-4817-6a0b-519b40fbe862', 'prospect_list_leads', 'ProspectLists', 'prospect_lists', 'id', 'Leads', 'leads', 'id', 'prospect_lists_prospects', 'prospect_list_id', 'related_id', 'many-to-many', 'related_type', 'Leads', 0, 0), ('8f3c1bc6-68d5-0e49-e4c4-519b40e18a1d', 'prospect_list_users', 'ProspectLists', 'prospect_lists', 'id', 'Users', 'users', 'id', 'prospect_lists_prospects', 'prospect_list_id', 'related_id', 'many-to-many', 'related_type', 'Users', 0, 0), ('8fa71391-d550-3d96-20dc-519b4000864f', 'prospect_list_accounts', 'ProspectLists', 'prospect_lists', 'id', 'Accounts', 'accounts', 'id', 'prospect_lists_prospects', 'prospect_list_id', 'related_id', 'many-to-many', 'related_type', 'Accounts', 0, 0), ('933b74f1-54a7-2ede-337b-519b4082e379', 'roles_users', 'Roles', 'roles', 'id', 'Users', 'users', 'id', 'roles_users', 'role_id', 'user_id', 'many-to-many', NULL, NULL, 0, 0), ('9c6fdd5a-785d-489a-d707-519b401c83dc', 'cases_modified_user', 'Users', 'users', 'id', 'Cases', 'cases', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('9d009a9a-d5c5-109c-5c51-519b40937519', 'cases_created_by', 'Users', 'users', 'id', 'Cases', 'cases', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('9d803e46-6b73-bd2d-d1b7-519b40650b57', 'cases_assigned_user', 'Users', 'users', 'id', 'Cases', 'cases', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('9e05a071-4301-cbbf-273b-519b4068cde2', 'case_calls', 'Cases', 'cases', 'id', 'Calls', 'calls', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Cases', 0, 0), ('9e6cec82-017e-32e5-66f8-519b405ccd72', 'case_tasks', 'Cases', 'cases', 'id', 'Tasks', 'tasks', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Cases', 0, 0), ('9ee1da25-0217-9ce0-13c4-519b40f560eb', 'case_notes', 'Cases', 'cases', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Cases', 0, 0), ('9f59d59c-331a-5a77-a3ad-519b40d858b3', 'case_meetings', 'Cases', 'cases', 'id', 'Meetings', 'meetings', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Cases', 0, 0), ('9fc62997-e39a-421e-52e3-519b409312ad', 'case_emails', 'Cases', 'cases', 'id', 'Emails', 'emails', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Cases', 0, 0), ('a929eeeb-8bf2-e51d-949e-519b40c20501', 'contacts_modified_user', 'Users', 'users', 'id', 'Contacts', 'contacts', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('a9b7b5fa-2a28-3b79-aad2-519b40d6fc3b', 'contacts_created_by', 'Users', 'users', 'id', 'Contacts', 'contacts', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('aa394bc9-f439-332d-5578-519b40587777', 'contacts_assigned_user', 'Users', 'users', 'id', 'Contacts', 'contacts', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('aaac08d1-d3d6-f62e-3448-519b4053b6ed', 'contacts_email_addresses', 'Contacts', 'contacts', 'id', 'EmailAddresses', 'email_addresses', 'id', 'email_addr_bean_rel', 'bean_id', 'email_address_id', 'many-to-many', 'bean_module', 'Contacts', 0, 0), ('ab91491d-44e2-6eba-62ed-519b40979ee5', 'contacts_email_addresses_primary', 'Contacts', 'contacts', 'id', 'EmailAddresses', 'email_addresses', 'id', 'email_addr_bean_rel', 'bean_id', 'email_address_id', 'many-to-many', 'primary_address', '1', 0, 0), ('ac0887f8-93f6-5149-d53e-519b404f0c49', 'contact_direct_reports', 'Contacts', 'contacts', 'id', 'Contacts', 'contacts', 'reports_to_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('ac6c6493-1762-aa5d-9191-519b400c0056', 'contact_leads', 'Contacts', 'contacts', 'id', 'Leads', 'leads', 'contact_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('acd8bf3e-0b9c-574b-7b53-519b404865dc', 'contact_notes', 'Contacts', 'contacts', 'id', 'Notes', 'notes', 'contact_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('ad482080-10c7-6bb1-1347-519b40fc30b2', 'contact_tasks', 'Contacts', 'contacts', 'id', 'Tasks', 'tasks', 'contact_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('ad9b12bd-b48a-8857-e9f9-519b40c227f0', 'contact_tasks_parent', 'Contacts', 'contacts', 'id', 'Tasks', 'tasks', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Contacts', 0, 0), ('ae0afc59-ba40-73e6-d0b8-519b409d711b', 'contact_campaign_log', 'Contacts', 'contacts', 'id', 'CampaignLog', 'campaign_log', 'target_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('b7c3ad27-b195-f099-b8ef-519b407c4f71', 'bugs_modified_user', 'Users', 'users', 'id', 'Bugs', 'bugs', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('b859bb44-ec6a-ce0b-ff49-519b401a22e6', 'bugs_created_by', 'Users', 'users', 'id', 'Bugs', 'bugs', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('b90899da-330f-f182-b13b-519b4090b2c1', 'bugs_assigned_user', 'Users', 'users', 'id', 'Bugs', 'bugs', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('b975da7e-3643-dc8b-d326-519b40677dc4', 'bug_tasks', 'Bugs', 'bugs', 'id', 'Tasks', 'tasks', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Bugs', 0, 0), ('ba115005-8796-7c01-2519-519b40d377de', 'bug_meetings', 'Bugs', 'bugs', 'id', 'Meetings', 'meetings', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Bugs', 0, 0), ('ba9c9b5a-e15c-302d-db8d-519b402ecda0', 'bug_calls', 'Bugs', 'bugs', 'id', 'Calls', 'calls', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Bugs', 0, 0), ('bb076d9b-4e93-5ace-e035-519b40f7caee', 'bug_emails', 'Bugs', 'bugs', 'id', 'Emails', 'emails', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Bugs', 0, 0), ('bb8a3e47-f3c1-aa39-1050-519b401c67e5', 'bug_notes', 'Bugs', 'bugs', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Bugs', 0, 0), ('bc265ed9-5e0b-7c35-c6a7-519b4094a19c', 'bugs_release', 'Releases', 'releases', 'id', 'Bugs', 'bugs', 'found_in_release', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('bc9667e9-ba89-885c-fca4-519b405b803d', 'bugs_fixed_in_release', 'Releases', 'releases', 'id', 'Bugs', 'bugs', 'fixed_in_release', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('c28c0d41-ad86-8720-364e-519b406ba82d', 'sugarfeed_modified_user', 'Users', 'users', 'id', 'SugarFeed', 'sugarfeed', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('c8c60582-8f57-8fb5-3f2e-519b40e2b037', 'sugarfeed_created_by', 'Users', 'users', 'id', 'SugarFeed', 'sugarfeed', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('c9af7686-bc52-3742-2592-519b40b61ec1', 'documents_modified_user', 'Users', 'users', 'id', 'Documents', 'documents', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('ca08364f-f482-2aeb-2dfb-519b4061a83a', 'documents_created_by', 'Users', 'users', 'id', 'Documents', 'documents', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('ca906c72-fa6c-e5ca-f207-519b40693fd5', 'documents_assigned_user', 'Users', 'users', 'id', 'Documents', 'documents', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('ca96e9ee-7b2a-a9d9-841c-519b4002e457', 'accounts_modified_user', 'Users', 'users', 'id', 'Accounts', 'accounts', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('cb2597a2-31bb-3c37-d41f-519b4003cf9a', 'accounts_created_by', 'Users', 'users', 'id', 'Accounts', 'accounts', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('cb375cd2-8fb2-f047-ce76-519b407c21ef', 'document_revisions', 'Documents', 'documents', 'id', 'DocumentRevisions', 'document_revisions', 'document_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('cb9a89a5-ae45-b0f9-ceae-519b40c8769a', 'accounts_assigned_user', 'Users', 'users', 'id', 'Accounts', 'accounts', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('cc1d73e6-776e-3205-c79c-519b406076bc', 'accounts_email_addresses', 'Accounts', 'accounts', 'id', 'EmailAddresses', 'email_addresses', 'id', 'email_addr_bean_rel', 'bean_id', 'email_address_id', 'many-to-many', 'bean_module', 'Accounts', 0, 0), ('ccfe4da8-ebaf-2bb9-f073-519b4012cf86', 'accounts_email_addresses_primary', 'Accounts', 'accounts', 'id', 'EmailAddresses', 'email_addresses', 'id', 'email_addr_bean_rel', 'bean_id', 'email_address_id', 'many-to-many', 'primary_address', '1', 0, 0), ('cd648e40-0830-acbe-8b0f-519b401376e7', 'member_accounts', 'Accounts', 'accounts', 'id', 'Accounts', 'accounts', 'parent_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('cdddea42-f4b7-f3bb-4ad3-519b40e25de9', 'account_cases', 'Accounts', 'accounts', 'id', 'Cases', 'cases', 'account_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('ce2228d3-2b9b-9240-a2e7-519b4052480b', 'revisions_created_by', 'Users', 'users', 'id', 'DocumentRevisions', 'document_revisions', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('ce9258a0-316d-77cf-f51e-519b4074d37d', 'account_tasks', 'Accounts', 'accounts', 'id', 'Tasks', 'tasks', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Accounts', 0, 0), ('ceb40f9f-4222-e9f2-39c6-519b40eb82f5', 'sugarfeed_assigned_user', 'Users', 'users', 'id', 'SugarFeed', 'sugarfeed', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('cefd1cf3-1417-5e3d-575c-519b40c98276', 'account_notes', 'Accounts', 'accounts', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Accounts', 0, 0), ('cf7f6575-40e1-e5d1-10bd-519b402d0376', 'account_meetings', 'Accounts', 'accounts', 'id', 'Meetings', 'meetings', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Accounts', 0, 0), ('d00516ff-9b87-089b-6e7a-519b40c2917d', 'account_calls', 'Accounts', 'accounts', 'id', 'Calls', 'calls', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Accounts', 0, 0), ('d06fc2c5-92f1-403c-1873-519b406ac9ea', 'account_emails', 'Accounts', 'accounts', 'id', 'Emails', 'emails', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Accounts', 0, 0), ('d0f64d57-bf82-4b78-ff9e-519b40a90c56', 'account_leads', 'Accounts', 'accounts', 'id', 'Leads', 'leads', 'account_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('d17710f9-d138-f6d7-f846-519b4075c161', 'account_campaign_log', 'Accounts', 'accounts', 'id', 'CampaignLog', 'campaign_log', 'target_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('d24b9342-49b6-6693-55f4-519b409dd9f6', 'user_direct_reports', 'Users', 'users', 'id', 'Users', 'users', 'reports_to_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('d2cdbc5a-e900-8982-8006-519b405c2b61', 'users_email_addresses', 'Users', 'users', 'id', 'EmailAddresses', 'email_addresses', 'id', 'email_addr_bean_rel', 'bean_id', 'email_address_id', 'many-to-many', 'bean_module', 'Users', 0, 0), ('d3870130-5783-7f1e-c3c5-519b40822512', 'users_email_addresses_primary', 'Users', 'users', 'id', 'EmailAddresses', 'email_addresses', 'id', 'email_addr_bean_rel', 'bean_id', 'email_address_id', 'many-to-many', 'primary_address', '1', 0, 0), ('da3c0877-f26e-7079-382d-519b40c6bff7', 'project_tasks_notes', 'ProjectTask', 'project_task', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'ProjectTask', 0, 0), ('dd33f00c-70bb-454c-1079-519b4064a40c', 'campaignlog_contact', 'CampaignLog', 'campaign_log', 'related_id', 'Contacts', 'contacts', 'id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('ddb7a7d7-4947-e2d2-d3e8-519b404c8967', 'campaignlog_lead', 'CampaignLog', 'campaign_log', 'related_id', 'Leads', 'leads', 'id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('de20da48-cff7-74de-b088-519b40d103e6', 'campaignlog_created_opportunities', 'CampaignLog', 'campaign_log', 'related_id', 'Opportunities', 'opportunities', 'id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('dea9e288-b818-ba92-4304-519b40ef0a46', 'campaignlog_targeted_users', 'CampaignLog', 'campaign_log', 'target_id', 'Users', 'users', 'id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('df4369c3-555e-f400-9511-519b4069d254', 'campaignlog_sent_emails', 'CampaignLog', 'campaign_log', 'related_id', 'Emails', 'emails', 'id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('df695fda-ab4d-39ea-4747-519b40af78a3', 'opportunities_modified_user', 'Users', 'users', 'id', 'Opportunities', 'opportunities', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('e00109e0-094c-8f2a-31cb-519b4046664a', 'project_tasks_tasks', 'ProjectTask', 'project_task', 'id', 'Tasks', 'tasks', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'ProjectTask', 0, 0), ('e0391489-ba95-6dc3-4d7a-519b40b693f6', 'opportunities_created_by', 'Users', 'users', 'id', 'Opportunities', 'opportunities', 'created_by', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('e0ef9cb5-a13d-b79d-c34b-519b400397ef', 'opportunities_assigned_user', 'Users', 'users', 'id', 'Opportunities', 'opportunities', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('e183dff7-05ce-8091-8d38-519b40327b7c', 'opportunity_calls', 'Opportunities', 'opportunities', 'id', 'Calls', 'calls', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Opportunities', 0, 0), ('e1fba8b7-7fe3-0d47-3104-519b40d92c0c', 'opportunity_meetings', 'Opportunities', 'opportunities', 'id', 'Meetings', 'meetings', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Opportunities', 0, 0), ('e2812995-35d7-5ee1-0368-519b40ca80ff', 'opportunity_tasks', 'Opportunities', 'opportunities', 'id', 'Tasks', 'tasks', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Opportunities', 0, 0), ('e30e7a66-51c8-68e9-a54e-519b404f9106', 'opportunity_notes', 'Opportunities', 'opportunities', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Opportunities', 0, 0), ('e38301a1-8d6d-6c94-b346-519b404b44de', 'opportunity_emails', 'Opportunities', 'opportunities', 'id', 'Emails', 'emails', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Opportunities', 0, 0), ('e3fdb4ca-a440-de6f-a0f9-519b4036502e', 'opportunity_leads', 'Opportunities', 'opportunities', 'id', 'Leads', 'leads', 'opportunity_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('e4743dc1-ddd2-87e2-f143-519b407cd61c', 'opportunity_currencies', 'Opportunities', 'opportunities', 'currency_id', 'Currencies', 'currencies', 'id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('e489073a-259f-0e32-bc34-519b4057722a', 'project_tasks_meetings', 'ProjectTask', 'project_task', 'id', 'Meetings', 'meetings', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'ProjectTask', 0, 0), ('e4ddd44d-6b2f-56b4-ab46-519b40692de8', 'opportunities_campaign', 'Campaigns', 'campaigns', 'id', 'Opportunities', 'opportunities', 'campaign_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('e746ecea-0830-9d65-a933-519b406775e5', 'inbound_email_created_by', 'Users', 'users', 'id', 'InboundEmail', 'inbound_email', 'created_by', NULL, NULL, NULL, 'one-to-one', NULL, NULL, 0, 0), ('e7d00c0d-7728-a9e1-044b-519b4077d4ea', 'inbound_email_modified_user_id', 'Users', 'users', 'id', 'InboundEmail', 'inbound_email', 'modified_user_id', NULL, NULL, NULL, 'one-to-one', NULL, NULL, 0, 0), ('ea5e07b2-b645-4b35-cfa3-519b401a34a8', 'project_tasks_calls', 'ProjectTask', 'project_task', 'id', 'Calls', 'calls', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'ProjectTask', 0, 0), ('ecbb6455-e3e0-3d99-b59e-519b405aa3d3', 'saved_search_assigned_user', 'Users', 'users', 'id', 'SavedSearch', 'saved_search', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('efc10a74-1b41-ab26-4dd7-519b40a2c8df', 'project_tasks_emails', 'ProjectTask', 'project_task', 'id', 'Emails', 'emails', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'ProjectTask', 0, 0), ('f24885a0-a60e-47f8-90d9-519b40a4fe13', 'projects_notes', 'Project', 'project', 'id', 'Notes', 'notes', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Project', 0, 0), ('f2d776ce-0174-c153-9eff-519b40ff7645', 'projects_tasks', 'Project', 'project', 'id', 'Tasks', 'tasks', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Project', 0, 0), ('f343cf13-9705-1aae-4d52-519b4021214f', 'projects_meetings', 'Project', 'project', 'id', 'Meetings', 'meetings', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Project', 0, 0), ('f3c87296-7e2d-3aba-b08e-519b40d8abe5', 'projects_calls', 'Project', 'project', 'id', 'Calls', 'calls', 'parent_id', NULL, NULL, NULL, 'one-to-many', 'parent_type', 'Project', 0, 0), ('f3c9b56b-ab5b-ce80-d978-519b40f3ce6d', 'emailtemplates_assigned_user', 'Users', 'users', 'id', 'EmailTemplates', 'email_templates', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('f47b0bae-5fd6-af7c-d7ed-519b407dd811', 'project_tasks_assigned_user', 'Users', 'users', 'id', 'ProjectTask', 'project_task', 'assigned_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0), ('fac900d6-ac10-0121-e1d7-519b40fb5d3b', 'project_tasks_modified_user', 'Users', 'users', 'id', 'ProjectTask', 'project_task', 'modified_user_id', NULL, NULL, NULL, 'one-to-many', NULL, NULL, 0, 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `releases` -- CREATE TABLE IF NOT EXISTS `releases` ( `id` char(36) NOT NULL, `deleted` tinyint(1) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `name` varchar(50) DEFAULT NULL, `list_order` int(4) DEFAULT NULL, `status` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_releases` (`name`,`deleted`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `roles` -- CREATE TABLE IF NOT EXISTS `roles` ( `id` char(36) NOT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `name` varchar(150) DEFAULT NULL, `description` text, `modules` text, `deleted` tinyint(1) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_role_id_del` (`id`,`deleted`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `roles_modules` -- CREATE TABLE IF NOT EXISTS `roles_modules` ( `id` varchar(36) NOT NULL, `role_id` varchar(36) DEFAULT NULL, `module_id` varchar(36) DEFAULT NULL, `allow` tinyint(1) DEFAULT '0', `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_role_id` (`role_id`), KEY `idx_module_id` (`module_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `roles_users` -- CREATE TABLE IF NOT EXISTS `roles_users` ( `id` varchar(36) NOT NULL, `role_id` varchar(36) DEFAULT NULL, `user_id` varchar(36) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_ru_role_id` (`role_id`), KEY `idx_ru_user_id` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `saved_search` -- CREATE TABLE IF NOT EXISTS `saved_search` ( `id` char(36) NOT NULL, `name` varchar(150) DEFAULT NULL, `search_module` varchar(150) DEFAULT NULL, `deleted` tinyint(1) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `assigned_user_id` char(36) DEFAULT NULL, `contents` text, `description` text, PRIMARY KEY (`id`), KEY `idx_desc` (`name`,`deleted`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `schedulers` -- CREATE TABLE IF NOT EXISTS `schedulers` ( `id` varchar(36) NOT NULL, `deleted` tinyint(1) DEFAULT '0', `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `job` varchar(255) DEFAULT NULL, `date_time_start` datetime DEFAULT NULL, `date_time_end` datetime DEFAULT NULL, `job_interval` varchar(100) DEFAULT NULL, `time_from` time DEFAULT NULL, `time_to` time DEFAULT NULL, `last_run` datetime DEFAULT NULL, `status` varchar(100) DEFAULT NULL, `catch_up` tinyint(1) DEFAULT '1', PRIMARY KEY (`id`), KEY `idx_schedule` (`date_time_start`,`deleted`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `schedulers` -- INSERT INTO `schedulers` (`id`, `deleted`, `date_entered`, `date_modified`, `created_by`, `modified_user_id`, `name`, `job`, `date_time_start`, `date_time_end`, `job_interval`, `time_from`, `time_to`, `last_run`, `status`, `catch_up`) VALUES ('ad75daba-230e-ddad-ec71-519b40a42567', 0, '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '1', 'Prune Tracker Tables', 'function::trimTracker', '2005-01-01 18:45:01', '2020-12-31 23:59:59', '0::2::1::*::*', NULL, NULL, NULL, 'Active', 1), ('aed41ca1-8da8-38e6-92da-519b405db8cf', 0, '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '1', 'Check Inbound Mailboxes', 'function::pollMonitoredInboxes', '2005-01-01 06:00:01', '2020-12-31 23:59:59', '*::*::*::*::*', NULL, NULL, NULL, 'Active', 0), ('af9b91ca-b924-84b5-0638-519b40e72f46', 0, '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '1', 'Run Nightly Process Bounced Campaign Emails', 'function::pollMonitoredInboxesForBouncedCampaignEmails', '2005-01-01 09:15:01', '2020-12-31 23:59:59', '0::2-6::*::*::*', NULL, NULL, NULL, 'Active', 1), ('b065bf5f-923d-b5cd-439e-519b40479d29', 0, '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '1', 'Run Nightly Mass Email Campaigns', 'function::runMassEmailCampaign', '2005-01-01 15:30:01', '2020-12-31 23:59:59', '0::2-6::*::*::*', NULL, NULL, NULL, 'Active', 1), ('b12ed706-585a-21b9-12cc-519b40ffef1f', 0, '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '1', 'Prune Database on 1st of Month', 'function::pruneDatabase', '2005-01-01 09:00:01', '2020-12-31 23:59:59', '0::4::1::*::*', NULL, NULL, NULL, 'Inactive', 0), ('b1f39cc2-ace5-8d54-5d55-519b4096a5ca', 0, '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '1', 'Run Email Reminder Notifications', 'function::sendEmailReminders', '2008-01-01 17:30:01', '2020-12-31 23:59:59', '*::*::*::*::*', NULL, NULL, NULL, 'Active', 0), ('b2b7d639-6514-ff1d-32f0-519b40a419d7', 0, '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '1', 'Clean Jobs Queue', 'function::cleanJobQueue', '2012-01-01 15:30:01', '2030-12-31 23:59:59', '0::5::*::*::*', NULL, NULL, NULL, 'Active', 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `sugarfeed` -- CREATE TABLE IF NOT EXISTS `sugarfeed` ( `id` char(36) NOT NULL, `name` varchar(255) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', `assigned_user_id` char(36) DEFAULT NULL, `related_module` varchar(100) DEFAULT NULL, `related_id` char(36) DEFAULT NULL, `link_url` varchar(255) DEFAULT NULL, `link_type` varchar(30) DEFAULT NULL, PRIMARY KEY (`id`), KEY `sgrfeed_date` (`date_entered`,`deleted`), KEY `idx_sgrfeed_rmod_rid_date` (`related_module`,`related_id`,`date_entered`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `tasks` -- CREATE TABLE IF NOT EXISTS `tasks` ( `id` char(36) NOT NULL, `name` varchar(50) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `description` text, `deleted` tinyint(1) DEFAULT '0', `assigned_user_id` char(36) DEFAULT NULL, `status` varchar(100) DEFAULT 'Not Started', `date_due_flag` tinyint(1) DEFAULT '0', `date_due` datetime DEFAULT NULL, `date_start_flag` tinyint(1) DEFAULT '0', `date_start` datetime DEFAULT NULL, `parent_type` varchar(255) DEFAULT NULL, `parent_id` char(36) DEFAULT NULL, `contact_id` char(36) DEFAULT NULL, `priority` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_tsk_name` (`name`), KEY `idx_task_con_del` (`contact_id`,`deleted`), KEY `idx_task_par_del` (`parent_id`,`parent_type`,`deleted`), KEY `idx_task_assigned` (`assigned_user_id`), KEY `idx_task_status` (`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `tracker` -- CREATE TABLE IF NOT EXISTS `tracker` ( `id` int(11) NOT NULL AUTO_INCREMENT, `monitor_id` char(36) NOT NULL, `user_id` varchar(36) DEFAULT NULL, `module_name` varchar(255) DEFAULT NULL, `item_id` varchar(36) DEFAULT NULL, `item_summary` varchar(255) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `action` varchar(255) DEFAULT NULL, `session_id` varchar(36) DEFAULT NULL, `visible` tinyint(1) DEFAULT '0', `deleted` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `idx_tracker_iid` (`item_id`), KEY `idx_tracker_userid_vis_id` (`user_id`,`visible`,`id`), KEY `idx_tracker_userid_itemid_vis` (`user_id`,`item_id`,`visible`), KEY `idx_tracker_monitor_id` (`monitor_id`), KEY `idx_tracker_date_modified` (`date_modified`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `upgrade_history` -- CREATE TABLE IF NOT EXISTS `upgrade_history` ( `id` char(36) NOT NULL, `filename` varchar(255) DEFAULT NULL, `md5sum` varchar(32) DEFAULT NULL, `type` varchar(30) DEFAULT NULL, `status` varchar(50) DEFAULT NULL, `version` varchar(64) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `description` text, `id_name` varchar(255) DEFAULT NULL, `manifest` longtext, `date_entered` datetime DEFAULT NULL, `enabled` tinyint(1) DEFAULT '1', PRIMARY KEY (`id`), UNIQUE KEY `upgrade_history_md5_uk` (`md5sum`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `users` -- CREATE TABLE IF NOT EXISTS `users` ( `id` char(36) NOT NULL, `user_name` varchar(60) DEFAULT NULL, `user_hash` varchar(255) DEFAULT NULL, `system_generated_password` tinyint(1) DEFAULT NULL, `pwd_last_changed` datetime DEFAULT NULL, `authenticate_id` varchar(100) DEFAULT NULL, `sugar_login` tinyint(1) DEFAULT '1', `first_name` varchar(30) DEFAULT NULL, `last_name` varchar(30) DEFAULT NULL, `is_admin` tinyint(1) DEFAULT '0', `external_auth_only` tinyint(1) DEFAULT '0', `receive_notifications` tinyint(1) DEFAULT '1', `description` text, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `title` varchar(50) DEFAULT NULL, `department` varchar(50) DEFAULT NULL, `phone_home` varchar(50) DEFAULT NULL, `phone_mobile` varchar(50) DEFAULT NULL, `phone_work` varchar(50) DEFAULT NULL, `phone_other` varchar(50) DEFAULT NULL, `phone_fax` varchar(50) DEFAULT NULL, `status` varchar(100) DEFAULT NULL, `address_street` varchar(150) DEFAULT NULL, `address_city` varchar(100) DEFAULT NULL, `address_state` varchar(100) DEFAULT NULL, `address_country` varchar(100) DEFAULT NULL, `address_postalcode` varchar(20) DEFAULT NULL, `deleted` tinyint(1) DEFAULT NULL, `portal_only` tinyint(1) DEFAULT '0', `show_on_employees` tinyint(1) DEFAULT '1', `employee_status` varchar(100) DEFAULT NULL, `messenger_id` varchar(100) DEFAULT NULL, `messenger_type` varchar(100) DEFAULT NULL, `reports_to_id` char(36) DEFAULT NULL, `is_group` tinyint(1) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_user_name` (`user_name`,`is_group`,`status`,`last_name`,`first_name`,`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `users` -- INSERT INTO `users` (`id`, `user_name`, `user_hash`, `system_generated_password`, `pwd_last_changed`, `authenticate_id`, `sugar_login`, `first_name`, `last_name`, `is_admin`, `external_auth_only`, `receive_notifications`, `description`, `date_entered`, `date_modified`, `modified_user_id`, `created_by`, `title`, `department`, `phone_home`, `phone_mobile`, `phone_work`, `phone_other`, `phone_fax`, `status`, `address_street`, `address_city`, `address_state`, `address_country`, `address_postalcode`, `deleted`, `portal_only`, `show_on_employees`, `employee_status`, `messenger_id`, `messenger_type`, `reports_to_id`, `is_group`) VALUES ('1', '@@ADMIN_NAME@@', '@@ADMIN_PASSWORD@@', 0, NULL, NULL, 1, NULL, 'Administrator', 1, 0, 1, NULL, '2013-05-21 09:38:34', '2013-05-21 09:39:54', '1', '', 'Administrator', NULL, NULL, NULL, NULL, NULL, NULL, 'Active', NULL, NULL, NULL, NULL, NULL, 0, 0, 1, 'Active', NULL, NULL, '', 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `users_feeds` -- CREATE TABLE IF NOT EXISTS `users_feeds` ( `user_id` varchar(36) DEFAULT NULL, `feed_id` varchar(36) DEFAULT NULL, `rank` int(11) DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', KEY `idx_ud_user_id` (`user_id`,`feed_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `users_last_import` -- CREATE TABLE IF NOT EXISTS `users_last_import` ( `id` char(36) NOT NULL, `assigned_user_id` char(36) DEFAULT NULL, `import_module` varchar(36) DEFAULT NULL, `bean_type` varchar(36) DEFAULT NULL, `bean_id` char(36) DEFAULT NULL, `deleted` tinyint(1) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_user_id` (`assigned_user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `users_password_link` -- CREATE TABLE IF NOT EXISTS `users_password_link` ( `id` char(36) NOT NULL, `username` varchar(36) DEFAULT NULL, `date_generated` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_username` (`username`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `users_signatures` -- CREATE TABLE IF NOT EXISTS `users_signatures` ( `id` char(36) NOT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `deleted` tinyint(1) DEFAULT NULL, `user_id` varchar(36) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `signature` text, `signature_html` text, PRIMARY KEY (`id`), KEY `idx_usersig_uid` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `user_preferences` -- CREATE TABLE IF NOT EXISTS `user_preferences` ( `id` char(36) NOT NULL, `category` varchar(50) DEFAULT NULL, `deleted` tinyint(1) DEFAULT '0', `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `assigned_user_id` char(36) DEFAULT NULL, `contents` longtext, PRIMARY KEY (`id`), KEY `idx_userprefnamecat` (`assigned_user_id`,`category`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `user_preferences` -- INSERT INTO `user_preferences` (`id`, `category`, `deleted`, `date_entered`, `date_modified`, `assigned_user_id`, `contents`) VALUES ('10774f63-b8d1-5f54-145f-519b408d44ae', 'Home2_ACCOUNT', 0, '2013-05-21 09:39:54', '2013-05-21 09:39:54', '1', 'YToxOntzOjEzOiJsaXN0dmlld09yZGVyIjthOjI6e3M6Nzoib3JkZXJCeSI7czoxMjoiZGF0ZV9lbnRlcmVkIjtzOjk6InNvcnRPcmRlciI7czo0OiJERVNDIjt9fQ=='), ('10d58513-2b2d-d1ef-1589-519b406cd068', 'Home2_LEAD', 0, '2013-05-21 09:39:54', '2013-05-21 09:39:54', '1', 'YToxOntzOjEzOiJsaXN0dmlld09yZGVyIjthOjI6e3M6Nzoib3JkZXJCeSI7czoxMjoiZGF0ZV9lbnRlcmVkIjtzOjk6InNvcnRPcmRlciI7czo0OiJERVNDIjt9fQ=='), ('11380aef-4cb0-6ab0-93bd-519b40ba3bd4', 'Home2_SUGARFEED', 0, '2013-05-21 09:39:54', '2013-05-21 09:39:54', '1', 'YToxOntzOjEzOiJsaXN0dmlld09yZGVyIjthOjI6e3M6Nzoib3JkZXJCeSI7czoxMjoiZGF0ZV9lbnRlcmVkIjtzOjk6InNvcnRPcmRlciI7czo0OiJERVNDIjt9fQ=='), ('3a0c2a02-c0ce-8baa-47e8-519b4005befa', 'ETag', 0, '2013-05-21 09:39:54', '2013-05-21 09:39:54', '1', 'YToxOntzOjEyOiJtYWluTWVudUVUYWciO2k6MTt9'), ('ac1eff71-d057-f72c-00a0-519b405fd8ff', 'global', 0, '2013-05-21 09:38:34', '2013-05-21 09:39:54', '1', 'YToyNzp7czoyMDoiY2FsZW5kYXJfcHVibGlzaF9rZXkiO3M6MzY6ImFiZWJhZTU3LWRmNWYtMTgyNy0wMWJlLTUxOWI0MDg0YzY2MSI7czoxMDoidXNlcl90aGVtZSI7czo2OiJTdWdhcjUiO3M6MTM6InJlbWluZGVyX3RpbWUiO2k6MTgwMDtzOjEyOiJtYWlsbWVyZ2Vfb24iO3M6Mjoib24iO3M6ODoidGltZXpvbmUiO3M6MTM6IkV1cm9wZS9CZXJsaW4iO3M6MTY6InN3YXBfbGFzdF92aWV3ZWQiO3M6MDoiIjtzOjE0OiJzd2FwX3Nob3J0Y3V0cyI7czowOiIiO3M6MTk6Im5hdmlnYXRpb25fcGFyYWRpZ20iO3M6MjoiZ20iO3M6MTM6InN1YnBhbmVsX3RhYnMiO3M6MDoiIjtzOjE0OiJtb2R1bGVfZmF2aWNvbiI7czowOiIiO3M6OToiaGlkZV90YWJzIjthOjA6e31zOjExOiJyZW1vdmVfdGFicyI7YTowOnt9czo3OiJub19vcHBzIjtzOjM6Im9mZiI7czoxOToiZW1haWxfcmVtaW5kZXJfdGltZSI7aTotMTtzOjI6InV0IjtzOjE6IjEiO3M6ODoiY3VycmVuY3kiO3M6MzoiLTk5IjtzOjM1OiJkZWZhdWx0X2N1cnJlbmN5X3NpZ25pZmljYW50X2RpZ2l0cyI7czoxOiIyIjtzOjExOiJudW1fZ3JwX3NlcCI7czoxOiIsIjtzOjc6ImRlY19zZXAiO3M6MToiLiI7czo1OiJkYXRlZiI7czo1OiJtL2QvWSI7czo1OiJ0aW1lZiI7czo0OiJoOmlhIjtzOjI2OiJkZWZhdWx0X2xvY2FsZV9uYW1lX2Zvcm1hdCI7czo1OiJzIGYgbCI7czoxNDoidXNlX3JlYWxfbmFtZXMiO3M6Mjoib24iO3M6MTc6Im1haWxfc210cGF1dGhfcmVxIjtzOjA6IiI7czoxMjoibWFpbF9zbXRwc3NsIjtpOjA7czoxNzoiZW1haWxfc2hvd19jb3VudHMiO2k6MDtzOjE5OiJ0aGVtZV9jdXJyZW50X2dyb3VwIjtzOjM6IkFsbCI7fQ=='), ('d2f10ffe-060a-c499-eac1-519b402081fc', 'Home', 0, '2013-05-21 09:39:54', '2013-05-21 09:39:54', '1', 'YToyOntzOjg6ImRhc2hsZXRzIjthOjg6e3M6MzY6Ijc3ODNmMzhmLWM4N2MtNzFmOC1mYmI3LTUxOWI0MGNjYzcyYyI7YTo1OntzOjk6ImNsYXNzTmFtZSI7czoxMzoiaUZyYW1lRGFzaGxldCI7czo2OiJtb2R1bGUiO3M6NDoiSG9tZSI7czoxMToiZm9yY2VDb2x1bW4iO2k6MDtzOjEyOiJmaWxlTG9jYXRpb24iO3M6NTM6Im1vZHVsZXMvSG9tZS9EYXNobGV0cy9pRnJhbWVEYXNobGV0L2lGcmFtZURhc2hsZXQucGhwIjtzOjc6Im9wdGlvbnMiO2E6Mzp7czoxMDoidGl0bGVMYWJlbCI7czozMDoiTEJMX0RBU0hMRVRfRElTQ09WRVJfU1VHQVJfUFJPIjtzOjM6InVybCI7czo0MToiaHR0cDovL3d3dy5zdWdhcmNybS5jb20vY3JtL3Byb2R1Y3QvZ29wcm8iO3M6NjoiaGVpZ2h0IjtpOjMxNTt9fXM6MzY6Ijc3ODdiMmRmLTk3NDUtMWQ2MC00N2NlLTUxOWI0MDg2ZDI3NCI7YTo0OntzOjk6ImNsYXNzTmFtZSI7czoxNjoiU3VnYXJGZWVkRGFzaGxldCI7czo2OiJtb2R1bGUiO3M6OToiU3VnYXJGZWVkIjtzOjExOiJmb3JjZUNvbHVtbiI7aToxO3M6MTI6ImZpbGVMb2NhdGlvbiI7czo2NDoibW9kdWxlcy9TdWdhckZlZWQvRGFzaGxldHMvU3VnYXJGZWVkRGFzaGxldC9TdWdhckZlZWREYXNobGV0LnBocCI7fXM6MzY6Ijc3OGE0ZWVhLWI3NjQtNTc4Ny1hMTBjLTUxOWI0MGIzYWQzYSI7YTo1OntzOjk6ImNsYXNzTmFtZSI7czoxMzoiaUZyYW1lRGFzaGxldCI7czo2OiJtb2R1bGUiO3M6NDoiSG9tZSI7czoxMToiZm9yY2VDb2x1bW4iO2k6MTtzOjEyOiJmaWxlTG9jYXRpb24iO3M6NTM6Im1vZHVsZXMvSG9tZS9EYXNobGV0cy9pRnJhbWVEYXNobGV0L2lGcmFtZURhc2hsZXQucGhwIjtzOjc6Im9wdGlvbnMiO2E6Mzp7czoxMDoidGl0bGVMYWJlbCI7czoyMjoiTEJMX0RBU0hMRVRfU1VHQVJfTkVXUyI7czozOiJ1cmwiO3M6NDA6Imh0dHA6Ly93d3cuc3VnYXJjcm0uY29tL2NybS9wcm9kdWN0L25ld3MiO3M6NjoiaGVpZ2h0IjtpOjMxNTt9fXM6MzY6IjdlYjQ0ZjE1LTNlOTUtZmFjZC1lNmUyLTUxOWI0MGExNTQ1NSI7YTo1OntzOjk6ImNsYXNzTmFtZSI7czoxNDoiTXlDYWxsc0Rhc2hsZXQiO3M6NjoibW9kdWxlIjtzOjU6IkNhbGxzIjtzOjExOiJmb3JjZUNvbHVtbiI7aTowO3M6MTI6ImZpbGVMb2NhdGlvbiI7czo1NjoibW9kdWxlcy9DYWxscy9EYXNobGV0cy9NeUNhbGxzRGFzaGxldC9NeUNhbGxzRGFzaGxldC5waHAiO3M6Nzoib3B0aW9ucyI7YTowOnt9fXM6MzY6IjgwODQzOGQ1LWY1YjQtYjIyZC0xNDJkLTUxOWI0MGNmNTA0ZCI7YTo1OntzOjk6ImNsYXNzTmFtZSI7czoxNzoiTXlNZWV0aW5nc0Rhc2hsZXQiO3M6NjoibW9kdWxlIjtzOjg6Ik1lZXRpbmdzIjtzOjExOiJmb3JjZUNvbHVtbiI7aTowO3M6MTI6ImZpbGVMb2NhdGlvbiI7czo2NToibW9kdWxlcy9NZWV0aW5ncy9EYXNobGV0cy9NeU1lZXRpbmdzRGFzaGxldC9NeU1lZXRpbmdzRGFzaGxldC5waHAiO3M6Nzoib3B0aW9ucyI7YTowOnt9fXM6MzY6IjgxZjk2ZmMzLTNjMTEtMTAwMi1lODQ2LTUxOWI0MDM1ZGEwNiI7YTo1OntzOjk6ImNsYXNzTmFtZSI7czoyMjoiTXlPcHBvcnR1bml0aWVzRGFzaGxldCI7czo2OiJtb2R1bGUiO3M6MTM6Ik9wcG9ydHVuaXRpZXMiO3M6MTE6ImZvcmNlQ29sdW1uIjtpOjA7czoxMjoiZmlsZUxvY2F0aW9uIjtzOjgwOiJtb2R1bGVzL09wcG9ydHVuaXRpZXMvRGFzaGxldHMvTXlPcHBvcnR1bml0aWVzRGFzaGxldC9NeU9wcG9ydHVuaXRpZXNEYXNobGV0LnBocCI7czo3OiJvcHRpb25zIjthOjA6e319czozNjoiODNjMzdkYTgtNzhjOS0zY2U4LWIwMjktNTE5YjQwOWMxMDYzIjthOjU6e3M6OToiY2xhc3NOYW1lIjtzOjE3OiJNeUFjY291bnRzRGFzaGxldCI7czo2OiJtb2R1bGUiO3M6ODoiQWNjb3VudHMiO3M6MTE6ImZvcmNlQ29sdW1uIjtpOjA7czoxMjoiZmlsZUxvY2F0aW9uIjtzOjY1OiJtb2R1bGVzL0FjY291bnRzL0Rhc2hsZXRzL015QWNjb3VudHNEYXNobGV0L015QWNjb3VudHNEYXNobGV0LnBocCI7czo3OiJvcHRpb25zIjthOjA6e319czozNjoiODVjM2JiYjEtMmRiMS1kYmE5LWI2MmQtNTE5YjQwMmUyOTdiIjthOjU6e3M6OToiY2xhc3NOYW1lIjtzOjE0OiJNeUxlYWRzRGFzaGxldCI7czo2OiJtb2R1bGUiO3M6NToiTGVhZHMiO3M6MTE6ImZvcmNlQ29sdW1uIjtpOjA7czoxMjoiZmlsZUxvY2F0aW9uIjtzOjU2OiJtb2R1bGVzL0xlYWRzL0Rhc2hsZXRzL015TGVhZHNEYXNobGV0L015TGVhZHNEYXNobGV0LnBocCI7czo3OiJvcHRpb25zIjthOjA6e319fXM6NToicGFnZXMiO2E6MTp7aTowO2E6Mzp7czo3OiJjb2x1bW5zIjthOjI6e2k6MDthOjI6e3M6NToid2lkdGgiO3M6MzoiNjAlIjtzOjg6ImRhc2hsZXRzIjthOjY6e2k6MDtzOjM2OiI3NzgzZjM4Zi1jODdjLTcxZjgtZmJiNy01MTliNDBjY2M3MmMiO2k6MTtzOjM2OiI3ZWI0NGYxNS0zZTk1LWZhY2QtZTZlMi01MTliNDBhMTU0NTUiO2k6MjtzOjM2OiI4MDg0MzhkNS1mNWI0LWIyMmQtMTQyZC01MTliNDBjZjUwNGQiO2k6MztzOjM2OiI4MWY5NmZjMy0zYzExLTEwMDItZTg0Ni01MTliNDAzNWRhMDYiO2k6NDtzOjM2OiI4M2MzN2RhOC03OGM5LTNjZTgtYjAyOS01MTliNDA5YzEwNjMiO2k6NTtzOjM2OiI4NWMzYmJiMS0yZGIxLWRiYTktYjYyZC01MTliNDAyZTI5N2IiO319aToxO2E6Mjp7czo1OiJ3aWR0aCI7czozOiI0MCUiO3M6ODoiZGFzaGxldHMiO2E6Mjp7aTowO3M6MzY6Ijc3ODdiMmRmLTk3NDUtMWQ2MC00N2NlLTUxOWI0MDg2ZDI3NCI7aToxO3M6MzY6Ijc3OGE0ZWVhLWI3NjQtNTc4Ny1hMTBjLTUxOWI0MGIzYWQzYSI7fX19czoxMDoibnVtQ29sdW1ucyI7czoxOiIyIjtzOjE0OiJwYWdlVGl0bGVMYWJlbCI7czoyMDoiTEJMX0hPTUVfUEFHRV8xX05BTUUiO319fQ=='), ('f2bb0236-b78c-966e-4593-519b4046eb63', 'Home2_CALL', 0, '2013-05-21 09:39:54', '2013-05-21 09:39:54', '1', 'YToxOntzOjEzOiJsaXN0dmlld09yZGVyIjthOjI6e3M6Nzoib3JkZXJCeSI7czoxMjoiZGF0ZV9lbnRlcmVkIjtzOjk6InNvcnRPcmRlciI7czo0OiJERVNDIjt9fQ=='), ('f9710504-d504-88cb-12ec-519b4055eb6f', 'Home2_MEETING', 0, '2013-05-21 09:39:54', '2013-05-21 09:39:54', '1', 'YToxOntzOjEzOiJsaXN0dmlld09yZGVyIjthOjI6e3M6Nzoib3JkZXJCeSI7czoxMjoiZGF0ZV9lbnRlcmVkIjtzOjk6InNvcnRPcmRlciI7czo0OiJERVNDIjt9fQ=='), ('ffb601e3-3a54-aad6-dd36-519b407bbcca', 'Home2_OPPORTUNITY', 0, '2013-05-21 09:39:54', '2013-05-21 09:39:54', '1', 'YToxOntzOjEzOiJsaXN0dmlld09yZGVyIjthOjI6e3M6Nzoib3JkZXJCeSI7czoxMjoiZGF0ZV9lbnRlcmVkIjtzOjk6InNvcnRPcmRlciI7czo0OiJERVNDIjt9fQ=='); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `vcals` -- CREATE TABLE IF NOT EXISTS `vcals` ( `id` char(36) NOT NULL, `deleted` tinyint(1) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `user_id` char(36) NOT NULL, `type` varchar(100) DEFAULT NULL, `source` varchar(100) DEFAULT NULL, `content` text, PRIMARY KEY (`id`), KEY `idx_vcal` (`type`,`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `versions` -- CREATE TABLE IF NOT EXISTS `versions` ( `id` char(36) NOT NULL, `deleted` tinyint(1) DEFAULT NULL, `date_entered` datetime DEFAULT NULL, `date_modified` datetime DEFAULT NULL, `modified_user_id` char(36) DEFAULT NULL, `created_by` char(36) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `file_version` varchar(255) DEFAULT NULL, `db_version` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_version` (`name`,`deleted`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `versions` -- INSERT INTO `versions` (`id`, `deleted`, `date_entered`, `date_modified`, `modified_user_id`, `created_by`, `name`, `file_version`, `db_version`) VALUES ('dce0c3e8-a431-5e34-86c3-519b4086d331', 0, '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '1', 'Chart Data Cache', '3.5.1', '3.5.1'), ('dd9af9dd-c47c-3c86-dd71-519b403c1517', 0, '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '1', 'htaccess', '3.5.1', '3.5.1'), ('de19a119-c453-24ce-51b7-519b407a67c3', 0, '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '1', 'Rebuild Relationships', '4.0.0', '4.0.0'), ('de9ba79c-e5b0-26cb-ee84-519b405b0825', 0, '2013-05-21 09:38:34', '2013-05-21 09:38:34', '1', '1', 'Rebuild Extensions', '4.0.0', '4.0.0');