From 2ae46b2427a01224183799e31b9a334da949418c Mon Sep 17 00:00:00 2001 From: Sujit Prasad Date: Thu, 1 Oct 2015 16:37:22 +0530 Subject: [PATCH] Update demodatabase.sql database updated --- DB/demodatabase.sql | 843 +++++++++++++++++++++++++------------------- 1 file changed, 471 insertions(+), 372 deletions(-) diff --git a/DB/demodatabase.sql b/DB/demodatabase.sql index b732bf315..40abf2176 100644 --- a/DB/demodatabase.sql +++ b/DB/demodatabase.sql @@ -3,7 +3,7 @@ -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 --- Generation Time: May 01, 2015 at 10:59 AM +-- Generation Time: Oct 01, 2015 at 04:01 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 @@ -17,7 +17,7 @@ SET time_zone = "+00:00"; /*!40101 SET NAMES utf8 */; -- --- Database: `demodatabase` +-- Database: `faveohelpdesk` -- -- -------------------------------------------------------- @@ -37,7 +37,6 @@ CREATE TABLE IF NOT EXISTS `access` ( `bind_agent_ip` tinyint(1) NOT NULL, `reg_require` tinyint(1) NOT NULL, `quick_access` tinyint(1) NOT NULL, - `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) @@ -47,8 +46,8 @@ CREATE TABLE IF NOT EXISTS `access` ( -- Dumping data for table `access` -- -INSERT INTO `access` (`id`, `password_expire`, `reg_method`, `user_session`, `agent_session`, `reset_ticket_expire`, `password_reset`, `bind_agent_ip`, `reg_require`, `quick_access`, `remember_token`, `created_at`, `updated_at`) VALUES -(1, '2', '1', 'eer', '', '', 0, 0, 0, 0, NULL, '2015-03-12 06:20:20', '2015-04-09 01:25:10'); +INSERT INTO `access` (`id`, `password_expire`, `reg_method`, `user_session`, `agent_session`, `reset_ticket_expire`, `password_reset`, `bind_agent_ip`, `reg_require`, `quick_access`, `created_at`, `updated_at`) VALUES +(1, '', '', '', '', '', 0, 0, 0, 0, '2015-10-01 05:00:00', '2015-10-01 05:00:00'); -- -------------------------------------------------------- @@ -87,7 +86,6 @@ CREATE TABLE IF NOT EXISTS `alert_notice` ( `system_error` tinyint(1) NOT NULL, `sql_error` tinyint(1) NOT NULL, `excessive_failure` tinyint(1) NOT NULL, - `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) @@ -97,8 +95,8 @@ CREATE TABLE IF NOT EXISTS `alert_notice` ( -- Dumping data for table `alert_notice` -- -INSERT INTO `alert_notice` (`id`, `ticket_status`, `ticket_admin_email`, `ticket_department_manager`, `ticket_department_member`, `ticket_organization_accmanager`, `message_status`, `message_last_responder`, `message_assigned_agent`, `message_department_manager`, `message_organization_accmanager`, `internal_status`, `internal_last_responder`, `internal_assigned_agent`, `internal_department_manager`, `assignment_status`, `assignment_assigned_agent`, `assignment_team_leader`, `assignment_team_member`, `transfer_status`, `transfer_assigned_agent`, `transfer_department_manager`, `transfer_department_member`, `overdue_status`, `overdue_assigned_agent`, `overdue_department_manager`, `overdue_department_member`, `system_error`, `sql_error`, `excessive_failure`, `remember_token`, `created_at`, `updated_at`) VALUES -(1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, NULL, '0000-00-00 00:00:00', '2015-04-09 01:25:38'); +INSERT INTO `alert_notice` (`id`, `ticket_status`, `ticket_admin_email`, `ticket_department_manager`, `ticket_department_member`, `ticket_organization_accmanager`, `message_status`, `message_last_responder`, `message_assigned_agent`, `message_department_manager`, `message_organization_accmanager`, `internal_status`, `internal_last_responder`, `internal_assigned_agent`, `internal_department_manager`, `assignment_status`, `assignment_assigned_agent`, `assignment_team_leader`, `assignment_team_member`, `transfer_status`, `transfer_assigned_agent`, `transfer_department_manager`, `transfer_department_member`, `overdue_status`, `overdue_assigned_agent`, `overdue_department_manager`, `overdue_department_member`, `system_error`, `sql_error`, `excessive_failure`, `created_at`, `updated_at`) VALUES +(1, 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, '2015-10-01 05:00:00', '2015-10-01 05:00:00'); -- -------------------------------------------------------- @@ -111,9 +109,8 @@ CREATE TABLE IF NOT EXISTS `auto_response` ( `new_ticket` tinyint(1) NOT NULL, `agent_new_ticket` tinyint(1) NOT NULL, `submitter` tinyint(1) NOT NULL, - `partcipants` tinyint(1) NOT NULL, + `participants` tinyint(1) NOT NULL, `overlimit` tinyint(1) NOT NULL, - `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) @@ -123,8 +120,8 @@ CREATE TABLE IF NOT EXISTS `auto_response` ( -- Dumping data for table `auto_response` -- -INSERT INTO `auto_response` (`id`, `new_ticket`, `agent_new_ticket`, `submitter`, `partcipants`, `overlimit`, `remember_token`, `created_at`, `updated_at`) VALUES -(1, 1, 0, 0, 0, 0, NULL, '0000-00-00 00:00:00', '2015-04-09 01:25:23'); +INSERT INTO `auto_response` (`id`, `new_ticket`, `agent_new_ticket`, `submitter`, `participants`, `overlimit`, `created_at`, `updated_at`) VALUES +(1, 0, 0, 0, 0, 0, '2015-10-01 05:00:00', '2015-10-01 05:00:00'); -- -------------------------------------------------------- @@ -134,10 +131,9 @@ INSERT INTO `auto_response` (`id`, `new_ticket`, `agent_new_ticket`, `submitter` CREATE TABLE IF NOT EXISTS `banlist` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `ban_status` varchar(10) COLLATE utf8_unicode_ci NOT NULL, + `ban_status` tinyint(1) NOT NULL, `email_address` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `internal_notes` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) @@ -159,7 +155,7 @@ CREATE TABLE IF NOT EXISTS `company` ( `offline_page` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `thank_page` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `logo` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, + `use_logo` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) @@ -169,8 +165,8 @@ CREATE TABLE IF NOT EXISTS `company` ( -- Dumping data for table `company` -- -INSERT INTO `company` (`id`, `company_name`, `website`, `phone`, `address`, `landing_page`, `offline_page`, `thank_page`, `logo`, `remember_token`, `created_at`, `updated_at`) VALUES -(1, 'D company1', 'https://www.dcompany.com', '9999999999', 'wqfsdfds', '0', '0', '0', '1195.logo1.png', NULL, '2015-03-12 06:20:21', '2015-04-21 03:27:56'); +INSERT INTO `company` (`id`, `company_name`, `website`, `phone`, `address`, `landing_page`, `offline_page`, `thank_page`, `logo`, `use_logo`, `created_at`, `updated_at`) VALUES +(1, '', '', '', '', '', '', '', '', '', '2015-10-01 05:00:00', '2015-10-01 05:00:00'); -- -------------------------------------------------------- @@ -179,10 +175,10 @@ INSERT INTO `company` (`id`, `company_name`, `website`, `phone`, `address`, `lan -- CREATE TABLE IF NOT EXISTS `date_format` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `format` varchar(225) NOT NULL, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `format` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=11 ; -- -- Dumping data for table `date_format` @@ -203,23 +199,23 @@ INSERT INTO `date_format` (`id`, `format`) VALUES -- -------------------------------------------------------- -- --- Table structure for table `date_time-format` +-- Table structure for table `date_time_format` -- -CREATE TABLE IF NOT EXISTS `date_time-format` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `format` varchar(225) NOT NULL, +CREATE TABLE IF NOT EXISTS `date_time_format` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `format` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=10 ; -- --- Dumping data for table `date_time-format` +-- Dumping data for table `date_time_format` -- -INSERT INTO `date_time-format` (`id`, `format`) VALUES +INSERT INTO `date_time_format` (`id`, `format`) VALUES (1, 'd/m/Y H:i:s'), -(2, 'd.m.Y  H:i:s'), -(3, 'd-m-Y  H:i:s'), +(2, 'd.m.Y H:i:s'), +(3, 'd-m-Y H:i:s'), (4, 'm/d/Y H:i:s'), (5, 'm.d.Y H:i:s'), (6, 'm-d-Y H:i:s'), @@ -234,33 +230,33 @@ INSERT INTO `date_time-format` (`id`, `format`) VALUES -- CREATE TABLE IF NOT EXISTS `department` ( - `id` int(10) NOT NULL AUTO_INCREMENT, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `type` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, - `sla` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `manager` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `ticket_assignment` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, - `outgoing_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `template_set` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `auto_ticket_response` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, - `auto_message_response` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, - `auto_response_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `recipient` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `group_access` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `department_sign` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, + `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `sla` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `manager` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `ticket_assignment` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `outgoing_email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `template_set` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `auto_ticket_response` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `auto_message_response` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `auto_response_email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `recipient` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `group_access` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `department_sign` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=18 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Dumping data for table `department` -- -INSERT INTO `department` (`id`, `name`, `type`, `sla`, `manager`, `ticket_assignment`, `outgoing_email`, `template_set`, `auto_ticket_response`, `auto_message_response`, `auto_response_email`, `recipient`, `group_access`, `department_sign`, `remember_token`, `created_at`, `updated_at`) VALUES -(10, 'department 1', '1', '12 Hours', 'new', '1', 'support@dcompany.com', 'template1', NULL, NULL, 'support@dcompany.com', '2', 'on', 'eewfdd', NULL, '2015-03-17 07:38:27', '2015-04-24 03:51:44'), -(17, 'jhggjggg', '1', '12 Hours', 'new', '1', 'support@dcompany.com', 'template1', '1', '1', 'support@dcompany.com', '2', NULL, '', NULL, '2015-04-24 05:49:22', '2015-04-24 05:49:22'); +INSERT INTO `department` (`id`, `name`, `type`, `sla`, `manager`, `ticket_assignment`, `outgoing_email`, `template_set`, `auto_ticket_response`, `auto_message_response`, `auto_response_email`, `recipient`, `group_access`, `department_sign`, `created_at`, `updated_at`) VALUES +(1, 'Support', '', '', '', '', '', '', '', '', '', '', '', '', '2015-10-01 04:59:59', '2015-10-01 04:59:59'), +(2, 'Sales', '', '', '', '', '', '', '', '', '', '', '', '', '2015-10-01 04:59:59', '2015-10-01 04:59:59'), +(3, 'Operation', '', '', '', '', '', '', '', '', '', '', '', '', '2015-10-01 04:59:59', '2015-10-01 04:59:59'); -- -------------------------------------------------------- @@ -276,12 +272,11 @@ CREATE TABLE IF NOT EXISTS `email` ( `admin_email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `mta` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email_fetching` tinyint(1) NOT NULL, - `strip` varchar(5) COLLATE utf8_unicode_ci NOT NULL, - `separator` varchar(225) COLLATE utf8_unicode_ci NOT NULL, - `all_emails` varchar(5) COLLATE utf8_unicode_ci NOT NULL, - `email_collaborator` varchar(5) COLLATE utf8_unicode_ci NOT NULL, + `strip` tinyint(1) NOT NULL, + `separator` tinyint(1) NOT NULL, + `all_emails` tinyint(1) NOT NULL, + `email_collaborator` tinyint(1) NOT NULL, `attachment` tinyint(1) NOT NULL, - `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) @@ -291,8 +286,8 @@ CREATE TABLE IF NOT EXISTS `email` ( -- Dumping data for table `email` -- -INSERT INTO `email` (`id`, `template`, `sys_email`, `alert_email`, `admin_email`, `mta`, `email_fetching`, `strip`, `separator`, `all_emails`, `email_collaborator`, `attachment`, `remember_token`, `created_at`, `updated_at`) VALUES -(1, 'template1', 'support@dcompany.com', '0', 'support@support.com', '', 1, '1', '--------------------------------', '1', '', 1, NULL, '0000-00-00 00:00:00', '2015-04-09 01:24:37'); +INSERT INTO `email` (`id`, `template`, `sys_email`, `alert_email`, `admin_email`, `mta`, `email_fetching`, `strip`, `separator`, `all_emails`, `email_collaborator`, `attachment`, `created_at`, `updated_at`) VALUES +(1, '', '', '', '', '', 0, 0, 0, 0, 0, 0, '2015-10-01 05:00:00', '2015-10-01 05:00:00'); -- -------------------------------------------------------- @@ -312,10 +307,11 @@ CREATE TABLE IF NOT EXISTS `emails` ( `fetching_host` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `fetching_port` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `mailbox_protocol` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `imap_config` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `folder` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `sending_host` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `sending_port` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `internal_notes` varchar(225) COLLATE utf8_unicode_ci DEFAULT NULL, + `internal_notes` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `auto_response` tinyint(1) NOT NULL, `fetching_status` tinyint(1) NOT NULL, `move_to_folder` tinyint(1) NOT NULL, @@ -324,18 +320,98 @@ CREATE TABLE IF NOT EXISTS `emails` ( `sending_status` tinyint(1) NOT NULL, `authentication` tinyint(1) NOT NULL, `header_spoofing` tinyint(1) NOT NULL, - `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=9 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; + +-- -------------------------------------------------------- -- --- Dumping data for table `emails` +-- Table structure for table `footer` -- -INSERT INTO `emails` (`id`, `email_address`, `email_name`, `department`, `priority`, `help_topic`, `user_name`, `password`, `fetching_host`, `fetching_port`, `mailbox_protocol`, `folder`, `sending_host`, `sending_port`, `internal_notes`, `auto_response`, `fetching_status`, `move_to_folder`, `delete_email`, `do_nothing`, `sending_status`, `authentication`, `header_spoofing`, `remember_token`, `created_at`, `updated_at`) VALUES -(8, 'ghasvhx@adas.com', 'sdcsdccd', 'department 1', 'low', 'support query', 'sdcsdcsdcsdcsdc', 'asdassada', 'ssssssss', 'sssssss', 'IMAP+SSL', '', 'sdsddssd', 'sdsdsdsd', 'sddsdds', 1, 1, 0, 0, 0, 0, 0, 1, NULL, '2015-04-24 06:08:38', '2015-04-24 06:08:51'); +CREATE TABLE IF NOT EXISTS `footer` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `footer` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; + +-- +-- Dumping data for table `footer` +-- + +INSERT INTO `footer` (`id`, `title`, `footer`, `created_at`, `updated_at`) VALUES +(1, '', '', '2015-10-01 05:00:00', '2015-10-01 05:00:00'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `footer2` +-- + +CREATE TABLE IF NOT EXISTS `footer2` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `footer` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; + +-- +-- Dumping data for table `footer2` +-- + +INSERT INTO `footer2` (`id`, `title`, `footer`, `created_at`, `updated_at`) VALUES +(1, '', '', '2015-10-01 05:00:00', '2015-10-01 05:00:00'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `footer3` +-- + +CREATE TABLE IF NOT EXISTS `footer3` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `footer` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; + +-- +-- Dumping data for table `footer3` +-- + +INSERT INTO `footer3` (`id`, `title`, `footer`, `created_at`, `updated_at`) VALUES +(1, '', '', '2015-10-01 05:00:00', '2015-10-01 05:00:00'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `footer4` +-- + +CREATE TABLE IF NOT EXISTS `footer4` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `footer` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; + +-- +-- Dumping data for table `footer4` +-- + +INSERT INTO `footer4` (`id`, `title`, `footer`, `created_at`, `updated_at`) VALUES +(1, '', '', '2015-10-01 05:00:00', '2015-10-01 05:00:00'); -- -------------------------------------------------------- @@ -344,26 +420,25 @@ INSERT INTO `emails` (`id`, `email_address`, `email_name`, `department`, `priori -- CREATE TABLE IF NOT EXISTS `form_details` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `form_name_id` int(11) NOT NULL, - `label` varchar(225) NOT NULL, - `type` varchar(225) NOT NULL, - `created_at` timestamp NOT NULL, - `updated_at` timestamp NOT NULL, - PRIMARY KEY (`id`), - KEY `form_name_id` (`form_name_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ; + `label` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=6 ; -- -- Dumping data for table `form_details` -- INSERT INTO `form_details` (`id`, `form_name_id`, `label`, `type`, `created_at`, `updated_at`) VALUES -(2, 2, 'Name', 'text', '2015-04-10 06:56:50', '2015-04-10 06:56:50'), -(3, 2, 'Phone', 'number', '2015-04-10 08:43:00', '2015-04-10 08:43:00'), -(6, 2, 'Email', 'text', '2015-04-13 10:13:54', '2015-04-13 10:13:54'), -(8, 2, 'Subject', 'text', '2015-04-17 10:09:49', '2015-04-17 10:09:49'), -(9, 2, 'Details', 'textarea', '2015-04-17 10:41:15', '2015-04-17 10:41:15'); +(1, 1, 'Name', 'text', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), +(2, 1, 'Phone', 'number', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), +(3, 1, 'Email', 'text', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), +(4, 1, 'Subject', 'text', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), +(5, 1, 'Details', 'textarea', '0000-00-00 00:00:00', '0000-00-00 00:00:00'); -- -------------------------------------------------------- @@ -372,22 +447,21 @@ INSERT INTO `form_details` (`id`, `form_name_id`, `label`, `type`, `created_at`, -- CREATE TABLE IF NOT EXISTS `form_name` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(225) NOT NULL, - `status` varchar(225) NOT NULL, - `no_of_fields` varchar(225) NOT NULL, - `created_at` timestamp NOT NULL, - `updated_at` timestamp NOT NULL, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `no_of_fields` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -- Dumping data for table `form_name` -- INSERT INTO `form_name` (`id`, `name`, `status`, `no_of_fields`, `created_at`, `updated_at`) VALUES -(2, 'from', '1', '2', '2015-04-10 08:42:16', '2015-04-10 08:42:16'), -(3, 'forma', '1', '4', '2015-04-10 09:04:22', '2015-04-10 09:04:22'); +(1, 'form', '1', '5', '0000-00-00 00:00:00', '0000-00-00 00:00:00'); -- -------------------------------------------------------- @@ -396,14 +470,13 @@ INSERT INTO `form_name` (`id`, `name`, `status`, `no_of_fields`, `created_at`, ` -- CREATE TABLE IF NOT EXISTS `form_value` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `form_detail_id` int(11) NOT NULL, - `values` varchar(225) NOT NULL, - `created_at` timestamp NOT NULL, - `updated_at` timestamp NOT NULL, - PRIMARY KEY (`id`), - KEY `form_detail_id` (`form_detail_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; + `values` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- @@ -412,34 +485,35 @@ CREATE TABLE IF NOT EXISTS `form_value` ( -- CREATE TABLE IF NOT EXISTS `groups` ( - `id` int(10) NOT NULL AUTO_INCREMENT, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `group_status` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, - `can_create_ticket` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, - `can_edit_ticket` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, - `can_post_ticket` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, - `can_close_ticket` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, - `can_assign_ticket` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, - `can_trasfer_ticket` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, - `can_delete_ticket` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, - `can_ban_email` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, - `can_manage_canned` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, - `can_manage_faq` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, - `can_view_agent_stats` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, - `department_access` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, + `group_status` tinyint(1) NOT NULL, + `can_create_ticket` tinyint(1) NOT NULL, + `can_edit_ticket` tinyint(1) NOT NULL, + `can_post_ticket` tinyint(1) NOT NULL, + `can_close_ticket` tinyint(1) NOT NULL, + `can_assign_ticket` tinyint(1) NOT NULL, + `can_trasfer_ticket` tinyint(1) NOT NULL, + `can_delete_ticket` tinyint(1) NOT NULL, + `can_ban_email` tinyint(1) NOT NULL, + `can_manage_canned` tinyint(1) NOT NULL, + `can_manage_faq` tinyint(1) NOT NULL, + `can_view_agent_stats` tinyint(1) NOT NULL, + `department_access` tinyint(1) NOT NULL, `admin_notes` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=49 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Dumping data for table `groups` -- -INSERT INTO `groups` (`id`, `name`, `group_status`, `can_create_ticket`, `can_edit_ticket`, `can_post_ticket`, `can_close_ticket`, `can_assign_ticket`, `can_trasfer_ticket`, `can_delete_ticket`, `can_ban_email`, `can_manage_canned`, `can_manage_faq`, `can_view_agent_stats`, `department_access`, `admin_notes`, `remember_token`, `created_at`, `updated_at`) VALUES -(48, 'jhdgfiujh', '1', '1', '1', '1', NULL, '1', NULL, NULL, NULL, '1', '1', NULL, NULL, '', NULL, '2015-04-24 05:51:36', '2015-04-24 05:51:36'); +INSERT INTO `groups` (`id`, `name`, `group_status`, `can_create_ticket`, `can_edit_ticket`, `can_post_ticket`, `can_close_ticket`, `can_assign_ticket`, `can_trasfer_ticket`, `can_delete_ticket`, `can_ban_email`, `can_manage_canned`, `can_manage_faq`, `can_view_agent_stats`, `department_access`, `admin_notes`, `created_at`, `updated_at`) VALUES +(1, 'Group A', 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, '', '2015-10-01 04:59:59', '2015-10-01 04:59:59'), +(2, 'Group B', 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, '', '2015-10-01 04:59:59', '2015-10-01 04:59:59'), +(3, 'Group C', 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, '', '2015-10-01 04:59:59', '2015-10-01 04:59:59'); -- -------------------------------------------------------- @@ -448,16 +522,13 @@ INSERT INTO `groups` (`id`, `name`, `group_status`, `can_create_ticket`, `can_ed -- CREATE TABLE IF NOT EXISTS `group_assign_department` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `group_id` int(11) NOT NULL, `department_id` int(11) NOT NULL, - `created_at` timestamp NOT NULL, - `updated_at` timestamp NOT NULL, - PRIMARY KEY (`id`), - KEY `group_id` (`group_id`), - KEY `department_id` (`department_id`), - KEY `department_id_2` (`department_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; + `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- @@ -466,18 +537,18 @@ CREATE TABLE IF NOT EXISTS `group_assign_department` ( -- CREATE TABLE IF NOT EXISTS `guest_note` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `heading` varchar(225) NOT NULL, - `content` varchar(500) NOT NULL, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `heading` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `content` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -- Dumping data for table `guest_note` -- INSERT INTO `guest_note` (`id`, `heading`, `content`) VALUES -(1, 'Welcome to the Support Center', 'Hello this is a new helpdesk support system ans it is in the development phase.\n'); +(1, 'Welcome to the Support Center', 'Hello this is a new helpdesk support system ans it is in the development phase.'); -- -------------------------------------------------------- @@ -487,33 +558,33 @@ INSERT INTO `guest_note` (`id`, `heading`, `content`) VALUES CREATE TABLE IF NOT EXISTS `help_topic` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `topic` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `topic` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `parent_topic` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `custom_form` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `department` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `ticket_status` tinyint(1) DEFAULT NULL, + `ticket_status` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `priority` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `sla_plan` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `thank_page` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `thank_page` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `ticket_num_format` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `internal_notes` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `status` tinyint(1) NOT NULL, `type` tinyint(1) NOT NULL, - `auto_assign` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `auto_assign` tinyint(1) NOT NULL, `auto_response` tinyint(1) NOT NULL, - `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Dumping data for table `help_topic` -- -INSERT INTO `help_topic` (`id`, `topic`, `parent_topic`, `custom_form`, `department`, `ticket_status`, `priority`, `sla_plan`, `thank_page`, `ticket_num_format`, `internal_notes`, `status`, `type`, `auto_assign`, `auto_response`, `remember_token`, `created_at`, `updated_at`) VALUES -(1, 'support query', 'support query', 'from', 'department 1', 1, 'low', 'sla2', '', '1', '', 0, 1, 'name', 0, NULL, '2015-03-12 06:20:21', '2015-04-22 06:04:05'), -(2, 'sale query', 'support query', 'from', 'department 1', 1, 'low', 'sla2', '', '1', '', 1, 1, 'name1', 1, NULL, '2015-03-12 06:20:22', '2015-04-22 06:01:53'); +INSERT INTO `help_topic` (`id`, `topic`, `parent_topic`, `custom_form`, `department`, `ticket_status`, `priority`, `sla_plan`, `thank_page`, `ticket_num_format`, `internal_notes`, `status`, `type`, `auto_assign`, `auto_response`, `created_at`, `updated_at`) VALUES +(1, 'Support query', 'Support query', '1', '1', '1', '2', '1', '', '1', '', 1, 1, 0, 0, '2015-10-01 04:59:59', '2015-10-01 04:59:59'), +(2, 'Sales query', 'Sale query', '1', '2', '1', '2', '1', '', '1', '', 1, 1, 0, 0, '2015-10-01 04:59:59', '2015-10-01 04:59:59'), +(3, 'Operational query', 'Operational query', '1', '3', '1', '2', '1', '', '1', '', 1, 1, 0, 0, '2015-10-01 04:59:59', '2015-10-01 04:59:59'); -- -------------------------------------------------------- @@ -550,10 +621,10 @@ INSERT INTO `languages` (`id`, `name`, `locale`) VALUES -- CREATE TABLE IF NOT EXISTS `logs` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `level` varchar(225) NOT NULL, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `level` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Dumping data for table `logs` @@ -571,17 +642,17 @@ INSERT INTO `logs` (`id`, `level`) VALUES -- CREATE TABLE IF NOT EXISTS `mailbox_protocol` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(225) DEFAULT NULL, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ; -- -- Dumping data for table `mailbox_protocol` -- INSERT INTO `mailbox_protocol` (`id`, `name`) VALUES -(1, 'IMAP+SSL'), +(1, 'IMAP+SSl'), (2, 'IMAP'), (3, 'POP+SSL'), (4, 'POP'); @@ -604,7 +675,50 @@ CREATE TABLE IF NOT EXISTS `migrations` ( INSERT INTO `migrations` (`migration`, `batch`) VALUES ('2014_10_12_000000_create_users_table', 1), ('2014_10_12_100000_create_password_resets_table', 1), -('2015_03_11_082618_helpdesk', 1); +('2015_05_06_073651_create_footers_table', 1), +('2015_05_06_082026_create_footer2s_table', 1), +('2015_05_06_092125_create_footer3s_table', 1), +('2015_05_06_092132_create_footer4s_table', 1), +('2015_05_06_103949_create_timezone_table', 1), +('2015_05_06_105005_create_ticket_thread_table', 1), +('2015_05_06_110518_create_ticket_status_table', 1), +('2015_05_06_112140_create_ticket_settings_table', 1), +('2015_05_06_114327_create_ticket_priority_table', 1), +('2015_05_06_115133_create_ticket_collaborator_table', 1), +('2015_05_06_115733_create_ticket_attachment_table', 1), +('2015_05_06_120651_create_ticket_table', 1), +('2015_05_06_122431_create_template_table', 1), +('2015_05_06_122830_create_team_assign_agent_table', 1), +('2015_05_06_123154_create_team_table', 1), +('2015_05_06_123624_create_system_table', 1), +('2015_05_06_123928_create_sla_table', 1), +('2015_05_06_125328_create_organization_table', 1), +('2015_05_06_125817_create_mailbox_protocol_table', 1), +('2015_05_06_130627_create_log_table', 1), +('2015_05_06_131238_create_languages_table', 1), +('2015_05_06_132844_create_help_topic_table', 1), +('2015_05_06_133346_create_guest_note_table', 1), +('2015_05_07_040647_create_group_assign_department_table', 1), +('2015_05_07_040934_create_groups_table', 1), +('2015_05_07_041448_create_form_value_table', 1), +('2015_05_07_041459_create_form_name_table', 1), +('2015_05_07_041509_create_form_details_table', 1), +('2015_05_07_043529_create_emails_table', 1), +('2015_05_07_043904_create_email_table', 1), +('2015_05_07_044229_create_department_table', 1), +('2015_05_07_044521_create_date_time_format_table', 1), +('2015_05_07_045158_create_date_format_table', 1), +('2015_05_07_045611_create_company_table', 1), +('2015_05_07_052638_create_banlist_table', 1), +('2015_05_07_052924_create_auto_response_table', 1), +('2015_05_07_053318_create_alert_notice_table', 1), +('2015_05_07_053704_create_access_table', 1), +('2015_05_07_063628_create_time_format_table', 1), +('2015_06_09_062121_create_priority_table', 1), +('2015_07_10_061107_create_ticketsource_table', 1), +('2015_08_10_114142_create_smtp_table', 1), +('2015_09_14_101844_create_users_organization_table', 1), +('2015_09_17_050549_create_version_check_table', 1); -- -------------------------------------------------------- @@ -613,25 +727,17 @@ INSERT INTO `migrations` (`migration`, `batch`) VALUES -- CREATE TABLE IF NOT EXISTS `organization` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(225) NOT NULL, - `phone` varchar(225) NOT NULL, - `website` varchar(225) NOT NULL, - `address` varchar(225) NOT NULL, - `internal_notes` varchar(225) NOT NULL, - `created_at` timestamp NOT NULL, - `updated_at` timestamp NOT NULL, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `website` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `address` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `head` int(11) NOT NULL, + `internal_notes` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; - --- --- Dumping data for table `organization` --- - -INSERT INTO `organization` (`id`, `name`, `phone`, `website`, `address`, `internal_notes`, `created_at`, `updated_at`) VALUES -(1, 'aaaaaa', '9999999999', 'www.www.com', 'India', 'First Input updated', '2015-04-08 04:36:09', '2015-04-08 05:22:38'), -(2, 'bbbbbbbb', '', '', '', '', '2015-04-08 04:46:35', '2015-04-08 04:46:35'), -(3, 'cccccccc', '10', '', '', '', '2015-04-08 04:49:39', '2015-04-08 04:49:39'); +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- @@ -654,10 +760,10 @@ CREATE TABLE IF NOT EXISTS `password_resets` ( -- CREATE TABLE IF NOT EXISTS `priority` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(225) NOT NULL, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ; -- -- Dumping data for table `priority` @@ -669,6 +775,31 @@ INSERT INTO `priority` (`id`, `name`) VALUES -- -------------------------------------------------------- +-- +-- Table structure for table `send_mail` +-- + +CREATE TABLE IF NOT EXISTS `send_mail` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `driver` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `host` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `port` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `encryption` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; + +-- +-- Dumping data for table `send_mail` +-- + +INSERT INTO `send_mail` (`id`, `driver`, `host`, `port`, `encryption`, `name`, `email`, `password`) VALUES +(1, '', '', '', '', '', '', ''); + +-- -------------------------------------------------------- + -- -- Table structure for table `sla_plan` -- @@ -681,21 +812,19 @@ CREATE TABLE IF NOT EXISTS `sla_plan` ( `status` tinyint(1) NOT NULL, `transient` tinyint(1) NOT NULL, `ticket_overdue` tinyint(1) NOT NULL, - `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=8 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Dumping data for table `sla_plan` -- -INSERT INTO `sla_plan` (`id`, `name`, `grace_period`, `admin_note`, `status`, `transient`, `ticket_overdue`, `remember_token`, `created_at`, `updated_at`) VALUES -(1, 'sla 1', '12 Hours', 'sdsxcc', 1, 1, 1, NULL, '2015-03-12 06:20:22', '2015-04-22 06:04:38'), -(3, 'sla2', '6 hours', '', 0, 1, 1, NULL, '0000-00-00 00:00:00', '2015-04-01 02:58:51'), -(5, 'SLA 2', '2 hours', '', 1, 1, 1, NULL, '2015-04-01 02:41:11', '2015-04-01 03:11:56'), -(7, 'kghjbkkjbjkb', 'jkbkjbkjb', 'jbk', 1, 0, 0, NULL, '2015-04-24 06:21:28', '2015-04-24 06:21:28'); +INSERT INTO `sla_plan` (`id`, `name`, `grace_period`, `admin_note`, `status`, `transient`, `ticket_overdue`, `created_at`, `updated_at`) VALUES +(1, 'Sla 1', '6 Hours', '', 1, 0, 0, '2015-10-01 04:59:57', '2015-10-01 04:59:57'), +(2, 'Sla 2', '12 Hours', '', 1, 0, 0, '2015-10-01 04:59:57', '2015-10-01 04:59:57'), +(3, 'Sla 3', '24 Hours', '', 1, 0, 0, '2015-10-01 04:59:57', '2015-10-01 04:59:57'); -- -------------------------------------------------------- @@ -718,8 +847,7 @@ CREATE TABLE IF NOT EXISTS `system` ( `date_time_format` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `day_date_time` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `time_zone` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `content` varchar(500) COLLATE utf8_unicode_ci NOT NULL, - `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, + `content` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) @@ -729,25 +857,8 @@ CREATE TABLE IF NOT EXISTS `system` ( -- Dumping data for table `system` -- -INSERT INTO `system` (`id`, `status`, `url`, `name`, `department`, `page_size`, `log_level`, `purge_log`, `name_format`, `time_farmat`, `date_format`, `date_time_format`, `day_date_time`, `time_zone`, `content`, `remember_token`, `created_at`, `updated_at`) VALUES -(1, 1, 'https://www.google.com', 'faveo 1. 1', 'department 1', '0', '', '0', '0', '', '', '', '', '', '

\n\n

 

\n\n

Welcome to the Support Center

\n\n

In order to streamline support requests and better serve you, we utilize a support ticket system. Every support request is assigned a unique ticket number which you can use to track the progress and responses online. For your reference we provide complete archives and history of all your support requests. A', NULL, '0000-00-00 00:00:00', '2015-04-22 06:09:10'); - --- -------------------------------------------------------- - --- --- Table structure for table `sys_user` --- - -CREATE TABLE IF NOT EXISTS `sys_user` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `email` varchar(225) NOT NULL, - `full_name` varchar(225) NOT NULL, - `phone` varchar(225) NOT NULL, - `internal_notes` varchar(225) NOT NULL, - `created_at` timestamp NOT NULL, - `updated_at` timestamp NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; +INSERT INTO `system` (`id`, `status`, `url`, `name`, `department`, `page_size`, `log_level`, `purge_log`, `name_format`, `time_farmat`, `date_format`, `date_time_format`, `day_date_time`, `time_zone`, `content`, `created_at`, `updated_at`) VALUES +(1, 0, '', '', '', '', '', '', '', '', '', 'd/m/Y H:i', '', 'Asia/Kolkata', '', '2015-10-01 05:00:00', '2015-10-01 05:00:00'); -- -------------------------------------------------------- @@ -756,27 +867,25 @@ CREATE TABLE IF NOT EXISTS `sys_user` ( -- CREATE TABLE IF NOT EXISTS `teams` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `status` tinyint(1) NOT NULL, `team_lead` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `assign_alert` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, + `assign_alert` tinyint(1) NOT NULL, `admin_notes` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - PRIMARY KEY (`id`), - UNIQUE KEY `id` (`id`), - UNIQUE KEY `id_2` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=7 ; + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Dumping data for table `teams` -- -INSERT INTO `teams` (`id`, `name`, `status`, `team_lead`, `assign_alert`, `admin_notes`, `remember_token`, `created_at`, `updated_at`) VALUES -(4, 'team1', 1, 'user 2', '1', 'nothing', NULL, '0000-00-00 00:00:00', '2015-04-22 03:33:49'), -(6, 'team3', 1, 'test', '1', 'don''t', NULL, '0000-00-00 00:00:00', '2015-04-22 03:35:11'); +INSERT INTO `teams` (`id`, `name`, `status`, `team_lead`, `assign_alert`, `admin_notes`, `created_at`, `updated_at`) VALUES +(1, 'Level 1 Support', 0, '', 0, '', '2015-10-01 04:59:59', '2015-10-01 04:59:59'), +(2, 'Level 2 Support', 0, '', 0, '', '2015-10-01 04:59:59', '2015-10-01 04:59:59'), +(3, 'Developer', 0, '', 0, '', '2015-10-01 04:59:59', '2015-10-01 04:59:59'); -- -------------------------------------------------------- @@ -785,16 +894,13 @@ INSERT INTO `teams` (`id`, `name`, `status`, `team_lead`, `assign_alert`, `admin -- CREATE TABLE IF NOT EXISTS `team_assign_agent` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `team_id` int(11) NOT NULL, - `agent_id` int(11) DEFAULT NULL, - `created_at` timestamp NOT NULL, - `updated_at` timestamp NOT NULL, - PRIMARY KEY (`id`), - KEY `team_id` (`team_id`), - KEY `agent_id` (`agent_id`), - KEY `agent_id_2` (`agent_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `team_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `agent_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- @@ -804,50 +910,15 @@ CREATE TABLE IF NOT EXISTS `team_assign_agent` ( CREATE TABLE IF NOT EXISTS `template` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `status` tinyint(1) NOT NULL, `template_set_to_clone` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `language` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `internal_note` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=6 ; - --- --- Dumping data for table `template` --- - -INSERT INTO `template` (`id`, `name`, `status`, `template_set_to_clone`, `language`, `internal_note`, `remember_token`, `created_at`, `updated_at`) VALUES -(1, 'template1', 0, 'template1', 'English', 'svds', NULL, '0000-00-00 00:00:00', '2015-03-23 05:23:47'), -(3, 'template2', 0, '', '', '', NULL, '2015-03-23 04:18:48', '2015-03-23 04:18:48'), -(4, 'qaw', 1, 'template2', 'Dutch', '', NULL, '2015-03-23 04:25:09', '2015-04-01 01:29:00'), -(5, 'er', 1, 'template1', 'English', '', NULL, '2015-03-23 04:26:56', '2015-03-23 05:25:43'); - --- -------------------------------------------------------- - --- --- Table structure for table `ticket` --- - -CREATE TABLE IF NOT EXISTS `ticket` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user_name_id` int(11) NOT NULL, - `department_id` int(11) NOT NULL, - `priority_id` int(11) NOT NULL, - `status_id` int(11) NOT NULL, - `created_date` datetime NOT NULL, - `due_date` datetime NOT NULL, - `last_response` datetime NOT NULL, - `sla_id` int(11) NOT NULL, - `helptopic_id` int(11) NOT NULL, - `last` timestamp NOT NULL, - `reply_due` timestamp NOT NULL, - `created_at` timestamp NOT NULL, - `updated_at` timestamp NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- @@ -858,28 +929,34 @@ CREATE TABLE IF NOT EXISTS `ticket` ( CREATE TABLE IF NOT EXISTS `tickets` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `ticket_number` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `user_id` int(10) NOT NULL, + `user_id` int(11) NOT NULL, `dept_id` int(11) NOT NULL, `sla_id` int(11) NOT NULL, `staff_id` int(11) NOT NULL, `team_id` int(11) NOT NULL, - `priority_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `sla` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `help_topic_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `status` tinyint(1) NOT NULL, + `priority_id` int(11) NOT NULL, + `sla` int(11) NOT NULL, + `help_topic_id` int(11) NOT NULL, + `status` int(11) NOT NULL, `flags` int(11) NOT NULL, `ip_address` int(11) NOT NULL, - `assigned_to` int(10) NOT NULL, - `source` varchar(10) COLLATE utf8_unicode_ci NOT NULL, + `assigned_to` int(11) NOT NULL, + `lock_by` int(11) NOT NULL, + `lock_at` int(11) NOT NULL, + `source` int(11) NOT NULL, `isoverdue` int(11) NOT NULL, - `duedate` datetime NOT NULL, + `duedate` date NOT NULL, `reopened` int(11) NOT NULL, - `isanswered` tinyint(1) NOT NULL, - `html` tinyint(1) NOT NULL, - `is_deleted` tinyint(1) NOT NULL, + `isanswered` int(11) NOT NULL, + `html` int(11) NOT NULL, + `is_deleted` int(11) NOT NULL, `closed` int(11) NOT NULL, - `last_message` varchar(20) COLLATE utf8_unicode_ci NOT NULL, - `last_response` varchar(20) COLLATE utf8_unicode_ci NOT NULL, + `last_message` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `last_response` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `reopened_at` datetime NOT NULL, + `closed_at` datetime NOT NULL, + `last_message_at` datetime NOT NULL, + `last_response_at` datetime NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) @@ -892,16 +969,17 @@ CREATE TABLE IF NOT EXISTS `tickets` ( -- CREATE TABLE IF NOT EXISTS `ticket_attachment` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(225) NOT NULL, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `thread_id` int(11) NOT NULL, - `size` varchar(225) NOT NULL, - `type` varchar(225) NOT NULL, - `file` varchar(225) NOT NULL, - `created_at` timestamp NOT NULL, - `updated_at` timestamp NOT NULL, + `size` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `poster` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `file` mediumblob, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- @@ -910,15 +988,15 @@ CREATE TABLE IF NOT EXISTS `ticket_attachment` ( -- CREATE TABLE IF NOT EXISTS `ticket_collaborator` ( - `id` int(11) NOT NULL AUTO_INCREMENT, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `isactive` tinyint(1) NOT NULL, `ticket_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, - `role` varchar(15) NOT NULL, - `created_at` datetime NOT NULL, - `updated_at` datetime NOT NULL, + `role` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- @@ -927,17 +1005,14 @@ CREATE TABLE IF NOT EXISTS `ticket_collaborator` ( -- CREATE TABLE IF NOT EXISTS `ticket_priority` ( - `priority_id` tinyint(4) NOT NULL AUTO_INCREMENT, - `priority` varchar(60) NOT NULL DEFAULT '', - `priority_desc` varchar(30) NOT NULL DEFAULT '', - `priority_color` varchar(7) NOT NULL DEFAULT '', - `priority_urgency` tinyint(1) unsigned NOT NULL DEFAULT '0', - `ispublic` tinyint(1) NOT NULL DEFAULT '1', - PRIMARY KEY (`priority_id`), - UNIQUE KEY `priority` (`priority`), - KEY `priority_urgency` (`priority_urgency`), - KEY `ispublic` (`ispublic`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ; + `priority_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `priority` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `priority_desc` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `priority_color` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `priority_urgency` tinyint(1) NOT NULL, + `ispublic` tinyint(1) NOT NULL, + PRIMARY KEY (`priority_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ; -- -- Dumping data for table `ticket_priority` @@ -973,7 +1048,6 @@ CREATE TABLE IF NOT EXISTS `ticket_settings` ( `html` tinyint(1) NOT NULL, `client_update` tinyint(1) NOT NULL, `max_file_size` tinyint(1) NOT NULL, - `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) @@ -983,8 +1057,30 @@ CREATE TABLE IF NOT EXISTS `ticket_settings` ( -- Dumping data for table `ticket_settings` -- -INSERT INTO `ticket_settings` (`id`, `num_format`, `num_sequence`, `priority`, `sla`, `help_topic`, `max_open_ticket`, `collision_avoid`, `captcha`, `status`, `claim_response`, `assigned_ticket`, `answered_ticket`, `agent_mask`, `html`, `client_update`, `max_file_size`, `remember_token`, `created_at`, `updated_at`) VALUES -(1, '#####', '0', 'low', '12 Hours', 'sale query', '', '', '', 0, 0, 0, 1, 1, 1, 1, 0, NULL, '0000-00-00 00:00:00', '2015-04-17 06:08:05'); +INSERT INTO `ticket_settings` (`id`, `num_format`, `num_sequence`, `priority`, `sla`, `help_topic`, `max_open_ticket`, `collision_avoid`, `captcha`, `status`, `claim_response`, `assigned_ticket`, `answered_ticket`, `agent_mask`, `html`, `client_update`, `max_file_size`, `created_at`, `updated_at`) VALUES +(1, '#ABCD 1234 1234567', '0', 'low', '12 Hours', 'support query', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, '2015-10-01 04:59:57', '2015-10-01 04:59:57'); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `ticket_source` +-- + +CREATE TABLE IF NOT EXISTS `ticket_source` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `value` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; + +-- +-- Dumping data for table `ticket_source` +-- + +INSERT INTO `ticket_source` (`id`, `name`, `value`) VALUES +(1, 'web', 'Web'), +(2, 'email', 'E-mail'), +(3, 'agent', 'Agent Panel'); -- -------------------------------------------------------- @@ -993,30 +1089,29 @@ INSERT INTO `ticket_settings` (`id`, `num_format`, `num_sequence`, `priority`, ` -- CREATE TABLE IF NOT EXISTS `ticket_status` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(60) NOT NULL DEFAULT '', - `state` varchar(16) DEFAULT NULL, - `mode` int(11) unsigned NOT NULL DEFAULT '0', - `flags` int(11) unsigned NOT NULL DEFAULT '0', - `sort` int(11) unsigned NOT NULL DEFAULT '0', - `properties` text NOT NULL, - `created` datetime NOT NULL, - `updated` datetime NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `name` (`name`), - KEY `state` (`state`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ; + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `state` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `mode` int(11) NOT NULL, + `message` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `flags` int(11) NOT NULL, + `sort` int(11) NOT NULL, + `properties` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=6 ; -- -- Dumping data for table `ticket_status` -- -INSERT INTO `ticket_status` (`id`, `name`, `state`, `mode`, `flags`, `sort`, `properties`, `created`, `updated`) VALUES -(1, 'Open', 'open', 3, 0, 1, 'Open tickets.', '2015-02-17 17:11:01', '0000-00-00 00:00:00'), -(2, 'Resolved', 'closed', 1, 0, 2, 'Resolved tickets.', '2015-02-17 17:11:01', '0000-00-00 00:00:00'), -(3, 'Closed', 'closed', 3, 0, 3, 'Closed tickets. Tickets will still be accessible on client and staff panels.', '2015-02-17 17:11:01', '0000-00-00 00:00:00'), -(4, 'Archived', 'archived', 3, 0, 4, 'Tickets only adminstratively available but no longer accessible on ticket queues and client panel.', '2015-02-17 17:11:01', '0000-00-00 00:00:00'), -(5, 'Deleted', 'deleted', 3, 0, 5, 'Tickets queued for deletion. Not accessible on ticket queues.', '2015-02-17 17:11:01', '0000-00-00 00:00:00'); +INSERT INTO `ticket_status` (`id`, `name`, `state`, `mode`, `message`, `flags`, `sort`, `properties`, `created_at`, `updated_at`) VALUES +(1, 'Open', 'open', 3, 'Ticket have been Reopened by', 0, 1, 'Open tickets.', '2015-10-01 04:59:57', '2015-10-01 04:59:57'), +(2, 'Resolved', 'closed', 1, 'Ticket have been Resolved by', 0, 2, 'Resolved tickets.', '2015-10-01 04:59:57', '2015-10-01 04:59:57'), +(3, 'Closed', 'closed', 3, 'Ticket have been Closed by', 0, 3, 'Closed tickets. Tickets will still be accessible on client and staff panels.', '2015-10-01 04:59:57', '2015-10-01 04:59:57'), +(4, 'Archived', 'archived', 3, 'Ticket have been Archived by', 0, 4, 'Tickets only adminstratively available but no longer accessible on ticket queues and client panel.', '2015-10-01 04:59:57', '2015-10-01 04:59:57'), +(5, 'Deleted', 'deleted', 3, 'Ticket have been Deleted by', 0, 5, 'Tickets queued for deletion. Not accessible on ticket queues.', '2015-10-01 04:59:57', '2015-10-01 04:59:57'); -- -------------------------------------------------------- @@ -1025,33 +1120,30 @@ INSERT INTO `ticket_status` (`id`, `name`, `state`, `mode`, `flags`, `sort`, `pr -- CREATE TABLE IF NOT EXISTS `ticket_thread` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT, - `pid` int(11) unsigned NOT NULL DEFAULT '0', - `ticket_id` int(11) unsigned NOT NULL DEFAULT '0', - `staff_id` int(11) unsigned NOT NULL DEFAULT '0', - `user_id` int(11) unsigned NOT NULL DEFAULT '0', - `thread_type` enum('M','R','N') NOT NULL, - `poster` varchar(128) NOT NULL DEFAULT '', - `source` varchar(32) NOT NULL DEFAULT '', - `title` varchar(255) DEFAULT NULL, - `body` mediumtext NOT NULL, - `format` varchar(16) NOT NULL DEFAULT 'html', - `ip_address` varchar(64) NOT NULL DEFAULT '', - `created_at` datetime NOT NULL, - `updated_at` datetime NOT NULL, - PRIMARY KEY (`id`), - KEY `ticket_id` (`ticket_id`), - KEY `staff_id` (`staff_id`), - KEY `pid` (`pid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `pid` int(11) NOT NULL, + `ticket_id` int(11) NOT NULL, + `staff_id` int(11) NOT NULL, + `user_id` int(11) NOT NULL, + `poster` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `source` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `is_internal` tinyint(1) NOT NULL, + `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `body` mediumtext COLLATE utf8_unicode_ci NOT NULL, + `format` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `ip_address` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- --- Table structure for table `timezones` +-- Table structure for table `timezone` -- -CREATE TABLE IF NOT EXISTS `timezones` ( +CREATE TABLE IF NOT EXISTS `timezone` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `location` varchar(255) COLLATE utf8_unicode_ci NOT NULL, @@ -1059,10 +1151,10 @@ CREATE TABLE IF NOT EXISTS `timezones` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=114 ; -- --- Dumping data for table `timezones` +-- Dumping data for table `timezone` -- -INSERT INTO `timezones` (`id`, `name`, `location`) VALUES +INSERT INTO `timezone` (`id`, `name`, `location`) VALUES (1, 'Pacific/Midway', '(GMT-11:00) Midway Island'), (2, 'US/Samoa', '(GMT-11:00) Samoa'), (3, 'US/Hawaii', '(GMT-10:00) Hawaii'), @@ -1184,10 +1276,10 @@ INSERT INTO `timezones` (`id`, `name`, `location`) VALUES -- CREATE TABLE IF NOT EXISTS `time_format` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `format` varchar(225) NOT NULL, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `format` varchar(255) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ; -- -- Dumping data for table `time_format` @@ -1204,75 +1296,82 @@ INSERT INTO `time_format` (`id`, `format`) VALUES -- CREATE TABLE IF NOT EXISTS `users` ( - `id` int(10) NOT NULL AUTO_INCREMENT, + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `first_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `last_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `first_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `last_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `gender` tinyint(1) NOT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `ban` tinyint(1) NOT NULL, `password` varchar(60) COLLATE utf8_unicode_ci NOT NULL, - `active` tinyint(1) NOT NULL, - `ext` varchar(225) COLLATE utf8_unicode_ci NOT NULL, - `phone_number` text COLLATE utf8_unicode_ci, - `mobile` varchar(225) COLLATE utf8_unicode_ci NOT NULL, - `agent_sign` varchar(225) COLLATE utf8_unicode_ci NOT NULL, - `account_type` tinyint(4) NOT NULL, - `account_status` tinyint(10) NOT NULL, - `assign_group` varchar(225) COLLATE utf8_unicode_ci NOT NULL, - `primary_dpt` varchar(225) COLLATE utf8_unicode_ci NOT NULL, - `agent_tzone` varchar(225) COLLATE utf8_unicode_ci NOT NULL, - `daylight_save` varchar(225) COLLATE utf8_unicode_ci NOT NULL, - `limit_access` varchar(225) COLLATE utf8_unicode_ci NOT NULL, - `directory_listing` varchar(225) COLLATE utf8_unicode_ci NOT NULL, - `vocation_mode` varchar(225) COLLATE utf8_unicode_ci NOT NULL, - `company` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `role` varchar(225) COLLATE utf8_unicode_ci NOT NULL, - `profile_pic` varchar(225) COLLATE utf8_unicode_ci NOT NULL, + `active` int(11) NOT NULL, + `ext` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `phone_number` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `mobile` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `agent_sign` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `account_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `account_status` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `assign_group` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `primary_dpt` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `agent_tzone` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `daylight_save` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `limit_access` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `directory_listing` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `vocation_mode` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `company` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `role` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `internal_note` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `profile_pic` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), - UNIQUE KEY `users_email_unique` (`email`), - KEY `id` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=44 ; + UNIQUE KEY `users_email_unique` (`email`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -- Dumping data for table `users` -- -INSERT INTO `users` (`id`, `user_name`, `first_name`, `last_name`, `gender`, `email`, `ban`, `password`, `active`, `ext`, `phone_number`, `mobile`, `agent_sign`, `account_type`, `account_status`, `assign_group`, `primary_dpt`, `agent_tzone`, `daylight_save`, `limit_access`, `directory_listing`, `vocation_mode`, `company`, `role`, `profile_pic`, `remember_token`, `created_at`, `updated_at`) VALUES -(43, 'demo@demo.com', 'demo', 'demo', 1, 'demo@demo.com', 0, '$2y$10$I8bwzqC1G5E7XUd5JuLQP.YupAzzNeWRgwa.mWmQBPJY30f/FNz.i', 1, '999', '9999999999', '9999999999', '', 0, 1, '', '', '', '', '', '', '', 'D company', 'admin', '2260.hitman-agent-47.jpg', 'HGr2foR66htTVIprXCL8fwze6D9FGpfaZgagQ5nlPzAYcgloki5bFf1ya5gP', '0000-00-00 00:00:00', '2015-04-30 23:50:55'); +INSERT INTO `users` (`id`, `user_name`, `first_name`, `last_name`, `gender`, `email`, `ban`, `password`, `active`, `ext`, `phone_number`, `mobile`, `agent_sign`, `account_type`, `account_status`, `assign_group`, `primary_dpt`, `agent_tzone`, `daylight_save`, `limit_access`, `directory_listing`, `vocation_mode`, `company`, `role`, `internal_note`, `profile_pic`, `remember_token`, `created_at`, `updated_at`) VALUES +(1, 'demo@demo.com', 'demo', 'demo', 0, 'demo@demo.com', 0, '$2y$10$4L3/whr/eCph0vYtYLENRuCiIolYpxZVwNH2xTFRFIQVfEfNrzGPa', 1, '', '', '', '', '', '', 'group A', 'support', '', '', '', '', '', '', 'admin', '', '', NULL, '2015-10-01 05:00:01', '2015-10-01 05:00:01'); + +-- -------------------------------------------------------- -- --- Constraints for dumped tables +-- Table structure for table `user_assign_organization` -- --- --- Constraints for table `form_details` --- -ALTER TABLE `form_details` - ADD CONSTRAINT `form_details_ibfk_1` FOREIGN KEY (`form_name_id`) REFERENCES `form_name` (`id`); +CREATE TABLE IF NOT EXISTS `user_assign_organization` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `org_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `user_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; + +-- -------------------------------------------------------- -- --- Constraints for table `form_value` +-- Table structure for table `version_check` -- -ALTER TABLE `form_value` - ADD CONSTRAINT `form_value_ibfk_1` FOREIGN KEY (`form_detail_id`) REFERENCES `form_details` (`id`); + +CREATE TABLE IF NOT EXISTS `version_check` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `current_version` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `new_version` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- --- Constraints for table `group_assign_department` +-- Dumping data for table `version_check` -- -ALTER TABLE `group_assign_department` - ADD CONSTRAINT `group_assign_department_ibfk_1` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`), - ADD CONSTRAINT `group_assign_department_ibfk_2` FOREIGN KEY (`department_id`) REFERENCES `department` (`id`); --- --- Constraints for table `team_assign_agent` --- -ALTER TABLE `team_assign_agent` - ADD CONSTRAINT `team_assign_agent_ibfk_1` FOREIGN KEY (`team_id`) REFERENCES `teams` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, - ADD CONSTRAINT `team_assign_agent_ibfk_2` FOREIGN KEY (`agent_id`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; +INSERT INTO `version_check` (`id`, `current_version`, `new_version`, `created_at`, `updated_at`) VALUES +(1, '', '', '2015-10-01 05:00:00', '2015-10-01 05:00:00'); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;