Server IP : 103.53.40.154 / Your IP : 52.14.100.101 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /var/softaculous/ocportal/../oscom/../fuel/../luxcal/../ops/../whmcs81/../zurmo/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
-- MySQL dump 10.13 Distrib 5.5.49, for Linux (x86_64) -- -- Host: localhost Database: zurmo327 -- ------------------------------------------------------ -- Server version 5.5.49 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `__role_children_cache` -- DROP TABLE IF EXISTS `__role_children_cache`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `__role_children_cache` ( `permitable_id` int(11) NOT NULL DEFAULT '0', `role_id` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`permitable_id`,`role_id`), UNIQUE KEY `permitable_id` (`permitable_id`,`role_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `__role_children_cache` -- LOCK TABLES `__role_children_cache` WRITE; /*!40000 ALTER TABLE `__role_children_cache` DISABLE KEYS */; /*!40000 ALTER TABLE `__role_children_cache` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `_group` -- DROP TABLE IF EXISTS `_group`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `_group` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `permitable_id` int(11) unsigned DEFAULT NULL, `_group_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_eman` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `_group` -- LOCK TABLES `_group` WRITE; /*!40000 ALTER TABLE `_group` DISABLE KEYS */; INSERT INTO `_group` VALUES (1,'Super Administrators',2,NULL),(2,'Everyone',3,NULL); /*!40000 ALTER TABLE `_group` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `_group__user` -- DROP TABLE IF EXISTS `_group__user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `_group__user` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `_group_id` int(11) unsigned DEFAULT NULL, `_user_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_di_resu__di_puorg_` (`_group_id`,`_user_id`), KEY `di_puorg_` (`_group_id`), KEY `di_resu_` (`_user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `_group__user` -- LOCK TABLES `_group__user` WRITE; /*!40000 ALTER TABLE `_group__user` DISABLE KEYS */; INSERT INTO `_group__user` VALUES (1,1,1),(2,1,2); /*!40000 ALTER TABLE `_group__user` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `_right` -- DROP TABLE IF EXISTS `_right`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `_right` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `modulename` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `type` tinyint(11) DEFAULT NULL, `permitable_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=68 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `_right` -- LOCK TABLES `_right` WRITE; /*!40000 ALTER TABLE `_right` DISABLE KEYS */; INSERT INTO `_right` VALUES (1,'UsersModule','Login Via Web',1,3),(2,'UsersModule','Login Via Mobile',1,3),(3,'UsersModule','Login Via Web API',1,3),(4,'AccountsModule','Access Accounts Tab',1,3),(5,'AccountsModule','Create Accounts',1,3),(6,'AccountsModule','Delete Accounts',1,3),(7,'CampaignsModule','Access Campaigns Tab',1,3),(8,'CampaignsModule','Create Campaigns',1,3),(9,'CampaignsModule','Delete Campaigns',1,3),(10,'ContactsModule','Access Contacts Tab',1,3),(11,'ContactsModule','Create Contacts',1,3),(12,'ContactsModule','Delete Contacts',1,3),(13,'ConversationsModule','Access Conversations Tab',1,3),(14,'ConversationsModule','Create Conversations',1,3),(15,'ConversationsModule','Delete Conversations',1,3),(16,'EmailMessagesModule','Access Emails Tab',1,3),(17,'EmailMessagesModule','Create Emails',1,3),(18,'EmailMessagesModule','Delete Emails',1,3),(19,'EmailTemplatesModule','Access Email Templates',1,3),(20,'EmailTemplatesModule','Create Email Templates',1,3),(21,'EmailTemplatesModule','Delete Email Templates',1,3),(22,'LeadsModule','Access Leads Tab',1,3),(23,'LeadsModule','Create Leads',1,3),(24,'LeadsModule','Delete Leads',1,3),(25,'LeadsModule','Convert Leads',1,3),(26,'OpportunitiesModule','Access Opportunities Tab',1,3),(27,'OpportunitiesModule','Create Opportunities',1,3),(28,'OpportunitiesModule','Delete Opportunities',1,3),(29,'MarketingModule','Access Marketing Tab',1,3),(30,'MarketingListsModule','Access Marketing Lists Tab',1,3),(31,'MarketingListsModule','Create Marketing Lists',1,3),(32,'MarketingListsModule','Delete Marketing Lists',1,3),(33,'MeetingsModule','Access Meetings',1,3),(34,'MeetingsModule','Create Meetings',1,3),(35,'MeetingsModule','Delete Meetings',1,3),(36,'MissionsModule','Access Missions Tab',1,3),(37,'MissionsModule','Create Missions',1,3),(38,'MissionsModule','Delete Missions',1,3),(39,'NotesModule','Access Notes',1,3),(40,'NotesModule','Create Notes',1,3),(41,'NotesModule','Delete Notes',1,3),(42,'ReportsModule','Access Reports Tab',1,3),(43,'ReportsModule','Create Reports',1,3),(44,'ReportsModule','Delete Reports',1,3),(45,'TasksModule','Access Tasks',1,3),(46,'TasksModule','Create Tasks',1,3),(47,'TasksModule','Delete Tasks',1,3),(48,'HomeModule','Access Dashboards',1,3),(49,'HomeModule','Create Dashboards',1,3),(50,'HomeModule','Delete Dashboards',1,3),(51,'ExportModule','Access Export Tool',1,3),(52,'SocialItemsModule','Access Social Items',1,3),(53,'ProductsModule','Access Products Tab',1,3),(54,'ProductsModule','Create Products',1,3),(55,'ProductsModule','Delete Products',1,3),(56,'ProductTemplatesModule','Access Catalog Items Tab',1,3),(57,'ProductTemplatesModule','Create Catalog Items',1,3),(58,'ProductTemplatesModule','Delete Catalog Items',1,3),(59,'ProjectsModule','Access Projects Tab',1,3),(60,'ProjectsModule','Create Projects',1,3),(61,'ProjectsModule','Delete Projects',1,3),(62,'CalendarsModule','Access Calandar Tab',1,3),(63,'CalendarsModule','Create Calendar',1,3),(64,'CalendarsModule','Delete Calendar',1,3),(65,'UsersModule','Login Via Mobile',2,4),(66,'UsersModule','Login Via Web',2,4),(67,'UsersModule','Login Via Web API',2,4); /*!40000 ALTER TABLE `_right` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `_user` -- DROP TABLE IF EXISTS `_user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `_user` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `hash` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL, `language` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `locale` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `timezone` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `username` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `serializedavatardata` text COLLATE utf8_unicode_ci, `isactive` tinyint(1) unsigned DEFAULT NULL, `isrootuser` tinyint(1) unsigned DEFAULT NULL, `hidefromselecting` tinyint(1) unsigned DEFAULT NULL, `issystemuser` tinyint(1) unsigned DEFAULT NULL, `hidefromleaderboard` tinyint(1) unsigned DEFAULT NULL, `lastlogindatetime` datetime DEFAULT NULL, `permitable_id` int(11) unsigned DEFAULT NULL, `person_id` int(11) unsigned DEFAULT NULL, `currency_id` int(11) unsigned DEFAULT NULL, `manager__user_id` int(11) unsigned DEFAULT NULL, `role_id` int(11) unsigned DEFAULT NULL, `secondaryemail_email_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_emanresu` (`username`), KEY `permitable_id` (`permitable_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `_user` -- LOCK TABLES `_user` WRITE; /*!40000 ALTER TABLE `_user` DISABLE KEYS */; INSERT INTO `_user` VALUES (1,'[[admin_pass]]',NULL,NULL,'America/Chicago','super',NULL,1,1,NULL,NULL,NULL,NULL,1,1,NULL,NULL,NULL,NULL),(2,'$2y$12$8JogkPrMyWUs.JAEcM50eu82gc2BrHRutmg/V7JacMmqdTOaLFwXO',NULL,NULL,'America/Chicago','backendjoboractionuser',NULL,0,NULL,1,1,1,NULL,4,2,NULL,NULL,NULL,NULL); /*!40000 ALTER TABLE `_user` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `_user_meeting` -- DROP TABLE IF EXISTS `_user_meeting`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `_user_meeting` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `meeting_id` int(11) unsigned DEFAULT NULL, `_user_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_di_resu__di_gniteem` (`meeting_id`,`_user_id`), KEY `di_gniteem` (`meeting_id`), KEY `di_resu_` (`_user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `_user_meeting` -- LOCK TABLES `_user_meeting` WRITE; /*!40000 ALTER TABLE `_user_meeting` DISABLE KEYS */; /*!40000 ALTER TABLE `_user_meeting` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `account` -- DROP TABLE IF EXISTS `account`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `account` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `annualrevenue` double DEFAULT NULL, `description` text COLLATE utf8_unicode_ci, `employees` int(11) DEFAULT NULL, `latestactivitydatetime` datetime DEFAULT NULL, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `officephone` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL, `officefax` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL, `website` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, `account_id` int(11) unsigned DEFAULT NULL, `billingaddress_address_id` int(11) unsigned DEFAULT NULL, `industry_customfield_id` int(11) unsigned DEFAULT NULL, `primaryemail_email_id` int(11) unsigned DEFAULT NULL, `secondaryemail_email_id` int(11) unsigned DEFAULT NULL, `shippingaddress_address_id` int(11) unsigned DEFAULT NULL, `type_customfield_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `account` -- LOCK TABLES `account` WRITE; /*!40000 ALTER TABLE `account` DISABLE KEYS */; /*!40000 ALTER TABLE `account` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `account_project` -- DROP TABLE IF EXISTS `account_project`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `account_project` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `account_id` int(11) unsigned DEFAULT NULL, `project_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_di_tcejorp_di_tnuocca` (`account_id`,`project_id`), KEY `di_tnuocca` (`account_id`), KEY `di_tcejorp` (`project_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `account_project` -- LOCK TABLES `account_project` WRITE; /*!40000 ALTER TABLE `account_project` DISABLE KEYS */; /*!40000 ALTER TABLE `account_project` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `account_read` -- DROP TABLE IF EXISTS `account_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `account_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `account_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `account_read` -- LOCK TABLES `account_read` WRITE; /*!40000 ALTER TABLE `account_read` DISABLE KEYS */; /*!40000 ALTER TABLE `account_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `account_read_subscription` -- DROP TABLE IF EXISTS `account_read_subscription`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `account_read_subscription` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `userid` int(11) unsigned NOT NULL, `modelid` int(11) unsigned NOT NULL, `modifieddatetime` datetime DEFAULT NULL, `subscriptiontype` tinyint(4) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `userid_modelid` (`userid`,`modelid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `account_read_subscription` -- LOCK TABLES `account_read_subscription` WRITE; /*!40000 ALTER TABLE `account_read_subscription` DISABLE KEYS */; /*!40000 ALTER TABLE `account_read_subscription` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `account_read_subscription_temp_build` -- DROP TABLE IF EXISTS `account_read_subscription_temp_build`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `account_read_subscription_temp_build` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `accountid` int(11) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `account_read_subscription_temp_build` -- LOCK TABLES `account_read_subscription_temp_build` WRITE; /*!40000 ALTER TABLE `account_read_subscription_temp_build` DISABLE KEYS */; /*!40000 ALTER TABLE `account_read_subscription_temp_build` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `accountaccountaffiliation` -- DROP TABLE IF EXISTS `accountaccountaffiliation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `accountaccountaffiliation` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `item_id` int(11) unsigned DEFAULT NULL, `primaryaccountaffiliation_account_id` int(11) unsigned DEFAULT NULL, `secondaryaccountaffiliation_account_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `accountaccountaffiliation` -- LOCK TABLES `accountaccountaffiliation` WRITE; /*!40000 ALTER TABLE `accountaccountaffiliation` DISABLE KEYS */; /*!40000 ALTER TABLE `accountaccountaffiliation` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `accountcontactaffiliation` -- DROP TABLE IF EXISTS `accountcontactaffiliation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `accountcontactaffiliation` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `primary` tinyint(1) unsigned DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, `role_customfield_id` int(11) unsigned DEFAULT NULL, `accountaffiliation_account_id` int(11) unsigned DEFAULT NULL, `contactaffiliation_contact_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `accountcontactaffiliation` -- LOCK TABLES `accountcontactaffiliation` WRITE; /*!40000 ALTER TABLE `accountcontactaffiliation` DISABLE KEYS */; /*!40000 ALTER TABLE `accountcontactaffiliation` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `accountstarred` -- DROP TABLE IF EXISTS `accountstarred`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `accountstarred` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `basestarredmodel_id` int(11) unsigned DEFAULT NULL, `account_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `basestarredmodel_id_account_id` (`basestarredmodel_id`,`account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `accountstarred` -- LOCK TABLES `accountstarred` WRITE; /*!40000 ALTER TABLE `accountstarred` DISABLE KEYS */; /*!40000 ALTER TABLE `accountstarred` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `activelanguage` -- DROP TABLE IF EXISTS `activelanguage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `activelanguage` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `code` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `nativename` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `activationdatetime` datetime DEFAULT NULL, `lastupdatedatetime` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `activelanguage` -- LOCK TABLES `activelanguage` WRITE; /*!40000 ALTER TABLE `activelanguage` DISABLE KEYS */; /*!40000 ALTER TABLE `activelanguage` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `activity` -- DROP TABLE IF EXISTS `activity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `activity` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `latestdatetime` datetime DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `ownedsecurableitem_id` (`ownedsecurableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `activity` -- LOCK TABLES `activity` WRITE; /*!40000 ALTER TABLE `activity` DISABLE KEYS */; /*!40000 ALTER TABLE `activity` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `activity_item` -- DROP TABLE IF EXISTS `activity_item`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `activity_item` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `activity_id` int(11) unsigned DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_di_meti_di_ytivitca` (`activity_id`,`item_id`), KEY `di_ytivitca` (`activity_id`), KEY `di_meti` (`item_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `activity_item` -- LOCK TABLES `activity_item` WRITE; /*!40000 ALTER TABLE `activity_item` DISABLE KEYS */; /*!40000 ALTER TABLE `activity_item` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `actual_permissions_cache` -- DROP TABLE IF EXISTS `actual_permissions_cache`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `actual_permissions_cache` ( `securableitem_id` int(11) unsigned NOT NULL, `permitable_id` int(11) unsigned NOT NULL, `allow_permissions` tinyint(3) unsigned NOT NULL, `deny_permissions` tinyint(3) unsigned NOT NULL, PRIMARY KEY (`securableitem_id`,`permitable_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `actual_permissions_cache` -- LOCK TABLES `actual_permissions_cache` WRITE; /*!40000 ALTER TABLE `actual_permissions_cache` DISABLE KEYS */; /*!40000 ALTER TABLE `actual_permissions_cache` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `actual_rights_cache` -- DROP TABLE IF EXISTS `actual_rights_cache`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `actual_rights_cache` ( `identifier` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `entry` int(11) unsigned NOT NULL, PRIMARY KEY (`identifier`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `actual_rights_cache` -- LOCK TABLES `actual_rights_cache` WRITE; /*!40000 ALTER TABLE `actual_rights_cache` DISABLE KEYS */; /*!40000 ALTER TABLE `actual_rights_cache` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `address` -- DROP TABLE IF EXISTS `address`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `address` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `city` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, `country` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, `invalid` tinyint(1) unsigned DEFAULT NULL, `latitude` double DEFAULT NULL, `longitude` double DEFAULT NULL, `postalcode` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL, `street1` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, `street2` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, `state` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `address` -- LOCK TABLES `address` WRITE; /*!40000 ALTER TABLE `address` DISABLE KEYS */; /*!40000 ALTER TABLE `address` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `auditevent` -- DROP TABLE IF EXISTS `auditevent`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `auditevent` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `datetime` datetime DEFAULT NULL, `eventname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `modulename` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `modelclassname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `modelid` int(11) DEFAULT NULL, `serializeddata` text COLLATE utf8_unicode_ci, `_user_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `modelclass_modelid_index` (`modelclassname`,`modelid`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `auditevent` -- LOCK TABLES `auditevent` WRITE; /*!40000 ALTER TABLE `auditevent` DISABLE KEYS */; INSERT INTO `auditevent` VALUES (1,'[[regtime]]','User Password Changed','UsersModule','User',1,'s:5:\"super\";',1),(2,'[[regtime]]','Item Modified','ZurmoModule','User',1,'a:4:{i:0;s:10:\"Super User\";i:1;a:1:{i:0;s:8:\"isActive\";}i:2;s:5:\"false\";i:3;s:4:\"true\";}',1),(3,'[[regtime]]','User Password Changed','UsersModule','User',2,'s:22:\"backendjoboractionuser\";',1),(4,'[[regtime]]','Item Modified','ZurmoModule','User',2,'a:4:{i:0;s:11:\"System User\";i:1;a:1:{i:0;s:8:\"isActive\";}i:2;s:5:\"false\";i:3;s:4:\"true\";}',1),(5,'[[regtime]]','Item Modified','ZurmoModule','User',2,'a:4:{i:0;s:11:\"System User\";i:1;a:1:{i:0;s:8:\"isActive\";}i:2;s:4:\"true\";i:3;s:5:\"false\";}',1); /*!40000 ALTER TABLE `auditevent` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `autoresponder` -- DROP TABLE IF EXISTS `autoresponder`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `autoresponder` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `subject` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `htmlcontent` text COLLATE utf8_unicode_ci, `textcontent` text COLLATE utf8_unicode_ci, `fromoperationdurationinterval` int(11) DEFAULT NULL, `fromoperationdurationtype` text COLLATE utf8_unicode_ci, `operationtype` int(11) DEFAULT NULL, `enabletracking` tinyint(1) unsigned DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, `marketinglist_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `autoresponder` -- LOCK TABLES `autoresponder` WRITE; /*!40000 ALTER TABLE `autoresponder` DISABLE KEYS */; /*!40000 ALTER TABLE `autoresponder` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `autoresponderemailmessagecontent` -- DROP TABLE IF EXISTS `autoresponderemailmessagecontent`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `autoresponderemailmessagecontent` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `htmlcontent` text COLLATE utf8_unicode_ci, `textcontent` text COLLATE utf8_unicode_ci, `item_id` int(11) unsigned DEFAULT NULL, `autoresponder_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `autoresponderemailmessagecontent` -- LOCK TABLES `autoresponderemailmessagecontent` WRITE; /*!40000 ALTER TABLE `autoresponderemailmessagecontent` DISABLE KEYS */; /*!40000 ALTER TABLE `autoresponderemailmessagecontent` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `autoresponderitem` -- DROP TABLE IF EXISTS `autoresponderitem`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `autoresponderitem` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `processdatetime` datetime DEFAULT NULL, `processed` tinyint(1) unsigned DEFAULT NULL, `contact_id` int(11) unsigned DEFAULT NULL, `emailmessage_id` int(11) unsigned DEFAULT NULL, `autoresponder_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `autoresponderitem` -- LOCK TABLES `autoresponderitem` WRITE; /*!40000 ALTER TABLE `autoresponderitem` DISABLE KEYS */; /*!40000 ALTER TABLE `autoresponderitem` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `autoresponderitemactivity` -- DROP TABLE IF EXISTS `autoresponderitemactivity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `autoresponderitemactivity` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `emailmessageactivity_id` int(11) unsigned DEFAULT NULL, `autoresponderitem_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `emailmessageactivity_id_autoresponderitem_id` (`emailmessageactivity_id`,`autoresponderitem_id`), KEY `emailmessageactivity_id` (`emailmessageactivity_id`), KEY `autoresponderitem_id` (`autoresponderitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `autoresponderitemactivity` -- LOCK TABLES `autoresponderitemactivity` WRITE; /*!40000 ALTER TABLE `autoresponderitemactivity` DISABLE KEYS */; /*!40000 ALTER TABLE `autoresponderitemactivity` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `basecustomfield` -- DROP TABLE IF EXISTS `basecustomfield`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `basecustomfield` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `data_customfielddata_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `basecustomfield` -- LOCK TABLES `basecustomfield` WRITE; /*!40000 ALTER TABLE `basecustomfield` DISABLE KEYS */; /*!40000 ALTER TABLE `basecustomfield` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `basestarredmodel` -- DROP TABLE IF EXISTS `basestarredmodel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `basestarredmodel` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `_user_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `basestarredmodel` -- LOCK TABLES `basestarredmodel` WRITE; /*!40000 ALTER TABLE `basestarredmodel` DISABLE KEYS */; /*!40000 ALTER TABLE `basestarredmodel` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `bytimeworkflowinqueue` -- DROP TABLE IF EXISTS `bytimeworkflowinqueue`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bytimeworkflowinqueue` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `modelclassname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `processdatetime` datetime DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, `modelitem_item_id` int(11) unsigned DEFAULT NULL, `savedworkflow_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `bytimeworkflowinqueue` -- LOCK TABLES `bytimeworkflowinqueue` WRITE; /*!40000 ALTER TABLE `bytimeworkflowinqueue` DISABLE KEYS */; /*!40000 ALTER TABLE `bytimeworkflowinqueue` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `calculatedderivedattributemetadata` -- DROP TABLE IF EXISTS `calculatedderivedattributemetadata`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `calculatedderivedattributemetadata` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `derivedattributemetadata_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `calculatedderivedattributemetadata` -- LOCK TABLES `calculatedderivedattributemetadata` WRITE; /*!40000 ALTER TABLE `calculatedderivedattributemetadata` DISABLE KEYS */; /*!40000 ALTER TABLE `calculatedderivedattributemetadata` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `campaign` -- DROP TABLE IF EXISTS `campaign`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `campaign` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `status` int(11) DEFAULT NULL, `supportsrichtext` tinyint(1) unsigned DEFAULT NULL, `sendondatetime` datetime DEFAULT NULL, `fromname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `fromaddress` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `subject` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `htmlcontent` text COLLATE utf8_unicode_ci, `textcontent` text COLLATE utf8_unicode_ci, `enabletracking` tinyint(1) unsigned DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, `marketinglist_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `campaign` -- LOCK TABLES `campaign` WRITE; /*!40000 ALTER TABLE `campaign` DISABLE KEYS */; /*!40000 ALTER TABLE `campaign` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `campaign_read` -- DROP TABLE IF EXISTS `campaign_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `campaign_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `campaign_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `campaign_read` -- LOCK TABLES `campaign_read` WRITE; /*!40000 ALTER TABLE `campaign_read` DISABLE KEYS */; /*!40000 ALTER TABLE `campaign_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `campaignemailmessagecontent` -- DROP TABLE IF EXISTS `campaignemailmessagecontent`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `campaignemailmessagecontent` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `htmlcontent` text COLLATE utf8_unicode_ci, `textcontent` text COLLATE utf8_unicode_ci, `item_id` int(11) unsigned DEFAULT NULL, `campaign_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `campaignemailmessagecontent` -- LOCK TABLES `campaignemailmessagecontent` WRITE; /*!40000 ALTER TABLE `campaignemailmessagecontent` DISABLE KEYS */; /*!40000 ALTER TABLE `campaignemailmessagecontent` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `campaignitem` -- DROP TABLE IF EXISTS `campaignitem`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `campaignitem` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `processed` tinyint(1) unsigned DEFAULT NULL, `contact_id` int(11) unsigned DEFAULT NULL, `emailmessage_id` int(11) unsigned DEFAULT NULL, `campaign_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `campaign_id` (`campaign_id`), KEY `contact_id` (`contact_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `campaignitem` -- LOCK TABLES `campaignitem` WRITE; /*!40000 ALTER TABLE `campaignitem` DISABLE KEYS */; /*!40000 ALTER TABLE `campaignitem` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `campaignitemactivity` -- DROP TABLE IF EXISTS `campaignitemactivity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `campaignitemactivity` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `emailmessageactivity_id` int(11) unsigned DEFAULT NULL, `campaignitem_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `emailmessageactivity_id_campaignitem_id` (`emailmessageactivity_id`,`campaignitem_id`), KEY `emailmessageactivity_id` (`emailmessageactivity_id`), KEY `campaignitem_id` (`campaignitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `campaignitemactivity` -- LOCK TABLES `campaignitemactivity` WRITE; /*!40000 ALTER TABLE `campaignitemactivity` DISABLE KEYS */; /*!40000 ALTER TABLE `campaignitemactivity` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `comment` -- DROP TABLE IF EXISTS `comment`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `comment` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `description` text COLLATE utf8_unicode_ci, `item_id` int(11) unsigned DEFAULT NULL, `relatedmodel_id` int(11) unsigned DEFAULT NULL, `relatedmodel_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `comment` -- LOCK TABLES `comment` WRITE; /*!40000 ALTER TABLE `comment` DISABLE KEYS */; /*!40000 ALTER TABLE `comment` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `contact` -- DROP TABLE IF EXISTS `contact`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `contact` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `companyname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `description` text COLLATE utf8_unicode_ci, `latestactivitydatetime` datetime DEFAULT NULL, `website` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `googlewebtrackingid` text COLLATE utf8_unicode_ci, `twitterid` text COLLATE utf8_unicode_ci, `facebookid` text COLLATE utf8_unicode_ci, `person_id` int(11) unsigned DEFAULT NULL, `account_id` int(11) unsigned DEFAULT NULL, `industry_customfield_id` int(11) unsigned DEFAULT NULL, `secondaryaddress_address_id` int(11) unsigned DEFAULT NULL, `secondaryemail_email_id` int(11) unsigned DEFAULT NULL, `source_customfield_id` int(11) unsigned DEFAULT NULL, `state_contactstate_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `person_id` (`person_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `contact` -- LOCK TABLES `contact` WRITE; /*!40000 ALTER TABLE `contact` DISABLE KEYS */; /*!40000 ALTER TABLE `contact` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `contact_opportunity` -- DROP TABLE IF EXISTS `contact_opportunity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `contact_opportunity` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `contact_id` int(11) unsigned DEFAULT NULL, `opportunity_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_di_ytinutroppo_di_tcatnoc` (`contact_id`,`opportunity_id`), KEY `di_tcatnoc` (`contact_id`), KEY `di_ytinutroppo` (`opportunity_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `contact_opportunity` -- LOCK TABLES `contact_opportunity` WRITE; /*!40000 ALTER TABLE `contact_opportunity` DISABLE KEYS */; /*!40000 ALTER TABLE `contact_opportunity` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `contact_project` -- DROP TABLE IF EXISTS `contact_project`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `contact_project` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `contact_id` int(11) unsigned DEFAULT NULL, `project_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_di_tcejorp_di_tcatnoc` (`contact_id`,`project_id`), KEY `di_tcatnoc` (`contact_id`), KEY `di_tcejorp` (`project_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `contact_project` -- LOCK TABLES `contact_project` WRITE; /*!40000 ALTER TABLE `contact_project` DISABLE KEYS */; /*!40000 ALTER TABLE `contact_project` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `contact_read` -- DROP TABLE IF EXISTS `contact_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `contact_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `contact_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `contact_read` -- LOCK TABLES `contact_read` WRITE; /*!40000 ALTER TABLE `contact_read` DISABLE KEYS */; /*!40000 ALTER TABLE `contact_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `contact_read_subscription` -- DROP TABLE IF EXISTS `contact_read_subscription`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `contact_read_subscription` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `userid` int(11) unsigned NOT NULL, `modelid` int(11) unsigned NOT NULL, `modifieddatetime` datetime DEFAULT NULL, `subscriptiontype` tinyint(4) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `userid_modelid` (`userid`,`modelid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `contact_read_subscription` -- LOCK TABLES `contact_read_subscription` WRITE; /*!40000 ALTER TABLE `contact_read_subscription` DISABLE KEYS */; /*!40000 ALTER TABLE `contact_read_subscription` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `contactstarred` -- DROP TABLE IF EXISTS `contactstarred`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `contactstarred` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `basestarredmodel_id` int(11) unsigned DEFAULT NULL, `contact_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `basestarredmodel_id_contact_id` (`basestarredmodel_id`,`contact_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `contactstarred` -- LOCK TABLES `contactstarred` WRITE; /*!40000 ALTER TABLE `contactstarred` DISABLE KEYS */; /*!40000 ALTER TABLE `contactstarred` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `contactstate` -- DROP TABLE IF EXISTS `contactstate`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `contactstate` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `order` int(11) DEFAULT NULL, `serializedlabels` text COLLATE utf8_unicode_ci, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `contactstate` -- LOCK TABLES `contactstate` WRITE; /*!40000 ALTER TABLE `contactstate` DISABLE KEYS */; INSERT INTO `contactstate` VALUES (1,'New',0,NULL),(2,'In Progress',1,NULL),(3,'Recycled',2,NULL),(4,'Dead',3,NULL),(5,'Qualified',4,NULL),(6,'Customer',5,NULL); /*!40000 ALTER TABLE `contactstate` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `contactwebform` -- DROP TABLE IF EXISTS `contactwebform`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `contactwebform` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` text COLLATE utf8_unicode_ci, `redirecturl` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `submitbuttonlabel` text COLLATE utf8_unicode_ci, `serializeddata` text COLLATE utf8_unicode_ci, `excludestyles` tinyint(1) unsigned DEFAULT NULL, `enablecaptcha` tinyint(1) unsigned DEFAULT NULL, `language` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `defaultpermissionsetting` tinyint(11) DEFAULT NULL, `defaultpermissiongroupsetting` int(11) DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, `defaultstate_contactstate_id` int(11) unsigned DEFAULT NULL, `defaultowner__user_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `contactwebform` -- LOCK TABLES `contactwebform` WRITE; /*!40000 ALTER TABLE `contactwebform` DISABLE KEYS */; /*!40000 ALTER TABLE `contactwebform` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `contactwebform_read` -- DROP TABLE IF EXISTS `contactwebform_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `contactwebform_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `contactwebform_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `contactwebform_read` -- LOCK TABLES `contactwebform_read` WRITE; /*!40000 ALTER TABLE `contactwebform_read` DISABLE KEYS */; /*!40000 ALTER TABLE `contactwebform_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `contactwebformentry` -- DROP TABLE IF EXISTS `contactwebformentry`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `contactwebformentry` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `serializeddata` text COLLATE utf8_unicode_ci, `status` int(11) DEFAULT NULL, `message` text COLLATE utf8_unicode_ci, `hashindex` text COLLATE utf8_unicode_ci, `item_id` int(11) unsigned DEFAULT NULL, `contact_id` int(11) unsigned DEFAULT NULL, `entries_contactwebform_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `contactwebformentry` -- LOCK TABLES `contactwebformentry` WRITE; /*!40000 ALTER TABLE `contactwebformentry` DISABLE KEYS */; /*!40000 ALTER TABLE `contactwebformentry` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `conversation` -- DROP TABLE IF EXISTS `conversation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `conversation` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `description` text COLLATE utf8_unicode_ci, `latestdatetime` datetime DEFAULT NULL, `subject` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `ownerhasreadlatest` tinyint(1) unsigned DEFAULT NULL, `isclosed` tinyint(1) unsigned DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `conversation` -- LOCK TABLES `conversation` WRITE; /*!40000 ALTER TABLE `conversation` DISABLE KEYS */; /*!40000 ALTER TABLE `conversation` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `conversation_item` -- DROP TABLE IF EXISTS `conversation_item`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `conversation_item` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `conversation_id` int(11) unsigned DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_di_meti_di_noitasrevnoc` (`conversation_id`,`item_id`), KEY `di_noitasrevnoc` (`conversation_id`), KEY `di_meti` (`item_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `conversation_item` -- LOCK TABLES `conversation_item` WRITE; /*!40000 ALTER TABLE `conversation_item` DISABLE KEYS */; /*!40000 ALTER TABLE `conversation_item` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `conversation_read` -- DROP TABLE IF EXISTS `conversation_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `conversation_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `conversation_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `conversation_read` -- LOCK TABLES `conversation_read` WRITE; /*!40000 ALTER TABLE `conversation_read` DISABLE KEYS */; /*!40000 ALTER TABLE `conversation_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `conversationparticipant` -- DROP TABLE IF EXISTS `conversationparticipant`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `conversationparticipant` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `hasreadlatest` tinyint(1) unsigned DEFAULT NULL, `person_item_id` int(11) unsigned DEFAULT NULL, `conversation_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `conversationparticipant` -- LOCK TABLES `conversationparticipant` WRITE; /*!40000 ALTER TABLE `conversationparticipant` DISABLE KEYS */; /*!40000 ALTER TABLE `conversationparticipant` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `conversationstarred` -- DROP TABLE IF EXISTS `conversationstarred`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `conversationstarred` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `basestarredmodel_id` int(11) unsigned DEFAULT NULL, `conversation_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `basestarredmodel_id_conversation_id` (`basestarredmodel_id`,`conversation_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `conversationstarred` -- LOCK TABLES `conversationstarred` WRITE; /*!40000 ALTER TABLE `conversationstarred` DISABLE KEYS */; /*!40000 ALTER TABLE `conversationstarred` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `currency` -- DROP TABLE IF EXISTS `currency`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `currency` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `active` tinyint(1) unsigned DEFAULT NULL, `code` varchar(3) COLLATE utf8_unicode_ci DEFAULT NULL, `ratetobase` double DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_edoc` (`code`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `currency` -- LOCK TABLES `currency` WRITE; /*!40000 ALTER TABLE `currency` DISABLE KEYS */; INSERT INTO `currency` VALUES (1,1,'USD',1); /*!40000 ALTER TABLE `currency` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `currencyvalue` -- DROP TABLE IF EXISTS `currencyvalue`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `currencyvalue` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `ratetobase` double DEFAULT NULL, `value` double DEFAULT NULL, `currency_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `currencyvalue` -- LOCK TABLES `currencyvalue` WRITE; /*!40000 ALTER TABLE `currencyvalue` DISABLE KEYS */; /*!40000 ALTER TABLE `currencyvalue` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `customfield` -- DROP TABLE IF EXISTS `customfield`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `customfield` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `value` text COLLATE utf8_unicode_ci, `basecustomfield_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `customfield` -- LOCK TABLES `customfield` WRITE; /*!40000 ALTER TABLE `customfield` DISABLE KEYS */; /*!40000 ALTER TABLE `customfield` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `customfielddata` -- DROP TABLE IF EXISTS `customfielddata`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `customfielddata` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `defaultvalue` text COLLATE utf8_unicode_ci, `serializeddata` text COLLATE utf8_unicode_ci, `serializedlabels` text COLLATE utf8_unicode_ci, PRIMARY KEY (`id`), UNIQUE KEY `unique_eman` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `customfielddata` -- LOCK TABLES `customfielddata` WRITE; /*!40000 ALTER TABLE `customfielddata` DISABLE KEYS */; INSERT INTO `customfielddata` VALUES (1,'AccountContactAffiliationRoles',NULL,'a:6:{i:0;s:7:\"Billing\";i:1;s:8:\"Shipping\";i:2;s:7:\"Support\";i:3;s:9:\"Technical\";i:4;s:14:\"Administrative\";i:5;s:15:\"Project Manager\";}',NULL),(2,'Industries',NULL,'a:9:{i:0;s:10:\"Automotive\";i:1;s:7:\"Banking\";i:2;s:17:\"Business Services\";i:3;s:6:\"Energy\";i:4;s:18:\"Financial Services\";i:5;s:9:\"Insurance\";i:6;s:13:\"Manufacturing\";i:7;s:6:\"Retail\";i:8;s:10:\"Technology\";}',NULL),(3,'AccountTypes',NULL,'a:3:{i:0;s:8:\"Prospect\";i:1;s:8:\"Customer\";i:2;s:6:\"Vendor\";}',NULL),(4,'LeadSources',NULL,'a:4:{i:0;s:14:\"Self-Generated\";i:1;s:12:\"Inbound Call\";i:2;s:9:\"Tradeshow\";i:3;s:13:\"Word of Mouth\";}',NULL),(5,'MeetingCategories','Meeting','a:2:{i:0;s:7:\"Meeting\";i:1;s:4:\"Call\";}',NULL),(6,'SalesStages','Prospecting','a:6:{i:0;s:11:\"Prospecting\";i:1;s:13:\"Qualification\";i:2;s:11:\"Negotiating\";i:3;s:6:\"Verbal\";i:4;s:10:\"Closed Won\";i:5;s:11:\"Closed Lost\";}',NULL),(7,'ProductStages',NULL,'a:3:{i:0;s:4:\"Open\";i:1;s:4:\"Lost\";i:2;s:3:\"Won\";}',NULL),(8,'Titles',NULL,'a:4:{i:0;s:3:\"Mr.\";i:1;s:4:\"Mrs.\";i:2;s:3:\"Ms.\";i:3;s:3:\"Dr.\";}',NULL); /*!40000 ALTER TABLE `customfielddata` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `customfieldvalue` -- DROP TABLE IF EXISTS `customfieldvalue`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `customfieldvalue` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `value` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `multiplevaluescustomfield_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `multiplevaluescustomfield_id` (`multiplevaluescustomfield_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `customfieldvalue` -- LOCK TABLES `customfieldvalue` WRITE; /*!40000 ALTER TABLE `customfieldvalue` DISABLE KEYS */; /*!40000 ALTER TABLE `customfieldvalue` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `dashboard` -- DROP TABLE IF EXISTS `dashboard`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dashboard` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `isdefault` tinyint(1) unsigned DEFAULT NULL, `layoutid` int(11) DEFAULT NULL, `layouttype` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `dashboard` -- LOCK TABLES `dashboard` WRITE; /*!40000 ALTER TABLE `dashboard` DISABLE KEYS */; /*!40000 ALTER TABLE `dashboard` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `derivedattributemetadata` -- DROP TABLE IF EXISTS `derivedattributemetadata`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `derivedattributemetadata` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `modelclassname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `serializedmetadata` text COLLATE utf8_unicode_ci, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `derivedattributemetadata` -- LOCK TABLES `derivedattributemetadata` WRITE; /*!40000 ALTER TABLE `derivedattributemetadata` DISABLE KEYS */; /*!40000 ALTER TABLE `derivedattributemetadata` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `dropdowndependencyderivedattributemetadata` -- DROP TABLE IF EXISTS `dropdowndependencyderivedattributemetadata`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dropdowndependencyderivedattributemetadata` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `derivedattributemetadata_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `dropdowndependencyderivedattributemetadata` -- LOCK TABLES `dropdowndependencyderivedattributemetadata` WRITE; /*!40000 ALTER TABLE `dropdowndependencyderivedattributemetadata` DISABLE KEYS */; /*!40000 ALTER TABLE `dropdowndependencyderivedattributemetadata` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `email` -- DROP TABLE IF EXISTS `email`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `email` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `emailaddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `isinvalid` tinyint(1) unsigned DEFAULT NULL, `optout` tinyint(1) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `email` -- LOCK TABLES `email` WRITE; /*!40000 ALTER TABLE `email` DISABLE KEYS */; /*!40000 ALTER TABLE `email` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `emailaccount` -- DROP TABLE IF EXISTS `emailaccount`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emailaccount` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `fromname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `fromaddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `name` text COLLATE utf8_unicode_ci, `replytoname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `outboundhost` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `outboundusername` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `outboundpassword` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, `outboundsecurity` varchar(3) COLLATE utf8_unicode_ci DEFAULT NULL, `outboundtype` varchar(4) COLLATE utf8_unicode_ci DEFAULT NULL, `outboundport` int(11) DEFAULT NULL, `usecustomoutboundsettings` int(11) DEFAULT NULL, `replytoaddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, `_user_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `emailaccount` -- LOCK TABLES `emailaccount` WRITE; /*!40000 ALTER TABLE `emailaccount` DISABLE KEYS */; /*!40000 ALTER TABLE `emailaccount` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `emailbox` -- DROP TABLE IF EXISTS `emailbox`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emailbox` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, `_user_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `emailbox` -- LOCK TABLES `emailbox` WRITE; /*!40000 ALTER TABLE `emailbox` DISABLE KEYS */; /*!40000 ALTER TABLE `emailbox` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `emailfolder` -- DROP TABLE IF EXISTS `emailfolder`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emailfolder` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `type` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, `emailbox_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `emailfolder` -- LOCK TABLES `emailfolder` WRITE; /*!40000 ALTER TABLE `emailfolder` DISABLE KEYS */; /*!40000 ALTER TABLE `emailfolder` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `emailmessage` -- DROP TABLE IF EXISTS `emailmessage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emailmessage` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `subject` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `sendattempts` int(11) DEFAULT NULL, `sentdatetime` datetime DEFAULT NULL, `sendondatetime` datetime DEFAULT NULL, `headers` text COLLATE utf8_unicode_ci, `mailertype` text COLLATE utf8_unicode_ci, `mailersettings` text COLLATE utf8_unicode_ci, `contenttype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, `folder_emailfolder_id` int(11) unsigned DEFAULT NULL, `content_emailmessagecontent_id` int(11) unsigned DEFAULT NULL, `sender_emailmessagesender_id` int(11) unsigned DEFAULT NULL, `error_emailmessagesenderror_id` int(11) unsigned DEFAULT NULL, `account_emailaccount_id` int(11) unsigned DEFAULT NULL, `sendgridaccount_sendgridemailaccount_id` int(11) unsigned DEFAULT NULL, `contact_contact_id` int(11) unsigned DEFAULT NULL, `campaigncontent_campaignemailmessagecontent_id` int(11) unsigned DEFAULT NULL, `autorespondercontent_autoresponderemailmessagecontent_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `emailmessage` -- LOCK TABLES `emailmessage` WRITE; /*!40000 ALTER TABLE `emailmessage` DISABLE KEYS */; /*!40000 ALTER TABLE `emailmessage` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `emailmessage_read` -- DROP TABLE IF EXISTS `emailmessage_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emailmessage_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `emailmessage_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `emailmessage_read` -- LOCK TABLES `emailmessage_read` WRITE; /*!40000 ALTER TABLE `emailmessage_read` DISABLE KEYS */; /*!40000 ALTER TABLE `emailmessage_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `emailmessageactivity` -- DROP TABLE IF EXISTS `emailmessageactivity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emailmessageactivity` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `latestdatetime` datetime DEFAULT NULL, `type` int(11) DEFAULT NULL, `quantity` int(11) DEFAULT NULL, `latestsourceip` text COLLATE utf8_unicode_ci, `item_id` int(11) unsigned DEFAULT NULL, `person_id` int(11) unsigned DEFAULT NULL, `emailmessageurl_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `emailmessageactivity` -- LOCK TABLES `emailmessageactivity` WRITE; /*!40000 ALTER TABLE `emailmessageactivity` DISABLE KEYS */; /*!40000 ALTER TABLE `emailmessageactivity` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `emailmessagecontactvariablecontent` -- DROP TABLE IF EXISTS `emailmessagecontactvariablecontent`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emailmessagecontactvariablecontent` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `serializedcontent` text COLLATE utf8_unicode_ci, `item_id` int(11) unsigned DEFAULT NULL, `contact_contact_id` int(11) unsigned DEFAULT NULL, `emailmessage_emailmessage_id` int(11) unsigned DEFAULT NULL, `campaign_campaign_id` int(11) unsigned DEFAULT NULL, `autoresponder_autoresponder_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `emailmessagecontactvariablecontent` -- LOCK TABLES `emailmessagecontactvariablecontent` WRITE; /*!40000 ALTER TABLE `emailmessagecontactvariablecontent` DISABLE KEYS */; /*!40000 ALTER TABLE `emailmessagecontactvariablecontent` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `emailmessagecontent` -- DROP TABLE IF EXISTS `emailmessagecontent`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emailmessagecontent` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `htmlcontent` text COLLATE utf8_unicode_ci, `textcontent` text COLLATE utf8_unicode_ci, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `emailmessagecontent` -- LOCK TABLES `emailmessagecontent` WRITE; /*!40000 ALTER TABLE `emailmessagecontent` DISABLE KEYS */; /*!40000 ALTER TABLE `emailmessagecontent` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `emailmessagerecipient` -- DROP TABLE IF EXISTS `emailmessagerecipient`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emailmessagerecipient` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `toaddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `toname` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, `type` int(11) DEFAULT NULL, `emailmessage_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `remailmessage` (`emailmessage_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `emailmessagerecipient` -- LOCK TABLES `emailmessagerecipient` WRITE; /*!40000 ALTER TABLE `emailmessagerecipient` DISABLE KEYS */; /*!40000 ALTER TABLE `emailmessagerecipient` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `emailmessagerecipient_item` -- DROP TABLE IF EXISTS `emailmessagerecipient_item`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emailmessagerecipient_item` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `emailmessagerecipient_id` int(11) unsigned DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_di_meti_di_tneipiceregassemliame` (`emailmessagerecipient_id`,`item_id`), KEY `di_tneipiceregassemliame` (`emailmessagerecipient_id`), KEY `di_meti` (`item_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `emailmessagerecipient_item` -- LOCK TABLES `emailmessagerecipient_item` WRITE; /*!40000 ALTER TABLE `emailmessagerecipient_item` DISABLE KEYS */; /*!40000 ALTER TABLE `emailmessagerecipient_item` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `emailmessagesender` -- DROP TABLE IF EXISTS `emailmessagesender`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emailmessagesender` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `fromaddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `fromname` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `emailmessagesender` -- LOCK TABLES `emailmessagesender` WRITE; /*!40000 ALTER TABLE `emailmessagesender` DISABLE KEYS */; /*!40000 ALTER TABLE `emailmessagesender` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `emailmessagesender_item` -- DROP TABLE IF EXISTS `emailmessagesender_item`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emailmessagesender_item` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `emailmessagesender_id` int(11) unsigned DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_di_meti_di_rednesegassemliame` (`emailmessagesender_id`,`item_id`), KEY `di_rednesegassemliame` (`emailmessagesender_id`), KEY `di_meti` (`item_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `emailmessagesender_item` -- LOCK TABLES `emailmessagesender_item` WRITE; /*!40000 ALTER TABLE `emailmessagesender_item` DISABLE KEYS */; /*!40000 ALTER TABLE `emailmessagesender_item` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `emailmessagesenderror` -- DROP TABLE IF EXISTS `emailmessagesenderror`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emailmessagesenderror` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `createddatetime` datetime DEFAULT NULL, `serializeddata` text COLLATE utf8_unicode_ci, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `emailmessagesenderror` -- LOCK TABLES `emailmessagesenderror` WRITE; /*!40000 ALTER TABLE `emailmessagesenderror` DISABLE KEYS */; /*!40000 ALTER TABLE `emailmessagesenderror` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `emailmessageurl` -- DROP TABLE IF EXISTS `emailmessageurl`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emailmessageurl` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `emailmessageactivity_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `emailmessageurl` -- LOCK TABLES `emailmessageurl` WRITE; /*!40000 ALTER TABLE `emailmessageurl` DISABLE KEYS */; /*!40000 ALTER TABLE `emailmessageurl` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `emailsignature` -- DROP TABLE IF EXISTS `emailsignature`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emailsignature` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `textcontent` text COLLATE utf8_unicode_ci, `htmlcontent` text COLLATE utf8_unicode_ci, `_user_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `emailsignature` -- LOCK TABLES `emailsignature` WRITE; /*!40000 ALTER TABLE `emailsignature` DISABLE KEYS */; /*!40000 ALTER TABLE `emailsignature` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `emailtemplate` -- DROP TABLE IF EXISTS `emailtemplate`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emailtemplate` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `type` int(11) DEFAULT NULL, `isdraft` tinyint(1) unsigned DEFAULT NULL, `builttype` int(11) DEFAULT NULL, `modelclassname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `subject` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `language` varchar(2) COLLATE utf8_unicode_ci DEFAULT NULL, `htmlcontent` text COLLATE utf8_unicode_ci, `textcontent` text COLLATE utf8_unicode_ci, `serializeddata` text COLLATE utf8_unicode_ci, `isfeatured` tinyint(1) unsigned DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `emailtemplate` -- LOCK TABLES `emailtemplate` WRITE; /*!40000 ALTER TABLE `emailtemplate` DISABLE KEYS */; INSERT INTO `emailtemplate` VALUES (1,NULL,0,3,NULL,'Blank','Blank','en',NULL,NULL,'{\"baseTemplateId\":\"\",\"icon\":\"icon-template-0\",\"dom\":{\"canvas1\":{\"content\":{\"builderrowelement_1393965668_53163a6448794\":{\"content\":{\"buildercolumnelement_1393965668_53163a644866d\":{\"content\":[],\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":{\"backend\":{\"configuration\":\"1\"}},\"class\":\"BuilderRowElement\"}},\"properties\":{\"frontend\":{\"inlineStyles\":{\"background-color\":\"#ffffff\",\"color\":\"#545454\"}}},\"class\":\"BuilderCanvasElement\"}}}',NULL,1),(2,NULL,0,3,NULL,'1 Column','1 Column','en',NULL,NULL,'{\"baseTemplateId\":\"\",\"icon\":\"icon-template-5\",\"dom\":{\"canvas1\":{\"content\":{\"builderheaderimagetextelement_1393965594_53163a1a0eb53\":{\"content\":{\"buildercolumnelement_1393965594_53163a1a0ef48\":{\"content\":{\"builderimageelement_1393965594_53163a1a0ee52\":{\"content\":{\"image\":1},\"properties\":[],\"class\":\"BuilderImageElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"},\"buildercolumnelement_1393965594_53163a1a145cc\":{\"content\":{\"builderheadertextelement_1393965594_53163a1a14515\":{\"content\":{\"text\":\"Acme Inc. Newsletter\"},\"properties\":{\"frontend\":{\"inlineStyles\":{\"color\":\"#ffffff\",\"font-weight\":\"bold\",\"text-align\":\"right\"}}},\"class\":\"BuilderHeaderTextElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":{\"backend\":{\"configuration\":\"1:2\",\"header\":\"1\"},\"frontend\":{\"inlineStyles\":{\"background-color\":\"#282a76\"}}},\"class\":\"BuilderHeaderImageTextElement\"},\"builderrowelement_1393965668_53163a6448794\":{\"content\":{\"buildercolumnelement_1393965668_53163a644866d\":{\"content\":{\"buildertitleelement_1393965668_53163a6447762\":{\"content\":{\"text\":\"Hello there William S...\"},\"properties\":{\"backend\":{\"headingLevel\":\"h3\"},\"frontend\":{\"inlineStyles\":{\"color\":\"#666666\",\"font-size\":\"24\",\"font-weight\":\"bold\",\"text-align\":\"center\"}}},\"class\":\"BuilderTitleElement\"},\"builderimageelement_1393970522_53164d5a3787a\":{\"content\":{\"image\":3},\"properties\":[],\"class\":\"BuilderImageElement\"},\"builderexpanderelement_1393970557_53164d7d2881e\":{\"content\":[],\"properties\":{\"frontend\":{\"height\":\"10\"}},\"class\":\"BuilderExpanderElement\"},\"buildertextelement_1393965781_53163ad53b77c\":{\"content\":{\"text\":\"\\n<p>\\n Orsino, the <i>Duke of Illyria<\\/i>, is consumed by his passion for the melancholy Countess Olivia. His ostentatious musings on the nature of love begin with what has become one of Shakespeare\'s most famous lines: \\\"If music be the food of love, play on.\\\" It is apparent that Orsino\'s love is hollow. He is a romantic dreamer, for whom the idea of being in love is most important. When Valentine gives him the terrible news that <b>Olivia<\\/b> plans to seclude herself for seven years to mourn her deceased brother, Orsino seems unfazed, and hopes Olivia may one day be as bewitched by love (the one self king) as he. Fittingly, the scene ends with Orsino off to lay in a bed of flowers, where he can be alone with his love-thoughts. Later in the play it will be up to Viola to teach Orsino the true meaning of love.\\n<\\/p>\\n\"},\"properties\":[],\"class\":\"BuilderTextElement\"},\"builderbuttonelement_1393965942_53163b76e666c\":{\"content\":[],\"properties\":{\"backend\":{\"text\":\"Call Me\",\"sizeClass\":\"medium-button\",\"align\":\"left\"},\"frontend\":{\"href\":\"http:\\/\\/localhost\\/Zurmo\\/app\\/index.php\",\"target\":\"_blank\",\"inlineStyles\":{\"background-color\":\"#97c43d\",\"border-color\":\"#7cb830\"}}},\"class\":\"BuilderButtonElement\"},\"builderdividerelement_1393965948_53163b7cb98ae\":{\"content\":[],\"properties\":{\"frontend\":{\"inlineStyles\":{\"border-top-width\":\"1\",\"border-top-style\":\"solid\",\"border-top-color\":\"#cccccc\"}},\"backend\":{\"divider-padding\":\"10\"}},\"class\":\"BuilderDividerElement\"},\"buildersocialelement_1394060039_5317ab07cf03d\":{\"content\":[],\"properties\":{\"backend\":{\"layout\":\"vertical\",\"services\":{\"Twitter\":{\"enabled\":\"1\",\"url\":\"http:\\/\\/www.twitter.com\\/\"},\"Facebook\":{\"enabled\":\"1\",\"url\":\"http:\\/\\/www.facebook.com\\/\"},\"GooglePlus\":{\"enabled\":\"1\",\"url\":\"http:\\/\\/gplus.com\"}}}},\"class\":\"BuilderSocialElement\"},\"builderexpanderelement_1393970592_53164da0bd137\":{\"content\":[],\"properties\":{\"frontend\":{\"height\":\"10\"}},\"class\":\"BuilderExpanderElement\"},\"builderfooterelement_1393966090_53163c0ac51bd\":{\"content\":{\"text\":\"[[GLOBAL^MARKETING^FOOTER^HTML]]\"},\"properties\":{\"frontend\":{\"inlineStyles\":{\"background-color\":\"#efefef\",\"font-size\":\"10\"}}},\"class\":\"BuilderFooterElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":[],\"class\":\"BuilderRowElement\"}},\"properties\":{\"frontend\":{\"inlineStyles\":{\"background-color\":\"#ffffff\",\"color\":\"#545454\"}}},\"class\":\"BuilderCanvasElement\"}}}',NULL,2),(3,NULL,0,3,NULL,'2 Columns','2 Columns','en',NULL,NULL,'{\"baseTemplateId\":\"\",\"icon\":\"icon-template-2\",\"dom\":{\"canvas1\":{\"content\":{\"builderheaderimagetextelement_1393965594_53163a1a0eb53\":{\"content\":{\"buildercolumnelement_1393965594_53163a1a0ef48\":{\"content\":{\"builderimageelement_1393965594_53163a1a0ee52\":{\"content\":{\"image\":1},\"properties\":[],\"class\":\"BuilderImageElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"},\"buildercolumnelement_1393965594_53163a1a145cc\":{\"content\":{\"builderheadertextelement_1393965594_53163a1a14515\":{\"content\":{\"text\":\"Acme Inc. Newsletter\"},\"properties\":{\"frontend\":{\"inlineStyles\":{\"color\":\"#ffffff\",\"font-weight\":\"bold\",\"text-align\":\"right\"}}},\"class\":\"BuilderHeaderTextElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":{\"backend\":{\"configuration\":\"1:2\",\"header\":\"1\"},\"frontend\":{\"inlineStyles\":{\"background-color\":\"#282a76\"}}},\"class\":\"BuilderHeaderImageTextElement\"},\"builderrowelement_1394062546_5317b4d264a62\":{\"content\":{\"buildercolumnelement_1394062546_5317b4d26488b\":{\"content\":{\"buildertitleelement_1394062546_5317b4d263942\":{\"content\":{\"text\":\"Hello there William S...\"},\"properties\":{\"backend\":{\"headingLevel\":\"h1\"},\"frontend\":{\"inlineStyles\":{\"color\":\"#666666\",\"font-size\":\"28\",\"font-weight\":\"bold\",\"line-height\":\"200\"}}},\"class\":\"BuilderTitleElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":[],\"class\":\"BuilderRowElement\"},\"builderrowelement_1393965668_53163a6448794\":{\"content\":{\"buildercolumnelement_1393965668_53163a644866d\":{\"content\":{\"buildertextelement_1393965781_53163ad53b77c\":{\"content\":{\"text\":\"\\n<p>\\n Orsino, the <i>Duke of Illyria<\\/i>, is consumed by his passion for the melancholy Countess Olivia. His ostentatious musings on the nature of love begin with what has become one of Shakespeare\'s most famous lines: \\\"If music be the food of love, play on.\\\" It is apparent that Orsino\'s love is hollow. He is a romantic dreamer, for whom the idea of being in love is most important. When Valentine gives him the terrible news that <b>Olivia<\\/b> plans to seclude herself for seven years to mourn her deceased brother, Orsino seems unfazed, and hopes Olivia may one day be as bewitched by love (the one self king) as he. Fittingly, the scene ends with Orsino off to lay in a bed of flowers, where he can be alone with his love-thoughts. Later in the play it will be up to Viola to teach Orsino the true meaning of love.\\n<\\/p>\\n\"},\"properties\":[],\"class\":\"BuilderTextElement\"},\"builderbuttonelement_1393965942_53163b76e666c\":{\"content\":[],\"properties\":{\"backend\":{\"text\":\"Contact Us Now\",\"sizeClass\":\"medium-button\",\"align\":\"left\"},\"frontend\":{\"href\":\"http:\\/\\/localhost\\/Zurmo\\/app\\/index.php\",\"target\":\"_blank\",\"inlineStyles\":{\"background-color\":\"#97c43d\",\"border-color\":\"#7cb830\"}}},\"class\":\"BuilderButtonElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"},\"buildercolumnelement_1394061698_5317b182c1f19\":{\"content\":{\"buildertextelement_1394061967_5317b28fc8088\":{\"content\":{\"text\":\"\\n<b>New Articles<\\/b>\\n<ul>\\n <li>Article Name about something<\\/li>\\n <li>10 ways to create email templates<\\/li>\\n <li>Great new marketing tools from Acme<\\/li>\\n <li>Best blog post of the year<\\/li>\\n <li>Meet our new chef<\\/li>\\n<\\/ul>\\n\"},\"properties\":{\"frontend\":{\"inlineStyles\":{\"background-color\":\"#f6f6f7\",\"color\":\"#323232\",\"font-size\":\"16\"}}},\"class\":\"BuilderTextElement\"},\"builderexpanderelement_1394062193_5317b37137abc\":{\"content\":[],\"properties\":{\"frontend\":{\"height\":\"10\"}},\"class\":\"BuilderExpanderElement\"},\"buildertitleelement_1394062361_5317b419e1c51\":{\"content\":{\"text\":\"Acme Elsewhere\"},\"properties\":{\"backend\":{\"headingLevel\":\"h3\"},\"frontend\":{\"inlineStyles\":{\"color\":\"#6c1d1d\",\"font-weight\":\"bold\",\"line-height\":\"200\"}}},\"class\":\"BuilderTitleElement\"},\"buildersocialelement_1394060039_5317ab07cf03d\":{\"content\":[],\"properties\":{\"backend\":{\"layout\":\"vertical\",\"services\":{\"Twitter\":{\"enabled\":\"1\",\"url\":\"http:\\/\\/www.twitter.com\\/\"},\"Facebook\":{\"enabled\":\"1\",\"url\":\"http:\\/\\/www.facebook.com\\/\"},\"GooglePlus\":{\"enabled\":\"1\",\"url\":\"http:\\/\\/gplus.com\"}}}},\"class\":\"BuilderSocialElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":{\"backend\":{\"configuration\":\"2\"}},\"class\":\"BuilderRowElement\"},\"builderrowelement_1394062652_5317b53c906f9\":{\"content\":{\"buildercolumnelement_1394062652_5317b53c90615\":{\"content\":{\"builderdividerelement_1394062652_5317b53c901fc\":{\"content\":[],\"properties\":{\"frontend\":{\"inlineStyles\":{\"border-top-width\":\"1\",\"border-top-style\":\"dotted\",\"border-top-color\":\"#efefef\"}},\"backend\":{\"divider-padding\":\"10\"}},\"class\":\"BuilderDividerElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":[],\"class\":\"BuilderRowElement\"},\"builderrowelement_1394062641_5317b53112a36\":{\"content\":{\"buildercolumnelement_1394062641_5317b5311291a\":{\"content\":{\"builderfooterelement_1394062641_5317b5311226e\":{\"content\":{\"text\":\"[[GLOBAL^MARKETING^FOOTER^HTML]]\"},\"properties\":{\"frontend\":{\"inlineStyles\":{\"font-size\":\"11\",\"background-color\":\"#ebebeb\"}}},\"class\":\"BuilderFooterElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":[],\"class\":\"BuilderRowElement\"}},\"properties\":{\"frontend\":{\"inlineStyles\":{\"background-color\":\"#ffffff\",\"color\":\"#545454\"}}},\"class\":\"BuilderCanvasElement\"}}}',NULL,3),(4,NULL,0,3,NULL,'2 Columns with strong right','2 Columns with strong right','en',NULL,NULL,'{\"baseTemplateId\":\"\",\"icon\":\"icon-template-3\",\"dom\":{\"canvas1\":{\"content\":{\"builderheaderimagetextelement_1393965594_53163a1a0eb53\":{\"content\":{\"buildercolumnelement_1393965594_53163a1a0ef48\":{\"content\":{\"builderimageelement_1393965594_53163a1a0ee52\":{\"content\":{\"image\":1},\"properties\":[],\"class\":\"BuilderImageElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"},\"buildercolumnelement_1393965594_53163a1a145cc\":{\"content\":{\"builderheadertextelement_1393965594_53163a1a14515\":{\"content\":{\"text\":\"Acme Inc. Newsletter\"},\"properties\":{\"frontend\":{\"inlineStyles\":{\"color\":\"#ffffff\",\"font-weight\":\"bold\",\"text-align\":\"right\"}}},\"class\":\"BuilderHeaderTextElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":{\"backend\":{\"configuration\":\"1:2\",\"header\":\"1\"},\"frontend\":{\"inlineStyles\":{\"background-color\":\"#282a76\"}}},\"class\":\"BuilderHeaderImageTextElement\"},\"builderrowelement_1394062546_5317b4d264a62\":{\"content\":{\"buildercolumnelement_1394062546_5317b4d26488b\":{\"content\":{\"buildertitleelement_1394062546_5317b4d263942\":{\"content\":{\"text\":\"Hello there William S...\"},\"properties\":{\"backend\":{\"headingLevel\":\"h1\"},\"frontend\":{\"inlineStyles\":{\"color\":\"#666666\",\"font-size\":\"28\",\"font-weight\":\"bold\",\"line-height\":\"200\"}}},\"class\":\"BuilderTitleElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":[],\"class\":\"BuilderRowElement\"},\"builderrowelement_1393965668_53163a6448794\":{\"content\":{\"buildercolumnelement_1393965668_53163a644866d\":{\"content\":{\"buildertextelement_1394061967_5317b28fc8088\":{\"content\":{\"text\":\"\\n <b>New Products<\\/b>\\n<ul>\\n <li><a href=\\\"#\\\" target=\\\"_blank\\\">AcmeMaster 10,000<\\/a><\\/li>\\n <li><a href=\\\"#\\\">ProAcme 5,000<\\/a><\\/li>\\n <li><a href=\\\"#\\\">AcmeMaster++<\\/a><\\/li>\\n <li><a href=\\\"#\\\" target=\\\"_blank\\\">The Acme Beginner pro<\\/a><\\/li>\\n<\\/ul>\\n\"},\"properties\":{\"frontend\":{\"inlineStyles\":{\"background-color\":\"#f6f6f7\",\"color\":\"#323232\",\"font-size\":\"16\"}}},\"class\":\"BuilderTextElement\"},\"buildertitleelement_1394062361_5317b419e1c51\":{\"content\":{\"text\":\"Follow Us!\"},\"properties\":{\"backend\":{\"headingLevel\":\"h3\"},\"frontend\":{\"inlineStyles\":{\"color\":\"#6c1d1d\",\"font-weight\":\"bold\",\"line-height\":\"200\"}}},\"class\":\"BuilderTitleElement\"},\"buildersocialelement_1394060039_5317ab07cf03d\":{\"content\":[],\"properties\":{\"backend\":{\"layout\":\"vertical\",\"services\":{\"Twitter\":{\"enabled\":\"1\",\"url\":\"http:\\/\\/www.twitter.com\\/\"},\"Facebook\":{\"enabled\":\"1\",\"url\":\"http:\\/\\/www.facebook.com\\/\"},\"GooglePlus\":{\"enabled\":\"1\",\"url\":\"http:\\/\\/gplus.com\"}}}},\"class\":\"BuilderSocialElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"},\"buildercolumnelement_1394061698_5317b182c1f19\":{\"content\":{\"buildertextelement_1393965781_53163ad53b77c\":{\"content\":{\"text\":\"\\n<p>\\n Orsino, the <i>Duke of Illyria<\\/i>, is consumed by his passion for the melancholy Countess Olivia. His ostentatious musings on the nature of love begin with what has become one of Shakespeare\'s most famous lines: \\\"If music be the food of love, play on.\\\" It is apparent that Orsino\'s love is hollow. He is a romantic dreamer, for whom the idea of being in love is most important. When Valentine gives him the terrible news that <b>Olivia<\\/b> plans to seclude herself for seven years to mourn her deceased brother, Orsino seems unfazed, and hopes Olivia may one day be as bewitched by love (the one self king) as he. Fittingly, the scene ends with Orsino off to lay in a bed of flowers, where he can be alone with his love-thoughts. Later in the play it will be up to Viola to teach Orsino the true meaning of love.\\n<\\/p>\\n\"},\"properties\":[],\"class\":\"BuilderTextElement\"},\"builderbuttonelement_1393965942_53163b76e666c\":{\"content\":[],\"properties\":{\"backend\":{\"text\":\"Contact Us Now\",\"sizeClass\":\"medium-button\",\"align\":\"left\"},\"frontend\":{\"href\":\"http:\\/\\/localhost\\/Zurmo\\/app\\/index.php\",\"target\":\"_blank\",\"inlineStyles\":{\"background-color\":\"#97c43d\",\"border-color\":\"#7cb830\"}}},\"class\":\"BuilderButtonElement\"},\"builderexpanderelement_1394062193_5317b37137abc\":{\"content\":[],\"properties\":{\"frontend\":{\"height\":\"10\"}},\"class\":\"BuilderExpanderElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":{\"backend\":{\"configuration\":\"1:2\"}},\"class\":\"BuilderRowElement\"},\"builderrowelement_1394062652_5317b53c906f9\":{\"content\":{\"buildercolumnelement_1394062652_5317b53c90615\":{\"content\":{\"builderdividerelement_1394062652_5317b53c901fc\":{\"content\":[],\"properties\":{\"frontend\":{\"inlineStyles\":{\"border-top-width\":\"1\",\"border-top-style\":\"dotted\",\"border-top-color\":\"#efefef\"}},\"backend\":{\"divider-padding\":\"10\"}},\"class\":\"BuilderDividerElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":[],\"class\":\"BuilderRowElement\"},\"builderrowelement_1394062641_5317b53112a36\":{\"content\":{\"buildercolumnelement_1394062641_5317b5311291a\":{\"content\":{\"builderfooterelement_1394062641_5317b5311226e\":{\"content\":{\"text\":\"[[GLOBAL^MARKETING^FOOTER^HTML]]\"},\"properties\":{\"frontend\":{\"inlineStyles\":{\"font-size\":\"11\",\"background-color\":\"#ebebeb\"}}},\"class\":\"BuilderFooterElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":[],\"class\":\"BuilderRowElement\"}},\"properties\":{\"frontend\":{\"inlineStyles\":{\"background-color\":\"#ffffff\",\"color\":\"#545454\"}}},\"class\":\"BuilderCanvasElement\"}}}',NULL,4),(5,NULL,0,3,NULL,'3 Columns','3 Columns','en',NULL,NULL,'{\"baseTemplateId\":\"\",\"icon\":\"icon-template-4\",\"dom\":{\"canvas1\":{\"content\":{\"builderheaderimagetextelement_1393965594_53163a1a0eb53\":{\"content\":{\"buildercolumnelement_1393965594_53163a1a0ef48\":{\"content\":{\"builderimageelement_1393965594_53163a1a0ee52\":{\"content\":{\"image\":1},\"properties\":[],\"class\":\"BuilderImageElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"},\"buildercolumnelement_1393965594_53163a1a145cc\":{\"content\":{\"builderheadertextelement_1393965594_53163a1a14515\":{\"content\":{\"text\":\"Acme Inc. Newsletter\"},\"properties\":{\"frontend\":{\"inlineStyles\":{\"color\":\"#ffffff\",\"font-weight\":\"bold\",\"text-align\":\"right\"}}},\"class\":\"BuilderHeaderTextElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":{\"backend\":{\"configuration\":\"1:2\"},\"frontend\":{\"inlineStyles\":{\"background-color\":\"#282a76\"}}},\"class\":\"BuilderHeaderImageTextElement\"},\"builderrowelement_1394062546_5317b4d264a62\":{\"content\":{\"buildercolumnelement_1394062546_5317b4d26488b\":{\"content\":{\"buildertitleelement_1394062546_5317b4d263942\":{\"content\":{\"text\":\"Latest entries on our database\"},\"properties\":{\"backend\":{\"headingLevel\":\"h1\"},\"frontend\":{\"inlineStyles\":{\"color\":\"#666666\",\"font-size\":\"28\",\"font-weight\":\"bold\",\"line-height\":\"200\"}}},\"class\":\"BuilderTitleElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":[],\"class\":\"BuilderRowElement\"},\"builderrowelement_1393965668_53163a6448794\":{\"content\":{\"buildercolumnelement_1393965668_53163a644866d\":{\"content\":{\"builderimageelement_1394063801_5317b9b9eedc5\":{\"content\":{\"image\":2},\"properties\":[],\"class\":\"BuilderImageElement\"},\"buildertitleelement_1394063416_5317b838c6ce1\":{\"content\":{\"text\":\"Property at NYC\"},\"properties\":{\"backend\":{\"headingLevel\":\"h2\"},\"frontend\":{\"inlineStyles\":{\"color\":\"#323232\",\"font-size\":\"18\",\"font-family\":\"Georgia\",\"font-weight\":\"bold\"}}},\"class\":\"BuilderTitleElement\"},\"builderplaintextelement_1394063772_5317b99cab31e\":{\"content\":{\"text\":\"Orsino, the Duke of Illyria, is consumed by his passion for the melancholy Countess Olivia. His ostentatious musings on the nature of love begin with what has become one of Shakespeare\'s most famous lines: \\\"If music be the food of love, play on.\\\" It is apparent that Orsino\'s love is hollow. He is a romantic dreamer, for whom the idea of being in love is most important. When Valentine gives him the terrible news that Olivia plans to seclude herself for seven years to mourn her deceased brother, Orsino seems unfazed, and hopes Olivia may one day be as bewitched by love (the one self king) as he. Fittingly, the scene ends with Orsino off to lay in a bed of flowers, where he can be alone with his love-thoughts. Later in the play it will be up to Viola to teach Orsino the true meaning of love.\"},\"properties\":[],\"class\":\"BuilderPlainTextElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"},\"buildercolumnelement_1394061698_5317b182c1f19\":{\"content\":{\"builderimageelement_1394063806_5317b9be406a3\":{\"content\":{\"image\":2},\"properties\":[],\"class\":\"BuilderImageElement\"},\"buildertitleelement_1394063420_5317b83cb81a3\":{\"content\":{\"text\":\"Chalet in Bs. As.\"},\"properties\":{\"backend\":{\"headingLevel\":\"h3\"},\"frontend\":{\"inlineStyles\":{\"color\":\"#323232\",\"font-size\":\"18\",\"font-family\":\"Georgia\",\"font-weight\":\"bold\"}}},\"class\":\"BuilderTitleElement\"},\"builderplaintextelement_1394063737_5317b979ce2a3\":{\"content\":{\"text\":\"Orsino, the Duke of Illyria, is consumed by his passion for the melancholy Countess Olivia. His ostentatious musings on the nature of love begin with what has become one of Shakespeare\'s most famous lines: \\\"If music be the food of love, play on.\\\" It is apparent that Orsino\'s love is hollow. He is a romantic dreamer, for whom the idea of being in love is most important. When Valentine gives him the terrible news that Olivia plans to seclude herself for seven years to mourn her deceased brother, Orsino seems unfazed, and hopes Olivia may one day be as bewitched by love (the one self king) as he. Fittingly, the scene ends with Orsino off to lay in a bed of flowers, where he can be alone with his love-thoughts. Later in the play it will be up to Viola to teach Orsino the true meaning of love.\"},\"properties\":[],\"class\":\"BuilderPlainTextElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"},\"buildercolumnelement_1394063404_5317b82c72b5c\":{\"content\":{\"builderimageelement_1394063809_5317b9c1da156\":{\"content\":{\"image\":2},\"properties\":[],\"class\":\"BuilderImageElement\"},\"buildertitleelement_1394063425_5317b8410f24b\":{\"content\":{\"text\":\"Tiny Island\"},\"properties\":{\"backend\":{\"headingLevel\":\"h3\"},\"frontend\":{\"inlineStyles\":{\"color\":\"#323232\",\"font-size\":\"18\",\"font-family\":\"Georgia\",\"font-weight\":\"bold\"}}},\"class\":\"BuilderTitleElement\"},\"builderplaintextelement_1394063741_5317b97d68d8d\":{\"content\":{\"text\":\"Orsino, the Duke of Illyria, is consumed by his passion for the melancholy Countess Olivia. His ostentatious musings on the nature of love begin with what has become one of Shakespeare\'s most famous lines: \\\"If music be the food of love, play on.\\\" It is apparent that Orsino\'s love is hollow. He is a romantic dreamer, for whom the idea of being in love is most important. When Valentine gives him the terrible news that Olivia plans to seclude herself for seven years to mourn her deceased brother, Orsino seems unfazed, and hopes Olivia may one day be as bewitched by love (the one self king) as he. Fittingly, the scene ends with Orsino off to lay in a bed of flowers, where he can be alone with his love-thoughts. Later in the play it will be up to Viola to teach Orsino the true meaning of love.\"},\"properties\":[],\"class\":\"BuilderPlainTextElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":{\"backend\":{\"configuration\":\"3\"}},\"class\":\"BuilderRowElement\"},\"builderrowelement_1394062652_5317b53c906f9\":{\"content\":{\"buildercolumnelement_1394062652_5317b53c90615\":{\"content\":{\"builderbuttonelement_1394063832_5317b9d8a797c\":{\"content\":[],\"properties\":{\"backend\":{\"text\":\"Click for more details\",\"sizeClass\":\"large-button\",\"width\":\"100%\",\"align\":\"center\"},\"frontend\":{\"href\":\"http:\\/\\/google.com\",\"target\":\"_blank\",\"inlineStyles\":{\"background-color\":\"#8224e3\",\"color\":\"#ffffff\",\"font-weight\":\"bold\",\"text-align\":\"center\",\"border-color\":\"#8224e3\",\"border-width\":\"1\",\"border-style\":\"solid\"}}},\"class\":\"BuilderButtonElement\"},\"builderdividerelement_1394062652_5317b53c901fc\":{\"content\":[],\"properties\":{\"frontend\":{\"inlineStyles\":{\"border-top-width\":\"1\",\"border-top-style\":\"dotted\",\"border-top-color\":\"#efefef\"}},\"backend\":{\"divider-padding\":\"10\"}},\"class\":\"BuilderDividerElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":[],\"class\":\"BuilderRowElement\"},\"builderrowelement_1394062641_5317b53112a36\":{\"content\":{\"buildercolumnelement_1394062641_5317b5311291a\":{\"content\":{\"builderfooterelement_1394062641_5317b5311226e\":{\"content\":{\"text\":\"[[GLOBAL^MARKETING^FOOTER^HTML]]\"},\"properties\":{\"frontend\":{\"inlineStyles\":{\"font-size\":\"11\",\"background-color\":\"#ebebeb\"}}},\"class\":\"BuilderFooterElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":[],\"class\":\"BuilderRowElement\"}},\"properties\":{\"frontend\":{\"inlineStyles\":{\"background-color\":\"#ffffff\",\"color\":\"#545454\"}}},\"class\":\"BuilderCanvasElement\"}}}',NULL,5),(6,NULL,0,3,NULL,'3 Columns with Hero','3 Columns with Hero','en',NULL,NULL,'{\"baseTemplateId\":\"\",\"icon\":\"icon-template-1\",\"dom\":{\"canvas1\":{\"content\":{\"builderheaderimagetextelement_1393965594_53163a1a0eb53\":{\"content\":{\"buildercolumnelement_1393965594_53163a1a0ef48\":{\"content\":{\"builderimageelement_1393965594_53163a1a0ee52\":{\"content\":{\"image\":1},\"properties\":[],\"class\":\"BuilderImageElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"},\"buildercolumnelement_1393965594_53163a1a145cc\":{\"content\":{\"builderheadertextelement_1393965594_53163a1a14515\":{\"content\":{\"text\":\"Acme Real Estate\"},\"properties\":{\"frontend\":{\"inlineStyles\":{\"color\":\"#ffffff\",\"font-weight\":\"bold\",\"text-align\":\"right\"}}},\"class\":\"BuilderHeaderTextElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":{\"backend\":{\"configuration\":\"1:2\",\"header\":\"1\",\"border-negation\":{\"border-top\":\"none\",\"border-right\":\"none\",\"border-bottom\":\"none\",\"border-left\":\"none\"}},\"frontend\":{\"inlineStyles\":{\"background-color\":\"#282a76\"}}},\"class\":\"BuilderHeaderImageTextElement\"},\"builderrowelement_1394062546_5317b4d264a62\":{\"content\":{\"buildercolumnelement_1394062546_5317b4d26488b\":{\"content\":{\"buildertitleelement_1394062546_5317b4d263942\":{\"content\":{\"text\":\"New on our Downtown NYC locations\"},\"properties\":{\"backend\":{\"headingLevel\":\"h1\"},\"frontend\":{\"inlineStyles\":{\"color\":\"#323232\",\"font-size\":\"28\",\"font-weight\":\"bold\",\"line-height\":\"100\"}}},\"class\":\"BuilderTitleElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":[],\"class\":\"BuilderRowElement\"},\"builderrowelement_1394122137_53189d999cade\":{\"content\":{\"buildercolumnelement_1394122137_53189d999c769\":{\"content\":{\"builderimageelement_1394122137_53189d999b21b\":{\"content\":{\"image\":4},\"properties\":[],\"class\":\"BuilderImageElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":[],\"class\":\"BuilderRowElement\"},\"builderrowelement_1393965668_53163a6448794\":{\"content\":{\"buildercolumnelement_1393965668_53163a644866d\":{\"content\":{\"builderimageelement_1394063801_5317b9b9eedc5\":{\"content\":{\"image\":2},\"properties\":[],\"class\":\"BuilderImageElement\"},\"buildertitleelement_1394063416_5317b838c6ce1\":{\"content\":{\"text\":\"Property at NYC\"},\"properties\":{\"backend\":{\"headingLevel\":\"h2\"},\"frontend\":{\"inlineStyles\":{\"color\":\"#323232\",\"font-size\":\"18\",\"font-family\":\"Georgia\",\"font-weight\":\"bold\"}}},\"class\":\"BuilderTitleElement\"},\"builderplaintextelement_1394063772_5317b99cab31e\":{\"content\":{\"text\":\"With its welcoming fireplace, wood-paneled ceiling, limestone floor, and luminous\\nview into a stunning courtyard, The Sterling Mason lobby imparts the intimate warmth of home.\"},\"properties\":{\"backend\":{\"border-negation\":{\"border-top\":\"none\",\"border-right\":\"none\",\"border-bottom\":\"none\",\"border-left\":\"none\"}}},\"class\":\"BuilderPlainTextElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"},\"buildercolumnelement_1394061698_5317b182c1f19\":{\"content\":{\"builderimageelement_1394063806_5317b9be406a3\":{\"content\":{\"image\":2},\"properties\":[],\"class\":\"BuilderImageElement\"},\"buildertitleelement_1394063420_5317b83cb81a3\":{\"content\":{\"text\":\"Chalet in Bs. As.\"},\"properties\":{\"backend\":{\"headingLevel\":\"h3\"},\"frontend\":{\"inlineStyles\":{\"color\":\"#323232\",\"font-size\":\"18\",\"font-family\":\"Georgia\",\"font-weight\":\"bold\"}}},\"class\":\"BuilderTitleElement\"},\"builderplaintextelement_1394063737_5317b979ce2a3\":{\"content\":{\"text\":\"With its welcoming fireplace, wood-paneled ceiling, limestone floor, and luminous\\nview into a stunning courtyard, The Sterling Mason lobby imparts the intimate warmth of home.\"},\"properties\":{\"backend\":{\"border-negation\":{\"border-top\":\"none\",\"border-right\":\"none\",\"border-bottom\":\"none\",\"border-left\":\"none\"}}},\"class\":\"BuilderPlainTextElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"},\"buildercolumnelement_1394063404_5317b82c72b5c\":{\"content\":{\"builderimageelement_1394063809_5317b9c1da156\":{\"content\":{\"image\":2},\"properties\":[],\"class\":\"BuilderImageElement\"},\"buildertitleelement_1394063425_5317b8410f24b\":{\"content\":{\"text\":\"Luminus Loft\"},\"properties\":{\"backend\":{\"headingLevel\":\"h3\"},\"frontend\":{\"inlineStyles\":{\"color\":\"#323232\",\"font-size\":\"18\",\"font-family\":\"Georgia\",\"font-weight\":\"bold\"}}},\"class\":\"BuilderTitleElement\"},\"builderplaintextelement_1394063741_5317b97d68d8d\":{\"content\":{\"text\":\"With its welcoming fireplace, wood-paneled ceiling, limestone floor, and luminous\\nview into a stunning courtyard, The Sterling Mason lobby imparts the intimate warmth of home.\"},\"properties\":{\"backend\":{\"border-negation\":{\"border-top\":\"none\",\"border-right\":\"none\",\"border-bottom\":\"none\",\"border-left\":\"none\"}}},\"class\":\"BuilderPlainTextElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":{\"backend\":{\"configuration\":\"3\"}},\"class\":\"BuilderRowElement\"},\"builderrowelement_1394062641_5317b53112a36\":{\"content\":{\"buildercolumnelement_1394062641_5317b5311291a\":{\"content\":{\"buildersocialelement_1394121396_53189ab49a77c\":{\"content\":[],\"properties\":{\"backend\":{\"layout\":\"horizontal\",\"services\":{\"Facebook\":{\"enabled\":\"1\",\"url\":\"http:\\/\\/www.facebook.com\\/\"},\"GooglePlus\":{\"enabled\":\"1\",\"url\":\"http:\\/\\/gplus.con\"},\"Instagram\":{\"enabled\":\"1\",\"url\":\"http:\\/\\/www.instagram.com\\/\"}}}},\"class\":\"BuilderSocialElement\"},\"builderfooterelement_1394062641_5317b5311226e\":{\"content\":{\"text\":\"[[GLOBAL^MARKETING^FOOTER^HTML]]\"},\"properties\":{\"frontend\":{\"inlineStyles\":{\"font-size\":\"11\",\"background-color\":\"#ebebeb\"}}},\"class\":\"BuilderFooterElement\"}},\"properties\":[],\"class\":\"BuilderColumnElement\"}},\"properties\":[],\"class\":\"BuilderRowElement\"}},\"properties\":{\"frontend\":{\"inlineStyles\":{\"background-color\":\"#fefefe\",\"color\":\"#545454\",\"border-color\":\"#284b7d\",\"border-width\":\"10\",\"border-style\":\"solid\"}},\"backend\":{\"border-negation\":{\"border-top\":\"none\",\"border-right\":\"none\",\"border-bottom\":\"none\",\"border-left\":\"none\"}}},\"class\":\"BuilderCanvasElement\"}}}',NULL,6),(7,1,0,3,'Opportunity','We closed a deal - Sample Email Template','We closed a deal','en','<p>Hello!!!</p>\n<p>We just closed new deal, please check details: [[MODEL^URL]]</p>\n<p>Thanks!</p>','Hello!!!\nWe just closed new deal, please check details: [[MODEL^URL]]\nThanks!',NULL,NULL,7); /*!40000 ALTER TABLE `emailtemplate` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `emailtemplate_read` -- DROP TABLE IF EXISTS `emailtemplate_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `emailtemplate_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `emailtemplate_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `emailtemplate_read` -- LOCK TABLES `emailtemplate_read` WRITE; /*!40000 ALTER TABLE `emailtemplate_read` DISABLE KEYS */; INSERT INTO `emailtemplate_read` VALUES (1,1,'G2',1),(2,2,'G2',1),(3,3,'G2',1),(4,4,'G2',1),(5,5,'G2',1),(6,6,'G2',1); /*!40000 ALTER TABLE `emailtemplate_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `exportfilemodel` -- DROP TABLE IF EXISTS `exportfilemodel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `exportfilemodel` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `filemodel_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `exportfilemodel` -- LOCK TABLES `exportfilemodel` WRITE; /*!40000 ALTER TABLE `exportfilemodel` DISABLE KEYS */; /*!40000 ALTER TABLE `exportfilemodel` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `exportitem` -- DROP TABLE IF EXISTS `exportitem`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `exportitem` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `iscompleted` tinyint(1) unsigned DEFAULT NULL, `exportfiletype` text COLLATE utf8_unicode_ci, `exportfilename` text COLLATE utf8_unicode_ci, `modelclassname` text COLLATE utf8_unicode_ci, `processoffset` int(11) DEFAULT NULL, `serializeddata` longtext COLLATE utf8_unicode_ci, `isjobrunning` tinyint(1) unsigned DEFAULT NULL, `cancelexport` tinyint(1) unsigned DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, `exportfilemodel_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `exportitem` -- LOCK TABLES `exportitem` WRITE; /*!40000 ALTER TABLE `exportitem` DISABLE KEYS */; /*!40000 ALTER TABLE `exportitem` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `exportitem_read` -- DROP TABLE IF EXISTS `exportitem_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `exportitem_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `exportitem_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `exportitem_read` -- LOCK TABLES `exportitem_read` WRITE; /*!40000 ALTER TABLE `exportitem_read` DISABLE KEYS */; /*!40000 ALTER TABLE `exportitem_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `externalapiemailmessageactivity` -- DROP TABLE IF EXISTS `externalapiemailmessageactivity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `externalapiemailmessageactivity` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `api` text COLLATE utf8_unicode_ci, `type` int(11) DEFAULT NULL, `emailaddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `itemclass` text COLLATE utf8_unicode_ci, `itemid` int(11) DEFAULT NULL, `datetime` datetime DEFAULT NULL, `reason` text COLLATE utf8_unicode_ci, `item_id` int(11) unsigned DEFAULT NULL, `emailmessageactivity_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `externalapiemailmessageactivity` -- LOCK TABLES `externalapiemailmessageactivity` WRITE; /*!40000 ALTER TABLE `externalapiemailmessageactivity` DISABLE KEYS */; /*!40000 ALTER TABLE `externalapiemailmessageactivity` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `filecontent` -- DROP TABLE IF EXISTS `filecontent`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `filecontent` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `content` longblob, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `filecontent` -- LOCK TABLES `filecontent` WRITE; /*!40000 ALTER TABLE `filecontent` DISABLE KEYS */; INSERT INTO `filecontent` VALUES (1,'GIF87a�\02\0�\0\0��̖����������������Ū�����\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0,\0\0\0\0�\02\0\0��I��8�ͻ�`(�di�h��l�p,�tm�x��|��pH,\Z�Ȥr�l:�ШtJ�Z�جv��z��xL.���tT0\nv``��餀^���jCz}�m�sny����C\0��\0�}���#�����B��mu��\0������D��\0��sǞ�z�n������@�\0������{���>���������t����4!`8{�q�W��ԙ��6d�\Z陨aY�fws8�3:��X��t��2�!u��*����\r(�r�ś�lƼ�h�$K��]\"W�п))�1�(�á4��q\'@G]^�e�c��\"�~�b]˶�۷p�ʝK��ݻx���˷�߿�L��a�\0\0;'),(2,'GIF87a�\0�\0�\0\0��̖�����������������������\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0,\0\0\0\0�\0�\0\0��I��8�ͻ�`(�di�h��l�p,�tm�x��|��pH,\Z�Ȥr�l:�ШtJ�Z�جv��z��xL.���z�n���|N���~�����������������������������������������������������������������������������������љ�����*������������\0���%�������X��\0X��` \Z�\0[A��A��0�B������ %롬xB��o*%�<)�塎����SBO�v^`W3\0�@���siPD�$V�p����b`g���\rQ�z��\0V���Y��1/,,0��ڗ�h¥)p�U�b�z�#H\r��\'ئ�B�J\\����rj�lm2��zAT-�A\ng?�M]EJ���:�ٱ� Ճ]�)ӧI5�V|a���+�q�;�3 ��To͋C�w��z�\'d߈Q��պڶ\0������*o4@�n�m%�y4�|�7�}��A_<��M��d��>��\nX�4f��v�� �(�$�h�(���,���0�(�4�h�8��<���@)�Di�H&��L6��PF)�TVi�Xf��\\v��`�)�d:\0;'),(3,'GIF87aD�\0�\0\0��̖�����������������������\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0,\0\0\0\0D�\0\0��I��8�ͻ�`(�di�h��l�p,�tm�x��|��pH,\Z�Ȥr�l:�ШtJ�Z�جv��z��xL.���z�n���|N���~�������������������������������������������������������������������������������������������������������������������������������\0\nH����*\\Ȱ�Ç#J�H��ŋ3j�ȱ�Ǐ� C�I��ɓ(S�\\ɲe�\00cʜ)S�0@\0$\n�9�@/j��9��ϠCy\ZuI��U�: 8p5�\0 \nt\043mz��kرe�~�J7�;�����^X��T����,��a�v3x�/�z�R1l���ɔ-_�LWs�-�gF�� ��`3�M;�1�N\r[�lʵOc�J�����M�����U8�:fn&��r \r�\'Z��uW\':}�W�Z�@`��o��)ܶ>!�L�I�k���{��M���y�~�E�^ �7w�Y0^o���u]\rV\0!g!} Z� �WAV�LN�bL\Z1bL�H`3��$�HS��@�%:q�^Ф���rI`��K:���2�� MR��$Y�P&\0F^p&\0k\Z�ӕ��eZ�i��r��D�`ťL\0 #=z��T�I�~JHS�C���\n.��wZ:����)��P��)�iger��LHR�Ă�P\0�(j�҄���fp��py�*�LD0����`�w@��5Z�yF��� t\\W�jʚ�\0dx$��^���K�S�(\0P�,��^pc\0��y�W��b��ko��Z�o���������;��o�+��c��2a��W��c&O02���S��\n�Sq���1\0���+�|�)����j\04�₰0\0�v�4�)]��S=�U�Ŗ�\Z �+�gZv=ڔ6;��4r���h��\Z���Y�y�Ӻ6���zmv�d#>�@~�b��O��w���3ۘK0�tVY��܋a,�3ŵ�L�g���jyʮ:��w�(�#as�F9KS@��]�,��2����._�;��CQ��\Z_�BO��>� \'��N���^�K�~�LDr_��$ Ͱ\nr�O���_���{�y,�=�)�T\n� V�3ȩ��;`�*�\0B��д�/�\0T![��*�A�q0�3����AE1o����6�QA�v��$��D�+<��ڄA\Z+]&0�ėC�у8a{��hQki%�R���F� �038d���A�٬_-�\"�Ưݕ��3�U��Ļ\r�G?���x��ם��bT�l��3�����G�\n2hK=�� �H�)��%y��(oY(���D�H!q���^��}e���ܤ9y�%+Cyc�|H�uID�[��\\� O汌�r�`֑�-�]�β�X�pu*�۵*��ar�!/U&l\"�R�\"4e����w�;�f��\'��,�(5����\0�!Nr�y�y2���|�:[���|�a���U�\Z�Kr}��sVG�����u�����r3��Q���3Θ�25�I�Jy�Ґ�`����cf�ͮHr�} 曝f�j6�A���z�e�-%\nH�Ӟ��2w��W��?�$�U��Tx�/���\0SuQT�B�\r�\n?�!\Z\n���DA+T��֯����\r�`K��\Z���M�b���:�����d\'K��Z���ͬf7���z���\r�hGK�Қ���M�jW��ֺ�����lgK�����ͭnw������\r�p�K��\Z���M�r�&���:��Ѝ�t�K��Z���ͮv����z���\r�x�K^�D\0\0;'),(4,'�PNG\r\n\Z\n\0\0\0\rIHDR\0\0D\0\0\0�\0\0\0B3�X\0\0\0PLTE\"\Z! 0=\0&&&05)<74,<X\"I8F9]87Ihx;DB=XQ?cvGDBOWCPNNYVL[YZEXyPqTa\\J`_\\keUjuYlBeefljhnotzufyws8x�Ke�Wq�_}�_}�vy�b|�j�p�s�x�k� r�*v�\0]�yr�Bm��d��w��u��~��{��T��k��j��r��u��{���ځF�W�s8�uM�}X�kL�aa����)��2��\n������\"��1��)��>��2��:��C��w��u��`��n��D��B��W��H��V��N��8��H��T��Y��`ޠ4�� ���\Z�)��$�=ƾAҴAԡfٷ{�M�X�r��X��u��b��h��������������������������������������������������������������Ƌ�ˊ�Ә�Ɣ�җ�و�狵���䙷画���������ױ�ͣ��đ�����װ�ں�Ӹ�ڻ�ʤ�������������������������������������Ÿ�ߪ�Ѳ�ܲ�ɽ�ּ����ʃ�ϒ�ѧ�ݽ�ڪ����������������������������������������������������������������������������������������������������������������������������������������������������������������\n\0\0\0bKGD����\0\0 \0IDATxڼ�[lIz���dYۂ �!�h�[R����Ѭ\0���ѭ�b���e[^{�[�n{����Ep�^\\�&����|��C�%��KՒ���܌D�D�\0|�FUREf.�ىL���U,^�3ޘi�XU$+#����Ǿ)^.[L���a\Z/���R�\\ް���u���;aښQơ�\Z��4�,F��\0�a1�>M\'�31Fj�Gi�H����O��{2A#��������ܽ_�嗿���W_�\'4�2z��X�ū>�.+��X!c\\�6G�°�+�gXaX�t�S��9��{��l7�\0������AQ�y#g��+GI\\�=\\��de~�͛W���є�k1A0��r�«287�3�Y�%�9~`�^)G���V��)���V|��6݄q�F��W���[@nuHL�[�nJ�h:i?L0�6u���pQ.� �0D���7�5�)e�\n\r��55�3�>;M-g!L�����e~���/��\r۟��`���\Z+�����m<K�Y\0�ij̋���a���,�r�wٌ�k�|����7��KjN�n���tY��`�xU�a,�D\rg��\0�sK�UR<�[�Y|`%?�e�8��\rb���_-N�\Z�\\�A��o��-|�!咣q&nc�ՁJ��{�(�#Dr�I9��_�%�d�3`���g\0����e.d\rM�V���sILI̲��v�%�&-�4�쐃4��Xh����FY�,�\\ \'�đ�x�?�_�m��2�V� �V�kz��x�;h�_!��t���*,������-��)\\^#|K��`�DOȗ�O�N\0�Q!�bq%�ï�V\'��aI�Jא��w�}�/�\",�t�B�9�8Bt���=��C@Q�>�#�7-�W��\\��g;@4����&��Z����_|N��������e���w�I$�W\n�\n�k$�HPqI�d�$H�� H��W�K�� �\ZL��{@\Zg$�L��ai�&đηB\nǐkP�;M� �|���s|*�Gm6�D�����\"H\\�=��bB�K�L^�_1N3;~�H�k�����7]�ɧ7�_�Coا89y %,u:�|�#�(�>���+<y2����@�g�y��f<)KK�LfmV��� �S4D��$d*�o��8�<j�/g�8�+��e� ��T�g�K6���(T/���1�Q(�WZ�:R�꺥n*\'�K�� ����5���O�\Z��0b8�0\"cqĪ���͢EM���h�m:�7A�Q�>��0�ş��R\\xE+�A����R�^8\\�O~��ϟ� �۷o�?כ��D�I�G\'��Xx0�%�����j�u,�(��0%0L�4$ T��4Ç[Z,d�{�����(���x�����_�r^��,�!D�����TI�!g��I��B(�,0�Ĵ�$`���h6�|�=���\Z�BA��� �Bn�khd@X¬��LᯀߔG�^���K����A���~��� \"�\0��m`�3?�dE�5P$\"���%z��P���j<g�8��89�2��!�8�0�& �\r��ߌ�E��Z��*���e���_����Wgc��G�\rU@Ts��D����d^{*��غ��� �w��-O�o�8e�c9S�!\r�) �|é㢈�U��k3�\n\nx�P7�j���V�f���8h7\'Ќ��\nq�(�,Sj)��0�]H�#߆e�ڍ�\Ź]�D\Zc��Z�v4yXď�9@m)6��U���J\n�H(�{����\Z��J��D���y��8�z4�l��a�.�B��2��i�y��**i%�׳���2S}��Dj���/���t��֯����u���kkk�\\�N4x� Ҁ\n�E�n].?��ЬF�NS�n2�U\0�AOD�}`EڌL 0����đA ����,�$+đ�� �X�+%��w�)t�\r,K��H�JӅ�lgC��`;\n\Z|��DOd_+��A���ߧ8A�Nv���G猼�C\'��}\'Ov�c�D���3�+ʣh�Pg��=;����`�<�ܫ$����!JHeB����[/z����Tc�g��큛J�\\���R6��,_���Z��f.t�6�\\���u�ˑ����z$AP�i]q�x��M�2�-V%��,Gj)�s�!��6�A/�w�f���㨈�\0��*�{[�Б�l�J�d��P�υ���<����G\'��P�8�|CB�w���y�t�1R`��!$Z�fn>8K&����`>?88��`�D�v�H�є$K�꼎���no]��{��x�o4�o��::˝��\n��ܜD�� �5t�)�(��%�8�)#�\0��Q.�!�{�sA��з�%d�˄��0C��uonl�6���\rAy�EYU�G���4����7��gw�ł��2#�L���MRiJ;�*Q�-6�TPR�v��a��,?�]\\\\\r?\n6W�!\n)\n�B���,\'�V�1\n�%$PB�ZL�ٯV77W�:���Di0�C���� B�E9\\��v�(\0����qB<�y^�w�\ZS�r襲��H1l?3�́ir\rd�[�/��(!4����nL1��Vi/b�\nt�F.G#�Pf5��P�h���Ъ�oo�ov�>��M�\r��j)��_�JF9�Ҹ��D�=+����K*|���ޡ9�%x��P@Dw���6\'\"]W;��`�o!��IItveuu���-���M�� br��v�������Ajܱ���R��0:-����ں�b��\0\"��;�w5�)�e���\ZW�B�Ϥ�VP[�B1��R`11^t�,�f�F�����*q$� �&o~���������D� z\n�Nx;cK�4�)���Y)�X�\nK�&\\9�_A/����}�f�[ �\0fa����E�#nj���G�Y�J��:{��lo�I�V�(�Ҏ=�5I��OQ.�j�V��\\�(�mm:Z���֨��c)�50pV�(�$FY��(�����B�jMu8�]�a��X$������1#�AL�@�xcB?�d#���m��\n|�/�#>9�G��%�ki���L���J���*���()/�J8���p\"��o,�q*��|���/+}�`�/8<���o\\g������kyQJ.vĬ7M����x�Eb#�ÃO��92��e2;��-D�$��1��K��9ϟ�����N{���1���;���z�u�9��%�4���q#�4�1�K|����w3��΅/~�M�{� �����+���%�2���\Z�\0K�A��;:qbr;qd(�nD�l7_14 =�b��n�%����(��̱�Q���xV$�\"�\0���A�?8���?���>46��չ�)��{�g����q\\�Q��2 ���T;J��4aG�˔��LLm�V�,F)���Vk�D�hz\"�J�Zy3��˙����0~�K�s\r�9_`=�t7</i��:��c �1*BaFc s��\0M�w����g� ՙjt���KcA�Ŏ���Q.���W�� �q]4�O3�R�\Z�o�m�((V�*��DH�R1�Q�4��_��;�D� �Q\"ݷ\r!�T$�r=�JS����LFN7�\'�J*������C�2���/J{c��杮 ���kr<�q���q)�\0����\r�aKQa�ɮ%Q���!�����\Z������������W�����?�Wd���@u�\n3�����ЎJ�B�Њ�f������ၖ�Zk�Ѹ�>t��xz*�/��إN�58�x��ژ{�<?N<�_��j�q�$u�0x�� 9*�Q1J�� ��f�i����`��HQ*͐��|H�\'�}p�zQ9k����=9��q,b�U�p�JZ����:�e�m���t�r�x>��n����qǶ�^x+�RhMH�2O��˾���2]�I�� B�<|4l����ޯ�⣿�9������[\Z֜���T`\"\"-���\"�F�c�F�D�5`fm-�\"����S��>@���)���v�v��=/��`�*H��0eD�_�\nq�*Y\0BUFU8k�2ko��6�3�\\��$�0���ڱA�Gj\re0|�0�)ٸ�d�v��d��A<Yt��\\MU\Z�Ki���1�.\0፥|���B)H1����kk��k0��.��a�{<�s]�!\n����C$r�ewgj�4�r�]P��g�ѯ�s4~��/-{c�\\�U�&�\"y/f\0)[3L��\Zn��W)�ȑ���P��p�3t\Z\'��5�,�ȅ����(I�\Z+��HH��:�HV�PD�B��Κ-3khV_�A!�=j��DA1\"\'71�+��q�Q�ehV��Q���P��S1C�,���$J�X�!Ar,�N�=\r�&��ܘJ�ZC�<|�5�u\0�kl�X�k��6һՁ�\0��f�L%IOcZ����\"s�壿�ω���B;�N+W`�Y{Q�&��\r@�b��LuTBT��u\01�x��� \Z���k��9�9�r���$�ڛ\\.\'����u�p$J��Q��Jq�Qa���.�?�{r�Y��̐M!�̲�5�<p�\\cfd�*��T�*Cse�!�<m\"R��^�<��+�(����D����\Zt:~Qy�әu\0�֎��TШ�c�E�O�,k�ݭ4�v�qk_�����ß�D����h���/��ַ~����?�k\\G�k��W����DSwٶ4/tI�ٞ;�>�x�k�m��c����a�yav,���� 0u�g}��q�,����jP�I�TZS�#���lE��%��Z�.�7�\n�7��6�|*K�ua�SJ��6��`}Eq�r��)Y����+��k��4}\"+�$!*ɧ�A\n}xG���1��m�\Z\"ޘ�t֦�T��u��㾯�X���]��ufw�jņ�,�\"iH�𥭗�O���������kx��i�<:����YY�;�����Y��F r��Wkke�\Z�Y\\�^�.H60Z,z�UT�4f\'��cY�c�)�P�Xq|D����8ױ�]�/����)i��=j�Ȭ��\0#(�r�%&�����Y�($4J[�~��EEG�C�F�:^�z��@�G�!u曗�J\"�,��#u�_t�lk jg��V�Ml�nvbh\'H�B�T�:�4���o����w����Ɉ��ӼDI%���}�*��&T�@\"V����kZ�X�&�բZM�4�I%G�t6�����wJ\"��8�ɦ �\" �gmF4\Z��V���7�\n�c�=����@�Bb������ċ��%�W�}\\^\0���+h�y��\"\0EkE�ʗ���T��8�,;ҰnoodAc��% Ke��n��v��+�-D(��A�ɕVQ�S�课�g���~.�O����\\�AQ�Kd�q���\\\n\Z�1Cd(���a�è�M �ѩ����V�P���Q�n �9Vl<�Ӆ��)H�\Z㓥��f&�{:n�\0��L�P��T���+�3q�<TE�q��`7�R�fQ���|>��@A��6*�JF�<,��`c�X��;��\0��A�{c�낹�u��tv\Z>��wz#�[h�BU�؟�M��t@p� ��?�C\"��k\\��U�N��^�Yf���ID��>#>��sF�̼��)-EEQI#x2��,�OV2T��f\Zq�Q���Plf�f�| $�.���<ѵ���fX�\Z۸���\nS� 7��$G�a0�J���RTtĨ$�ڍC%��0w!�>�dX�\n#��ȣ���H\Z�`}}GD�e�%-�k�7����N�HNS���\ZV(0#��B ��:���4���Vu�q���J\nq�O�&�1�]Dbا,��9�y,o$ ���|3��g�=Y�P�:3BY|��mJ�v��o.���(gmpp�WK �l�Ӌ\rJFT%� �X��p�H3�(�(J�U5�-��dI� xby# ��Xɒ��y$R�\"��ɷV5D���v���6���S�k�L�g~&!�.|���D�Q5�`p7\"X�L�i��(�0M�\r\'\'-�+<`��e��A~$r�h֠�\'=�1iV�:�i\"$kWB�`4����qO� #����P����t�֭�q��1�(�za<��7��2��6\\�]�Eȫ0��h�r�\'~��]o��b�����U�(�^$K�&c���k9�H�q�sXV �»�D{�h�����Y��%�������������.<���Y.Eӡ�ª&?-K��\",�B#i �T��U�L��6�8êؤ7�`�K&�Bj���A@[�/O�z嬭ykA�a�֦� �j1�h(�PX�������#��O�ߚ�yoY#�{z��=��;�f$d�7K�b�RfVT���k4�*!��p�<�L�0����x%Dr�8.yR [�GX�Bi}�vQ��C��*j5S��g���G}�[�}|�߄�����\'�i��Aj�A��䤓�w��Sb�^Yc�(�LLI�l(STe�m�a�Ys���c����.�qX1�C֔���Y$q$6Ƣ�:�$¼��77nޝ}��I�?��Y���3\\\"��O�fF�F)2�0��4�������31CW�LNNj,14]��AZ��aM�H��<�D�4@�%��!*I明fU@���9|9OKB���R��>��/?����q�㴖0V��#̈6{��ë�}{� ��H��rI87�k��$s�A�i\r%��,���.�oY[���ߟ���dA:�1( 1+������=�U�f;����->�\ZX���/ff��o��N$��h���ޭ~Fn��~Dn7���#y�\"�!��bH��J��7ݳ�J�|v�זD��\0f-��^�&���(695����3��<�qΆ*���_*�]t4�<�$���_�Eb�⻦\nh�(�B\"��차�4��\0?�6ˉ7����}�K�W�dL]V@����,3��@�_���DE=����랝�C�1u/hi1�oi�s?��=���7���\0��n3K���sgf��{y���z��\"K�eR,����IC��%���#EOt%j7>��n�k�\'���k��ߢ\'�J�C������(2�Tx���h��v\\e ��۬���R�2�WD��!\"{�2����a+�������k)�p���4cX�8�:\r^�70�\r�?)�\ZUH�tPb�qگ���|���\0�{�K%X�or��{-\rA]���4�����A]]�도��������uG����k\Z�ꏴ�y��q�CA���c��.��4���d]]]�(�>��<��F���ك�G+Q�Cҥ�a���J_9��)@t��l�M�3��CT+ ����\"Qr�ٱ4]|th&q�8��;g�05��[Z|[�Fv��~u1��dY����� �~Ns\"&\n+@,�5��kd��q*�ҭP�x������W�����6\0�Ud�A\0N��5��Ҏ����wD�& ʣ���Y�-� Z\Z<�H^Ad��57;�F���j�� ����w{�����[=�tde�H��݈!2;ev:�̈́�-斥���ѺgQ��2�BY�e2E�;f)@t��|\"�a$��j��KK��ά �bQ��H�!�����b��ZY�TZ�r�PXZ|����vu%D%31��/��b�O?\Z�w`�֒�CQ�+��I�iŬE��H�%UZYg-�U�ؑ\r@N�Y�d����o;䵵fI���(���<�.�7i6A�4-\n\"/�G�fz��p�H7�����̸���o�.�r$��b�Cd�AQ��fe��@[(.ﶌJFF�&B�-Q��L�sF���O�i^\"T��Y�����q�^k�ݶf\r|W�<��+wu�42��G����\n��>D��4�YDtՠ~ ���ˏce��-�����h�%c�SR��ֳ��Y� �Ȉu�0��)26�6@(�<�ex��Q��V�������p��O@�MDB�C�uչ.<Wv@��a[�Vg����ݙ��\rQ�+0z��\r�����s\\q��`�F�pc���H���f,�,�ê��I�9���@B�dԂ�������6olxN�x���v\Z�|C��屈��ƛam�|*G>@D���6�ٞvՆ�Yz8�~��TC���T\n��rښH�3��\0\0 \0IDATנ�\\+�%%�N��8ԇ^�UQ\rb,�s��;�K��i*�Ƃh�{��.�9��DB�YA���:@tX��\\�V�\"��������9�H�V:����/Z-���#��C���+]���z�R/����P��[o�Oʼ=�A:��E�L��|TΥD�<��[�\"\0�ҋ����{�xmI���\"���;</`&�g����V�9hv�$�j��xd�D�\"�v�hh����=���D3h}�iϿ�?��?La��\"�\Z�C6���B+Z�q��\"��}`L��r�+�CMۭ3=�����,q���5t7ͺ�7{N3��f��+ ���.x�G�� \"ܪ��i��z��,��.�[���o�_ײ��&QD�03Qx��j\Z-����D�l;��m��6�d�H�FOR�X�.-�]�����1�a��G�\"�S\"�L=�4�e�5���>�p��Y}sCs0V?�9\0���y}��\Zy��5��fV\'�D;@400�����DhW�z\\ß����g{\rCj+��#S�����H=�f&�DO�\"愺�qW���M�OT���A��F�hDɰG�kv�a���H�U�t<��B��<3;;;�J�7VP���N��{�\0�xԕ����@�\"{���5B9T__�\r�;!h�σ��\"iGe����=�VΨ-�X�M�=*bϵ 2-у/��X��ں�܉�}l�b��7��A����!�U�Ņ �C4@=($�τ6+���D��u��\\��Q]�2��J��\n_Cr�h�!3����a��O����r�bc ����qJ\"w�Í?g�nB|Τ��bx͇7{�z�y�t����;�;r�p��hZ��po���`oOo:3�WIJyvP_�e��5��y��-�΅��:�l��x�`��`��\Zx��&�4�L��xm��H�%�Q[<�*15?�77����k9ݶ���5�ף_�� ڵ��~� J�[M\"?���-��Xn!���hBp���J���`ׄ��C\'�Ӄ�_\np�slވ�$� 1nY��n4B�o���G�-DS�)��;��,�Ą�����@�`�{ ���*G��\\���a��C�q�\'Z4F�t��v%�gW��ʫ�(�+ՀH8g8�h�+��᪃�����:��\r��>��N�lh/���-}Fm�۾�\'��ӣΪ�B��@����l:�к�!�F-��1�t���U��\\����1;���!�cU���62�a�L�\"�������ȶ�h�AY��Z��Ѹ�sml4�_�q#�~Dڰ˥d1c��z=}ۑ`��@6c� ��{�kJXH�d\r�J�9{�0zF���8�#Լ�9�\rmnPob�KY���u�ѣ�!����`./W��f>��@�m*����*\ZqnX�J24ǫ�1D��vf��n�\r�\r�Z�b�*dJ�pQU�\' �K\"���z���%�Ҷ]��Fb�H�\\�l�l�ރ���k���y1����,,��Tg+���&� BA�.��~�#\n\"�G��Հ�[ODO+��/\n;M(���5�ײ��/���[Co���$ʤ������ #iW�3M�����?��h#�@��)�*TH�7/��^�|9Wy#�����\r��rj��嗘N/���yR�Մȁ�U�u�V~O��3��n��b�ڭ���4�Ʊ�IC�{Z�8��<J19���¨�����`\r]�~��=%i��\n�3$T;O\\A\r��s� S1u�Ù�����������k��5�\nQ�����.-��>A�v��g��W���_���X)dUS��v�?�D���/_��+�-� x���9� 8q�1��}-9^��al�(�����������-����e�m���<�i�Jo�����p;�Yw�����O�f\\�웉���,#DW�n^o�F�:�~�%\n��xmI$!\ZN�\0ǯ*�{xhh�ɫ��\\z\'�b��\0�����d�ޮ�]��|��WO���`G���dS� �T��:(�n��|�!m�%�0x�����2��[mI�-4Ѵ�E��㐃�e��[$@�*��tr�ܔ��7\"�:�f�1kzGV�\r���k�7�����x�<�\"���.%�U����k�q���c\\���L)�L{��Z\Z�̇9�)妞\r\r������h.\"#����Q� ��`-ўwZ�D�9+|��q�i~�; \ZB�yCn\Z������ \\G��_�Wj�xS�&E����1�MLV�khiڌ���(1�5\0��\\B�NP=�4���� R9��Q��*��2\n3p���߳®�V/�@n$r` �߰�E��\"�\\CA${˩��U�ei�D��� t�5��\'Ēr��.y�hQ�%ʽ-�H���$�L�_=1͟�<�� ��\rA��&\'�\"���rs��a��u`�`�b��Ll����F��B�\Z�-O�o�� �g�$JB�Y�Mեq�Hv1l�p>?����v��n�yo#�o�o�(DU,�S%a�8#T�W��aYD��d��*E�=��D Z��2j7,�,�ji\'�v/��\"��<=m�%2���f00\0��_�0�A�{T�w;�qڧC�������}�9�Z�bB���ғ���g�i\r��i�Rj�V�+�DšY��r\"C��ro��(����d����(��xm~��)�.�]�Iĭ%F��[`Q� �. ��Hb�(��H��e2��j@d%��Ć�� �G��� ��@�pK&CQ�D��6��o�OhaV7o�-�) (��g5�taI�Z��4���\r��Xv�(�ra,~��(¿m�S�j�I���*ڸU��J�n^���x�����T�{�i�I\ZG�Ry���ԏ��{~�{��-�+70�)���rWbA�n���<�ϑ7�l��O���t����2j]y��5?y�A��%�� ڡ\"-��d:����žQ�]��\\�^�\r�b�XC�\"�(z�Rgh]ω���&���CN�\\����a�r�#WY�&���B�p�\"{H��K��ڍ��IT ^)f�.[�*�;��\r������^[G�{��nոn��5a��p�\\2�\r��N���bՀ�D\r�����GF3eIK}6 ��%���d\r� �dv�h4)\Z4�12���[bB���ҁ\'�0��i(��C�3���뺄hnjb2Q � ,�H��d�-d�! sC��\n���y#��~$��m��d��ޫ �M�`C3���̵�#��\\�b�s̶�aؐw��@Â�\"�[cMׅ z�\ni�xf�� x�&J��A����\r�����eUH��$CCO�L�X�� ��r�5EvRL�IDU�hW���P�C�AdL�]ૃˡ��rXvV��E�/�怡��k�妌�@D� ,�*U� a ��+�gDx�Z$�T}CA�!k�5MQ��\\���ݠm1C���xۢCuEG�^�\n!V��\\x�q����ϺN�{��.��)�@#�T!�U�`F���\"���l�і!\ZH�9їN��pd��~�ύ���Ȧ�\r�-KJ��\\���q��ͺ�\0Ql���U�x<�j(���f��0u�]��;=,��! �5��Q�y�h�\"-iqS��WY�B�O�k�^�IM�;�s,fC�6�c�DퟪB�/�߽u�*�y=bhiW��l�e�5t��Ɛ+��%�\Z�18*{mݞu������Tĩ���w\r�jFwB.�]��O�x¬F����\\��%{�>�f\'��{O���I�G��Ϟ�NU����h\Z���happ��\0|?3��2�D{p�7���\n���z�` 2ju�ӕ�����3�c��06J�Y=�yF��k.����x�hUI��h\n�|;��ao�����Hm�d��x��Ž{wo5]i�v�:��Ƌ�`(ѩܭ���k�[h\r!Ye�,:{��n��z-<f�6x�EU���7��6�(z��(zB����rO�ʌ}��N���:�;t�����鞡��ё�Q�i` �w�̉��g}�GӸ\r|���J�`� J����č�zj��=p�3���)n-j���YQ��E��ݑ��6�炢o�B��I�(�U��҈Ɇa��9X��Ķ��Z�<��|��+W����+zBWo�S?U�ͻOW���54[�6���Qx��\"A�!8g�Aws(��J��\ngXG����F�9v�\Z�W�P�\Z<��%@�0\r���;1r���~<����=C#==�<��3r��D��������> �ij�[ � ���ה��č!m&�3,&* �(�:���@���v��$:hL�E��&�Y1i�T5r��LH\"@[�%w�GgF���/s/��Er\0;ItԸv��L�C�{`(�ы�/�Ǻ������57��il̬�j��2?8Ԑ�-?��)kh�:�D��y0��c�� @���<#1A���}h����D��t�t����3��\'FA<�N?M�@]6��w����ǽ �F�N?�C{���Uo���*����S)&�kѝG�<�<����&�\Z�1{�%`כ�}��r�Geι���B��B�va���ܻ�镫���m0u���ݹX����d4\"v��x=s,:!�\"J�\n^ݤ0�0��^)J#�F��,m��o�y�Q(��\"n���o�V��E�K� �d��ޞS#\'FF����\0Q_@t\nX�E�p:�fӉ�3=��N�\0Qe�&D �Lh3� �L�ݕI$Oτ+�\n$�]sɨ�-�����[�dzi���X�w��9Gk;_�L��5�q�Q�-P\\��nlC�u9�55]��魻�fb����R-n�]?@�j���˖h�d[�W�g���8B���)�&����ׯ�=���?Zԉ�\"P�M�\Z��>@}��|���g�г�F��\r��&FI�w�T���g��=�O��mi��G�w�h)��\r������� �ʨ&m:��o�>Jh���(�q���Ɂ�a���M��щk\"27������2x��!h@�}�駷�\0��\"g�P(d2r��!\Z�ˎo6�7�N4�%\0�0Ȓ <\'�@V6.�ļ��/���߀�O}C#�N�$��)a�E�\n4�Q;1P�1��S��R����~L �G��N�^gzzO\r���i�����>ݓQ�l`x���DC�C�d�p�Ml��b�>�)W�x��Qo*٭�ܛ��Wt�`D�[���Qh�i��\\�4���ۋ����s����\r�����{KK��ո�9�����ˏu�`��c{�G�X*z!�T��E��7��\Z�@b�f���wM�0�d4�����Z\"�W�K�����$�������a\Z�np�_�z5=�������(�v�(�+DO��(��@\"!��A�i �D�QW\'?�|ܸ�1���RU�z�q�9�S�:/}n�����*|�^}�b�\\{,���I� �*�ՙ����\rf����O�Zw1���u\r ϋ)��a!*kT��t7�(\Z)�i�T% ���*n|7� ���������3T{���{Ec[�,iW�KL:g��1��sd�a��1�D�OA��R��z�(��M����e=55==�\0�}� ��������;��\r���V\r����,qY���\\��$#�=�j�<��Q~��1Ͱ�~\rK���r�,Z�Կ|�+�H�����\' ں�l+DI��C�؞<|80�Vў!�C{Kz�k����E�4Je%O�g��|q\n�hM�j��Ħ�k�A�W�%-��5�q�O�*@͟+U�3��`-ߛyQ��-���1�A4\\.�Aw�uY�ߋ2nq\Z���Z���j5��X�@�\\nJ�+�Vw�� uډh��W��.\'�6�UnQ\\/$X)�\'XΘHz�ѻ�]��M�Ձ|�Y��Kt�k�I�y\"ӈ���|�,�F�l�(���\\�~|�$�6�y�>m���؋�{7���n��q�yu��O.F3�� �� \"!�`�q˕H�)}�Hq�a�H�=nb4��h\nܸ�ɟ�U���F��Wl�P��v�(fIؕSC�\r���ڛ]-:�K�x��ٯ��yK��4٠OV�?��푝�h�\ZG�Q�\r0n��E�cW<<~�d��n{�;�;�/��3{s+?��bNjUg��,2�\ZJlϚ�J���vY}}}C=\'��2EsV�G��]~4��1NY���_�6+F�pP7*��v���丑��qpo%��pMQ�=��\r\":NjM���.!h\'>#�fTCf�z�;�dN�2َY\nf�z\\���*���*�(��R�7��ڎP\\��:�ܙ�}a�����foI~����=D��g2���F()�p}Q\'����B�(��8�4�`\0b��\Zi��8EO�����z�ES�dm#��\"\"���Dbh_.��m`����@�����kj3��阊�Z-�&D��<|�M䛙z���9�ɺ2: .>\n{}��k�`��_��%�%��|�x���o�߾0{��ϟ�p{��?3���@�X��<<��# �B��l¢v NР�Ix����#\Z���(�%jׅ������p�J�k�2��`\Z�E�(v�@��oZ�����R<\r�@��)ԕ�\"��-`�sS� -�����&�@��Y��ɢ3������h���ۜ�!�\"��d�-67{�̽��py� ���/��߾|����������@�}T��\n��9�P� �L��\0F��UH S����YRqL��i��^�O��⊂�R�@����e��\r�fA)\'z\'���~258��^�� ��9S��3�� ����P�\nmF�2��9���8덕���x\"��<�jC�G̓��.�3s�۳_��>�~�����_��~�����WF�\rAn�(�n�E���$!\Z�.�?\nX3u�:=J��A�F�θҝ��h8����� ��6%38�2Jl�S���9�I���&(���{���]\Z�Dq�Z��^�6��8�v�qi�t�tZF@p���Ѧ(�`Ȣ���a�+��� �Υ^�k�;{��_̒\"��|@�����IjPB4L�>���!�NL3F�H��,�jfH�)��l�N����\rJ��~.0{���9z���E\Z9ٍ_m�����\rkI�[���]!�!����,\\�������G��MW\Zb.\ZO�P�Հ\"�2�y�Y_e�W��w�X����;<�ɋ��n�;�@4�܋7��WV?Y]��/�\\cȆ=���T�!C�*7\"�t\r�c�k����R��J���6�`w�}V�� .9g8{7\"ADC��iQ���^�����r\Zn/�#DU�j@Dv5^FI�)k�A4�R0x��b��a}��b;D9x8�Sv�s�\\��OҲ֝�P\r�^P��[��Ǿ�bf����/n�63s���������\n��\"��\0Q�B*�-!³�f��ݞgG���ۼLU�&:�X:�Ժ�>�8Oc�n��u�#����{cc���K�HbdT�=J{��m��w���� ��P�y���?��`-�Fv��� [4�纾��<���JqC`��M�X$:�Y�����`G��;�]\0�=u~pu�{�O��\Z��������XDHQ�yܒe��2<b�N����,n���7Y���y�;�?����ʆ�#�\n��/`̄Nцu�сGI�X�DG��w �r�\\ax������t��T��wUg�[=*���UNyY�D��c��K㡝J5ZA���5����w�)�.�����ȸ� �6l&�k�����o�ϟC���V�f�gdaea+?4�,�AIĿ9B0+�B��R���!��˸%E~̱�D���<�x��.\"�l��eEe~����\\�s�������y��5O�:wJ�^�+N��8�`�j3$IY���Ҵx�6K�����̮)����)����i�Q�[��,,���5�q��Tp<����K3>�R��C\\\'��v�7.��ua�ι{3��@aû�N �a��O��z�pV\"�� ;����!ˊ �W��/z�ǽ�� �)$Qg*�^j��\rS����_c�4��Z��FX~����O��dc�˹������\0\0 \0IDATT�4��}5����Q=�Q����;B�� \Z�;LѮ1LD��s�9�pl� v@u��7�:;<p{�>9\"�!6e�h�9��PQ�^(�/���Μ��~�2_y=���IВ����#��R�ڻ1�ZQ!j�o��Q����,\'\Z�i�{Y�d�h4j)-5V�捥����;g�F�58Ag��4jQGp�����w8T�5�.�A�\ZM)����#W��C���8�=Ι9�xڱ�x�Z;W�an<���uy�O9���i1��!<a��\r[F��!��؉���9w{�.�^�˿^XX؋���[��x�heEƠd!k�gmطZ9g�ll���\"�VS����q�%!� sR~����0�{��V��S{��D0��>��<U�� ��S�2d�&j�\'�v\r=�dnl�2\\�9��b:�\Z;��\'�K���Q�x��H��Ga��a�-t5���o��~~�[�}nf��s��/w�����2��`M��[c�,$�3�E,# z�&��V��y�ԍ2�,�^Q\r�a�Ng*���n�K�6�� S�ͬ�e�^+@�\n�����D�`��)eV�����o����!�-�����QBGf�+?f[c����c�x\0W?V�xǘ�S�q��\"��*.�76�d�)kܔ�w\Z?)����2(�s��gg\n{\0���)��\nDh% ��!������c\ry��+�.H<�ղ�����ݎ{1�I�ƌ��7�Q�ϸ�5�蒡_�=x�%�Ⱥ�[`��]�����r�����Κ�P-ֆ9�\rD��[@��uň�D;B��U�T��=��GO\r� ]�p?j ��9�mj^�Fi0���\rl̬��1?:�{ڹ�33��\'�|a��[7��� T�������o\r\"A�4�P�$D��|ñN�{��H�w�г���6!�@��(x�i�)N4��Uk]o�7{�=��9H�Z06֚�~6�� L#<j���ԝ$D%n��G5Dd��O�֝\'a���F9}�3��hzqT��t��h������h���D�0�aR��\r�D/_2���r�\\��[������r\"�oӆr�Lq!����)YJbހW����ff�N(\Z�Fһd�0�8��k�%u&(�uThC���:4?�-�j�����&�\n}��G�#[7�Im~�+У�l�Y�;��ZK;>v�q����`)|�\Z��I��L��h�-MM�O�k��H����Ά��4�I�jm-j0��m��S(F�GWVWF$D�W���#nFFV�Z���ʐ��}������ByT �\\ײ<ܬ�ЁΘ���1�a�\r�Hl�f<t&�����=��/fΝ����b�1���؎�?��]o���^��R�ֲ����+��U�~8���P�Oe����`�Ǜ��Z�!G�d?�0�m�{��[���C:�L�k�ˡؿcs��ҥv<<CɝD�&D���\'�OL��GY�77 D&�����4n���֜���F\'^9��l�\\�����녕B����$V����\nH��l�\n� ɉ�\\� �A�z�L�[��t�s���XԗJ��6�_� Mdz,6�60<ͥ2\"�aA��t��E\"G�����MM�fѨ~���~��r����A�h�;�aa辵(z��*4V�*��ǚ�;M��(� $��q�.�p=�^��e��i5��<K��\n��!���i6L�#�`�N=��\Zk9����a]w+(���f�r|� �y����ܽ�8ݯr��m�8~���j���J�f����Օ��͕�������Օё�GGA|��:XX�,7�>Z-�0z��2O2SQ�=����^�n�n6e���x�ȣ\0|� �P�b*$@_\r�:�#��\r�c���0q�h�[W��/f.\\X�m�W����wε}2(��N�h�����#3�z\n��\Z�\n^����t]<��;�\0����tIټ3n|�M�qkZ�y\\�K��s,p:�����a�G!�l�r���-7��5 ��a\"�{0@7vwDG��&�h�:P_`�k;�p��8��v��<0��\\�.���o�<ز�2)���Ѯ�GO]}=�\n� Zz/�l�=�tpp� A��*s�l�\"k��5�D���}1��;��K㝭��wAB���S�4��dI���H4&0K/���Ng��UDݝ�w�J����np2�3C�H~�*(\Z\0��X� \Z��;돁���\\\0DC���hZʥ٨�^�>h�l�Mਸt,�\n��VF�QyLL��Q����ȅ!2�;a��X^;8�jb�=�f��N=p�j��m��gp��krk���\'�W7���n�,��lل��7�GA��<�����ծ��\0��Ń��#�f�A�>m�O�3�W_PgV����bԝ�q�i���V��\"�!�X@U������\\�s���g@�F��~d\\��O�BD^~-QT��S�!\"%�=\0�L0q��#�e���a�8:V���bopܝ`O��9x�2F��Zv!�*d�,E�6�N>D�De�!D�ѫ0��\0�\Z=���zg�����ѣG�A��u]s\Z��@M�]��u�;`=\n���o�QXYX=z�}@��p�@as����<�m \Z�� DN;�{XM~�L݃���_�B�8\0C�V�����)\r�i;N�=�q%M�Z�I�kI����Ŧف���H_]�s��˗�-��z1�X����D�.��Z@�h�<��\"@d(����ԛe���An(譨�:71�O�j��&r�W\Z����#�ɈM�),���P�C�ξj�&:DŽ6��°�s�U���W�kcG��浵����u\r;-���y�`ΙX^�y�����Pl�7�#�b��\n��&j��-V��.0��9{�D�Yt�\\��q�\0�_�\\ϥ�!��wv:���D���\0�,�q:���[QD��9掖�C5Dׯ�-YÕ����.ς0��|sut/�(�8�P%H{���0Q$!*�M$!�NwCw���,�rF%C� �H0D�,Ň�1��N�l$L\'��\'Z����9W JgRQ.ʺN������kG���z���嶃N���r����e7w\0@t�~a�`���G\'OZl���tq�ude�\0�Pe����<(<�����:��ѓ�������̙��G��̭�W�fc6�8�wv������x�i�j.J�����S�\"c�H���~!�~^���<����;��ߞ_o���(7Ĩ%�vCh�Hf��ሢ���q�ީG��fmQ����,\"�0uU2��v�N��t6b ���a�RԘN!��L��$D�E ��n���Q���Rj��.�~�h}�]k;zt�Z�<��E41��J�m�%0��nA� �N\0������ɣ��?Ƀ��ҵ�� �=w�dc�CF@���?�濦�����/�;::;dZ`ut:�� ���u������9�����5!�-Ʀ&�мC�|ӧ���JW�8A�._��~�ۍ{pШ��\Z�=s�3C��2Hm\"I@d:]]Nñn�(�u����GF�ON��Ҹƕ��C�4.[$�ʪ�=�Fe͘g%)J@4�dhb���&�X���>++����X~�_�54��<-\",���.���R Ϊ\Z+#�E|z���܌^�D\"�9-��?��S/����\\�²>q��.�K�ϳ�YGD��#⇌���\'&J�]��o^��m������])�ޞK��w\'��+Ep�ޕ��023�����\"�Y�B�T7��-�E-��sZۺ05���b�Y��d������5\roQR�)ʗ%a=gz{� C���j&Sx251===5�jӯ�@íQ���3� �����Q�:��}g��Q����^ �(��$�ǯ��w0THG�������@��{c��\'�>%s�hrd���Z\Z]��.��Y_�[�M� /�]����� axHP�q\"q�ʐ��7��ե���<��0C�+1)��E��,�\Z��4KQ�#�ܢZ�RY/≨��y&4rDUM<y�UoOO�8�*ٲZ�?R�Q(��x�n]�G��w��L��pY�/�7���w�Dׂ����j�U*A��0+�%D��!s��\r՞ƪզ�u����s���<K�8����D�ң;`�\r�p�.\"��IPX��M��� Dq ��0Sh�(w�ԑ��@�!�^O,�CW�Ĺ_^h3�kB��l: Ѡj\'S!�^�JO��� ���AԿ#Dt;���k�$=�G��;DZ�~d�#^�0d����\\�\Z��2��;�ʚ~Ft����yc��{��?�Q���>Fkp/��,f\n��v�Ƴ儌�^\Z=}Z0��0fɻ� DCD��vbDi �ǭ+���*P\0�I$�{�wP�CJ�$�r��Z~� �\\���dv���G\Zܓ�蹥��R�m!z�;D �E�LJ4�/�!=�A?����C�0�!Bd�)&B��bD��]�����y�.�.�^:]���m�AeE��\r����m�ۊ�ӧT�/�j!�(푀�Ԃb�U�~��Ɗ�\rY���&M��`�QgY�[`!2?��H�� �z�J}����4�4���]!�F���������)z���~V[\Z�겧SCg`�|X��uZq߯�6gi/�� ��py�Z�b]W�@;l��w/.+\Z�Ù�GVY�ᧅL-�ğ($ 1�A\"]�hU5��E�ƓFZ��@�f��.�Eo�Mj3�[,rӌ\"TSS�rZn\ZJJ\"�h�^V5�����+�D���#щ�;�����ʬF7)�pܩ�G���؈!jV$�C��r9�4n�X����J�������9߸����G<�j�>{6��؎c�\"J{��ئh�m��/$���HJ!�G��$D̐E�}��=N��.)`mS��+c��cU������X2]!$� �|c�WV�LL\r��dU���DM�^�Z�5 \"�\0l��m z����~��~�ĿУ�eVC�$�-؋\0mk���2�I0�=�2x�ب<�{)]�rV������y�dYH�؊1��WU�/�\\sD{�e4(���\"N��^,��48�Ϣ?U���W���������R{�e�\Z&\n�(wM\'�>VX`m�C���u�4Ts��?S\'ZD\ne�� x�X4�)�o�&����� �c��D���++��QuZ��at�PX���n9��|V���$m���&��B�Ԏ���P�\"}D*ON�J�>��%����u��>?3;{�{u��k��v.�[���ak�&C��QU��`ۖ����4H�g��,�Uңg�B,=}:Z��S�ϣ���/�`�a��劰a�tWҨ����Qʖ��t�5K���p���M�ED�D��d[�v/c�)�V�����ba\ZH�Opw�����x�m- �^�Z~E����͉�������K�ML�*�T�6eՇ��Ԑ!\'��i�\'��~�X^�(1:�oq���+�˳�3�^�]�W�m��5ꁧD�׆(�\rT��yr����>����׳pj��j\'d̍�j�i���t��Ap�Y��>[�c�P%�\"f���M�B�\'�Ֆ�U-���H�q[���eȑ�}hm��cph[��;�g�Ath!�\n����K��$�FV�+���������.�n������t��yN���p|�{|�{T`��G�$E?�`��a����b\\��@ec�ۏ����>��Gw�@��}a���뷁���\Z\Z�㫰�9��\nɓm�)�\"��S֙�gFϜ�]��}|z��ԙхgN-�GgFFzz?<e��y����?u���7�ۓ~�@R���^�mu�]=�h1]��:6 \n,n��X2���Ҙ�������Ķ�I\r�һ�g�B��>@��r��ᖍ��K���u��6�:y�ku�����<��z�d��͖�-���O\Z��k����w�Ak��0N�O��7=��\rQp�GS��Ԕ,�@S�kTOb� ���NH٧��;^��J�ϥ��;Xt���%\r ������kmv�b#�A����TK�T��/��B���=@͙����3�S���鑾��F��֩��S�>c�t�O���{\Z�E��L���P%R4?>����qo״ʷ�z�B,��,K�Xjk1D�U�ٶ��e���\0���~�����u����\\=.���#�խn�=Z}��珬��l��7�<ZyT���y�G6�N��a�����r����y-�\nE�UE�61�\rw�ˤ���\nE�^�y�v�x��4�~�ۗ/_n\\�y9�Ɍ.�E4�=MZ����,�5G|���҇]���N/��>ub�T��D҉��=#}�zz�<��Y81��X��g[N�xd�ȟI��9��82�U�\nي))Z \\4r�o�}�4\0�y�Ꙓ���_��?qb-04\r��Ğ�{ ����\0Qݑ���͖���Y]Y)Z]=T\0�P٭��7��_X����w��ܿ�67��5�7���~������ Y��<�ۮ5\',�b���M�#������F_�^8����w6عg��n�\'*�!Ձ�d�$�U}z����:�N���y\"�����yd�~�������W�f�S`mgNY���tqPk�N������H���ȚI�-�u����^�Ef%3�l��vQ��e����������Gh����I��*R�;��������Ֆ�uu��b��\n��\0*�D�WVV��kX.��|�I�~�G!1DgF�\'jx*�qg��~H���%2�>�{��5Zi��}~v~���N��DDC�I,+�0� �\Zg��J���b��~�@d�\'zN�k�ٙ3-\'FϜ�91��Tϩ��gN=:�,�w��넉/���3உh�נdta\'G�/Z��\"n��0zt��k�V������-y��D�SM�`v-M�\r�����m 3D���6),����S����Kiyqe�����c�[�rK��[�M ��8-�B/��UH� 肹�n�h]��a�!yʄ�\0C�\'�s�ӝ�N6{C���q�4j4��[������<� %FÀ����|��{{�^���Bm��q�V��걱1�(��~j->��揮��x����W�&�@��y]�\r�j(cb��UW�:X��!��Q���泽1Ղh�%3n[_cYѬd���`INQK0�zN�B�$iU���1P�`K\'�V�#���`0\Z����������a9���\\Z9�a!۞��Q�Y�aۤ���Of�X�i�gc���\\,�t��~]U\Z�/Ds�Gh_�\0\"3[C�{[CU���u��֪�6A�����ܪz�>�5־�������ڃ?�����\'CU���(����I�[t �<�z�<�/X+Z�L�C�!�ݝJv7�m�[۷�$�Ah��Y��%��qo�pл�֝�\"�/I����v�~pJھ?��3��d�X\ZΎK�h�wv���&8�ޤ5)E����b��h��o\"�=OT>�Z�JyX�%�R,+(\"�Ě�M�_�f ��J`�\Z�Y��z�Ԧ���)X�j��l)�}��un�������?��lhG3$%���;p`�3�:aV��l��2��r*!<6ח���K;N�����m��T�N\n�m��UeU4;��tHcƾ@��zҁ/\n���*o�\'�7ʉ�e?_�Z%,͓�p�ߓzO�͐ �Ų�X��I��K+����ڟ���D\"�J�<c�i��MᏄBA�CJܦ�¯����[������7f��p�VE\"1�0�Ɗ|�A��Y�#���!�ne�Ӳ�Rۼ0�CG�˨�ml�����y~�4I�&ʁ���T;r�S���M�.Nfh��oݚ���EJC�_���2��x��g����Q5��\\��a5Dv�R��!�D]��L�D/he3D:$YI,��&�r�4���\'���a0�L����;+�?;C!������x7D|�fdt\Z+@E��ԗ�Z�RAU}��|��.h���q*SK<B�|�0.׀��esծ2�$\"\Z4��bobAߊ��\"c�\n�q<+���4�?;|(�Y�!�7�H#���^�! i5�ɍ92�x�mf��F�_\0\0 \0IDAT�Y���34U���\0���ݿEү��ٔ&���ȬMv cU{���g��_Q�Wo����\n��@Df�p8��Qa�Z��ԍ�G�7�?COTu���셥����AD�E/�z$K�\"�\\6����fn�ư�,>Z�!����qG�ѿ\' D�\"�i�Y��K�X��\\��{��l �q(��D�sr��l_`�̡�w@-��Ý��\n������Z-ߢ6�X|���=�~SX�_�5��~̟Dy�\0Ll�\r�uV�U�-T}�Gz�| c֪���!�Q\ZSԤnl-��\Z�L��S{aqw���aݕ�gK��9���� ri�^�x�̌�D��D^�r��%��a�-��=^�)B�\"Z�j�!H�}�ɚz&��\\�t�#�������hO��@ľ�R!uv{��A�F���[��\0���pD�8�q~GŇ�ȗ�3�aQg2?��\0nc��Z|�BԹ۲pDѷ��vO� V�V�S LBk����vr��J�z&�ؒ%��Jf��$c�����ŷj��F��q�.�\0^~�9`��3��]I��ﲫ\'P�䦿��뢕�Ϧ��6>N��_��T�v7|�X����) <�I�vk\Z����bE;e��a�T�q{c�ahj�@�D흫�4k�WչW~��Q?�d��ڏ��/�����zՆh�|o�7�wt-�y\n�-��<<�MD�C/�z�@H�(�E�j\0��X,m��k��eR�����2��yt(�,�.վ��!]\ZX8Ĵ���%�MQ� ]�5TCŭ�f)���Od�&EIVU5�x��e�_�9G�aD���/۬�(��X��ߓWCJ�\r��O���d^D�:�dyn �� \Z=�ǵ���ᡣq\0�e�\0��-�(x�/��m�����S�ç^�\ZNU��\'��]�������z���Rq�@��*�V��3ff����g�E�1Ӂ��`���*q{d���,�I�!F��\ZU�\rdQx8�<4;��9�\'EH�h��[\nЁM\"�@��$Uͨ|���I���^�[��,���\"E,L�����@c��\0��}\'Ĵ��\\�+k�]����H�ȝ�61Z� ��*�!ju���Y�!��\Z�6���r�\nQڢUuv�A�\n?�7�j���0�H-w�����W��;;�Ud`�\"FVW#1N�L#�P-�o��]<D��:�*y���U)s{.&4���,\0CW�u�C2D�n ^��3;Q�{M�|�*�(�d9-Ii\\t �۲�-��|��Qe�G�z2>�?�y�4���9�\Z߇\"�ϡ����q,�x��r�)�;��i�p͛;��K��qE��L��-\'Nt{���D��@�Y�*F�V(/�� :\Z� �$1�c�Ix�j�e�:��pש��v/B��ظ3E���_`C�6����v�ْ����`�b�DvNcfV#�S���M���Z��r��-Y%6놨�G�9�a�0.]�t{.)� S�MZ�|\0���h\0Q�B4a�FCg�G n��6��\\]\")���mv._�����F�`�r���x@�k��ּy�@$[��e3t�������5˂(>|܂�ԩ�N\"��9揿Z���8�h�@��o~�\"@!2E�Q�3f\Z��(\"x�2K�7�L8U�\Zs�g�-a�YXhjZy�ƾ�j� (���)��zN\"F���㫓����p��2|}=��8!RU�ʍ�6\'n� \Z�i��y1È\0�ȵ�Kp�5�T4^�Vj�QU������,�T�1 řQ�l�\0L�G�JKvCt�8J�ќB4V�G�b{�C{��X;�D~�\\�˽�SU��\0\"���ǪN\r�Jn�=�^�_���m��?k~�V��̞7L\"�9\rU*�7���4:t�j��)�C24ٴ�)����tmq�������&�t��[�G�}Q��J ң]F����p��e�<rS/�$���� JNܺ5*Ƴ��b�(ƀbe,��ԩ��HW��v.�t�+�\'N��9=˶��EID���A�bMNݿ�D$Tmg��t��{ę��lY)�c\"0��L�m%����haa�ep���(S��qS����y��\r�N�KMc������J���6���mp����ڷ�ζ,�F�O��DK�s��\'�zI��]�.���j����8�B�w�QӢ��J�zQ�D�5��P��(r,\Z�e���N�U����q��tgTW���ub�Q�����s�d1Tz@�t��l�;Ƈ���3��Ϧ�,����c��]��N>x\0Fa{��i)����*�%U�֣ik��}�x韋�9&W9pXpI*z`f�[��m/�v�\0�R㈗��p��B���!D\ZB��ZW�f�I�SE>�Rg\0$���?̗�G�mZ�Y�r��� �lk�&?���y1�Q!�.;��,�ҭ��ӵ��ch�<GI�{�}ؿ��%e�ҵ���Mօ�uf����4�JK��&���yF�A43k��\"��l�\'mDӻ��N2D��r�l)���:���-*�z��.<>_�.&�H\"�.�>.Nf��̲r��C�0�����2 4.�/��R���Jz:��U�7�UW\"�t���e�x���{Ƨ��)\"1^���ayM��D2\\%C�Z�˦Z��.���D��|UV:B��\",8��~Lȁ�W�v�����z����ļ���@�|�\'1��(��尡�{c��\r�2۽\')aUU)�e9� +2<���Y�d)eQ�d���^汢�J���f�:0:N�;h<�Η�1���V_,��@���z\"�ܢvGr�2twjs3A�6W�\"��A4T��E��\\�.k%��|iݯ̷45����[�����f(d�.��j�Zjk���^�P�>~KѰ\r9�ȠD\\�+[i���L�\"�EÜ����H�P��3�1\0N?�0����.�H��~Y��[�H�{L�K���Y����\"ިw۫��R�c�D� D����m�c�=�<�$�hs������Dz�1q�^L���L�8B����ʲD��K�- �AW.7�.�W��v�-��������|K�Նօ�ݥ�͋���Ņ���ږ� GXm����kS�������{�zZ��{|,�&��x�\"���C$��o���﮺��D\"�΅ѾX�#z�[���������� ��bm�DO���ۇHjao,�%�)�h�*� ��:ɲZ�&6i��� �\Z�P��`1�\"����y@ĭ�f��7��o=C���<�l�-�5-�\0C�Tfe��6]���Ժ���Z��A�Н��yjz��C|.CVy�������!�*�D����.m_%�B��r�(��^N��*�u\n�0�� 3��)8����Y�7�D{ɵ�dr\n!_W)Tu�%��k[[���8���p��!*��A\r�G������F�� $��o��G��`萪�~��`~� I`˃ģ�v�J�B���w\0�プ�6-<þ,r%%�A�@d�\ng!#I�y�\"K�oUh��)b\n�X4ˤc�=��+�*D�)(:�\nZi3��G&��\0D��S����ީ�S����ر�c$Č�xN�=����@�6LNC���1��(�V���;Q���q�I��=\\�B���֖�g���R�K�mo5/^�_IcCk�R\n���E��!��V9���{�%q�E�d\Zg�\"V��(�<���8�(�&I�Ů�)f( �m�L�v�P5�T,+����X�P����I���r�bO����d�BO���`�=/\'��/\0�P�o��^\\0��4\\����+�\rMqWκ�=Q��1�!rcD�{�g]�t�eI��>d�� .��^v��+�/]E��6�gI\"�9\n�{5�6�x���\n�Q�!C�-BQ>D��l�$���gم�Xt�lk�g5����с�-�c@\0�n���Ŏ\0�(B�3\0���pr�@�VUչ���l{2I����BT��/M�5c�B��Ɯ��:\r�)�n���uEY�ڏ��Y���lE��{�Zb5��[AL7��֒�!���(��t�Mv+�.^�&�~�]����3�A�5�D4n��!rS���\"�,�hj��]s�����V�\ZjV?�DÒ\"ɞ�Jދg܆�Rg[c��cCɻ Tgk�����z�X�ӂ�h܂���z�>���s�3�/5]v����6v�풭���=��|��!\Z�E��l:3;��`!$��#�x�����^X�3�b��-�b����*� teѳj|$�e|�V���̎Sk\Z�!���!�2 1��I�d~�\n\\��Y|tF1{A�Ά�{;�4��Z�6�!DNs?���!����ѡx��B�j��@D��\"�m��Qa��Qtq�vlv���bK���,�&d����ch��-�(bnϒl��U�XH5�����K��t��8Fl������+���66�H\"�I�M\"�e��6\n�����]��Y�\"����EbY��I��]�8���#��kj^st��#N�]\02I�)��¹ V���:A�%��Yj����d�ʶ�!�����K��k\r���|lb������ݽR�d�8D�!���{}qޖ��<\n������r���|��p�8c������3E!�D�!G�}�XD��$�i�i� �E\"�OD����E�f���93�٘:w�ю�7��5lh��E�/�7���~\"�\0��)ڄ��\"�4w��H�-�����Y�Ɏ��j�~!ڇ\"��h50�5oA$ˡ���Dv|�np}� ����3�0Z4����ƦǤ���P��(�f����6�i}�/�����X&�H}����\0\"b D���(��eg�:�\Z��t�$A�E@({||�\\_\n����;3Q���=/�wʼn���<�&�}V��=��wq��\Z�i`����b[j��ݳ.H `dmb����R�F��f���ue2�vwr-���P ��h���[C�������#���ĸ~��mD���@j�fZh�I���FqI$�nID��)ǐ=���/\"�X�<R�>&E *�D�k��$e��J\"��F��eUv3��x��S:3�%�31��r����\'�hT�Ҫ��%)��D\"�����φ��QC���聏D�P<��O�M�=B�Q0_��k�g7,�2���\Z+Wl��Ƙ@�D�͗�F��!�F�d٦\'��ق���.�{��)��Ŵi���^Ӗ��5:�933\'gz_9�e�*�@�a�����7�4{�a���U(�UMU�*zQ�(1Y=�@4|\0D�SČ��ۓ����:ܮ���D1��+2�!�-��u�f��i�jhG�,�?���_-F͵o���j:�p����P�dC$�A$Y\"ȖC�\";>��?n�w.���0D��=?�$�DV�(�-��h�ֵS��%{@�#���$�%���y�!D\"-�!QV�\"J��j��U9��DM\rH��o��`�$FQ�� D����@ӓI�=E����?i-� z�Y���\'�jQٙȋa80~��^��ڗ.4�>3]��2��%҂ku&�3Ir,j�\"����e���I=��{��Q1�P��gt$�����R,�e�`q���W�깃�E�2��q^��w�s0C��F�����CE.�ʬ�z2\rLqT$�_\"E}�d4ۯ�I�(NP����7փD�wI=)m���g��n��7U��tezj�jj�1����n��6V�o�q[8Q�\0s���4�.7m���\Z`������~o�t��C�AW:�{�0�YC�x���h�z���ZD��Mü�&o[��X�SX��u3$�~?�)�j��)A���J�P�6�/A�h�MU{7��\rw8�\n��Q\ZS�6�S�����`�2�i-C�t5/\\�=�q+��F#8k�Tv�=3L�`����\'�q�<�e1�ȡ\"b��1h���C@�GLmc�N���5�`~�|D4ɫ�\':T\"&|d����K�F9��!xJ`�`eV�t�P�Ks�2�>9\0���D}�L\"��}(�.b�cպ�%͵��*\r\"W��qr�6DW.��53E�i �$3��6�@�|ge᭶�66\"�3e�LG�qs��/@=�����G���g4�щ� �������� �\0���X>\n��:;ըI���G���Q����^�Ą��Fd�5�䳃S&]���H�Ɂ3\'��D(44II����f�E�qL��#�(F�� \Z��p�kHN��[��\'l{��Y�]\\\\lmX~L�o�����2P�b�\n.bW�hU\Z�f�lFsS�Ԋ��8XD| Q(��2���t�fd(�����宍�m�iSv,K�p|�Q���\\c�2�cp�Ö��G��W�\0A4^\rb(1RS=������\ZOxx�4Q�{�i����/�fm���XO�JYO)�J�L?�\0\nGZP5m���\Z���e�(x��� ue���j�_y�k�n\'��8D�hG$9�b�-����#���˱���[�CN���HX��E��\'�\'��^�G�� bs�\"�;jz2�� �ΜF��Yq\Z� ��!|x_IT#��(B��㷳 �X �^��m�����e%���aߪ�&t���&�c�i>[A.痿O]�y\"&\r�1����o���*����$_[TS�L�Ùւ�;�H�|X��1Ӗ�c�A��<�q����\0�h�Q�^%�w�fsx��ę�3(:��`��/8u�_��|mF��,�0�(��հ���=���p�d3=�����L���X�a���/=�^#�s!ҹ�~!ː���Ŋ�3��} �RJ���lT@����:T9�o�D3��K�_�&{�w�e�qZ��H���B�CDR���q*�F�Cɚ������fhd��H���S\'�*ژ4J����= �D��T���(ž�5K��A �\"e��b�<�=���i[|��!�+�϶��H�.��B�u?O���k��\"�C������C#�hڐ��.:���R���Y�<���h`�3/TT��O����\0Dg�2\n��ǫkjjHF$�8#�Y\'���ͽ�=� ������l�RV�\ZN�1�h��\rQLJ�I{�7}o��<�GW.�Y�Dy�,�,��Sc;�l�VD��6#mml;��杁��c�L�>��c�Y��t��5�\0Dy���\Z)\Z��\"j�ԣ���E4N:S=�<�Q�����3�R2t���%)O$����{!�\n��YY����s\n\\�+�ӕĬv�c�A����d́��\0�.�\'Pt8#\ZL����<\\a�EX�)�\\9B�q�Z3�\n�\\UX���Gc�غ\" 1�d�\'�n���+�̚�el:�QI�w�\"��\0)\Z��\"�f�N%@��Q���3��ՀL���́��x(^���P�I��#�\n^���\ZESy�;��O:�{�6 ]ne�6�\n��$��g�����!(!D\r�\\�ʘ�!>\\|�����%���&��z[��b�\ZX�Z����rx*�@Z�/�\n�8��(.�7\rM�Ay�>�3̈́�\nX�#�dɓ�C�yv8���t��j���\"!��U�\'&O�\'\'�O�\'�kD \rT����l?=�b���إ��� *P2\'X}� \Z�t6j�KKV�1��sȆ>�L��B����\r�1�iY�ۈq�B�D��j!�lF�k1�sCDC�\r8��/ܝ֚.����� �g�C�n�D�*��Ds� \nR��KϢh���W�����x��U*D�C�C���k�A�m��x��V3��9\r����L��P\"DR��O��Ct������*z �Ks�*��V4)����a�} ��kvx�������@�$U壑H4ʰ��(��sh�8�8j��? Ή:�Q��\r:�(E���,%a\nѕ�g�E����P 2v���̝9��SV!������G���e#ɂ��L���<C��<$0h})ptDO�IJ?Y�S$ςD�UBȑE�Ȳ\0DmY���&�a֕Jj\\��٩�2��)�a�@E����@�GwQt���\"?.�Bmh՞&�\Z^�<�x�⛂Q{�n�&&�� �CBĚɂ8��G6Q ��r#1$�JD��wubs���i4���ٙ����Y��q�F�`�n�\0\0?IDAT;A\"fV[�{�]D�Wr �YF�Y�+p���e2�A�x^ULĢdr�2,A%#w$�os�ޛ>*\"p��|\ZS���:O��(e�D�$�z�L�h9�}בkY�C��E���S���\"��DP:]}�s]����c�>3���$7������\0q�/�`��ѓ�����4HD7a����c--\n��8�=�|��h�\Z3+xY��K\\�pt�a����� B~8���¿���g��J�R_L1s?��ᬌ<�D�I����D�M��:$Dk�)J���������\'�O� %�����\"$ƞ�\\m\\�>S(�qwu�h��K����u��@�=y�V�g5k�4��d!vc�����ϭ~�y0�yB������d��\"\\1E#u\ZU�r��Ƈ�-Lz�=x�Ԇv!&8�)\"�ُ��2�^�&ʥh�J���T\":g��T3BQ�XGɑ������l�)1h��W28��E�,A�U�.�O�+:A\"v�E�g�4�d ��:s �o�.\Z�\"�>8�0�\'?d\'R�u�3�*�y�v��Q�U�$��7\rm;��bN�J��d]���mC�V�9��u`Ҙ��Y%鑴�s���x>E�E*v�~?�@�(���ҙM0��:\ne�!�)��_�\\���a�@�:�6�&A\"��$f�f�=Mբ@@�Z�J�\r��Iw� ֶ�������\Z6D�o�!�!��H�Y�ɕ+P_:�V1ZS\"���J���_�A��_ɉY_0Z�E�`?���w3�ህ���_~��O�M�Q����2����蠃�ϛ�G�Lm�ђ5���%l$�Q��,��ta�n���ySN��&�j9\"�+ךZU2ۇ������<���V9��L���e kόlu���3��O]m\'j�Pr��s�b���]T��G*�y�\'��Ř��=[A��*��jJM�\'F�D-�,�����Y :Mm�Ӈ��3��F��M��+��=5������D������&q�pTM�l�@\"N~�`�7�{ D8�Wf�h���\'��V�u��RJմX.D?X\\\"�hjsh� ���]���K>�����4��D\\̤\\��\Zmo?\"�=2Q9X���\'@D��WV\\B�*�H��5\"��\r|������*>1�.]�><=A�r!����w�o���A�,ļ)QO��7�*��C��\r$�it�Jb�����䀓�\r���(W-g�p�\\�>���,M��i��:���ʫ�y��|a��|��t�03ۀ�\"�(���BS+���0D�9\\-��0�a�m�� ��Y�TDt���,�F�\"C���wTP��$���i���Ǵ���Lp��Ks��}u����;w��A[���rN9@��G�C��*6b�0E��h���5!����HM��ɚ�D4��\0Q^�+ 5� �&�|�^=��?�Qe���}\\��76�Z���t�d2���A�pc�i=cp>�� wt���������@5��(�J#�NVؖ��b��k�\Z�:3�L��D+��@�n� D^�萴�^�+��L��f����{��[���;�� ��6��I�a2��~�6y�|o*�i(�Bt/�]�!��X�9H2��k�C������O���ۦ�(�0�:f�.ʢ�^������Ӆ�v�Tb �����:��9\\�ᓔz=Z�s]b��.lԟ�1z��9�NQ+����L)������BQ2�̧���ZF��i�Jr�!���9R&~�Q�C@T�����༺.�.-����#��z��*>|&���o`֙牺� �3�_a��L��O�jʟ��������|:��_���I���f~6� \"G a�\r�l�I�v��>�.��]3�!:����D=���O0xC���R�J=����f�7���#}~\"Y��=}F�˨K��I�a�ސ�1\n#���D�[�v+����q��V����~�e����x4OO��sLm˥�S`EY�5��j�7���]��H��#��\nݬH{��WVҪ\"O��z@�\Z|.�L�/��C��9pc�o����`��w����杽/�y��7n\"D[{7n|n~@(��\"&�\Z���GFHL�-�~v�9 �_�]\'V5����W4��W��)����Q�{�F�\\���.�+<_������\Z�D�O!�S����{�|���T+��^\0�z��]=-�����-mߛ���+(�ܦ�K�)�\'�hvz\\J�#[��\\%:0o��;��5@�qF7H�WԊ�T��ۭG�{u�\'wX�\nAĬ�|����?�go�38��i�Ҽ�?x��Ї�?�߄;?B�n�_���/���,\"��]�EIJ���PC�0�̥鳒5��T��A\"�D������pCG%�^V �\'��3�2uڼo�q ��sF�?��g}]@ �33�0@T��|�z�oi�@�ˍ��\Z\Z\Z\Z/�v��K��Pb��,t0+ɍ�l1t��>\0�US+�P{%�}>P�G�� ���%Q>߱\Z���L���\0�����7��+�G٧5a�� ��S�w@�����̟��h�>0W���7n�$*�2�<� �)��ș3�5��2���� *��g��\0������:dN�˨�ի ����.`J�+�\"�qQ=��z�ף�T���Y�iV\Zr���Ez}��K��i��\"{�#;\0��F���j8cy\Z��J\rE|��!��b?9�Fjl�B=������z\"D��>p4u`���6��N�L��Sf��Ss�m�ɧO��}l~��4������濁����(D��1p��ȽRzA����#L�և�(x\0D��,mv�*���%R=(�t������ �z{@4\\�d�� D=}����|oXN+}����i���\r�7����g�V�l��|�.^ljmkkEf�|���|��&��UN�\"������C�XU��G4@�utg^���n�6�~^�чԉ��d?�)�~����_���C�Bl�&G@s\r�v$h}k��t��9�Ə�\'���u4��\'~4��G��f�-�\\q�PVy\Z|�� |A���:6?G�D��S���ްf\0*��q���1z5�W�(�v�ij��C�̆+M��a��AZ�ABy\Z�-?����3�|������ؘ5�{߃Q�kƛkk[�����B4=�\"kN�K�[�B�D�V2�#�(i`G�\Z��u��p�Λ���Vf-��4�ѝ�̯>@��� ���ߚ�%v�ɷ>03���O��[7��7���7�!D�5�~p�����s������>��Λ���$�X�ذ���*���}���Ґ.n|1R]}��;\\UL|����Z)@:@E�B���z����������.^���p��4�^}`��� n��7M���+b^Q�^���f:�d��GM�\\�������5\r�.Rfmp�DwY�lY7�ߌ�#��n������o�~��ӏ��O�}�潑�����L큁4?��_L~|N �\0��WJ�z�p������p��x�c(�u�O3���ۼ��=#^�qJ)�Ӕ$��C�$�x���v>|����op����ʈ\"H5^���7\0�\Z��\0��^}�؋×5�\"˺װ`�!}�`j���6\'qP�| �drn�u���hC�h�ݯfCd���ͯ�~��l�/3��O�1�����F���oܸy\'���� �>���w��9�_����� ����q�N�w���b�sI�s�LZ&����TǮ�C�ьlW\r�\rn���T\\���Ec~�R5��4=�$�ĉ\"oJ�]K昰X#��&P��6��\\1�|\0��$�$����+��.5�ʘ����G����e�VT�UfM�e �7<���]�!I��9��7���ݛ7n���6pc`�&*�o����{I3���>0rs��F�o~�[:BS�2��ؾ���s� �����l��&���#�A�Χj��\Z\\A��7��,DE�_F�N�����0T\"���!RM��1�lʅ R$Q̩RI��p���$���7_�K��נ����M��B��ۖ$:�ܓ��ʣG)&M��ѩ��h�џ)�)#O�����?����A�o���xr�@���1;�q��;�\0�����w��;,�H��������>�|�G~x/X\ZCC���@ ���ZȌ��~.A4w{ܝ5#��tC��t�b�Z�}1j�hZ�f4�\r\rn\rS�yd���p?��ۗ�q�An\\]ޕ1+U\Z���.��Wր��)�jZ]��Z�;;6hn���^�$���������7ĕk�غ��1ֹ�a��G��s\0�tz�.�*_��Ϫ�����!��Qjo{:3��2fgff�������+��3R�������3�zl��9�5��u�;����\0e��z�Ui�\\a)������<0<G��1Y��xL|IFeFŝ��Q����KQ dg�\r�c�V2��3=�*ו!An�R����6_�����4g)�B$����)5Ƽ{����\0��S��3}�#�=e�燞r2o����g垯u�\\��owЁ���C��2��?)S^���C�^*�<~-����|z��\"<>��U�b����v)����xO�m�+sh$x�w{�L���|B(x�1]i}h��P��1[��@4Hd�ilg=\\�X�Qi�{�@�{�\'�hv=z�\rH��/S�JOU+3$�mV�e2��9���}�VI!r�����<�\\%!`��d\ZG��{����I�G9�.v�)���GQ���\'�=<�/<ʃ#��D\n�\"q�<�xd��H���ޓ�T�G;���ZQ�=��ת*�����;�yt���(�JP���y������͏���RF4t�tƌ�=� b�L�ՠ�ӲU.����}u �\0\"��o{{�p}Od\'��3\0�Ugf%��q]朮G��J��{|]��Oc�n��} ���]��h�9R�?���(�kGˀ��+?CG*�(?�H�Aɣl����߅w��].�O_敲@��#���y�i�UO�+^�^ѲO�1���D���쓊���{�QV�\"W�7p��\r��������f�d���!��v{��D4H$Y5�4���z����R���>d�3�:���F�$Y��0��\0Q���\Z=]��Qi�� �P�e8�Li�n�H��\0�T�9b;R���HQ�_�9�(�9U�s�o=<�\0�?��F<DW�:;\0u��O$�����O����\n\Zܞ�UPj�ޘ�u���*��2�H��[��ޯD�?��+�!�?��>�{����P���y��ds+�K��8�+��6K�c�Ebd�b,��D�p� \";�$���}�X����5I%�&���D�L/(�j��>3ӫ�C��t)�i�\"�tA䊿�gb�n]�/�f>�g���ly�2�8@t4r�8��c�~�#�e/����q�(Ek0���oy��k�#�tx�H�W���O�~��b��i�}��:~T��8*����@��U��~4%��!:�8C� ��B(�f���^��({W0D-\\�A\"rmI��0@W_��S3���7²�Ōt�����I=탍(�KiK ���������1ʹ�rW���j���e3&�{��k��@\\��PF��2��<�eG���~���/{����.~��RG<G~�wN�Q�q\"��o��-�8^vD�ė�7�Hg��Q>�(;���4�<�C�>Bt����`Nu)l�A�9Y-���$A�0>H�kX��;�1��RL��m��ֲ�\Z%)ndA���ے�s}��v�l�\Z(�v���S>ywu�3�\"Z!��B��]@bME#���2kY\"�@\\��4�x��\Z�ci���Ų�̪W�t����[UU>}�\\���C\"TR1�� �1sեu]�2��b��*�Dt^�����:ODv�c徽\"U�#��!/͆�1��0\rN´��\rD�K���/*��C��*�g��yOo�Q�-�llX���VD�T+ĎH���HE��]�gt@�3X���d��VU�)���Bg�Z�e[�9\0\0\0\0IEND�B`�'); /*!40000 ALTER TABLE `filecontent` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `filemodel` -- DROP TABLE IF EXISTS `filemodel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `filemodel` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `size` int(11) DEFAULT NULL, `type` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, `filecontent_id` int(11) unsigned DEFAULT NULL, `relatedmodel_id` int(11) unsigned DEFAULT NULL, `relatedmodel_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `filemodel` -- LOCK TABLES `filemodel` WRITE; /*!40000 ALTER TABLE `filemodel` DISABLE KEYS */; INSERT INTO `filemodel` VALUES (1,'200x50.gif',449,'image/gif',3,1,NULL,NULL),(2,'200x200.gif',712,'image/gif',4,2,NULL,NULL),(3,'580x180.gif',1898,'image/gif',5,3,NULL,NULL),(4,'googleMaps.png',39873,'image/png',6,4,NULL,NULL); /*!40000 ALTER TABLE `filemodel` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `gamebadge` -- DROP TABLE IF EXISTS `gamebadge`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gamebadge` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `type` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `grade` int(11) DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, `person_item_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gamebadge` -- LOCK TABLES `gamebadge` WRITE; /*!40000 ALTER TABLE `gamebadge` DISABLE KEYS */; /*!40000 ALTER TABLE `gamebadge` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `gamecoin` -- DROP TABLE IF EXISTS `gamecoin`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gamecoin` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `value` int(11) DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, `person_item_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gamecoin` -- LOCK TABLES `gamecoin` WRITE; /*!40000 ALTER TABLE `gamecoin` DISABLE KEYS */; /*!40000 ALTER TABLE `gamecoin` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `gamecollection` -- DROP TABLE IF EXISTS `gamecollection`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gamecollection` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `type` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `serializeddata` text COLLATE utf8_unicode_ci, `item_id` int(11) unsigned DEFAULT NULL, `person_item_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gamecollection` -- LOCK TABLES `gamecollection` WRITE; /*!40000 ALTER TABLE `gamecollection` DISABLE KEYS */; /*!40000 ALTER TABLE `gamecollection` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `gamelevel` -- DROP TABLE IF EXISTS `gamelevel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gamelevel` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `type` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `value` int(11) DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, `person_item_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gamelevel` -- LOCK TABLES `gamelevel` WRITE; /*!40000 ALTER TABLE `gamelevel` DISABLE KEYS */; /*!40000 ALTER TABLE `gamelevel` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `gamenotification` -- DROP TABLE IF EXISTS `gamenotification`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gamenotification` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `serializeddata` text COLLATE utf8_unicode_ci, `_user_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gamenotification` -- LOCK TABLES `gamenotification` WRITE; /*!40000 ALTER TABLE `gamenotification` DISABLE KEYS */; /*!40000 ALTER TABLE `gamenotification` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `gamepoint` -- DROP TABLE IF EXISTS `gamepoint`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gamepoint` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `type` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `value` int(11) DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, `person_item_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gamepoint` -- LOCK TABLES `gamepoint` WRITE; /*!40000 ALTER TABLE `gamepoint` DISABLE KEYS */; /*!40000 ALTER TABLE `gamepoint` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `gamepointtransaction` -- DROP TABLE IF EXISTS `gamepointtransaction`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gamepointtransaction` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `value` int(11) DEFAULT NULL, `createddatetime` datetime DEFAULT NULL, `gamepoint_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `gamepoint_id` (`gamepoint_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gamepointtransaction` -- LOCK TABLES `gamepointtransaction` WRITE; /*!40000 ALTER TABLE `gamepointtransaction` DISABLE KEYS */; /*!40000 ALTER TABLE `gamepointtransaction` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `gamereward` -- DROP TABLE IF EXISTS `gamereward`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gamereward` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `cost` int(11) DEFAULT NULL, `description` text COLLATE utf8_unicode_ci, `expirationdatetime` datetime DEFAULT NULL, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `quantity` int(11) DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gamereward` -- LOCK TABLES `gamereward` WRITE; /*!40000 ALTER TABLE `gamereward` DISABLE KEYS */; /*!40000 ALTER TABLE `gamereward` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `gamereward_read` -- DROP TABLE IF EXISTS `gamereward_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gamereward_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `gamereward_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gamereward_read` -- LOCK TABLES `gamereward_read` WRITE; /*!40000 ALTER TABLE `gamereward_read` DISABLE KEYS */; /*!40000 ALTER TABLE `gamereward_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `gamerewardtransaction` -- DROP TABLE IF EXISTS `gamerewardtransaction`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gamerewardtransaction` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `redemptiondatetime` datetime DEFAULT NULL, `quantity` int(11) DEFAULT NULL, `person_item_id` int(11) unsigned DEFAULT NULL, `transactions_gamereward_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gamerewardtransaction` -- LOCK TABLES `gamerewardtransaction` WRITE; /*!40000 ALTER TABLE `gamerewardtransaction` DISABLE KEYS */; /*!40000 ALTER TABLE `gamerewardtransaction` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `gamescore` -- DROP TABLE IF EXISTS `gamescore`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `gamescore` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `type` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `value` int(11) DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, `person_item_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gamescore` -- LOCK TABLES `gamescore` WRITE; /*!40000 ALTER TABLE `gamescore` DISABLE KEYS */; /*!40000 ALTER TABLE `gamescore` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `globalmetadata` -- DROP TABLE IF EXISTS `globalmetadata`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `globalmetadata` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `classname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `serializedmetadata` text COLLATE utf8_unicode_ci, PRIMARY KEY (`id`), UNIQUE KEY `unique_emaNssalc` (`classname`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `globalmetadata` -- LOCK TABLES `globalmetadata` WRITE; /*!40000 ALTER TABLE `globalmetadata` DISABLE KEYS */; INSERT INTO `globalmetadata` VALUES (1,'ContactsModule','a:10:{s:17:\"designerMenuItems\";a:4:{s:14:\"showFieldsLink\";b:1;s:15:\"showGeneralLink\";b:1;s:15:\"showLayoutsLink\";b:1;s:13:\"showMenusLink\";b:1;}s:26:\"globalSearchAttributeNames\";a:4:{i:0;s:8:\"fullName\";i:1;s:8:\"anyEmail\";i:2;s:11:\"officePhone\";i:3;s:11:\"mobilePhone\";}s:13:\"startingState\";i:1;s:12:\"tabMenuItems\";a:1:{i:0;a:4:{s:5:\"label\";s:80:\"eval:Zurmo::t(\'ContactsModule\', \'ContactsModulePluralLabel\', $translationParams)\";s:3:\"url\";a:1:{i:0;s:17:\"/contacts/default\";}s:5:\"right\";s:19:\"Access Contacts Tab\";s:6:\"mobile\";b:1;}}s:24:\"shortcutsCreateMenuItems\";a:1:{i:0;a:4:{s:5:\"label\";s:82:\"eval:Zurmo::t(\'ContactsModule\', \'ContactsModuleSingularLabel\', $translationParams)\";s:3:\"url\";a:1:{i:0;s:24:\"/contacts/default/create\";}s:5:\"right\";s:15:\"Create Contacts\";s:6:\"mobile\";b:1;}}s:48:\"updateLatestActivityDateTimeWhenATaskIsCompleted\";b:1;s:46:\"updateLatestActivityDateTimeWhenANoteIsCreated\";b:1;s:55:\"updateLatestActivityDateTimeWhenAnEmailIsSentOrArchived\";b:1;s:51:\"updateLatestActivityDateTimeWhenAMeetingIsInThePast\";b:1;s:15:\"startingStateId\";i:5;}'); /*!40000 ALTER TABLE `globalmetadata` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `imagefilemodel` -- DROP TABLE IF EXISTS `imagefilemodel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `imagefilemodel` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `isshared` tinyint(1) unsigned DEFAULT NULL, `width` int(11) DEFAULT NULL, `height` int(11) DEFAULT NULL, `inactive` tinyint(1) unsigned DEFAULT NULL, `filemodel_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `imagefilemodel` -- LOCK TABLES `imagefilemodel` WRITE; /*!40000 ALTER TABLE `imagefilemodel` DISABLE KEYS */; INSERT INTO `imagefilemodel` VALUES (1,0,200,50,0,1),(2,0,200,200,0,2),(3,0,580,180,0,3),(4,0,580,180,0,4); /*!40000 ALTER TABLE `imagefilemodel` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `import` -- DROP TABLE IF EXISTS `import`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `import` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `serializeddata` text COLLATE utf8_unicode_ci, `item_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `import` -- LOCK TABLES `import` WRITE; /*!40000 ALTER TABLE `import` DISABLE KEYS */; /*!40000 ALTER TABLE `import` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `item` -- DROP TABLE IF EXISTS `item`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `item` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `createddatetime` datetime DEFAULT NULL, `modifieddatetime` datetime DEFAULT NULL, `createdbyuser__user_id` int(11) unsigned DEFAULT NULL, `modifiedbyuser__user_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `item` -- LOCK TABLES `item` WRITE; /*!40000 ALTER TABLE `item` DISABLE KEYS */; INSERT INTO `item` VALUES (1,'[[regtime]]','[[regtime]]',NULL,NULL),(2,'[[regtime]]','[[regtime]]',1,1),(3,'[[regtime]]','[[regtime]]',1,1),(4,'[[regtime]]','[[regtime]]',1,1),(5,'[[regtime]]','[[regtime]]',1,1),(6,'[[regtime]]','[[regtime]]',1,1),(7,'[[regtime]]','[[regtime]]',1,1),(8,'[[regtime]]','[[regtime]]',1,1),(9,'[[regtime]]','[[regtime]]',1,1),(10,'[[regtime]]','[[regtime]]',1,1),(11,'[[regtime]]','[[regtime]]',1,1),(12,'[[regtime]]','[[regtime]]',1,1),(13,'[[regtime]]','[[regtime]]',1,1),(14,'[[regtime]]','[[regtime]]',1,1),(15,'[[regtime]]','[[regtime]]',1,1),(16,'[[regtime]]','[[regtime]]',1,1),(17,'[[regtime]]','[[regtime]]',1,1),(18,'[[regtime]]','[[regtime]]',1,1),(19,'[[regtime]]','[[regtime]]',1,1); /*!40000 ALTER TABLE `item` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `jobinprocess` -- DROP TABLE IF EXISTS `jobinprocess`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `jobinprocess` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `type` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `jobinprocess` -- LOCK TABLES `jobinprocess` WRITE; /*!40000 ALTER TABLE `jobinprocess` DISABLE KEYS */; /*!40000 ALTER TABLE `jobinprocess` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `joblog` -- DROP TABLE IF EXISTS `joblog`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `joblog` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `enddatetime` datetime DEFAULT NULL, `isprocessed` tinyint(1) unsigned DEFAULT NULL, `message` text COLLATE utf8_unicode_ci, `startdatetime` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, `type` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `joblog` -- LOCK TABLES `joblog` WRITE; /*!40000 ALTER TABLE `joblog` DISABLE KEYS */; /*!40000 ALTER TABLE `joblog` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `kanbanitem` -- DROP TABLE IF EXISTS `kanbanitem`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `kanbanitem` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `type` int(11) DEFAULT NULL, `sortorder` int(11) DEFAULT NULL, `kanbanrelateditem_item_id` int(11) unsigned DEFAULT NULL, `task_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `kanbanitem` -- LOCK TABLES `kanbanitem` WRITE; /*!40000 ALTER TABLE `kanbanitem` DISABLE KEYS */; /*!40000 ALTER TABLE `kanbanitem` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `marketinglist` -- DROP TABLE IF EXISTS `marketinglist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `marketinglist` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `description` text COLLATE utf8_unicode_ci, `fromname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `fromaddress` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `anyonecansubscribe` tinyint(1) unsigned DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `marketinglist` -- LOCK TABLES `marketinglist` WRITE; /*!40000 ALTER TABLE `marketinglist` DISABLE KEYS */; /*!40000 ALTER TABLE `marketinglist` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `marketinglist_read` -- DROP TABLE IF EXISTS `marketinglist_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `marketinglist_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `marketinglist_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `marketinglist_read` -- LOCK TABLES `marketinglist_read` WRITE; /*!40000 ALTER TABLE `marketinglist_read` DISABLE KEYS */; /*!40000 ALTER TABLE `marketinglist_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `marketinglistmember` -- DROP TABLE IF EXISTS `marketinglistmember`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `marketinglistmember` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `createddatetime` datetime DEFAULT NULL, `modifieddatetime` datetime DEFAULT NULL, `unsubscribed` tinyint(1) unsigned DEFAULT NULL, `contact_id` int(11) unsigned DEFAULT NULL, `marketinglist_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `contact_id` (`contact_id`), KEY `marketinglist_id` (`marketinglist_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `marketinglistmember` -- LOCK TABLES `marketinglistmember` WRITE; /*!40000 ALTER TABLE `marketinglistmember` DISABLE KEYS */; /*!40000 ALTER TABLE `marketinglistmember` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `meeting` -- DROP TABLE IF EXISTS `meeting`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `meeting` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `description` text COLLATE utf8_unicode_ci, `enddatetime` datetime DEFAULT NULL, `processedforlatestactivity` tinyint(1) unsigned DEFAULT NULL, `location` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `logged` tinyint(1) unsigned DEFAULT NULL, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `startdatetime` datetime DEFAULT NULL, `activity_id` int(11) unsigned DEFAULT NULL, `category_customfield_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `meeting` -- LOCK TABLES `meeting` WRITE; /*!40000 ALTER TABLE `meeting` DISABLE KEYS */; /*!40000 ALTER TABLE `meeting` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `meeting_read` -- DROP TABLE IF EXISTS `meeting_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `meeting_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `meeting_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `meeting_read` -- LOCK TABLES `meeting_read` WRITE; /*!40000 ALTER TABLE `meeting_read` DISABLE KEYS */; /*!40000 ALTER TABLE `meeting_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `meeting_read_subscription` -- DROP TABLE IF EXISTS `meeting_read_subscription`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `meeting_read_subscription` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `userid` int(11) unsigned NOT NULL, `modelid` int(11) unsigned NOT NULL, `modifieddatetime` datetime DEFAULT NULL, `subscriptiontype` tinyint(4) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `userid_modelid` (`userid`,`modelid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `meeting_read_subscription` -- LOCK TABLES `meeting_read_subscription` WRITE; /*!40000 ALTER TABLE `meeting_read_subscription` DISABLE KEYS */; /*!40000 ALTER TABLE `meeting_read_subscription` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `messagesource` -- DROP TABLE IF EXISTS `messagesource`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `messagesource` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `category` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `source` blob, PRIMARY KEY (`id`), UNIQUE KEY `sourceCategory` (`category`,`source`(767)) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `messagesource` -- LOCK TABLES `messagesource` WRITE; /*!40000 ALTER TABLE `messagesource` DISABLE KEYS */; /*!40000 ALTER TABLE `messagesource` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `messagetranslation` -- DROP TABLE IF EXISTS `messagetranslation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `messagetranslation` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `translation` blob, `language` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL, `messagesource_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `sourceLanguageTranslation` (`messagesource_id`,`language`,`translation`(767)) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `messagetranslation` -- LOCK TABLES `messagetranslation` WRITE; /*!40000 ALTER TABLE `messagetranslation` DISABLE KEYS */; /*!40000 ALTER TABLE `messagetranslation` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `mission` -- DROP TABLE IF EXISTS `mission`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mission` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `description` text COLLATE utf8_unicode_ci, `duedatetime` datetime DEFAULT NULL, `latestdatetime` datetime DEFAULT NULL, `status` int(11) DEFAULT NULL, `reward` text COLLATE utf8_unicode_ci, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, `takenbyuser__user_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `mission` -- LOCK TABLES `mission` WRITE; /*!40000 ALTER TABLE `mission` DISABLE KEYS */; /*!40000 ALTER TABLE `mission` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `mission_read` -- DROP TABLE IF EXISTS `mission_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `mission_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `mission_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `mission_read` -- LOCK TABLES `mission_read` WRITE; /*!40000 ALTER TABLE `mission_read` DISABLE KEYS */; /*!40000 ALTER TABLE `mission_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `modelcreationapisync` -- DROP TABLE IF EXISTS `modelcreationapisync`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `modelcreationapisync` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `servicename` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `modelid` int(11) unsigned NOT NULL, `modelclassname` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `createddatetime` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `modelcreationapisync` -- LOCK TABLES `modelcreationapisync` WRITE; /*!40000 ALTER TABLE `modelcreationapisync` DISABLE KEYS */; /*!40000 ALTER TABLE `modelcreationapisync` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `multiplevaluescustomfield` -- DROP TABLE IF EXISTS `multiplevaluescustomfield`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `multiplevaluescustomfield` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `basecustomfield_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `basecustomfield_id` (`basecustomfield_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `multiplevaluescustomfield` -- LOCK TABLES `multiplevaluescustomfield` WRITE; /*!40000 ALTER TABLE `multiplevaluescustomfield` DISABLE KEYS */; /*!40000 ALTER TABLE `multiplevaluescustomfield` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `named_securable_actual_permissions_cache` -- DROP TABLE IF EXISTS `named_securable_actual_permissions_cache`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `named_securable_actual_permissions_cache` ( `securableitem_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL, `permitable_id` int(11) unsigned NOT NULL, `allow_permissions` tinyint(3) unsigned NOT NULL, `deny_permissions` tinyint(3) unsigned NOT NULL, PRIMARY KEY (`securableitem_name`,`permitable_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `named_securable_actual_permissions_cache` -- LOCK TABLES `named_securable_actual_permissions_cache` WRITE; /*!40000 ALTER TABLE `named_securable_actual_permissions_cache` DISABLE KEYS */; /*!40000 ALTER TABLE `named_securable_actual_permissions_cache` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `namedsecurableitem` -- DROP TABLE IF EXISTS `namedsecurableitem`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `namedsecurableitem` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `securableitem_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_eman` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `namedsecurableitem` -- LOCK TABLES `namedsecurableitem` WRITE; /*!40000 ALTER TABLE `namedsecurableitem` DISABLE KEYS */; /*!40000 ALTER TABLE `namedsecurableitem` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `note` -- DROP TABLE IF EXISTS `note`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `note` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `description` text COLLATE utf8_unicode_ci, `occurredondatetime` datetime DEFAULT NULL, `activity_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `note` -- LOCK TABLES `note` WRITE; /*!40000 ALTER TABLE `note` DISABLE KEYS */; /*!40000 ALTER TABLE `note` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `note_read` -- DROP TABLE IF EXISTS `note_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `note_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `note_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `note_read` -- LOCK TABLES `note_read` WRITE; /*!40000 ALTER TABLE `note_read` DISABLE KEYS */; /*!40000 ALTER TABLE `note_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `notification` -- DROP TABLE IF EXISTS `notification`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `notification` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `type` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `ownerhasreadlatest` tinyint(1) unsigned DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, `notificationmessage_id` int(11) unsigned DEFAULT NULL, `owner__user_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `notification` -- LOCK TABLES `notification` WRITE; /*!40000 ALTER TABLE `notification` DISABLE KEYS */; INSERT INTO `notification` VALUES (1,'RemoveApiTestEntryScriptFile',NULL,18,1,1); /*!40000 ALTER TABLE `notification` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `notificationmessage` -- DROP TABLE IF EXISTS `notificationmessage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `notificationmessage` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `htmlcontent` text COLLATE utf8_unicode_ci, `textcontent` text COLLATE utf8_unicode_ci, `item_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `notificationmessage` -- LOCK TABLES `notificationmessage` WRITE; /*!40000 ALTER TABLE `notificationmessage` DISABLE KEYS */; INSERT INTO `notificationmessage` VALUES (1,NULL,'If this website is in production mode, please remove the app/test.php file.',19); /*!40000 ALTER TABLE `notificationmessage` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `notificationsubscriber` -- DROP TABLE IF EXISTS `notificationsubscriber`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `notificationsubscriber` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `hasreadlatest` tinyint(1) unsigned DEFAULT NULL, `person_item_id` int(11) unsigned DEFAULT NULL, `relatedmodel_id` int(11) unsigned DEFAULT NULL, `relatedmodel_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `notificationsubscriber` -- LOCK TABLES `notificationsubscriber` WRITE; /*!40000 ALTER TABLE `notificationsubscriber` DISABLE KEYS */; /*!40000 ALTER TABLE `notificationsubscriber` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `opportunity` -- DROP TABLE IF EXISTS `opportunity`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `opportunity` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `closedate` date DEFAULT NULL, `description` text COLLATE utf8_unicode_ci, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `probability` tinyint(11) DEFAULT NULL, `stagemodifieddatetime` datetime DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, `account_id` int(11) unsigned DEFAULT NULL, `amount_currencyvalue_id` int(11) unsigned DEFAULT NULL, `stage_customfield_id` int(11) unsigned DEFAULT NULL, `source_customfield_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `opportunity` -- LOCK TABLES `opportunity` WRITE; /*!40000 ALTER TABLE `opportunity` DISABLE KEYS */; /*!40000 ALTER TABLE `opportunity` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `opportunity_project` -- DROP TABLE IF EXISTS `opportunity_project`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `opportunity_project` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `opportunity_id` int(11) unsigned DEFAULT NULL, `project_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_di_tcejorp_di_ytinutroppo` (`opportunity_id`,`project_id`), KEY `di_ytinutroppo` (`opportunity_id`), KEY `di_tcejorp` (`project_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `opportunity_project` -- LOCK TABLES `opportunity_project` WRITE; /*!40000 ALTER TABLE `opportunity_project` DISABLE KEYS */; /*!40000 ALTER TABLE `opportunity_project` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `opportunity_read` -- DROP TABLE IF EXISTS `opportunity_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `opportunity_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `opportunity_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `opportunity_read` -- LOCK TABLES `opportunity_read` WRITE; /*!40000 ALTER TABLE `opportunity_read` DISABLE KEYS */; /*!40000 ALTER TABLE `opportunity_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `opportunitystarred` -- DROP TABLE IF EXISTS `opportunitystarred`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `opportunitystarred` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `basestarredmodel_id` int(11) unsigned DEFAULT NULL, `opportunity_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `basestarredmodel_id_opportunity_id` (`basestarredmodel_id`,`opportunity_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `opportunitystarred` -- LOCK TABLES `opportunitystarred` WRITE; /*!40000 ALTER TABLE `opportunitystarred` DISABLE KEYS */; /*!40000 ALTER TABLE `opportunitystarred` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `ownedsecurableitem` -- DROP TABLE IF EXISTS `ownedsecurableitem`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `ownedsecurableitem` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned DEFAULT NULL, `owner__user_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `owner__user_id` (`owner__user_id`), KEY `securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `ownedsecurableitem` -- LOCK TABLES `ownedsecurableitem` WRITE; /*!40000 ALTER TABLE `ownedsecurableitem` DISABLE KEYS */; INSERT INTO `ownedsecurableitem` VALUES (1,1,1),(2,2,1),(3,3,1),(4,4,1),(5,5,1),(6,6,1),(7,7,1); /*!40000 ALTER TABLE `ownedsecurableitem` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `permission` -- DROP TABLE IF EXISTS `permission`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `permission` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `permissions` tinyint(11) DEFAULT NULL, `type` tinyint(11) DEFAULT NULL, `permitable_id` int(11) unsigned DEFAULT NULL, `securableitem_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `permission` -- LOCK TABLES `permission` WRITE; /*!40000 ALTER TABLE `permission` DISABLE KEYS */; INSERT INTO `permission` VALUES (1,27,1,3,1),(2,27,1,3,2),(3,27,1,3,3),(4,27,1,3,4),(5,27,1,3,5),(6,27,1,3,6); /*!40000 ALTER TABLE `permission` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `permitable` -- DROP TABLE IF EXISTS `permitable`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `permitable` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `item_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `item_id` (`item_id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `permitable` -- LOCK TABLES `permitable` WRITE; /*!40000 ALTER TABLE `permitable` DISABLE KEYS */; INSERT INTO `permitable` VALUES (1,1),(2,2),(3,8),(4,17); /*!40000 ALTER TABLE `permitable` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `person` -- DROP TABLE IF EXISTS `person`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `person` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `department` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `firstname` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, `jobtitle` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `lastname` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, `mobilephone` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL, `officephone` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL, `officefax` varchar(24) COLLATE utf8_unicode_ci DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, `primaryaddress_address_id` int(11) unsigned DEFAULT NULL, `primaryemail_email_id` int(11) unsigned DEFAULT NULL, `title_customfield_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `ownedsecurableitem_id` (`ownedsecurableitem_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `person` -- LOCK TABLES `person` WRITE; /*!40000 ALTER TABLE `person` DISABLE KEYS */; INSERT INTO `person` VALUES (1,NULL,'Super',NULL,'User',NULL,NULL,NULL,NULL,NULL,NULL,NULL),(2,NULL,'System',NULL,'User',NULL,NULL,NULL,NULL,NULL,NULL,NULL); /*!40000 ALTER TABLE `person` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `personwhohavenotreadlatest` -- DROP TABLE IF EXISTS `personwhohavenotreadlatest`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `personwhohavenotreadlatest` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `person_item_id` int(11) unsigned DEFAULT NULL, `mission_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `personwhohavenotreadlatest` -- LOCK TABLES `personwhohavenotreadlatest` WRITE; /*!40000 ALTER TABLE `personwhohavenotreadlatest` DISABLE KEYS */; /*!40000 ALTER TABLE `personwhohavenotreadlatest` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `perusermetadata` -- DROP TABLE IF EXISTS `perusermetadata`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `perusermetadata` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `classname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `serializedmetadata` text COLLATE utf8_unicode_ci, `_user_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `perusermetadata` -- LOCK TABLES `perusermetadata` WRITE; /*!40000 ALTER TABLE `perusermetadata` DISABLE KEYS */; /*!40000 ALTER TABLE `perusermetadata` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `policy` -- DROP TABLE IF EXISTS `policy`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `policy` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `modulename` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `value` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `permitable_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `policy` -- LOCK TABLES `policy` WRITE; /*!40000 ALTER TABLE `policy` DISABLE KEYS */; /*!40000 ALTER TABLE `policy` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `portlet` -- DROP TABLE IF EXISTS `portlet`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `portlet` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `column` int(11) DEFAULT NULL, `position` int(11) DEFAULT NULL, `layoutid` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `viewtype` text COLLATE utf8_unicode_ci, `serializedviewdata` text COLLATE utf8_unicode_ci, `collapsed` tinyint(1) unsigned DEFAULT NULL, `_user_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `portlet` -- LOCK TABLES `portlet` WRITE; /*!40000 ALTER TABLE `portlet` DISABLE KEYS */; /*!40000 ALTER TABLE `portlet` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `product` -- DROP TABLE IF EXISTS `product`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `product` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `description` text COLLATE utf8_unicode_ci, `quantity` int(11) DEFAULT NULL, `type` int(11) DEFAULT NULL, `pricefrequency` int(11) DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, `account_id` int(11) unsigned DEFAULT NULL, `contact_id` int(11) unsigned DEFAULT NULL, `opportunity_id` int(11) unsigned DEFAULT NULL, `producttemplate_id` int(11) unsigned DEFAULT NULL, `stage_customfield_id` int(11) unsigned DEFAULT NULL, `sellprice_currencyvalue_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `product` -- LOCK TABLES `product` WRITE; /*!40000 ALTER TABLE `product` DISABLE KEYS */; /*!40000 ALTER TABLE `product` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `product_productcategory` -- DROP TABLE IF EXISTS `product_productcategory`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `product_productcategory` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `product_id` int(11) unsigned DEFAULT NULL, `productcategory_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_di_yrogetactcudorp_di_tcudorp` (`product_id`,`productcategory_id`), KEY `di_tcudorp` (`product_id`), KEY `di_yrogetactcudorp` (`productcategory_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `product_productcategory` -- LOCK TABLES `product_productcategory` WRITE; /*!40000 ALTER TABLE `product_productcategory` DISABLE KEYS */; /*!40000 ALTER TABLE `product_productcategory` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `product_read` -- DROP TABLE IF EXISTS `product_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `product_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `product_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `product_read` -- LOCK TABLES `product_read` WRITE; /*!40000 ALTER TABLE `product_read` DISABLE KEYS */; /*!40000 ALTER TABLE `product_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `productcatalog` -- DROP TABLE IF EXISTS `productcatalog`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `productcatalog` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `productcatalog` -- LOCK TABLES `productcatalog` WRITE; /*!40000 ALTER TABLE `productcatalog` DISABLE KEYS */; /*!40000 ALTER TABLE `productcatalog` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `productcatalog_productcategory` -- DROP TABLE IF EXISTS `productcatalog_productcategory`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `productcatalog_productcategory` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `productcatalog_id` int(11) unsigned DEFAULT NULL, `productcategory_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_di_yrogetactcudorp_di_golatactcudorp` (`productcatalog_id`,`productcategory_id`), KEY `di_golatactcudorp` (`productcatalog_id`), KEY `di_yrogetactcudorp` (`productcategory_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `productcatalog_productcategory` -- LOCK TABLES `productcatalog_productcategory` WRITE; /*!40000 ALTER TABLE `productcatalog_productcategory` DISABLE KEYS */; /*!40000 ALTER TABLE `productcatalog_productcategory` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `productcategory` -- DROP TABLE IF EXISTS `productcategory`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `productcategory` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, `productcategory_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `productcategory` -- LOCK TABLES `productcategory` WRITE; /*!40000 ALTER TABLE `productcategory` DISABLE KEYS */; /*!40000 ALTER TABLE `productcategory` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `productcategory_producttemplate` -- DROP TABLE IF EXISTS `productcategory_producttemplate`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `productcategory_producttemplate` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `productcategory_id` int(11) unsigned DEFAULT NULL, `producttemplate_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_di_etalpmettcudorp_di_yrogetactcudorp` (`productcategory_id`,`producttemplate_id`), KEY `di_yrogetactcudorp` (`productcategory_id`), KEY `di_etalpmettcudorp` (`producttemplate_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `productcategory_producttemplate` -- LOCK TABLES `productcategory_producttemplate` WRITE; /*!40000 ALTER TABLE `productcategory_producttemplate` DISABLE KEYS */; /*!40000 ALTER TABLE `productcategory_producttemplate` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `producttemplate` -- DROP TABLE IF EXISTS `producttemplate`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `producttemplate` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `description` text COLLATE utf8_unicode_ci, `status` int(11) DEFAULT NULL, `type` int(11) DEFAULT NULL, `pricefrequency` int(11) DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, `sellpriceformula_id` int(11) unsigned DEFAULT NULL, `cost_currencyvalue_id` int(11) unsigned DEFAULT NULL, `listprice_currencyvalue_id` int(11) unsigned DEFAULT NULL, `sellprice_currencyvalue_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `producttemplate` -- LOCK TABLES `producttemplate` WRITE; /*!40000 ALTER TABLE `producttemplate` DISABLE KEYS */; /*!40000 ALTER TABLE `producttemplate` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `project` -- DROP TABLE IF EXISTS `project`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `project` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `description` text COLLATE utf8_unicode_ci, `status` int(11) DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `project` -- LOCK TABLES `project` WRITE; /*!40000 ALTER TABLE `project` DISABLE KEYS */; /*!40000 ALTER TABLE `project` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `project_read` -- DROP TABLE IF EXISTS `project_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `project_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `project_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `project_read` -- LOCK TABLES `project_read` WRITE; /*!40000 ALTER TABLE `project_read` DISABLE KEYS */; /*!40000 ALTER TABLE `project_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `projectauditevent` -- DROP TABLE IF EXISTS `projectauditevent`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `projectauditevent` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `datetime` datetime DEFAULT NULL, `eventname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `serializeddata` text COLLATE utf8_unicode_ci, `_user_id` int(11) unsigned DEFAULT NULL, `project_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `projectauditevent` -- LOCK TABLES `projectauditevent` WRITE; /*!40000 ALTER TABLE `projectauditevent` DISABLE KEYS */; /*!40000 ALTER TABLE `projectauditevent` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `projectstarred` -- DROP TABLE IF EXISTS `projectstarred`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `projectstarred` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `basestarredmodel_id` int(11) unsigned DEFAULT NULL, `project_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `basestarredmodel_id_project_id` (`basestarredmodel_id`,`project_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `projectstarred` -- LOCK TABLES `projectstarred` WRITE; /*!40000 ALTER TABLE `projectstarred` DISABLE KEYS */; /*!40000 ALTER TABLE `projectstarred` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `role` -- DROP TABLE IF EXISTS `role`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `role` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, `role_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_eman` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `role` -- LOCK TABLES `role` WRITE; /*!40000 ALTER TABLE `role` DISABLE KEYS */; /*!40000 ALTER TABLE `role` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `savedcalendar` -- DROP TABLE IF EXISTS `savedcalendar`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `savedcalendar` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `description` text COLLATE utf8_unicode_ci, `location` text COLLATE utf8_unicode_ci, `moduleclassname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `startattributename` text COLLATE utf8_unicode_ci, `endattributename` text COLLATE utf8_unicode_ci, `serializeddata` text COLLATE utf8_unicode_ci, `timezone` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `color` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `savedcalendar` -- LOCK TABLES `savedcalendar` WRITE; /*!40000 ALTER TABLE `savedcalendar` DISABLE KEYS */; /*!40000 ALTER TABLE `savedcalendar` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `savedcalendar_read` -- DROP TABLE IF EXISTS `savedcalendar_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `savedcalendar_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `savedcalendar_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `savedcalendar_read` -- LOCK TABLES `savedcalendar_read` WRITE; /*!40000 ALTER TABLE `savedcalendar_read` DISABLE KEYS */; /*!40000 ALTER TABLE `savedcalendar_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `savedcalendarsubscription` -- DROP TABLE IF EXISTS `savedcalendarsubscription`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `savedcalendarsubscription` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `color` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `_user_id` int(11) unsigned DEFAULT NULL, `savedcalendar_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `savedcalendarsubscription` -- LOCK TABLES `savedcalendarsubscription` WRITE; /*!40000 ALTER TABLE `savedcalendarsubscription` DISABLE KEYS */; /*!40000 ALTER TABLE `savedcalendarsubscription` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `savedreport` -- DROP TABLE IF EXISTS `savedreport`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `savedreport` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `description` text COLLATE utf8_unicode_ci, `moduleclassname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `serializeddata` text COLLATE utf8_unicode_ci, `type` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `savedreport` -- LOCK TABLES `savedreport` WRITE; /*!40000 ALTER TABLE `savedreport` DISABLE KEYS */; /*!40000 ALTER TABLE `savedreport` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `savedreport_read` -- DROP TABLE IF EXISTS `savedreport_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `savedreport_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `savedreport_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `savedreport_read` -- LOCK TABLES `savedreport_read` WRITE; /*!40000 ALTER TABLE `savedreport_read` DISABLE KEYS */; /*!40000 ALTER TABLE `savedreport_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `savedreportstarred` -- DROP TABLE IF EXISTS `savedreportstarred`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `savedreportstarred` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `basestarredmodel_id` int(11) unsigned DEFAULT NULL, `savedreport_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `basestarredmodel_id_savedreport_id` (`basestarredmodel_id`,`savedreport_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `savedreportstarred` -- LOCK TABLES `savedreportstarred` WRITE; /*!40000 ALTER TABLE `savedreportstarred` DISABLE KEYS */; /*!40000 ALTER TABLE `savedreportstarred` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `savedsearch` -- DROP TABLE IF EXISTS `savedsearch`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `savedsearch` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `serializeddata` text COLLATE utf8_unicode_ci, `viewclassname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `savedsearch` -- LOCK TABLES `savedsearch` WRITE; /*!40000 ALTER TABLE `savedsearch` DISABLE KEYS */; /*!40000 ALTER TABLE `savedsearch` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `savedworkflow` -- DROP TABLE IF EXISTS `savedworkflow`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `savedworkflow` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `description` text COLLATE utf8_unicode_ci, `isactive` tinyint(1) unsigned DEFAULT NULL, `moduleclassname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `order` int(11) DEFAULT NULL, `serializeddata` text COLLATE utf8_unicode_ci, `type` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL, `triggeron` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `savedworkflow` -- LOCK TABLES `savedworkflow` WRITE; /*!40000 ALTER TABLE `savedworkflow` DISABLE KEYS */; INSERT INTO `savedworkflow` VALUES (1,'This will create a task for the Contact owner to follow up with a contact if there has been no activity for 1 month',0,'ContactsModule','Contact follow up Task',1,'a:5:{s:17:\"triggersStructure\";s:1:\"1\";s:8:\"Triggers\";a:0:{}s:7:\"Actions\";a:1:{i:0;a:5:{s:4:\"type\";s:6:\"Create\";s:8:\"relation\";s:5:\"tasks\";s:14:\"relationFilter\";s:17:\"RelationFilterAll\";s:20:\"relatedModelRelation\";N;s:16:\"ActionAttributes\";a:4:{s:4:\"name\";a:3:{s:4:\"type\";s:6:\"Static\";s:5:\"value\";s:22:\"Follow up with contact\";s:14:\"shouldSetValue\";s:1:\"1\";}s:11:\"owner__User\";a:3:{s:4:\"type\";s:21:\"OwnerOfTriggeredModel\";s:5:\"value\";N;s:14:\"shouldSetValue\";s:1:\"1\";}s:6:\"status\";a:3:{s:4:\"type\";s:6:\"Static\";s:5:\"value\";i:1;s:14:\"shouldSetValue\";s:1:\"1\";}s:11:\"permissions\";a:3:{s:4:\"type\";s:20:\"SameAsTriggeredModel\";s:5:\"value\";N;s:14:\"shouldSetValue\";s:1:\"1\";}}}}s:13:\"EmailMessages\";a:0:{}s:11:\"TimeTrigger\";a:12:{s:16:\"durationInterval\";i:1;s:12:\"durationSign\";s:8:\"Positive\";s:12:\"durationType\";s:5:\"Month\";s:18:\"currencyIdForValue\";N;s:5:\"value\";N;s:11:\"secondValue\";N;s:26:\"thirdValueDurationInterval\";N;s:22:\"thirdValueDurationType\";N;s:9:\"valueType\";s:11:\"Is Time For\";s:14:\"relationFilter\";s:17:\"RelationFilterAny\";s:27:\"attributeIndexOrDerivedType\";s:22:\"latestActivityDateTime\";s:8:\"operator\";N;}}','ByTime','NewAndExisting',14),(2,'This will send an email to recipients that you choose when you close a deal!',0,'OpportunitiesModule','Closed won Opportunity alert',2,'a:4:{s:17:\"triggersStructure\";s:1:\"1\";s:8:\"Triggers\";a:1:{i:0;a:10:{s:18:\"currencyIdForValue\";N;s:5:\"value\";s:10:\"Closed Won\";s:11:\"secondValue\";N;s:26:\"thirdValueDurationInterval\";N;s:22:\"thirdValueDurationType\";N;s:24:\"stringifiedModelForValue\";N;s:9:\"valueType\";N;s:14:\"relationFilter\";s:17:\"RelationFilterAny\";s:27:\"attributeIndexOrDerivedType\";s:5:\"stage\";s:8:\"operator\";s:7:\"becomes\";}}s:7:\"Actions\";a:0:{}s:13:\"EmailMessages\";a:1:{i:0;a:8:{s:15:\"emailTemplateId\";i:7;s:25:\"sendAfterDurationInterval\";i:0;s:21:\"sendAfterDurationType\";s:6:\"Minute\";s:12:\"sendFromType\";s:7:\"Default\";s:12:\"sendFromName\";N;s:15:\"sendFromAddress\";N;s:24:\"excludeIfTriggeredByUser\";b:0;s:22:\"EmailMessageRecipients\";a:1:{i:0;a:4:{s:6:\"toName\";s:14:\"The Sales Team\";s:9:\"toAddress\";s:23:\"SalesTeam@mycompany.com\";s:4:\"type\";s:13:\"StaticAddress\";s:12:\"audienceType\";i:1;}}}}}','OnSave','NewAndExisting',16); /*!40000 ALTER TABLE `savedworkflow` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `securableitem` -- DROP TABLE IF EXISTS `securableitem`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `securableitem` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `item_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `item_id` (`item_id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `securableitem` -- LOCK TABLES `securableitem` WRITE; /*!40000 ALTER TABLE `securableitem` DISABLE KEYS */; INSERT INTO `securableitem` VALUES (1,7),(2,9),(3,10),(4,11),(5,12),(6,13),(7,15); /*!40000 ALTER TABLE `securableitem` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `sellpriceformula` -- DROP TABLE IF EXISTS `sellpriceformula`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `sellpriceformula` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `type` int(11) DEFAULT NULL, `discountormarkuppercentage` double DEFAULT NULL, `producttemplate_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `sellpriceformula` -- LOCK TABLES `sellpriceformula` WRITE; /*!40000 ALTER TABLE `sellpriceformula` DISABLE KEYS */; /*!40000 ALTER TABLE `sellpriceformula` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `sendgridemailaccount` -- DROP TABLE IF EXISTS `sendgridemailaccount`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `sendgridemailaccount` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `apiusername` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `apipassword` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, `fromname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `fromaddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `name` text COLLATE utf8_unicode_ci, `replytoaddress` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `item_id` int(11) unsigned DEFAULT NULL, `_user_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `sendgridemailaccount` -- LOCK TABLES `sendgridemailaccount` WRITE; /*!40000 ALTER TABLE `sendgridemailaccount` DISABLE KEYS */; /*!40000 ALTER TABLE `sendgridemailaccount` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `shorturl` -- DROP TABLE IF EXISTS `shorturl`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `shorturl` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `hash` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, `url` text COLLATE utf8_unicode_ci, `createddatetime` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `shorturl` -- LOCK TABLES `shorturl` WRITE; /*!40000 ALTER TABLE `shorturl` DISABLE KEYS */; /*!40000 ALTER TABLE `shorturl` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `socialitem` -- DROP TABLE IF EXISTS `socialitem`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `socialitem` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `description` text COLLATE utf8_unicode_ci, `latestdatetime` datetime DEFAULT NULL, `ownedsecurableitem_id` int(11) unsigned DEFAULT NULL, `note_id` int(11) unsigned DEFAULT NULL, `touser__user_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `socialitem` -- LOCK TABLES `socialitem` WRITE; /*!40000 ALTER TABLE `socialitem` DISABLE KEYS */; /*!40000 ALTER TABLE `socialitem` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `socialitem_read` -- DROP TABLE IF EXISTS `socialitem_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `socialitem_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `socialitem_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `socialitem_read` -- LOCK TABLES `socialitem_read` WRITE; /*!40000 ALTER TABLE `socialitem_read` DISABLE KEYS */; /*!40000 ALTER TABLE `socialitem_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `stuckjob` -- DROP TABLE IF EXISTS `stuckjob`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `stuckjob` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `type` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `quantity` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `stuckjob` -- LOCK TABLES `stuckjob` WRITE; /*!40000 ALTER TABLE `stuckjob` DISABLE KEYS */; /*!40000 ALTER TABLE `stuckjob` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `task` -- DROP TABLE IF EXISTS `task`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `task` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `completeddatetime` datetime DEFAULT NULL, `completed` tinyint(1) unsigned DEFAULT NULL, `duedatetime` datetime DEFAULT NULL, `description` text COLLATE utf8_unicode_ci, `name` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL, `status` int(11) DEFAULT NULL, `activity_id` int(11) unsigned DEFAULT NULL, `requestedbyuser__user_id` int(11) unsigned DEFAULT NULL, `project_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `task` -- LOCK TABLES `task` WRITE; /*!40000 ALTER TABLE `task` DISABLE KEYS */; /*!40000 ALTER TABLE `task` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `task_read` -- DROP TABLE IF EXISTS `task_read`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `task_read` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `securableitem_id` int(11) unsigned NOT NULL, `munge_id` varchar(12) COLLATE utf8_unicode_ci NOT NULL, `count` int(8) unsigned NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `securableitem_id_munge_id` (`securableitem_id`,`munge_id`), KEY `task_read_securableitem_id` (`securableitem_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `task_read` -- LOCK TABLES `task_read` WRITE; /*!40000 ALTER TABLE `task_read` DISABLE KEYS */; /*!40000 ALTER TABLE `task_read` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `task_read_subscription` -- DROP TABLE IF EXISTS `task_read_subscription`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `task_read_subscription` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `userid` int(11) unsigned NOT NULL, `modelid` int(11) unsigned NOT NULL, `modifieddatetime` datetime DEFAULT NULL, `subscriptiontype` tinyint(4) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `userid_modelid` (`userid`,`modelid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `task_read_subscription` -- LOCK TABLES `task_read_subscription` WRITE; /*!40000 ALTER TABLE `task_read_subscription` DISABLE KEYS */; /*!40000 ALTER TABLE `task_read_subscription` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `taskchecklistitem` -- DROP TABLE IF EXISTS `taskchecklistitem`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `taskchecklistitem` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` text COLLATE utf8_unicode_ci, `sortorder` int(11) DEFAULT NULL, `completed` tinyint(1) unsigned DEFAULT NULL, `task_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `taskchecklistitem` -- LOCK TABLES `taskchecklistitem` WRITE; /*!40000 ALTER TABLE `taskchecklistitem` DISABLE KEYS */; /*!40000 ALTER TABLE `taskchecklistitem` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `workflowmessageinqueue` -- DROP TABLE IF EXISTS `workflowmessageinqueue`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `workflowmessageinqueue` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `modelclassname` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, `processdatetime` datetime DEFAULT NULL, `serializeddata` text COLLATE utf8_unicode_ci, `item_id` int(11) unsigned DEFAULT NULL, `modelitem_item_id` int(11) unsigned DEFAULT NULL, `savedworkflow_id` int(11) unsigned DEFAULT NULL, `triggeredbyuser__user_id` int(11) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `workflowmessageinqueue` -- LOCK TABLES `workflowmessageinqueue` WRITE; /*!40000 ALTER TABLE `workflowmessageinqueue` DISABLE KEYS */; /*!40000 ALTER TABLE `workflowmessageinqueue` ENABLE KEYS */; UNLOCK TABLES; -- -- Dumping routines for database 'zurmo327' -- /*!50003 DROP FUNCTION IF EXISTS `any_user_in_a_sub_role_has_read_permission` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `any_user_in_a_sub_role_has_read_permission`( securableitem_id int(11), role_id int(11), class_name varchar(255), module_name varchar(255) ) RETURNS tinyint(4) READS SQL DATA DETERMINISTIC begin declare has_read tinyint default 0; call any_user_in_a_sub_role_has_read_permission(securableitem_id, role_id, class_name, module_name, has_read); return has_read; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `create_email_message` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `create_email_message`(text_content text, html_content text, from_name varchar(128), from_address varchar(255), user_id int, owner_id int, subject varchar(255), headers text, folder_id int, serialized_data text, to_address varchar(255), to_name varchar(128), recipient_type int, contact_item_id int, related_model_type varchar(255), related_model_id int, now_timestamp datetime, content_type varchar(255), campaign_content_id int, contact_id int, autoresponder_content_id int) RETURNS int(11) MODIFIES SQL DATA begin insert into `emailmessagecontent` ( `textcontent`, `htmlcontent` ) values ( text_content, html_content ); set @contentId = last_insert_id(); insert into `emailmessagesender` ( `fromname`, `fromaddress` ) values ( from_name, from_address ); set @senderId = last_insert_id(); set @emailMessageItemId = create_item(1, now_timestamp); insert into `securableitem` ( `item_id` ) values ( @emailMessageItemId ); insert into `ownedsecurableitem` ( `securableitem_id`, `owner__user_id` ) values ( last_insert_id(), owner_id ); insert into `emailmessage` ( `subject`, `headers`, `ownedsecurableitem_id`, `content_emailmessagecontent_id`, `sender_emailmessagesender_id`, `folder_emailfolder_id`, `contenttype`, `campaigncontent_campaignemailmessagecontent_id`, `contact_contact_id`, `autorespondercontent_autoresponderemailmessagecontent_id`) values ( subject, headers, last_insert_id(), @contentId, @senderId, folder_id, content_type, campaign_content_id, contact_id, autoresponder_content_id); set @emailMessageId = LAST_INSERT_ID(); insert into `auditevent` ( `datetime`, `modulename`, `eventname`, `_user_id`, `modelclassname`, `modelid`, `serializeddata` ) values ( now_timestamp, "ZurmoModule", "Item Created", user_id, "EmailMessage", @emailMessageId, serialized_data ); insert into `emailmessagerecipient` ( `toaddress`, `toname`, `type`, `emailmessage_id` ) values ( to_address, to_name, recipient_type, @emailMessageId ); set @recipientId = last_insert_id(); insert into `emailmessagerecipient_item` ( `emailmessagerecipient_id`, `item_id` ) values ( @recipientId, contact_item_id ); call duplicate_filemodels(related_model_type, related_model_id, "emailmessage", @emailMessageId, user_id, now_timestamp); return @emailMessageId; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `create_item` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `create_item`(user_id int, now_timestamp datetime) RETURNS int(11) begin insert into `item` ( `id`, `createddatetime`, `modifieddatetime`, `createdbyuser__user_id`, `modifiedbyuser__user_id` ) VALUES ( NULL, now_timestamp , now_timestamp, user_id, user_id ); return last_insert_id(); end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `get_group_actual_right` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `get_group_actual_right`( _group_id int(11), module_name varchar(255), right_name varchar(255) ) RETURNS tinyint(4) READS SQL DATA DETERMINISTIC begin declare result tinyint; select get_group_explicit_actual_right (_group_id, module_name, right_name) | get_group_inherited_actual_right(_group_id, module_name, right_name) into result; if (result & 2) = 2 then return 2; end if; return result; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `get_group_explicit_actual_policy` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `get_group_explicit_actual_policy`( _group_id int(11), module_name varchar(255), policy_name varchar(255) ) RETURNS tinyint(4) READS SQL DATA DETERMINISTIC begin declare result tinyint; declare _permitable_id int; select permitable_id into _permitable_id from _group where id = _group_id; select get_permitable_explicit_actual_policy(_permitable_id, module_name, policy_name) into result; return result; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `get_group_explicit_actual_right` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `get_group_explicit_actual_right`( _group_id int(11), module_name varchar(255), right_name varchar(255) ) RETURNS tinyint(4) READS SQL DATA DETERMINISTIC begin declare result tinyint; declare _permitable_id int; select permitable_id into _permitable_id from _group where id = _group_id; select get_permitable_explicit_actual_right(_permitable_id, module_name, right_name) into result; return result; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `get_group_inherited_actual_right` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `get_group_inherited_actual_right`( _group_id int(11), module_name varchar(255), right_name varchar(255) ) RETURNS tinyint(4) READS SQL DATA DETERMINISTIC begin declare combined_right tinyint; call get_group_inherited_actual_right_ignoring_everyone(_group_id, module_name, right_name, combined_right); select combined_right | get_named_group_explicit_actual_right('Everyone', module_name, right_name) into combined_right; if (combined_right & 2) = 2 then return 2; end if; return combined_right; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `get_named_group_explicit_actual_policy` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `get_named_group_explicit_actual_policy`( group_name varchar(255), module_name varchar(255), policy_name varchar(255) ) RETURNS varchar(255) CHARSET utf8 COLLATE utf8_unicode_ci READS SQL DATA DETERMINISTIC begin # but since PDO returns it as a string I am too, until I know if that is a bad thing. declare result tinyint; declare _permitable_id int; select permitable_id into _permitable_id from _group where name = group_name; select get_permitable_explicit_actual_policy(_permitable_id, module_name, policy_name) into result; return result; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `get_named_group_explicit_actual_right` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `get_named_group_explicit_actual_right`( group_name varchar(255), module_name varchar(255), right_name varchar(255) ) RETURNS tinyint(4) READS SQL DATA DETERMINISTIC begin declare result tinyint; declare _permitable_id int; select permitable_id into _permitable_id from _group where name = group_name; select get_permitable_explicit_actual_right(_permitable_id, module_name, right_name) into result; return result; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `get_permitable_explicit_actual_policy` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `get_permitable_explicit_actual_policy`( permitable_id int(11), module_name varchar(255), policy_name varchar(255) ) RETURNS varchar(255) CHARSET utf8 COLLATE utf8_unicode_ci READS SQL DATA DETERMINISTIC begin # but since PDO returns it as a string I am too, until I know if that is a bad thing. declare result tinyint; select value into result from policy where policy.modulename = module_name and name = policy_name and policy.permitable_id = permitable_id limit 1; return result; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `get_permitable_explicit_actual_right` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `get_permitable_explicit_actual_right`( permitable_id int(11), module_name varchar(255), right_name varchar(255) ) RETURNS tinyint(4) READS SQL DATA DETERMINISTIC begin declare result tinyint; select max(type) into result from _right where _right.modulename = module_name and name = right_name and _right.permitable_id = permitable_id; if result is null then return 0; end if; return result; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `get_permitable_group_id` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `get_permitable_group_id`( _permitable_id int(11) ) RETURNS int(11) begin declare result int(11); select id into result from _group where _group.permitable_id = _permitable_id; return result; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `get_permitable_user_id` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `get_permitable_user_id`( _permitable_id int(11) ) RETURNS int(11) READS SQL DATA DETERMINISTIC begin declare result int(11); select id into result from _user where _user.permitable_id = _permitable_id; return result; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `get_securableitem_actual_permissions_for_permitable` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `get_securableitem_actual_permissions_for_permitable`( _securableitem_id int(11), _permitable_id int(11), class_name varchar(255), module_name varchar(255), caching_on tinyint ) RETURNS smallint(6) READS SQL DATA DETERMINISTIC begin declare allow_permissions, deny_permissions smallint default 0; declare is_super_administrator, is_owner tinyint; delete from __role_children_cache; select named_group_contains_permitable('Super Administrators', _permitable_id) into is_super_administrator; if is_super_administrator then set allow_permissions = 31; set deny_permissions = 0; else # Not Coding Standard begin select _securableitem_id in (select securableitem_id from _user, ownedsecurableitem where _user.id = ownedsecurableitem.owner__user_id and permitable_id = _permitable_id) into is_owner; end; if is_owner then set allow_permissions = 31; set deny_permissions = 0; else # Not Coding Standard if caching_on then call get_securableitem_cached_actual_permissions_for_permitable(_securableitem_id, _permitable_id, allow_permissions, deny_permissions); if allow_permissions is null then call recursive_get_securableitem_actual_permissions_for_permitable(_securableitem_id, _permitable_id, class_name, module_name, allow_permissions, deny_permissions); call cache_securableitem_actual_permissions_for_permitable(_securableitem_id, _permitable_id, allow_permissions, deny_permissions); end if; else # Not Coding Standard call recursive_get_securableitem_actual_permissions_for_permitable(_securableitem_id, _permitable_id, class_name, module_name, allow_permissions, deny_permissions); end if; end if; end if; return (allow_permissions << 8) | deny_permissions; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `get_user_actual_right` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `get_user_actual_right`( _user_id int(11), module_name varchar(255), right_name varchar(255) ) RETURNS tinyint(4) READS SQL DATA DETERMINISTIC begin declare result tinyint; declare is_super_administrator tinyint; select named_group_contains_user('Super Administrators', _user_id) into is_super_administrator; if is_super_administrator then set result = 1; else # Not Coding Standard call recursive_get_user_actual_right(_user_id, module_name, right_name, result); end if; return result; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `get_user_explicit_actual_policy` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `get_user_explicit_actual_policy`( _user_id int(11), module_name varchar(255), policy_name varchar(255) ) RETURNS varchar(255) CHARSET utf8 COLLATE utf8_unicode_ci READS SQL DATA DETERMINISTIC begin # but since PDO returns it as a string I am too, until I know if that is a bad thing. declare result tinyint; declare _permitable_id int; select permitable_id into _permitable_id from _user where id = _user_id; select get_permitable_explicit_actual_policy(_permitable_id, module_name, policy_name) into result; return result; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `get_user_explicit_actual_right` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `get_user_explicit_actual_right`( _user_id int(11), module_name varchar(255), right_name varchar(255) ) RETURNS tinyint(4) READS SQL DATA DETERMINISTIC begin declare result tinyint; declare _permitable_id int; select permitable_id into _permitable_id from _user where id = _user_id; select get_permitable_explicit_actual_right(_permitable_id, module_name, right_name) into result; return result; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `get_user_inherited_actual_right` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `get_user_inherited_actual_right`( _user_id int(11), module_name varchar(255), right_name varchar(255) ) RETURNS tinyint(4) READS SQL DATA DETERMINISTIC begin declare combined_right tinyint default 0; declare __group_id int(11); declare no_more_records tinyint default 0; declare _group_ids cursor for select _group_id from _group__user where _group__user._user_id = _user_id; declare continue handler for not found set no_more_records = 1; open _group_ids; fetch _group_ids into __group_id; while no_more_records = 0 do select combined_right | get_group_explicit_actual_right (__group_id, module_name, right_name) | get_group_inherited_actual_right(__group_id, module_name, right_name) into combined_right; fetch _group_ids into __group_id; end while; close _group_ids; select combined_right | get_named_group_explicit_actual_right('Everyone', module_name, right_name) into combined_right; if (combined_right & 2) = 2 then return 2; end if; return combined_right; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `group_contains_permitable` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `group_contains_permitable`( _group_id int(11), _permitable_id int(11) ) RETURNS tinyint(4) READS SQL DATA DETERMINISTIC begin declare result tinyint default 0; declare _group_name varchar(255); declare is_everyone tinyint; declare _user_id int(11); declare group_id_2 int(11); select name into _group_name from _group where _group.id = _group_id; if _group_name = 'Everyone' then set result = 1; else # Not Coding Standard set _user_id = get_permitable_user_id(_permitable_id); if _user_id is not null then call recursive_group_contains_user(_group_id, _user_id, result); else # Not Coding Standard set group_id_2 = get_permitable_group_id(_permitable_id); if group_id_2 is not null then call recursive_group_contains_group(_group_id, group_id_2, result); end if; end if; end if; return result; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `group_contains_user` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `group_contains_user`( _group_id int(11), _user_id int(11) ) RETURNS tinyint(4) READS SQL DATA DETERMINISTIC begin declare result tinyint default 0; call recursive_group_contains_user(_group_id, _user_id, result); return result; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `named_group_contains_permitable` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `named_group_contains_permitable`( group_name varchar(255), _permitable_id int(11) ) RETURNS tinyint(4) READS SQL DATA DETERMINISTIC begin declare result tinyint default 0; declare group_id_1 int(11); declare _user_id int(11); declare group_id_2 int(11); if group_name = 'Everyone' then set result = 1; else # Not Coding Standard select id into group_id_1 from _group where _group.name = group_name; set _user_id = get_permitable_user_id(_permitable_id); if _user_id is not null then call recursive_group_contains_user(group_id_1, _user_id, result); else # Not Coding Standard set group_id_2 = get_permitable_group_id(_permitable_id); if group_id_2 is not null then call recursive_group_contains_group(group_id_1, group_id_2, result); end if; end if; end if; return result; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `named_group_contains_user` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `named_group_contains_user`( _group_name varchar(255), _user_id int(11) ) RETURNS tinyint(4) READS SQL DATA DETERMINISTIC begin declare result tinyint default 0; declare _group_id int(11); if _group_name = 'Everyone' then set result = 1; else # Not Coding Standard select id into _group_id from _group where _group.name = _group_name; call recursive_group_contains_user(_group_id, _user_id, result); end if; return result; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `permitable_contains_permitable` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE FUNCTION `permitable_contains_permitable`( permitable_id_1 int(11), permitable_id_2 int(11) ) RETURNS tinyint(4) READS SQL DATA DETERMINISTIC begin declare result tinyint; declare user_id_1, user_id_2, group_id_1, group_id_2 int(11); # If they are both users just compare if they are the same user. select get_permitable_user_id(permitable_id_1) into user_id_1; select get_permitable_user_id(permitable_id_2) into user_id_2; if user_id_1 is not null and user_id_2 is not null then set result = permitable_id_1 = permitable_id_2; else # Not Coding Standard # If the first is a user and the second is a group return false. select get_permitable_group_id(permitable_id_2) into group_id_2; if user_id_1 is not null and group_id_2 is not null then set result = 0; else # Not Coding Standard # Otherwise the first is a group, just return if it contains # the second. select get_permitable_group_id(permitable_id_1) into group_id_1; if group_id_1 is not null then select group_contains_permitable(group_id_1, permitable_id_2) into result; end if; end if; end if; return result; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `cache_securableitem_actual_permissions_for_permitable` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `cache_securableitem_actual_permissions_for_permitable`( in _securableitem_id int(11), in _permitable_id int(11), in _allow_permissions tinyint, in _deny_permissions tinyint ) begin # Tables cannot be created inside stored routines # so this cannot automatically create the cache # table if it doesn't exist. So it is done when # the stored routines are created. insert into actual_permissions_cache values (_securableitem_id, _permitable_id, _allow_permissions, _deny_permissions); end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `clear_cache_actual_rights` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `clear_cache_actual_rights`() READS SQL DATA begin delete from actual_rights_cache; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `clear_cache_all_actual_permissions` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `clear_cache_all_actual_permissions`() READS SQL DATA begin delete from actual_permissions_cache; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `clear_cache_named_securable_all_actual_permissions` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `clear_cache_named_securable_all_actual_permissions`() READS SQL DATA begin delete from named_securable_actual_permissions_cache; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `clear_cache_securableitem_actual_permissions` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `clear_cache_securableitem_actual_permissions`( in _securableitem_id int(11) ) begin delete from actual_permissions_cache where securableitem_id = _securableitem_id; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `create_campaign_items` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `create_campaign_items`(campaign_id int, marketing_list_id int, processed int) begin insert into `campaignitem` (`id`, `processed`, `campaign_id`, `contact_id`) select null as id, processed as `processed`, campaign_id as `campaign_id`, `marketinglistmember`.`contact_id` from `marketinglistmember` left join `campaignitem` on `campaignitem`.`contact_id` = `marketinglistmember`.`contact_id` and `campaignitem`.`campaign_id` = campaign_id left join `contact` on `contact`.`id` = `marketinglistmember`.`contact_id` where (`marketinglistmember`.`marketinglist_id` = marketing_list_id and `campaignitem`.`id` is null and `contact`.`id` is not null); end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `decrement_count` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `decrement_count`( in munge_table_name varchar(255), in _securableitem_id int(11), in item_id int(11), in _type char ) begin update munge_table_name set count = count - 1 where securableitem_id = _securableitem_id and munge_id = concat(_type, item_id); end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `decrement_parent_roles_counts` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `decrement_parent_roles_counts`( in munge_table_name varchar(255), in securableitem_id int(11), in role_id int(11) ) begin declare parent_role_id int(11); select role_id into parent_role_id from role where id = role_id; if parent_role_id is not null then call decrement_count (munge_table_name, securableitem_id, parent_role_id); call decrement_parent_roles_counts(munge_table_name, securableitem_id, parent_role_id); end if; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `duplicate_filemodels` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `duplicate_filemodels`(related_model_type varchar(255), related_model_id int, new_model_type varchar(255), new_model_id int, user_id int, now_timestamp datetime) begin insert into `filemodel` (`id`, `name`, `size`, `type`, `item_id`, `filecontent_id`, `relatedmodel_id`, `relatedmodel_type`) select null as `id`, `name`, `size`, `type`, (select create_item(user_id, now_timestamp)) as `item_id`, `filecontent_id`, new_model_id as `relatedmodel_id`, new_model_type as `relatedmodel_type` from `filemodel` where `relatedmodel_type` = related_model_type and `relatedmodel_id` = related_model_id; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `generate_campaign_items` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `generate_campaign_items`(active_status int, processing_status int, now_timestamp datetime) begin declare loop0_eof boolean default false; declare campaign_id int(11); declare marketinglist_id int(11); declare cursor0 cursor for select `campaign`.`id`, `campaign`.`marketinglist_id` from `campaign` where ((`campaign`.`status` = active_status) and (`campaign`.`sendondatetime` < now_timestamp)); declare continue handler for not found set loop0_eof = TRUE; open cursor0; loop0: loop fetch cursor0 into campaign_id, marketinglist_id; if loop0_eof then leave loop0; end if; call create_campaign_items(campaign_id, marketinglist_id, 0); update `campaign` set `status` = processing_status where id = campaign_id; end loop loop0; close cursor0; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `get_group_inherited_actual_right_ignoring_everyone` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `get_group_inherited_actual_right_ignoring_everyone`( in _group_id int(11), in module_name varchar(255), in right_name varchar(255), out result tinyint ) begin declare parent_group_id int(11); set result = 0; select _group._group_id into parent_group_id from _group where id = _group_id; if parent_group_id is not null then call get_group_inherited_actual_right_ignoring_everyone(parent_group_id, module_name, right_name, result); select result | get_group_explicit_actual_right(parent_group_id, module_name, right_name) into result; if (result & 2) = 2 then set result = 2; end if; end if; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `get_securableitem_cached_actual_permissions_for_permitable` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `get_securableitem_cached_actual_permissions_for_permitable`( in _securableitem_id int(11), in _permitable_id int(11), out _allow_permissions tinyint, out _deny_permissions tinyint ) begin select allow_permissions, deny_permissions into _allow_permissions, _deny_permissions from actual_permissions_cache where securableitem_id = _securableitem_id and permitable_id = _permitable_id; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `get_securableitem_explicit_actual_permissions_for_permitable` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `get_securableitem_explicit_actual_permissions_for_permitable`( in _securableitem_id int(11), in _permitable_id int(11), out allow_permissions tinyint, out deny_permissions tinyint ) begin select bit_or(permissions) into allow_permissions from permission where type = 1 and permitable_id = _permitable_id and securableitem_id = _securableitem_id; select bit_or(permissions) into deny_permissions from permission where type = 2 and permitable_id = _permitable_id and securableitem_id = _securableitem_id; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `get_securableitem_explicit_inherited_permissions_for_permitable` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `get_securableitem_explicit_inherited_permissions_for_permitable`( in _securableitem_id int(11), in _permitable_id int(11), out allow_permissions tinyint, out deny_permissions tinyint ) begin declare permissions_permitable_id int(11); declare _type, _permissions, permission_applies tinyint; declare no_more_records tinyint default 0; declare permitable_id_type_and_permissions cursor for select permitable_id, type, bit_or(permissions) from permission where securableitem_id = _securableitem_id group by permitable_id, type; declare continue handler for not found set no_more_records = 1; set allow_permissions = 0; set deny_permissions = 0; open permitable_id_type_and_permissions; fetch permitable_id_type_and_permissions into permissions_permitable_id, _type, _permissions; # The query will return at most one row with the allow bits and # one with the deny bits, so this loop will loop 0, 1, or 2 times. while no_more_records = 0 do select permitable_contains_permitable(permissions_permitable_id, _permitable_id) into permission_applies; if permission_applies then if _type = 1 then set allow_permissions = allow_permissions | _permissions; else # Not Coding Standard set deny_permissions = deny_permissions | _permissions; end if; end if; fetch permitable_id_type_and_permissions into permissions_permitable_id, _type, _permissions; end while; close permitable_id_type_and_permissions; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `get_securableitem_module_and_model_permissions_for_permitable` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `get_securableitem_module_and_model_permissions_for_permitable`( in _securableitem_id int(11), in _permitable_id int(11), in class_name varchar(255), in module_name varchar(255), out allow_permissions tinyint, out deny_permissions tinyint ) begin declare permissions_permitable_id int(11); declare _type, _permissions, permission_applies tinyint; declare no_more_records tinyint default 0; declare permitable_id_type_and_permissions_for_namedsecurableitem cursor for select permitable_id, type, bit_or(permissions) from permission, namedsecurableitem where permission.securableitem_id = namedsecurableitem.securableitem_id and (name = class_name or name = module_name) group by permitable_id, type; declare continue handler for not found set no_more_records = 1; set allow_permissions = 0; set deny_permissions = 0; open permitable_id_type_and_permissions_for_namedsecurableitem; fetch permitable_id_type_and_permissions_for_namedsecurableitem into permissions_permitable_id, _type, _permissions; # The query will return at most one row with the allow bits and # one with the deny bits, so this loop will loop 0, 1, or 2 times. while no_more_records = 0 do select permitable_contains_permitable(permissions_permitable_id, _permitable_id) into permission_applies; if permission_applies then if _type = 1 then set allow_permissions = allow_permissions | _permissions; else # Not Coding Standard set deny_permissions = deny_permissions | _permissions; end if; end if; fetch permitable_id_type_and_permissions_for_namedsecurableitem into permissions_permitable_id, _type, _permissions; end while; close permitable_id_type_and_permissions_for_namedsecurableitem; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `get_securableitem_propagated_allow_permissions_for_permitable` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `get_securableitem_propagated_allow_permissions_for_permitable`( in _securableitem_id int(11), in _permitable_id int(11), in class_name varchar(255), in module_name varchar(255), out allow_permissions tinyint ) begin declare user_id int(11); declare user_role_id int(11); declare parent_role_id int(11); select role_id into user_role_id from _user where permitable_id = _permitable_id; set allow_permissions = 0; select get_permitable_user_id(_permitable_id) into user_id; if user_id is not null then call recursive_get_all_descendent_roles(_permitable_id, user_role_id); call recursive_get_securableitem_propagated_allow_permissions_permit(_securableitem_id, _permitable_id, class_name, module_name, allow_permissions); end if; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `increment_count` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `increment_count`( in munge_table_name varchar(255), in securableitem_id int(11), in item_id int(11), in _type char ) begin # TODO: insert only if the row doesn't exist # in a way that doesn't ignore all errors. set @sql = concat("insert into ", munge_table_name, "(securableitem_id, munge_id, count) ", "values (", securableitem_id, ", '", concat(_type, item_id), "', 1) ", "on duplicate key ", "update count = count + 1"); prepare statement from @sql; execute statement; deallocate prepare statement; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `increment_parent_roles_counts` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `increment_parent_roles_counts`( in munge_table_name varchar(255), in securableitem_id int(11), in _role_id int(11) ) begin declare parent_role_id int(11); select role_id into parent_role_id from role where id = _role_id; if parent_role_id is not null then call increment_count (munge_table_name, securableitem_id, parent_role_id, "R"); call increment_parent_roles_counts(munge_table_name, securableitem_id, parent_role_id); end if; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `rebuild` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `rebuild`( in model_table_name varchar(255), in munge_table_name varchar(255) ) begin call recreate_tables(munge_table_name); call rebuild_users (model_table_name, munge_table_name); call rebuild_groups (model_table_name, munge_table_name); call rebuild_roles (model_table_name, munge_table_name); end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `rebuild_a_permitable` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `rebuild_a_permitable`( in munge_table_name varchar(255), in securableitem_id int(11), in actual_id int(11), in _permitable_id int(11), in _type char ) begin declare allow_permissions, deny_permissions, effective_explicit_permissions smallint default 0; call get_securableitem_explicit_actual_permissions_for_permitable(securableitem_id, _permitable_id, allow_permissions, deny_permissions); set effective_explicit_permissions = allow_permissions & ~deny_permissions; if (effective_explicit_permissions & 1) = 1 then # Permission::READ call increment_count(munge_table_name, securableitem_id, actual_id, _type); if _type = "G" then call rebuild_roles_for_users_in_group(munge_table_name, securableitem_id, actual_id); call rebuild_sub_groups (munge_table_name, securableitem_id, actual_id); end if; end if; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `rebuild_groups` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `rebuild_groups`( in model_table_name varchar(255), in munge_table_name varchar(255) ) begin set @select_statement = concat("select permission.securableitem_id, _group.id, permission.permitable_id from ", model_table_name , ", ownedsecurableitem, permission, _group where ", model_table_name, ".ownedsecurableitem_id = ownedsecurableitem.id AND ownedsecurableitem.securableitem_id = permission.securableitem_id AND permission.permitable_id = _group.permitable_id"); set @rebuild_groups_temp_table = CONCAT("create temporary table rebuild_temp_table as ", @select_statement); prepare statement FROM @rebuild_groups_temp_table; execute statement; deallocate prepare statement; begin declare _securableitem_id, __group_id, _permitable_id int(11); declare no_more_records tinyint default 0; declare securableitem_group_and_permitable_ids cursor for select * from rebuild_temp_table; declare continue handler for not found set no_more_records = 1; open securableitem_group_and_permitable_ids; fetch securableitem_group_and_permitable_ids into _securableitem_id, __group_id, _permitable_id; while no_more_records = 0 do call rebuild_a_permitable(munge_table_name, _securableitem_id, __group_id, _permitable_id, "G"); fetch securableitem_group_and_permitable_ids into _securableitem_id, __group_id, _permitable_id; end while; close securableitem_group_and_permitable_ids; drop temporary table if exists rebuild_temp_table; end; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `rebuild_roles` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `rebuild_roles`( in model_table_name varchar(255), in munge_table_name varchar(255) ) begin call rebuild_roles_owned_securableitems (model_table_name, munge_table_name); call rebuild_roles_securableitem_with_explicit_user_permissions (model_table_name, munge_table_name); call rebuild_roles_securableitem_with_explicit_group_permissions(model_table_name, munge_table_name); end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `rebuild_roles_for_users_in_group` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `rebuild_roles_for_users_in_group`( in munge_table_name varchar(255), in _securableitem_id int(11), in __group_id int(11) ) begin declare _role_id int(11); declare no_more_records tinyint default 0; declare role_ids cursor for select role_id from _group__user, _user where _group__user._group_id = __group_id and _user.id = _group__user._user_id; declare continue handler for not found set no_more_records = 1; open role_ids; fetch role_ids into _role_id; while no_more_records = 0 do call increment_parent_roles_counts(munge_table_name, _securableitem_id, _role_id); fetch role_ids into _role_id; end while; close role_ids; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `rebuild_roles_owned_securableitems` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `rebuild_roles_owned_securableitems`( in model_table_name varchar(255), in munge_table_name varchar(255) ) begin set @select_statement = concat("select role_id, ownedsecurableitem.securableitem_id from ", model_table_name, ", _user, ownedsecurableitem where ", model_table_name, ".ownedsecurableitem_id = ownedsecurableitem.id AND _user.id = ownedsecurableitem.owner__user_id and _user.role_id is not null"); set @rebuild_roles_temp_table = CONCAT("create temporary table rebuild_temp_table as ", @select_statement); prepare statement FROM @rebuild_roles_temp_table; execute statement; deallocate prepare statement; begin declare _role_id, _securableitem_id int(11); declare no_more_records tinyint default 0; declare role_and_securableitem_ids cursor for select * from rebuild_temp_table; declare continue handler for not found set no_more_records = 1; open role_and_securableitem_ids; fetch role_and_securableitem_ids into _role_id, _securableitem_id; while no_more_records = 0 do call increment_parent_roles_counts(munge_table_name, _securableitem_id, _role_id); fetch role_and_securableitem_ids into _role_id, _securableitem_id; end while; close role_and_securableitem_ids; drop temporary table if exists rebuild_temp_table; end; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `rebuild_roles_securableitem_with_explicit_group_permissions` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `rebuild_roles_securableitem_with_explicit_group_permissions`( in model_table_name varchar(255), in munge_table_name varchar(255) ) begin set @select_statement = concat("select role.role_id, permission.securableitem_id from ", model_table_name, ", ownedsecurableitem, _user, _group, _group__user, permission, role where ", model_table_name, ".ownedsecurableitem_id = ownedsecurableitem.id and ownedsecurableitem.securableitem_id = permission.securableitem_id and _user.id = _group__user._user_id and permission.permitable_id = _group.permitable_id and _group__user._group_id = _group.id and _user.role_id = role.role_id and ((permission.permissions & 1) = 1) and permission.type = 1"); set @rebuild_roles_temp_table = CONCAT("create temporary table rebuild_temp_table as ", @select_statement); prepare statement FROM @rebuild_roles_temp_table; execute statement; deallocate prepare statement; begin declare _role_id, _securableitem_id int(11); declare no_more_records tinyint default 0; declare role_and_securableitem_ids cursor for select * from rebuild_temp_table; declare continue handler for not found set no_more_records = 1; open role_and_securableitem_ids; fetch role_and_securableitem_ids into _role_id, _securableitem_id; while no_more_records = 0 do call increment_count (munge_table_name, _securableitem_id, _role_id, "R"); call increment_parent_roles_counts(munge_table_name, _securableitem_id, _role_id); fetch role_and_securableitem_ids into _role_id, _securableitem_id; end while; close role_and_securableitem_ids; drop temporary table if exists rebuild_temp_table; end; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `rebuild_roles_securableitem_with_explicit_user_permissions` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `rebuild_roles_securableitem_with_explicit_user_permissions`( in model_table_name varchar(255), in munge_table_name varchar(255) ) begin set @select_statement = concat("select role_id, permission.securableitem_id from ", model_table_name, ", ownedsecurableitem, permission, _user where ", model_table_name, ".ownedsecurableitem_id = ownedsecurableitem.id AND ownedsecurableitem.securableitem_id = permission.securableitem_id AND permission.permitable_id = _user.permitable_id and ((permission.permissions & 1) = 1) and permission.type = 1"); set @rebuild_roles_temp_table = CONCAT("create temporary table rebuild_temp_table as ", @select_statement); prepare statement FROM @rebuild_roles_temp_table; execute statement; deallocate prepare statement; begin declare _role_id, _securableitem_id int(11); declare no_more_records tinyint default 0; declare role_and_securableitem_ids cursor for select * from rebuild_temp_table; declare continue handler for not found set no_more_records = 1; open role_and_securableitem_ids; fetch role_and_securableitem_ids into _role_id, _securableitem_id; while no_more_records = 0 do call increment_parent_roles_counts(munge_table_name, _securableitem_id, _role_id); fetch role_and_securableitem_ids into _role_id, _securableitem_id; end while; close role_and_securableitem_ids; drop temporary table if exists rebuild_temp_table; end; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `rebuild_sub_groups` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `rebuild_sub_groups`( in munge_table_name varchar(255), in _securableitem_id int(11), in __group_id int(11) ) begin declare sub_group_id int(11); declare no_more_records tinyint default 0; declare sub_group_ids cursor for select id from _group where _group_id = __group_id; declare continue handler for not found set no_more_records = 1; open sub_group_ids; fetch sub_group_ids into sub_group_id; while no_more_records = 0 do call increment_count (munge_table_name, _securableitem_id, sub_group_id, "G"); call rebuild_roles_for_users_in_group(munge_table_name, _securableitem_id, sub_group_id); call rebuild_sub_groups (munge_table_name, _securableitem_id, sub_group_id); fetch sub_group_ids into sub_group_id; end while; close sub_group_ids; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `rebuild_users` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `rebuild_users`( in model_table_name varchar(255), in munge_table_name varchar(255) ) begin set @select_statement = concat("select permission.securableitem_id, _user.id, permission.permitable_id from ", model_table_name, ", ownedsecurableitem, permission, _user where ", model_table_name , ".ownedsecurableitem_id = ownedsecurableitem.id and ownedsecurableitem.securableitem_id = permission.securableitem_id and permission.permitable_id = _user.permitable_id"); set @rebuild_users_temp_table = CONCAT("create temporary table rebuild_temp_table as ", @select_statement); prepare statement FROM @rebuild_users_temp_table; execute statement; deallocate prepare statement; begin declare _securableitem_id, __user_id, _permitable_id int(11); declare no_more_records tinyint default 0; declare securableitem_user_and_permitable_ids cursor for select * from rebuild_temp_table; declare continue handler for not found set no_more_records = 1; open securableitem_user_and_permitable_ids; fetch securableitem_user_and_permitable_ids into _securableitem_id, __user_id, _permitable_id; while no_more_records = 0 do call rebuild_a_permitable(munge_table_name, _securableitem_id, __user_id, _permitable_id, "U"); fetch securableitem_user_and_permitable_ids into _securableitem_id, __user_id, _permitable_id; end while; close securableitem_user_and_permitable_ids; drop temporary table if exists rebuild_temp_table; end; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `recreate_tables` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `recreate_tables`( in munge_table_name varchar(255) ) begin set @sql = concat("drop table if exists ", munge_table_name); prepare statement from @sql; execute statement; deallocate prepare statement; set @sql = concat("create table ", munge_table_name, " (", "securableitem_id int(11) unsigned not null, ", "munge_id varchar(12) null, ", "count int(8) unsigned not null, ", "primary key (securableitem_id, munge_id))"); prepare statement from @sql; execute statement; deallocate prepare statement; set @sql = concat("create index index_", munge_table_name, "_securableitem_id", " ", "on ", munge_table_name, " (securableitem_id)"); prepare statement from @sql; execute statement; deallocate prepare statement; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `recursive_get_all_descendent_roles` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `recursive_get_all_descendent_roles`(in _permitable_id int(11), in parent_role_id int(11)) begin declare child_role_id int(11); declare no_more_records tinyint default 0; declare child_role_ids cursor for select id from role where role_id = parent_role_id; declare continue handler for not found set no_more_records = 1; open child_role_ids; fetch child_role_ids into child_role_id; while no_more_records = 0 do INSERT IGNORE INTO __role_children_cache VALUES (_permitable_id, child_role_id); call recursive_get_all_descendent_roles(_permitable_id, child_role_id); fetch child_role_ids into child_role_id; end while; close child_role_ids; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `recursive_get_securableitem_actual_permissions_for_permitable` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `recursive_get_securableitem_actual_permissions_for_permitable`( in _securableitem_id int(11), in _permitable_id int(11), in class_name varchar(255), in module_name varchar(255), out allow_permissions tinyint, out deny_permissions tinyint ) begin declare propagated_allow_permissions tinyint default 0; declare nameditem_allow_permissions, nameditem_deny_permissions tinyint default 0; declare is_owner tinyint; begin select _securableitem_id in (select securableitem_id from _user, ownedsecurableitem where _user.id = ownedsecurableitem.owner__user_id and permitable_id = _permitable_id) into is_owner; end; if is_owner then set allow_permissions = 31; set deny_permissions = 0; else # Not Coding Standard set allow_permissions = 0; set deny_permissions = 0; call get_securableitem_explicit_inherited_permissions_for_permitable(_securableitem_id, _permitable_id, allow_permissions, deny_permissions); call get_securableitem_propagated_allow_permissions_for_permitable (_securableitem_id, _permitable_id, class_name, module_name, propagated_allow_permissions); call get_securableitem_module_and_model_permissions_for_permitable (_securableitem_id, _permitable_id, class_name, module_name, nameditem_allow_permissions, nameditem_deny_permissions); set allow_permissions = allow_permissions | propagated_allow_permissions | nameditem_allow_permissions; set deny_permissions = deny_permissions | nameditem_deny_permissions; end if; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `recursive_get_securableitem_propagated_allow_permissions_permit` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `recursive_get_securableitem_propagated_allow_permissions_permit`( in _securableitem_id int(11), in _permitable_id int(11), in class_name varchar(255), in module_name varchar(255), out allow_permissions tinyint ) begin declare user_allow_permissions, user_deny_permissions, user_propagated_allow_permissions tinyint; set allow_permissions = 0; begin declare sub_role_id int(11); declare no_more_records tinyint default 0; declare sub_role_ids cursor for select role_id from __role_children_cache where permitable_id = _permitable_id; declare continue handler for not found begin set no_more_records = 1; end; open sub_role_ids; fetch sub_role_ids into sub_role_id; while no_more_records = 0 do begin declare propagated_allow_permissions tinyint; declare user_in_role_id, permitable_in_role_id int(11); declare permitable_in_role_ids cursor for select permitable_id from _user where role_id = sub_role_id; open permitable_in_role_ids; fetch permitable_in_role_ids into permitable_in_role_id; while no_more_records = 0 do call recursive_get_securableitem_actual_permissions_for_permitable (_securableitem_id, permitable_in_role_id, class_name, module_name, user_allow_permissions, user_deny_permissions); call recursive_get_securableitem_propagated_allow_permissions_permit(_securableitem_id, permitable_in_role_id, class_name, module_name, propagated_allow_permissions); set allow_permissions = allow_permissions | (user_allow_permissions & ~user_deny_permissions) | propagated_allow_permissions; fetch permitable_in_role_ids into permitable_in_role_id; end while; end; set no_more_records = 0; fetch sub_role_ids into sub_role_id; end while; close sub_role_ids; end; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `recursive_get_user_actual_right` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `recursive_get_user_actual_right`( in _user_id int(11), in module_name varchar(255), in right_name varchar(255), out result tinyint ) begin declare _role_id int; set result = 0; begin select role_id into _role_id from _user where _user.id = _user_id; if _role_id is not null then call recursive_get_user_role_propagated_actual_allow_right(_role_id, module_name, right_name, result); set result = result & 1; end if; end; select get_user_explicit_actual_right (_user_id, module_name, right_name) | get_user_inherited_actual_right(_user_id, module_name, right_name) | result into result; if (result & 2) = 2 then set result = 2; end if; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `recursive_get_user_role_propagated_actual_allow_right` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `recursive_get_user_role_propagated_actual_allow_right`( in _role_id int(11), in module_name varchar(255), in right_name varchar(255), out result tinyint ) begin declare sub_role_id int(11); declare no_more_records tinyint default 0; declare sub_role_ids cursor for select id from role where role.role_id = _role_id; declare continue handler for not found set no_more_records = 1; set result = 0; open sub_role_ids; fetch sub_role_ids into sub_role_id; while result = 0 and no_more_records = 0 do begin declare _user_id int(11); declare _user_ids cursor for select id from _user where _user.role_id = sub_role_id; open _user_ids; fetch _user_ids into _user_id; while result = 0 and no_more_records = 0 do call recursive_get_user_actual_right(_user_id, module_name, right_name, result); fetch _user_ids into _user_id; end while; close _user_ids; if result = 0 then call recursive_get_user_role_propagated_actual_allow_right(sub_role_id, module_name, right_name, result); end if; set no_more_records = 0; fetch sub_role_ids into sub_role_id; end; end while; close sub_role_ids; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `recursive_group_contains_group` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `recursive_group_contains_group`( in group_id_1 int(11), in group_id_2 int(11), out result tinyint ) begin declare group_2_parent_group_id, child_group_id int(11); declare no_more_records tinyint default 0; declare child_group_ids cursor for select id from _group where _group._group_id = group_id_1; declare continue handler for not found set no_more_records = 1; set result = 0; if group_id_1 = group_id_2 then set result = 1; else # Not Coding Standard select _group_id into group_2_parent_group_id from _group where id = group_id_2; if group_id_1 = group_2_parent_group_id then set result = 1; else # Not Coding Standard open child_group_ids; fetch child_group_ids into child_group_id; while result = 0 and no_more_records = 0 do call recursive_group_contains_user(child_group_id, group_id_2, result); fetch child_group_ids into child_group_id; end while; close child_group_ids; end if; end if; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `recursive_group_contains_user` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `recursive_group_contains_user`( in _group_id int(11), in _user_id int(11), out result tinyint ) begin declare child_group_id, count tinyint; declare no_more_records tinyint default 0; declare child_group_ids cursor for select id from _group where _group._group_id = _group_id; declare continue handler for not found set no_more_records = 1; set result = 0; select count(*) into count from _group__user where _group__user._group_id = _group_id and _group__user._user_id = _user_id; if count > 0 then set result = 1; else # Not Coding Standard open child_group_ids; fetch child_group_ids into child_group_id; while result = 0 and no_more_records = 0 do call recursive_group_contains_user(child_group_id, _user_id, result); fetch child_group_ids into child_group_id; end while; close child_group_ids; end if; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `update_email_message_for_sending` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE PROCEDURE `update_email_message_for_sending`(message_id int, send_attempts int, sent_datetime datetime, folder_id int, error_serialized_data text, now_timestamp datetime) begin set @emailMessageSendErrorId = null; delete from `emailmessagesenderror` where id = (select error_emailmessagesenderror_id from `emailmessage` where id = message_id); if (error_serialized_data is not null) then insert into `emailmessagesenderror` ( id, `createddatetime`,`serializeddata` ) values (null, now_timestamp , error_serialized_data); set @emailMessageSendErrorId = last_insert_id(); end if; update `emailmessage` set `sendattempts` = send_attempts, `sentdatetime` = sent_datetime, `folder_emailfolder_id` = folder_id, `error_emailmessagesenderror_id` = @emailMessageSendErrorId where id = message_id; end ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on [[regtime]]