--
-- Host: localhost    Database: zigsbys8_zkCalls
-- ------------------------------------------------------


--
-- Current Database: `zigsbys8_zkCalls`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `zigsbys8_zkCalls` /*!40100 DEFAULT CHARACTER SET latin1 */;

USE `zigsbys8_zkCalls`;

--
-- Table structure for table `annotation_types`
--

CREATE TABLE `annotation_types` (
  `id` tinyint(4) NOT NULL AUTO_INCREMENT,
  `description` varchar(32) NOT NULL,
  `tenant_id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `tenant_id` (`tenant_id`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `annotation_types`
--

INSERT INTO `annotation_types` VALUES (1,'called',1),(2,'read',1),(3,'noted',1),(4,'changed',1),(5,'labeled',1),(6,'sms',1);

--
-- Table structure for table `annotations`
--

CREATE TABLE `annotations` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `annotation_type` tinyint(4) NOT NULL,
  `message_id` bigint(20) NOT NULL,
  `user_id` int(11) NOT NULL,
  `description` text CHARACTER SET latin1 NOT NULL,
  `created` datetime NOT NULL,
  `tenant_id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `annotation_type_message_id` (`annotation_type`,`message_id`,`created`),
  KEY `created` (`created`),
  KEY `tenant_id` (`tenant_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `annotations`
--


--
-- Table structure for table `audio_files`
--

CREATE TABLE `audio_files` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(255) DEFAULT NULL,
  `user_id` int(11) NOT NULL,
  `url` varchar(255) DEFAULT NULL,
  `recording_call_sid` varchar(100) DEFAULT NULL,
  `tag` varchar(100) DEFAULT NULL,
  `cancelled` tinyint(4) DEFAULT '0',
  `created` datetime DEFAULT NULL,
  `updated` datetime DEFAULT NULL,
  `tenant_id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `url` (`url`),
  KEY `recording_call_sid` (`recording_call_sid`),
  KEY `tag` (`tag`),
  KEY `tenant_id` (`tenant_id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `audio_files`
--

INSERT INTO `audio_files` VALUES (1,'Upload of christy-menu.mp3',1,'vbx-audio-upload://b9dd070216423d931dd70917871e3304.mp3',NULL,'global',0,'2011-08-17 20:27:27','2011-08-17 20:27:27',1),(2,'Upload of chris-sales.mp3',1,'vbx-audio-upload://6de0da3ca61d26ba9b5295b852515a36.mp3',NULL,'global',0,'2011-08-17 20:28:06','2011-08-17 20:28:06',1),(3,'Upload of AJ-accounting.mp3',1,'vbx-audio-upload://0a516d967ed65dec9a20e64c1aaf60e9.mp3',NULL,'global',0,'2011-08-17 20:28:48','2011-08-17 20:28:48',1),(4,'Upload of christy-menu.mp3',1,'vbx-audio-upload://a28ac2ad3fe9ae69264b07777820dbb4.mp3',NULL,'global',0,'2011-08-17 20:29:25','2011-08-17 20:29:25',1);

--
-- Table structure for table `auth_types`
--

CREATE TABLE `auth_types` (
  `id` tinyint(4) NOT NULL AUTO_INCREMENT,
  `description` varchar(255) NOT NULL,
  `tenant_id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `tenant_id` (`tenant_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `auth_types`
--

INSERT INTO `auth_types` VALUES (1,'openvbx',1),(2,'google',1);

--
-- Table structure for table `flow_store`
--

CREATE TABLE `flow_store` (
  `key` varchar(255) NOT NULL,
  `value` text,
  `flow_id` int(11) NOT NULL,
  `tenant_id` bigint(20) NOT NULL,
  UNIQUE KEY `key_flow` (`key`,`flow_id`),
  KEY `key` (`key`,`flow_id`),
  KEY `tenant_id` (`tenant_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `flow_store`
--


--
-- Table structure for table `flows`
--

CREATE TABLE `flows` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `user_id` int(11) NOT NULL,
  `created` datetime DEFAULT NULL,
  `updated` datetime DEFAULT NULL,
  `data` text,
  `sms_data` text,
  `tenant_id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`,`tenant_id`),
  KEY `user_id` (`user_id`),
  KEY `tenant_id` (`tenant_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `flows`
--

INSERT INTO `flows` VALUES (2,'Zigsby\'s Kitchen',1,NULL,NULL,'{\"start\":{\"name\":\"Call Start\",\"data\":{\"next\":\"start/63db62\"},\"id\":\"start\",\"type\":\"standard---start\"},\"a2beca\":{\"name\":\"Menu\",\"data\":{\"prompt_say\":\"\",\"prompt_play\":\"http://zigsbyskitchen.com/calls/audio-uploads/b9dd070216423d931dd70917871e3304.mp3\",\"prompt_mode\":\"play\",\"prompt_tag\":\"global\",\"show_player_with_url\":[\"http://zigsbyskitchen.com/calls/audio-uploads/b9dd070216423d931dd70917871e3304.mp3\",\"http://zigsbyskitchen.com/calls/audio-uploads/a28ac2ad3fe9ae69264b07777820dbb4.mp3\"],\"number\":[\"(704) 326-6746\",\"(704) 326-6746\"],\"library\":[\"\",\"\"],\"keys[]\":[\"1\",\"2\"],\"choices[]\":[\"start/a2beca/94ba1f\",\"start/a2beca/947d07\"],\"repeat-count\":\"3\",\"next\":\"\",\"invalid-option_say\":\"\",\"invalid-option_play\":\"http://zigsbyskitchen.com/calls/audio-uploads/a28ac2ad3fe9ae69264b07777820dbb4.mp3\",\"invalid-option_mode\":\"play\",\"invalid-option_tag\":\"global\"},\"id\":\"a2beca\",\"type\":\"menu---menu\"},\"94ba1f\":{\"name\":\"Dial\",\"data\":{\"dial-whom-selector\":\"user-or-group\",\"dial-whom-user-or-group_id\":\"1\",\"dial-whom-user-or-group_type\":\"group\",\"dial-whom-number\":\"\",\"callerId\":\"+17047818602\",\"no-answer-action\":\"voicemail\",\"no-answer-group-voicemail_say\":\"\",\"no-answer-group-voicemail_play\":\"\",\"no-answer-group-voicemail_mode\":\"\",\"no-answer-group-voicemail_tag\":\"global\",\"number\":\"(704) 326-6746\",\"library\":\"\",\"no-answer-redirect\":\"start/a2beca/94ba1f/dd184f\",\"no-answer-redirect-number\":\"\",\"version\":\"3\"},\"id\":\"94ba1f\",\"type\":\"standard---dial\"},\"dd184f\":{\"name\":\"Voicemail\",\"data\":{\"prompt_say\":\"\",\"prompt_play\":\"http://zigsbyskitchen.com/calls/audio-uploads/6de0da3ca61d26ba9b5295b852515a36.mp3\",\"prompt_mode\":\"play\",\"prompt_tag\":\"global\",\"show_player_with_url\":\"http://zigsbyskitchen.com/calls/audio-uploads/6de0da3ca61d26ba9b5295b852515a36.mp3\",\"number\":\"(704) 326-6746\",\"library\":\"\",\"permissions_id\":\"1\",\"permissions_type\":\"group\"},\"id\":\"dd184f\",\"type\":\"standard---voicemail\"},\"947d07\":{\"name\":\"Voicemail\",\"data\":{\"prompt_say\":\"\",\"prompt_play\":\"http://zigsbyskitchen.com/calls/audio-uploads/0a516d967ed65dec9a20e64c1aaf60e9.mp3\",\"prompt_mode\":\"play\",\"prompt_tag\":\"global\",\"show_player_with_url\":\"http://zigsbyskitchen.com/calls/audio-uploads/0a516d967ed65dec9a20e64c1aaf60e9.mp3\",\"number\":\"(704) 326-6746\",\"library\":\"\",\"permissions_id\":\"1\",\"permissions_type\":\"user\"},\"id\":\"947d07\",\"type\":\"standard---voicemail\"},\"63db62\":{\"name\":\"Google Analytics\",\"data\":{\"account\":\"UA-17007337-2\",\"url\":\"Incoming_Call?utm_source=onsite&utm_medium=onsite&utm_campaign=IncomingCall\",\"title\":\"Incoming Call from %caller%\",\"next\":\"start/63db62/b63246\"},\"id\":\"63db62\",\"type\":\"OpenVBX-Analytics---track\"},\"b63246\":{\"name\":\"Menu\",\"data\":{\"prompt_say\":\"\",\"prompt_play\":\"http://zigsbyskitchen.com/calls/audio-uploads/a28ac2ad3fe9ae69264b07777820dbb4.mp3\",\"prompt_mode\":\"play\",\"prompt_tag\":\"global\",\"show_player_with_url\":[\"http://zigsbyskitchen.com/calls/audio-uploads/a28ac2ad3fe9ae69264b07777820dbb4.mp3\",\"http://zigsbyskitchen.com/calls/audio-uploads/a28ac2ad3fe9ae69264b07777820dbb4.mp3\"],\"number\":[\"(704) 326-6746\",\"(704) 326-6746\"],\"library\":[\"\",\"\"],\"keys[]\":[\"1\",\"2\"],\"choices[]\":[\"start/63db62/b63246/f8dfa6\",\"start/63db62/b63246/dd89ed\"],\"repeat-count\":\"3\",\"next\":\"\",\"invalid-option_say\":\"\",\"invalid-option_play\":\"http://zigsbyskitchen.com/calls/audio-uploads/a28ac2ad3fe9ae69264b07777820dbb4.mp3\",\"invalid-option_mode\":\"play\",\"invalid-option_tag\":\"global\"},\"id\":\"b63246\",\"type\":\"menu---menu\"},\"f8dfa6\":{\"name\":\"Dial\",\"data\":{\"dial-whom-selector\":\"user-or-group\",\"dial-whom-user-or-group_id\":\"1\",\"dial-whom-user-or-group_type\":\"group\",\"dial-whom-number\":\"\",\"callerId\":\"+17047818602\",\"no-answer-group-voicemail_say\":\"\",\"no-answer-group-voicemail_play\":\"http://zigsbyskitchen.com/calls/audio-uploads/6de0da3ca61d26ba9b5295b852515a36.mp3\",\"no-answer-group-voicemail_mode\":\"play\",\"no-answer-group-voicemail_tag\":\"global\",\"show_player_with_url\":\"http://zigsbyskitchen.com/calls/audio-uploads/6de0da3ca61d26ba9b5295b852515a36.mp3\",\"number\":\"(704) 326-6746\",\"library\":\"\",\"no-answer-action\":\"redirect\",\"no-answer-redirect\":\"start/63db62/b63246/f8dfa6/bf13e5\",\"no-answer-redirect-number\":\"\",\"version\":\"3\"},\"id\":\"f8dfa6\",\"type\":\"standard---dial\"},\"e8f0e\":{\"name\":\"Dial\",\"data\":{\"dial-whom-selector\":\"user-or-group\",\"dial-whom-user-or-group_id\":\"2\",\"dial-whom-user-or-group_type\":\"user\",\"dial-whom-number\":\"\",\"callerId\":\"\",\"no-answer-group-voicemail_say\":\"\",\"no-answer-group-voicemail_play\":\"\",\"no-answer-group-voicemail_mode\":\"\",\"no-answer-group-voicemail_tag\":\"global\",\"number\":\"(704) 326-6746\",\"library\":\"\",\"no-answer-action\":\"redirect\",\"no-answer-redirect\":\"start/63db62/b63246/f8dfa6/e8f0e/1c376c\",\"no-answer-redirect-number\":\"\",\"version\":\"3\"},\"id\":\"e8f0e\",\"type\":\"standard---dial\"},\"1c376c\":{\"name\":\"Voicemail\",\"data\":{\"prompt_say\":\"\",\"prompt_play\":\"http://zigsbyskitchen.com/calls/audio-uploads/6de0da3ca61d26ba9b5295b852515a36.mp3\",\"prompt_mode\":\"play\",\"prompt_tag\":\"global\",\"show_player_with_url\":\"http://zigsbyskitchen.com/calls/audio-uploads/6de0da3ca61d26ba9b5295b852515a36.mp3\",\"number\":\"(704) 326-6746\",\"library\":\"\",\"permissions_id\":\"\",\"permissions_type\":\"\"},\"id\":\"1c376c\",\"type\":\"standard---voicemail\"},\"bf13e5\":{\"name\":\"Voicemail\",\"data\":{\"prompt_say\":\"\",\"prompt_play\":\"http://zigsbyskitchen.com/calls/audio-uploads/6de0da3ca61d26ba9b5295b852515a36.mp3\",\"prompt_mode\":\"play\",\"prompt_tag\":\"global\",\"show_player_with_url\":\"http://zigsbyskitchen.com/calls/audio-uploads/6de0da3ca61d26ba9b5295b852515a36.mp3\",\"number\":\"(704) 326-6746\",\"library\":\"\",\"permissions_id\":\"1\",\"permissions_type\":\"group\"},\"id\":\"bf13e5\",\"type\":\"standard---voicemail\"},\"dd89ed\":{\"name\":\"Voicemail\",\"data\":{\"prompt_say\":\"\",\"prompt_play\":\"vbx-audio-upload://0a516d967ed65dec9a20e64c1aaf60e9.mp3\",\"prompt_mode\":\"play\",\"prompt_tag\":\"global\",\"number\":\"\",\"library\":\"vbx-audio-upload://0a516d967ed65dec9a20e64c1aaf60e9.mp3\",\"permissions_id\":\"2\",\"permissions_type\":\"group\"},\"id\":\"dd89ed\",\"type\":\"standard---voicemail\"}}',NULL,1);

--
-- Table structure for table `group_annotations`
--

CREATE TABLE `group_annotations` (
  `group_id` int(11) NOT NULL,
  `annotation_id` bigint(20) NOT NULL,
  `tenant_id` bigint(20) NOT NULL,
  PRIMARY KEY (`group_id`,`annotation_id`),
  KEY `tenant_id` (`tenant_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `group_annotations`
--


--
-- Table structure for table `group_messages`
--

CREATE TABLE `group_messages` (
  `group_id` int(11) NOT NULL,
  `message_id` int(11) NOT NULL,
  `tenant_id` bigint(20) NOT NULL,
  PRIMARY KEY (`group_id`,`message_id`),
  KEY `tenant_id` (`tenant_id`),
  KEY `message_id` (`message_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `group_messages`
--

INSERT INTO `group_messages` VALUES (1,1,1),(1,2,1);

--
-- Table structure for table `groups`
--

CREATE TABLE `groups` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) DEFAULT NULL,
  `is_active` tinyint(4) NOT NULL DEFAULT '1',
  `tenant_id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `tenant_id` (`tenant_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `groups`
--

INSERT INTO `groups` VALUES (1,'Zigsby\'s Kitchen',1,1),(2,'Zigsby\'s Support',1,1);

--
-- Table structure for table `groups_users`
--

CREATE TABLE `groups_users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `group_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `tenant_id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `group_id` (`group_id`),
  KEY `tenant_id` (`tenant_id`),
  KEY `user_id` (`user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `groups_users`
--

INSERT INTO `groups_users` VALUES (1,1,1,1),(2,1,2,1),(3,2,1,1);

--
-- Table structure for table `messages`
--

CREATE TABLE `messages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `created` datetime DEFAULT NULL,
  `updated` datetime DEFAULT NULL,
  `read` datetime DEFAULT NULL,
  `call_sid` varchar(40) DEFAULT NULL,
  `caller` varchar(20) DEFAULT NULL,
  `called` varchar(20) DEFAULT NULL,
  `type` varchar(10) DEFAULT NULL,
  `status` varchar(10) DEFAULT NULL,
  `content_url` varchar(255) DEFAULT NULL,
  `content_text` varchar(5000) DEFAULT NULL,
  `notes` varchar(5000) DEFAULT NULL,
  `size` smallint(6) DEFAULT NULL,
  `assigned_to` bigint(20) DEFAULT NULL,
  `archived` tinyint(4) NOT NULL DEFAULT '0',
  `ticket_status` enum('open','closed','pending') NOT NULL DEFAULT 'open',
  `tenant_id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `call_sid` (`call_sid`),
  KEY `tenant_id` (`tenant_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `messages`
--

INSERT INTO `messages` VALUES (1,'2011-08-18 01:07:38','2011-08-18 01:27:34',NULL,'CA05d5cd060a8cd6e70935fc52dc67e23e','+17043266746','+17047818602','voice','new','http://api.twilio.com/2010-04-01/Accounts/AC029a65932d6fcacffc41f26ff125dbb7/Recordings/REaf63fb3b54543e4097a67aaaf628ce23','(blank)',NULL,3,NULL,1,'open',1),(2,'2011-08-18 01:17:20','2011-08-18 01:27:34',NULL,'CA7d9d3485c5fc7f1eb07975083f690701','+17043266746','+17047818602','voice','new','http://api.twilio.com/2010-04-01/Accounts/AC029a65932d6fcacffc41f26ff125dbb7/Recordings/REb17b1d1ce5fc588116055ad47a9ddbfd','Hello Jim',NULL,3,NULL,1,'open',1);

--
-- Table structure for table `numbers`
--

CREATE TABLE `numbers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `value` text NOT NULL,
  `is_active` tinyint(1) DEFAULT '1',
  `sms` tinyint(1) DEFAULT '0',
  `sequence` smallint(6) DEFAULT NULL,
  `tenant_id` bigint(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `tenant_id` (`tenant_id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `numbers`
--

INSERT INTO `numbers` VALUES (1,2,'Primary Device','+17047632435',1,0,NULL,1),(2,1,'Chris\' Cell','+17043266746',1,0,NULL,1),(3,1,'Steve\'s Cell','+17047622435',1,0,NULL,1);

--
-- Table structure for table `plugin_store`
--

CREATE TABLE `plugin_store` (
  `key` varchar(255) NOT NULL,
  `value` text,
  `plugin_id` varchar(34) NOT NULL,
  `tenant_id` bigint(20) NOT NULL,
  UNIQUE KEY `key_plugin` (`key`,`plugin_id`,`tenant_id`),
  KEY `key` (`key`,`plugin_id`),
  KEY `tenant_id` (`tenant_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `plugin_store`
--

INSERT INTO `plugin_store` VALUES ('timezone','\"UM5\"','PLe40b4f5f5a5c73e1a3368ddd39b538a6',1);

--
-- Table structure for table `rest_access`
--

CREATE TABLE `rest_access` (
  `key` varchar(32) NOT NULL,
  `locked` tinyint(4) NOT NULL DEFAULT '0',
  `created` datetime NOT NULL,
  `user_id` int(11) NOT NULL,
  `tenant_id` bigint(20) NOT NULL,
  PRIMARY KEY (`key`),
  KEY `tenant_id` (`tenant_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `rest_access`
--

INSERT INTO `rest_access` VALUES ('011530acc5a71e6bfe1a78bf24e9beab',0,'2011-08-17 21:03:31',1,1),('0235b5f78420bdf80341975275dd08a6',0,'2011-08-17 20:28:48',1,1),('0253e00f13a86314a5dbea36150c2423',0,'2011-08-18 01:13:24',2,1),('02bb199af3b6d51f5bc74c1f25eec93b',0,'2011-08-18 01:13:48',2,1),('0355dc5a9bae5bc2af7e34b798f0bbbe',0,'2011-08-18 01:19:43',1,1),('036e7d6de1666a18a8e688d25663f3cd',0,'2011-08-18 01:16:25',2,1),('04618392241fd196475c8700e4e9c6c2',0,'2011-08-17 22:23:18',1,1),('0555eb83de3b939a72a887c0211a65ae',0,'2011-08-17 20:30:25',1,1),('06e92b0f2747322aa836c4cd72389250',0,'2011-08-18 01:17:56',2,1),('07d82dddf6dbfff51460592932f12a1f',0,'2011-08-18 01:27:26',1,1),('07df4285c7ce66b83fe545d142ab9bff',0,'2011-08-18 01:34:47',1,1),('08b15e52d1154f2c66cc8600febd12a6',0,'2011-08-18 14:35:49',1,1),('09cfd51450817fdbfde356f9b1a6e2eb',0,'2011-08-18 01:13:55',2,1),('0ba06992ca2df88a50b8d81f37976166',0,'2011-08-17 20:28:51',1,1),('0c7e1ab0bedca79cecaa85d8836c39bd',0,'2011-08-18 01:23:51',1,1),('0d630b264183832e9fb8a258aaf9a799',0,'2011-08-18 01:23:16',1,1),('0eea81c7c508f5240395955c49d25d40',0,'2011-08-18 01:14:53',2,1),('0f3f7c44c05e6c2439420c13f1053037',0,'2011-08-17 21:02:27',1,1),('1012423b3017106a0c2e6470538a90a6',0,'2011-08-18 01:18:05',2,1),('105533afc8a90a5ea3cb87b3ab5dbb88',0,'2011-08-17 20:36:13',1,1),('109b9b07fdd58e6d1646e36f84aaa680',0,'2011-08-18 15:23:20',1,1),('10b6037a327d45299946f755f8a05f33',0,'2011-08-18 01:19:35',1,1),('11a1c637f8d5e51779bc5244e1e453b8',0,'2011-08-18 15:23:19',1,1),('12634877376ffaa04de6c01460000079',0,'2011-08-18 01:13:23',2,1),('128aba2d89bde94fb35a94c0ad3f27b2',0,'2011-08-18 01:27:26',1,1),('12ebdd4c5bbe58d762dd31b0a5d99e7e',0,'2011-08-18 01:09:02',1,1),('139d128d0472efd5546b41cdaf82a55f',0,'2011-08-17 20:27:08',1,1),('152b30eec917fe2c002689cb42fdf3b9',0,'2011-08-18 01:14:35',2,1),('15c53a8f14038962e5b169133bdd415b',0,'2011-08-18 16:04:49',1,1),('177a43969a3bbe7e568453fb965cde23',0,'2011-08-17 20:26:54',1,1),('19f97106e2536f1b315f4b08a42231fb',0,'2011-08-18 15:23:28',1,1),('1a48ad351836eeec49e14d39ca7cc9aa',0,'2011-08-18 01:27:32',1,1),('1ae83e075bc9f82aafcb9a2fb06d9a13',0,'2011-08-18 01:10:15',1,1),('1d06406b4c2b6e66dc3a5a3fc6957dec',0,'2011-08-18 01:15:27',2,1),('1d7920375978a214c3e3d39884dcbebc',0,'2011-08-18 01:15:03',2,1),('1d9ab442b867df0730144ceafe7df601',0,'2011-08-18 01:12:42',2,1),('1dc48b5bb90735a6efc21814292ac5f6',0,'2011-08-18 01:27:45',1,1),('1ee6b69a0d40b9e655e5f77d8550b382',0,'2011-08-18 01:26:43',1,1),('2083848ff952d3acd879e208580163b4',0,'2011-08-18 14:35:50',1,1),('224ffb5aae92adc19811ebe56e5e7218',0,'2011-08-18 01:27:30',1,1),('24e6caab6a0edbc83700d335cab45ffc',0,'2011-08-18 01:18:05',2,1),('26965676f2b270797c5084fddd9642e9',0,'2011-08-18 01:09:37',1,1),('278a84f85206f6265fd8c74acddf00c2',0,'2011-08-17 20:57:24',1,1),('280d9e5b60f2ad41b8f07e25a7e8543a',0,'2011-08-18 01:13:47',2,1),('286350b1c142f586c9f7125040d65b48',0,'2011-08-18 01:12:10',2,1),('2943e00f2c5af6e3cc66625193123b4b',0,'2011-08-17 20:58:34',1,1),('294ff96b733ae7c192264ac6834d645b',0,'2011-08-18 15:23:40',1,1),('29b26a8caf8ae294eb9d7cb5c35f52d9',0,'2011-08-17 20:31:01',1,1),('2a598e25ab7662d3e72a053f21da5476',0,'2011-08-18 01:09:03',1,1),('2ac26f3907ad71f2ba905b9e26c7af22',0,'2011-08-18 01:11:36',1,1),('2b7ab6dce260d5d77a9d8a1f4d66184b',0,'2011-08-17 20:38:30',1,1),('2b96f1121ae9db426537f2f0e656cba4',0,'2011-08-18 16:05:18',1,1),('2c602002c389fc5a59930fa31c48455e',0,'2011-08-17 20:29:44',1,1),('2d7ce5f73e79673e0f68aa63b2860178',0,'2011-08-18 01:41:19',1,1),('2ea54a30655a3d90226bbaf9eaed84f2',0,'2011-08-17 21:04:50',1,1),('2fccdce6e7cab9c34aef2a6671cdca3f',0,'2011-08-18 01:17:54',2,1),('2ff9bc545d4580225f31b6b6022b50eb',0,'2011-08-18 01:12:51',2,1),('304188503a3c505f183294b1f5f7f498',0,'2011-08-18 01:18:49',2,1),('31038d66e003de77c293af6db1499c6e',0,'2011-08-18 01:14:11',2,1),('3153b6c0aaeb455c882d9895dbbce361',0,'2011-08-17 20:25:14',1,1),('319413613c2e37b242c5b5effb5c851f',0,'2011-08-17 20:24:05',1,1),('31968ce7661e9071c5e1ff78dfb95ab5',0,'2011-08-17 20:28:53',1,1),('332f8a529cdfac55856eb8c9fb9e43d5',0,'2011-08-18 01:13:23',2,1),('3456b5985138049e7d1b3085b24b90c4',0,'2011-08-18 15:23:49',1,1),('354b4e59dafb441da75ede423c833db4',0,'2011-08-18 01:18:07',2,1),('38f35148c959189e82aea420914d6f1a',0,'2011-08-18 15:20:32',1,1),('39367bd9ddbf95503ab47245b0949b00',0,'2011-08-17 20:35:58',1,1),('3964bb0066c7a917f57ca07b62415e2e',0,'2011-08-17 21:10:59',1,1),('39edc42f7bf457722f700c1867846112',0,'2011-08-18 16:04:44',1,1),('3ca3dd7043cb2c7dcd00957aea69555c',0,'2011-08-17 20:58:56',1,1),('3d79f905c7855abaf011c7892fd24927',0,'2011-08-18 01:09:34',1,1),('3db81e2ff31c2d24bfbcfaf720e444cd',0,'2011-08-18 01:16:25',2,1),('409afc20f4c937ffd3d9f2fd3efed025',0,'2011-08-17 20:30:43',1,1),('409d85810091b2dbd4b790657836f7be',0,'2011-08-17 20:36:49',1,1),('411072241e1cbc84ed19174a81cf9dd7',0,'2011-08-18 01:13:29',2,1),('41a378da22e70079c68f77f97b6acce7',0,'2011-08-18 01:08:34',1,1),('41cc4be4c92b53711f1885a02722ef17',0,'2011-08-18 01:09:24',1,1),('4521e390611182815954ebb8cfcb4388',0,'2011-08-18 01:11:31',1,1),('4582a1372dc932c52d94a231158fbf9b',0,'2011-08-18 01:10:00',1,1),('46c41e8420c0cfa690a000938a25159a',0,'2011-08-18 01:15:24',2,1),('49f3da8efa33282dd19aaa936cf2dff0',0,'2011-08-18 01:27:42',1,1),('4c591fe316b3536f276241f28f8f2dbf',0,'2011-08-17 20:37:08',1,1),('4d188f28b018dba66bc05f9f2c91a855',0,'2011-08-18 14:36:44',1,1),('4e839e2adbfed96eb950d25b3b41a7b3',0,'2011-08-18 01:13:46',2,1),('504cbb155c0273a39c747d730c5b7add',0,'2011-08-18 01:08:17',1,1),('50e782a7a77fd5100c3832d8b69de6f7',0,'2011-08-17 20:29:25',1,1),('51e3e95fd865368a4c8117226784f5fe',0,'2011-08-18 01:14:21',2,1),('52493ccb16398aba5a4240f6790e4c3e',0,'2011-08-18 01:12:40',2,1),('53077e5bc30694bc533d4b2595881a2e',0,'2011-08-17 20:24:10',1,1),('5335b558689e961efc71b17a1867a963',0,'2011-08-17 22:23:00',1,1),('54e8b61030e33cffa2ad749f66bc3f12',0,'2011-08-17 20:29:55',1,1),('55e3a4e24bb34fb0e872400af3fa5deb',0,'2011-08-18 01:12:51',2,1),('5614309c9e5d0f1a0b45cd691d7e8809',0,'2011-08-17 20:27:09',1,1),('561d48e4435bf4b6bb60ec12727d259d',0,'2011-08-18 01:14:35',2,1),('564fbc3492c797ec7c7f82bf94a50cd8',0,'2011-08-17 20:28:54',1,1),('57cdaf4fbdc3b586a1b486f10b773610',0,'2011-08-18 14:35:49',1,1),('597b7ee58365c6384145682909673cd4',0,'2011-08-18 01:10:41',1,1),('5ae380893a0aa4cd0235168989d82ce9',0,'2011-08-17 20:54:57',1,1),('5d9ae8dc065068c0e496443165ef2205',0,'2011-08-18 01:27:46',1,1),('5ddf1da8facc7e888ba443a082152e71',0,'2011-08-18 01:15:06',2,1),('5ef0cd9ee1f1ccf82f5748bc726a94e2',0,'2011-08-18 15:23:24',1,1),('6154c8c1b8d7f06ff173e46f8bc06270',0,'2011-08-18 01:27:34',1,1),('63895eccfdd61ec7276c3b390ab2b9e4',0,'2011-08-18 01:18:48',2,1),('63f929580bfb50d4cf1b18c9cd575f88',0,'2011-08-18 01:34:39',1,1),('66ca1ecab347ff89520740ad481a7436',0,'2011-08-17 21:04:56',1,1),('66e6bb6be18af853614e17e9031f28da',0,'2011-08-17 20:28:06',1,1),('675eb35f434492fccd00eff6f86beb19',0,'2011-08-18 01:12:50',2,1),('687372eb6e27064bc2c1f79fcf247746',0,'2011-08-17 20:36:08',1,1),('68f084e919ff4eb5b6e1a99b66e65ca1',0,'2011-08-18 01:15:04',2,1),('6af29acb4d0bf4e8e4238cdb4bc21e69',0,'2011-08-18 01:19:22',1,1),('6cf82de2787b98b57abdf116d022c829',0,'2011-08-17 20:26:11',1,1),('6e1784f96d4e1a7607c1ee54801671d4',0,'2011-08-18 01:10:04',1,1),('71147d23b77430a8338b96c77a751a07',0,'2011-08-18 01:09:01',1,1),('71e166dbfac27b9c1e6076e227e73eb1',0,'2011-08-18 14:36:38',1,1),('7260edd5cc26fca6391f6e9f05c50346',0,'2011-08-18 14:35:47',1,1),('74341328b0e7b57fc8288a5e3cf3cece',0,'2011-08-18 01:11:58',2,1),('744ba9207657f5f61ddd50ff63ab131b',0,'2011-08-18 01:09:46',1,1),('746793f2fd55092b3e2d1fbdd68bffe3',0,'2011-08-18 01:17:54',2,1),('750846c3f548e1bb28c310f107fcf9bf',0,'2011-08-18 01:13:23',2,1),('758767dcd7aa5c6f6c1db24e4ad6f778',0,'2011-08-18 01:11:19',1,1),('75ebcf611b5758041c80dda36df2e92a',0,'2011-08-17 20:31:25',1,1),('7707db9536d666d61c35cefad908ab0d',0,'2011-08-18 01:10:20',1,1),('773aacdb5412e345e91360e56370d417',0,'2011-08-17 20:55:15',1,1),('79488b73a5893ad39ce3723ccc12e7f5',0,'2011-08-17 22:23:11',1,1),('7a52833590572f3b7a240897ea1fd3b4',0,'2011-08-18 14:36:47',1,1),('7ae54da1212040e6fb98adfab9709126',0,'2011-08-18 16:04:57',1,1),('7fa10808731f3bb8e459306fe61ee4b9',0,'2011-08-18 01:09:46',1,1),('7fc2f33d1b4e762642e286dbf65f27ce',0,'2011-08-17 21:00:50',1,1),('8116e3085db1feb471f716b554e9089a',0,'2011-08-17 21:10:30',1,1),('8955355fcb72992245e28e65b88aaabb',0,'2011-08-18 01:23:30',1,1),('8a6322322d19d8c37691af4a6a0d7c38',0,'2011-08-18 16:04:57',1,1),('8aeb6f7bd0c279bd166f94bcc03a41b9',0,'2011-08-18 01:27:25',1,1),('8d909cdef05753b98ce86254b5343736',0,'2011-08-17 20:55:10',1,1),('8dee88252476e97ef0fd0d200282e8f2',0,'2011-08-18 15:23:22',1,1),('8e6f53cfd854c67c81027e0a866adcad',0,'2011-08-18 01:12:52',2,1),('8f4cce9afff5d723b7013df317fd035e',0,'2011-08-17 20:30:20',1,1),('912a375ac74f8eca327a13d374038949',0,'2011-08-17 20:58:46',1,1),('921587de6ba0d8778852a1cfba8751c9',0,'2011-08-18 14:35:15',1,1),('9351e7650b1496825233632b57dd9d54',0,'2011-08-18 15:23:30',1,1),('9687b1f817c53060d731a18195338196',0,'2011-08-17 20:27:09',1,1),('984c259ade7053283cc889853a13f7e0',0,'2011-08-18 01:16:27',2,1),('996cf3752cc7db3ce4b58445ba77aa80',0,'2011-08-18 01:28:13',1,1),('9aa283158c0afcdd8c99fcd9a38be79a',0,'2011-08-17 20:55:01',1,1),('9abc0633e7cdaa35bcc92f58b59fd50a',0,'2011-08-18 01:24:04',1,1),('9c00e34407bdf106c7c11eab88cfde9c',0,'2011-08-17 21:10:51',1,1),('9e1fe3ce5266cda641a4317168cb81f7',0,'2011-08-18 01:18:50',2,1),('a28f7fe74c3ba7fc430c78aa81db57bc',0,'2011-08-18 14:38:10',1,1),('a2965fdba56ff4f4320a2ff139547fe0',0,'2011-08-17 20:31:49',1,1),('a29f636d914c4f1f0cc8a63e3e63ad4c',0,'2011-08-18 14:38:17',1,1),('a39bf33f33436858dfef04223653203a',0,'2011-08-18 01:15:04',2,1),('a47766b2b18660f636a6887285286a29',0,'2011-08-18 01:09:57',1,1),('a643f2b594467c4950e0c8dffbc7e1e6',0,'2011-08-18 14:36:30',1,1),('a75ac6e3566ffb3394e6610b74f2d888',0,'2011-08-18 01:14:18',2,1),('a781dd3f65ec646030c4cb740b1ee553',0,'2011-08-18 01:27:37',1,1),('a821f55b04ae82ac41ddffd8b2df6059',0,'2011-08-18 01:15:26',2,1),('a96d59ce482246f488fb4878b12b6223',0,'2011-08-17 20:37:33',1,1),('a9beb5ec7912598f191ebcdf78a3b426',0,'2011-08-18 15:23:23',1,1),('a9c95e714289c76dae3b318426cd2f46',0,'2011-08-18 15:23:18',1,1),('aa875fe37853324260fed13214e48c75',0,'2011-08-18 01:18:49',2,1),('acc1b9fa4907576f9ce15e08e89e8d74',0,'2011-08-18 14:36:41',1,1),('ae3205ceb3da0f6c0ea80aae0393212d',0,'2011-08-18 16:04:45',1,1),('af205e0c7688c50078ccf7972d54d701',0,'2011-08-18 01:19:32',1,1),('af7213fc0e4408337a67911099248831',0,'2011-08-18 14:38:23',1,1),('b0511163d8b9f4436dae3573b55723b4',0,'2011-08-17 21:10:51',1,1),('b2899fbffea3b41e0ea11f4dc25f0ea7',0,'2011-08-18 01:10:08',1,1),('b3a9db9ee06752952f7a5c86df265613',0,'2011-08-18 01:09:14',1,1),('b43f64d3a504a3f8d01b4e1e9765b064',0,'2011-08-17 21:03:39',1,1),('b4f5dde98b9bc116cda0b6049c4908c2',0,'2011-08-17 20:27:27',1,1),('b5178b90bddf3f82dfa38d5bb4497682',0,'2011-08-17 20:31:37',1,1),('b86f17fbac9b6bc6335af9dfddd15209',0,'2011-08-18 01:19:22',1,1),('ba6ce6f3e085c19932230318d25ffed6',0,'2011-08-17 20:38:18',1,1),('baf4614c5cd946b047846ea165d67966',0,'2011-08-18 16:04:54',1,1),('be16026b1bbf2e6388811a47964cec13',0,'2011-08-18 01:14:17',2,1),('bf064b1922ef5df9d1d8f58dd5af27f8',0,'2011-08-17 21:03:21',1,1),('c3db98a8911d4de352ec94baa161e24d',0,'2011-08-18 01:14:16',2,1),('c40f905a746003fdf0a9840dc94fb10b',0,'2011-08-18 01:18:05',2,1),('c434bf3862a78f61596637c034841dea',0,'2011-08-18 01:27:34',1,1),('c47a15397c87be509ef3ced019cdde88',0,'2011-08-18 01:19:23',1,1),('c50a5cb36e0a928a5297995ac595278b',0,'2011-08-18 01:24:03',1,1),('c5688efe28b762eeb36cea4ca0688c68',0,'2011-08-18 01:27:52',1,1),('c6ecff21055929b8fcd3c382150e7d0b',0,'2011-08-18 01:23:26',1,1),('c7073c328fe9fac0dc406e12cc85f784',0,'2011-08-18 01:09:19',1,1),('c76998f94286fb23fb3e539a9f786fd4',0,'2011-08-18 14:36:24',1,1),('c97816873a8c3af1ef49e936cd587262',0,'2011-08-18 01:28:20',1,1),('ca99045836f6af24ca4aa2b2e60c2554',0,'2011-08-17 20:23:54',1,1),('cb401702b6754a7ad010db7b0cc50217',0,'2011-08-18 01:16:25',2,1),('cdd7de0ae81c7ce38e2f00e4d3db01bd',0,'2011-08-17 20:35:46',1,1),('ce91ea486a770598fe92e9fe13b9693c',0,'2011-08-18 15:23:35',1,1),('cf4be393617db9097a42293584df63eb',0,'2011-08-18 01:14:35',2,1),('cfa93e0260fac45e8c1aafa17ccda513',0,'2011-08-17 20:24:13',1,1),('d2fff66845ecebb3e25f54cdb0b189c3',0,'2011-08-18 01:10:56',1,1),('d34dd9682acbbd53d2a8e371215b42c2',0,'2011-08-18 14:38:31',1,1),('d4e16cc05d79ce796887f9a8085c372c',0,'2011-08-17 20:25:13',1,1),('d4f5842a9e01ed5432f5b42f3431e807',0,'2011-08-18 01:19:47',1,1),('d61705129fd609ca85cc75f9d31361d3',0,'2011-08-17 20:59:04',1,1),('d678199751b07e10b67f47bdfd819055',0,'2011-08-18 15:23:19',1,1),('d7cc11a58255fbe18c25e52a02416065',0,'2011-08-18 01:27:27',1,1),('d9df2815c3a02925e9adc30587783af1',0,'2011-08-17 20:30:38',1,1),('dca35740ce51749fe2444bdc6cfe3a76',0,'2011-08-18 14:36:48',1,1),('dca88029b53a7f82766dfa9787658c85',0,'2011-08-18 01:19:19',1,1),('dd3a9ab62517a507955515b65519f003',0,'2011-08-18 01:14:17',2,1),('dd61ee1177b15024a759655a438e4a53',0,'2011-08-18 01:24:21',1,1),('ddc6f0281319038e378356382ce669a1',0,'2011-08-17 20:39:59',1,1),('de66942ab4dac038b0586ddfbdcacb4d',0,'2011-08-17 20:28:30',1,1),('df316ba6714bc198acdfc946a607dc15',0,'2011-08-18 14:38:15',1,1),('e1eb693ad9c8092de655ec9c56e0272b',0,'2011-08-18 01:15:15',2,1),('e247c69c421c69e22a8c593f65767418',0,'2011-08-17 20:31:07',1,1),('e2e0f331a589484bfa48e926dc26d7f9',0,'2011-08-17 20:26:59',1,1),('e38ac2c6514e9fa29f1eb9a34a79a838',0,'2011-08-18 01:15:25',2,1),('e5a973ca66a26e80476328eeabc15e6f',0,'2011-08-18 01:17:55',2,1),('e61c876a3e2657844494dd402bb3c96c',0,'2011-08-18 01:23:30',1,1),('e6538a4f35866000031ec02c02054b44',0,'2011-08-17 21:05:35',1,1),('e6efa50bf7e52c04e5e9480bc4f0fdf6',0,'2011-08-18 01:12:24',2,1),('e7d16536e68216d16b939f5278856110',0,'2011-08-17 20:31:09',1,1),('e8f0a0923bda0f14d733f7b3dbaba4be',0,'2011-08-17 22:23:08',1,1),('ea53017b66b1251f290a3942347ad0d6',0,'2011-08-17 20:25:27',1,1),('eb2ffc0d0d5d50ce8921ab8be96b12ad',0,'2011-08-17 20:26:57',1,1),('ec8c1ed9100b0ec608b65c1aa25b79f3',0,'2011-08-17 21:11:01',1,1),('eca67026e566d1499ed60ac14ce45797',0,'2011-08-18 01:18:34',2,1),('ee98bef5142a199e27706ab26351b56a',0,'2011-08-17 20:23:59',1,1),('eefc986fc7b64a2b2c46de98c5b88380',0,'2011-08-17 20:25:57',1,1),('f0cf814c91d4292d3d5fcfd14c7802d1',0,'2011-08-17 21:01:29',1,1),('f25facbfa8ceea20125cbd25481dcab2',0,'2011-08-18 16:04:44',1,1),('f38eb6ac57ea355728a2c472502fe344',0,'2011-08-17 20:36:08',1,1),('f41b2f65a7600b2899faec9da85c5e48',0,'2011-08-17 20:55:05',1,1),('f57fb123818ccfbe3e82f2dab5dbad3a',0,'2011-08-17 20:27:36',1,1),('f60e69012767d94fa47ee2e5c639d25c',0,'2011-08-18 01:09:12',1,1),('f67bbe1e871b4dc26b5ce01b4bb50623',0,'2011-08-18 14:35:02',1,1),('f6d2a0a9d3a52ed839ac7ab32028f39b',0,'2011-08-18 01:19:51',1,1),('f85d27ee2f48eee7928fe78e9063f721',0,'2011-08-18 14:38:19',1,1),('f8fc4eca4930e69e5d624b6601599c14',0,'2011-08-18 01:14:46',2,1),('f916f685f1762db252707a51cdf67770',0,'2011-08-17 21:02:17',1,1),('f92a917612fdd9b0017e0dec769422f0',0,'2011-08-18 01:09:43',1,1),('fc6eed2b45816e88aa84089abb2bc62f',0,'2011-08-18 16:04:42',1,1),('fcd7f0c23511d23877ae67b4d84ae20d',0,'2011-08-17 20:27:35',1,1),('fd1274dff198bd4f8aae70c9f65124f8',0,'2011-08-18 14:39:09',1,1),('fd31475dce10af447e30da08b2d26a38',0,'2011-08-18 01:14:37',2,1),('fe8f0769201e0130b6d8ebaaadf813d9',0,'2011-08-18 01:13:47',2,1),('fe9ee836d4413fa542e49f37b1f9f6b7',0,'2011-08-18 01:09:05',1,1),('feeaee9810069a4b964a6e9013574cea',0,'2011-08-17 20:38:37',1,1);

--
-- Table structure for table `settings`
--

CREATE TABLE `settings` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `tenant_id` bigint(20) NOT NULL,
  `name` varchar(32) NOT NULL,
  `value` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `name` (`name`),
  KEY `tenant_id` (`tenant_id`,`name`)
) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `settings`
--

INSERT INTO `settings` VALUES (1,1,'dash_rss',''),(2,1,'theme',''),(3,1,'version','1.0.3'),(4,1,'iphone_theme',''),(5,1,'enable_sandbox_number','1'),(6,1,'twilio_endpoint','https://api.twilio.com/2010-04-01'),(7,1,'recording_host',''),(8,1,'twilio_sid','AC029a65932d6fcacffc41f26ff125dbb7'),(9,1,'twilio_token','02c91a477cc5d931be6847a93a7f34ba'),(10,1,'from_email','admin@zigsbyskitchen.com'),(11,1,'trial_number','(415) 599-2671'),(12,1,'schema-version','52'),(13,1,'rewrite_enabled','1'),(14,1,'application_sid','AP0a7931ee0ab2a43158ef9d6e88a0bfce');

--
-- Table structure for table `tenants`
--

CREATE TABLE `tenants` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `url_prefix` varchar(255) NOT NULL,
  `local_prefix` varchar(1000) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `name` (`name`),
  KEY `url_prefix` (`url_prefix`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `tenants`
--

INSERT INTO `tenants` VALUES (1,'default','','',1);

--
-- Table structure for table `user_annotations`
--

CREATE TABLE `user_annotations` (
  `user_id` int(11) NOT NULL,
  `annotation_id` bigint(20) NOT NULL,
  `tenant_id` bigint(20) NOT NULL,
  PRIMARY KEY (`user_id`,`annotation_id`),
  KEY `tenant_id` (`tenant_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `user_annotations`
--


--
-- Table structure for table `user_messages`
--

CREATE TABLE `user_messages` (
  `user_id` int(11) NOT NULL,
  `message_id` int(11) NOT NULL,
  `tenant_id` bigint(20) NOT NULL,
  PRIMARY KEY (`user_id`,`message_id`),
  KEY `tenant_id` (`tenant_id`),
  KEY `message_id` (`message_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `user_messages`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `is_admin` tinyint(1) DEFAULT NULL,
  `is_active` tinyint(1) DEFAULT '1',
  `first_name` varchar(100) DEFAULT NULL,
  `last_name` varchar(100) DEFAULT NULL,
  `password` varchar(40) DEFAULT NULL,
  `invite_code` varchar(32) DEFAULT NULL,
  `email` varchar(200) DEFAULT NULL,
  `pin` varchar(40) DEFAULT NULL,
  `notification` varchar(20) DEFAULT NULL,
  `auth_type` tinyint(4) NOT NULL DEFAULT '1',
  `voicemail` text NOT NULL,
  `tenant_id` bigint(20) NOT NULL,
  `last_seen` datetime DEFAULT NULL,
  `last_login` datetime DEFAULT NULL,
  `online` tinyint(1) NOT NULL DEFAULT '9',
  PRIMARY KEY (`id`),
  UNIQUE KEY `email` (`email`,`tenant_id`),
  KEY `tenant_id` (`tenant_id`),
  KEY `auth_type` (`auth_type`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,1,1,'Chris','C','10320d0afe5e4bc866562da590ba6d06f7092496','10320d0afe5e4bc866562da590ba6d06','admin@zigsbyskitchen.com',NULL,NULL,1,'Please leave a message after the beep.',1,'2011-08-18 16:05:18','2011-08-18 16:04:41',0),(2,0,1,'Steve','L','d827e7dc3d18e46226aa1fc13923cf325cf12a94','d827e7dc3d18e46226aa1fc13923cf32','admin@interactivestores.com',NULL,NULL,1,'',1,'2011-08-18 01:18:50','2011-08-18 01:11:58',9);


