-- phpMyAdmin SQL Dump
-- version 4.9.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:8889
-- Generation Time: May 17, 2020 at 01:02 PM
-- Server version: 5.7.26
-- PHP Version: 7.4.2

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `apstrixc_crm_sales`
--

-- --------------------------------------------------------

--
-- Table structure for table `account_balances`
--

CREATE TABLE `account_balances` (
  `id` int(10) UNSIGNED NOT NULL,
  `account_id` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `balance` decimal(16,4) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `app_notes`
--

CREATE TABLE `app_notes` (
  `id` int(11) NOT NULL,
  `title` varchar(200) DEFAULT NULL,
  `contents` text,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `app_password_manager`
--

CREATE TABLE `app_password_manager` (
  `id` int(11) UNSIGNED NOT NULL,
  `client_id` int(11) DEFAULT NULL,
  `type` varchar(200) DEFAULT NULL,
  `name` varchar(200) DEFAULT NULL,
  `url` varchar(200) DEFAULT NULL,
  `username` varchar(200) DEFAULT NULL,
  `password` varchar(200) DEFAULT NULL,
  `notes` text,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `app_password_manager`
--

INSERT INTO `app_password_manager` (`id`, `client_id`, `type`, `name`, `url`, `username`, `password`, `notes`, `created_at`, `updated_at`) VALUES
(4, 294, NULL, 'google 2', 'http://www.google.com', 'test', 'test', '', '2017-12-09 17:28:36', '2017-12-09 18:03:02');

-- --------------------------------------------------------

--
-- Table structure for table `app_sms`
--

CREATE TABLE `app_sms` (
  `id` int(11) NOT NULL,
  `req_time` datetime DEFAULT NULL,
  `sent_time` datetime DEFAULT NULL,
  `sms_from` text,
  `sms_to` text,
  `sms` text,
  `driver` text,
  `resp` text,
  `status` varchar(200) DEFAULT NULL,
  `stype` varchar(200) NOT NULL DEFAULT 'Sent',
  `cid` int(11) DEFAULT NULL,
  `aid` int(11) DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `iid` int(11) DEFAULT NULL,
  `trid` int(11) DEFAULT NULL,
  `lid` int(11) DEFAULT NULL,
  `oid` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `app_sms`
--

INSERT INTO `app_sms` (`id`, `req_time`, `sent_time`, `sms_from`, `sms_to`, `sms`, `driver`, `resp`, `status`, `stype`, `cid`, `aid`, `company_id`, `iid`, `trid`, `lid`, `oid`, `created_at`, `updated_at`) VALUES
(1, NULL, NULL, '', '82918173', 'Thanks for Accepting Quote - 1. You can view this Quote- http://crm.meganemarine.com.sg/?ng=client/q/1/token_7457956176', 'Nexmo', NULL, NULL, 'Sent', NULL, NULL, NULL, 0, NULL, NULL, NULL, '2020-04-01 19:22:28', '2020-04-01 19:22:28'),
(2, NULL, NULL, '', '82918173', 'Quote - 1 has been accepted. You can view this Quote- http://crm.meganemarine.com.sg/?ng=client/q/1/token_7457956176', 'Nexmo', NULL, NULL, 'Sent', NULL, NULL, NULL, 0, NULL, NULL, NULL, '2020-04-01 19:22:28', '2020-04-01 19:22:28'),
(3, NULL, NULL, '', '82918173', 'Quote has been cancelled - 1. You can view this Quote- http://crm.meganemarine.com.sg/?ng=client/q/1/token_7457956176', 'Nexmo', NULL, NULL, 'Sent', NULL, NULL, NULL, 0, NULL, NULL, NULL, '2020-04-01 19:23:10', '2020-04-01 19:23:10'),
(4, NULL, NULL, '', '82918173', 'Quote - 1 has been Cancelled. You can view this Quote- http://crm.meganemarine.com.sg/?ng=client/q/1/token_7457956176', 'Nexmo', NULL, NULL, 'Sent', NULL, NULL, NULL, 0, NULL, NULL, NULL, '2020-04-01 19:23:10', '2020-04-01 19:23:10'),
(5, NULL, NULL, '', '82918173', 'Vimal Karthik | Issues with Login. View: http://crm.meganemarine.com.sg/?ng=tickets/admin/view/1', 'Nexmo', NULL, NULL, 'Sent', NULL, NULL, NULL, 0, NULL, NULL, NULL, '2020-04-10 21:38:17', '2020-04-10 21:38:17'),
(6, NULL, NULL, '', '82918173', 'Ticket - QUC-33395164 has been assigned to you.', 'Nexmo', NULL, NULL, 'Sent', NULL, NULL, NULL, 0, NULL, NULL, NULL, '2020-04-10 21:39:34', '2020-04-10 21:39:34'),
(7, NULL, NULL, '', '82918173', 'Vimal Karthik | Server Error. View: http://crm.meganemarine.com.sg/?ng=tickets/admin/view/2', 'Nexmo', NULL, NULL, 'Sent', NULL, NULL, NULL, 0, NULL, NULL, NULL, '2020-04-15 13:27:58', '2020-04-15 13:27:58'),
(8, NULL, NULL, '', '82918173', 'Vimal Karthik | Repaid. View: http://crm.meganemarine.com.sg/?ng=tickets/admin/view/5', 'Nexmo', NULL, NULL, 'Sent', NULL, NULL, NULL, 0, NULL, NULL, NULL, '2020-04-15 20:19:01', '2020-04-15 20:19:01');

-- --------------------------------------------------------

--
-- Table structure for table `app_sms_drivers`
--

CREATE TABLE `app_sms_drivers` (
  `id` int(11) NOT NULL,
  `dname` varchar(200) DEFAULT NULL,
  `handler` varchar(200) DEFAULT NULL,
  `weburl` varchar(200) DEFAULT NULL,
  `description` text,
  `url` varchar(200) DEFAULT NULL,
  `incoming_url` varchar(200) DEFAULT NULL,
  `method` varchar(50) DEFAULT NULL,
  `username` varchar(200) DEFAULT NULL,
  `password` varchar(200) DEFAULT NULL,
  `api_key` varchar(200) DEFAULT NULL,
  `api_secret` varchar(200) DEFAULT NULL,
  `route` varchar(200) DEFAULT NULL,
  `sender_id` varchar(100) DEFAULT NULL,
  `balance` decimal(14,2) DEFAULT NULL,
  `placeholder` text,
  `status` varchar(100) DEFAULT NULL,
  `is_active` int(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `app_sms_drivers`
--

INSERT INTO `app_sms_drivers` (`id`, `dname`, `handler`, `weburl`, `description`, `url`, `incoming_url`, `method`, `username`, `password`, `api_key`, `api_secret`, `route`, `sender_id`, `balance`, `placeholder`, `status`, `is_active`, `created_at`, `updated_at`) VALUES
(135, 'custom', 'custom', 'http://www.example.com', 'Your Custom Gateway', 'http://api.example.com', 'http://www.example.com/incoming/', 'GET', 'your_username', 'your_password', 'your_api_key', 'your_api_secret', '1', 'CloudOnex', '1.00', '{{url}}/send.php?username={{username}}&password={{password}}&from={{from}}&to={{to}}&message={{message}}', 'Sandbox', 0, NULL, NULL),
(136, 'test', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL),
(137, 'custom', 'custom', 'http://www.example.com', 'Your Custom Gateway', 'http://api.example.com', 'http://www.example.com/incoming/', 'GET', 'your_username', 'your_password', 'your_api_key', 'your_api_secret', '1', 'CloudOnex', '1.00', '{{url}}/send.php?username={{username}}&password={{password}}&from={{from}}&to={{to}}&message={{message}}', 'Sandbox', 0, NULL, NULL),
(138, 'test', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL),
(139, 'custom', 'custom', 'http://www.example.com', 'Your Custom Gateway', 'http://api.example.com', 'http://www.example.com/incoming/', 'GET', 'your_username', 'your_password', 'your_api_key', 'your_api_secret', '1', 'CloudOnex', '1.00', '{{url}}/send.php?username={{username}}&password={{password}}&from={{from}}&to={{to}}&message={{message}}', 'Sandbox', 0, NULL, NULL),
(140, 'test', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `app_sms_templates`
--

CREATE TABLE `app_sms_templates` (
  `id` int(11) NOT NULL,
  `tpl` varchar(200) DEFAULT NULL,
  `sms` text,
  `status` varchar(200) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `updated_at_2` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `app_sms_templates`
--

INSERT INTO `app_sms_templates` (`id`, `tpl`, `sms`, `status`, `created_at`, `updated_at`, `updated_at_2`) VALUES
(1, 'Invoice Created', 'Your Invoice- {{invoice_id}} is created. To view your invoice- {{invoice_url}}', NULL, NULL, '2017-11-23 04:59:37', NULL),
(2, 'Invoice Payment Reminder', 'We have not received payment for invoice {{invoice_id}}, dated {{invoice_date}}. To view your invoice- {{invoice_url}}', NULL, NULL, '2017-11-23 05:01:14', NULL),
(3, 'Invoice Overdue Notice', 'Your Invoice- {{invoice_id}} is now overdue. To view your invoice- {{invoice_url}}', NULL, NULL, '2017-11-23 04:59:20', NULL),
(4, 'Invoice Payment Confirmation', 'We have received your Payment for Invoice ID- {{invoice_id}}', NULL, NULL, '2017-11-23 05:02:15', NULL),
(5, 'Invoice Refund Confirmation', 'Your Payment for {{invoice_id}} has been refunded.', NULL, NULL, '2017-11-23 05:03:19', NULL),
(6, 'Quote Created', 'A Quote has been created- {{quote_id}}. You can view this Quote- {{quote_url}}', NULL, NULL, '2017-11-23 05:03:19', NULL),
(7, 'Quote Accepted', 'Thanks for Accepting Quote - {{quote_id}}. You can view this Quote- {{quote_url}}', NULL, NULL, '2017-11-23 05:03:19', NULL),
(8, 'Quote Cancelled', 'Quote has been cancelled - {{quote_id}}. You can view this Quote- {{quote_url}}', NULL, NULL, '2017-11-23 05:03:19', NULL),
(9, 'Quote Accepted: Admin Notification', 'Quote - {{quote_id}} has been accepted. You can view this Quote- {{quote_url}}', NULL, NULL, '2017-11-23 05:03:19', NULL),
(10, 'Quote Cancelled: Admin Notification', 'Quote - {{quote_id}} has been Cancelled. You can view this Quote- {{quote_url}}', NULL, NULL, NULL, NULL),
(12, 'Ticket Assigned: Admin Notification', 'Ticket - {{ticket_id}} has been assigned to you.', NULL, '2018-10-24 17:33:32', '2018-10-24 17:33:32', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `assets`
--

CREATE TABLE `assets` (
  `id` int(10) UNSIGNED NOT NULL,
  `asset` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `brand` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `date_purchased` date DEFAULT NULL,
  `supported_until` date DEFAULT NULL,
  `price` decimal(16,4) DEFAULT NULL,
  `depreciation` decimal(16,4) DEFAULT NULL,
  `serial` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `notes` text COLLATE utf8mb4_unicode_ci,
  `category_id` int(10) UNSIGNED DEFAULT NULL,
  `employee_id` int(10) UNSIGNED DEFAULT NULL,
  `contact_id` int(10) UNSIGNED DEFAULT NULL,
  `location_id` int(10) UNSIGNED DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `assets`
--

INSERT INTO `assets` (`id`, `asset`, `name`, `brand`, `date_purchased`, `supported_until`, `price`, `depreciation`, `serial`, `image`, `status`, `notes`, `category_id`, `employee_id`, `contact_id`, `location_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(8, '', 'Macbook Pro', '', '2018-11-06', '2019-11-06', '1250.0000', NULL, 'SL37289274899', NULL, NULL, '', 6, NULL, NULL, NULL, NULL, '2018-11-06 05:12:09', '2018-11-06 05:12:23');

-- --------------------------------------------------------

--
-- Table structure for table `asset_categories`
--

CREATE TABLE `asset_categories` (
  `id` int(10) UNSIGNED NOT NULL,
  `parent_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `api_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `plural` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `prefix` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `sl` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `sort_order` int(10) UNSIGNED NOT NULL DEFAULT '1',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `asset_categories`
--

INSERT INTO `asset_categories` (`id`, `parent_id`, `name`, `api_name`, `plural`, `slug`, `prefix`, `sl`, `is_active`, `is_default`, `sort_order`, `created_at`, `updated_at`) VALUES
(6, 0, 'Electronics', '', '', '', '', '', 1, 0, 1, '2018-11-06 05:11:40', '2018-11-06 05:11:40'),
(7, 0, 'Softwares', '', '', '', '', '', 1, 0, 1, '2018-11-06 05:11:46', '2018-11-06 05:11:46');

-- --------------------------------------------------------

--
-- Table structure for table `attendances`
--

CREATE TABLE `attendances` (
  `id` int(10) UNSIGNED NOT NULL,
  `note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `employee_id` int(10) UNSIGNED NOT NULL,
  `date` date NOT NULL,
  `is_present` tinyint(1) NOT NULL DEFAULT '1',
  `total_time` int(10) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `bills`
--

CREATE TABLE `bills` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `from_account_id` int(10) UNSIGNED DEFAULT NULL,
  `contact_id` int(10) UNSIGNED DEFAULT NULL,
  `category_id` int(10) UNSIGNED DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `next_date` date NOT NULL,
  `last_paid_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `currency` char(3) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `net_amount` decimal(16,8) NOT NULL,
  `recurring_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `website` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `remind_days_before` smallint(5) UNSIGNED NOT NULL DEFAULT '0',
  `add_transaction_automatically` tinyint(1) NOT NULL DEFAULT '0',
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_paid` tinyint(1) NOT NULL DEFAULT '0',
  `is_skipped` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `clx_integrations`
--

CREATE TABLE `clx_integrations` (
  `id` int(10) UNSIGNED NOT NULL,
  `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `secret` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `is_default` tinyint(1) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `clx_integrations`
--

INSERT INTO `clx_integrations` (`id`, `type`, `name`, `url`, `key`, `secret`, `is_active`, `is_default`, `created_at`, `updated_at`) VALUES
(4, 'woocommerce', 'woocommerce local', 'https://wp.test', 'ck_9b08a41676e8aca0ad7f7df64d74ae18dad64289', 'cs_d3ce9458a3a5335c03f0bc9d2ef381a1fbaee7e7', 1, 0, '2018-07-23 05:11:56', '2018-10-22 07:30:28'),
(5, 'woocommerce', 'eawal', 'https://awalvape.com', 'ck_c55f0b944883d2ce258197e1181221fcf51d0aa4', 'cs_c19393b428f072f63e7dc1d8c234e23fed072a78', 1, 1, '2018-10-22 07:30:25', '2018-10-22 07:30:28');

-- --------------------------------------------------------

--
-- Table structure for table `clx_projects`
--

CREATE TABLE `clx_projects` (
  `id` int(10) UNSIGNED NOT NULL,
  `admin_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `created_by_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `proposal_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `parent_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `contact_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `project_manager_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `description` text COLLATE utf8mb4_unicode_ci,
  `status` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `priority` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `due_date` date DEFAULT NULL,
  `estimate_finish_date` date DEFAULT NULL,
  `actual_finish_date` date DEFAULT NULL,
  `brief` text COLLATE utf8mb4_unicode_ci,
  `currency` char(3) COLLATE utf8mb4_unicode_ci NOT NULL,
  `billing_type` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `rate` decimal(16,8) DEFAULT NULL,
  `budget` decimal(16,8) DEFAULT NULL,
  `logged_seconds` int(10) UNSIGNED NOT NULL DEFAULT '0',
  `total_expense` decimal(16,8) DEFAULT NULL,
  `owner_id` int(10) UNSIGNED DEFAULT NULL,
  `manager_id` int(10) UNSIGNED DEFAULT NULL,
  `contact_can_view_task` tinyint(1) NOT NULL DEFAULT '0',
  `contact_can_create_task` tinyint(1) NOT NULL DEFAULT '0',
  `contact_can_edit_task` tinyint(1) NOT NULL DEFAULT '0',
  `contact_can_comment` tinyint(1) NOT NULL DEFAULT '0',
  `contact_can_view_time` tinyint(1) NOT NULL DEFAULT '0',
  `contact_can_upload_file` tinyint(1) NOT NULL DEFAULT '0',
  `contact_can_discuss` tinyint(1) NOT NULL DEFAULT '0',
  `contact_can_view_timesheet` tinyint(1) NOT NULL DEFAULT '0',
  `contact_can_view_activity_log` tinyint(1) NOT NULL DEFAULT '0',
  `contact_can_view_members` tinyint(1) NOT NULL DEFAULT '0',
  `tab_tasks` tinyint(1) NOT NULL DEFAULT '1',
  `tab_timesheet` tinyint(1) NOT NULL DEFAULT '1',
  `tab_milestones` tinyint(1) NOT NULL DEFAULT '1',
  `tab_files` tinyint(1) NOT NULL DEFAULT '1',
  `tab_discussions` tinyint(1) NOT NULL DEFAULT '1',
  `tab_gantt_view` tinyint(1) NOT NULL DEFAULT '1',
  `tab_tickets` tinyint(1) NOT NULL DEFAULT '1',
  `tab_invoices` tinyint(1) NOT NULL DEFAULT '1',
  `tab_proposals` tinyint(1) NOT NULL DEFAULT '1',
  `tab_members` tinyint(1) NOT NULL DEFAULT '1',
  `tab_calendar` tinyint(1) NOT NULL DEFAULT '1',
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `clx_shared_preferences`
--

CREATE TABLE `clx_shared_preferences` (
  `id` int(10) UNSIGNED NOT NULL,
  `relation_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `relation_id` int(10) UNSIGNED NOT NULL,
  `key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `value` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `credit_cards`
--

CREATE TABLE `credit_cards` (
  `id` int(10) UNSIGNED NOT NULL,
  `contact_id` int(10) UNSIGNED NOT NULL,
  `card_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `card_holder_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `card_number` char(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `expiry_month` char(2) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `expiry_year` char(2) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cvv` char(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

--
-- Dumping data for table `credit_cards`
--

INSERT INTO `credit_cards` (`id`, `contact_id`, `card_type`, `card_holder_name`, `card_number`, `expiry_month`, `expiry_year`, `cvv`, `created_at`, `updated_at`) VALUES
(1, 294, '', 'Maria Elizabeth', '424242424242424242', '07', '22', '456', '2018-04-23 07:17:45', '2018-04-23 11:21:36');

-- --------------------------------------------------------

--
-- Table structure for table `crmdelivery_history`
--

CREATE TABLE `crmdelivery_history` (
  `id` int(11) NOT NULL,
  `delivery_id` int(11) NOT NULL,
  `delivery_status` varchar(50) NOT NULL,
  `date_time` datetime NOT NULL,
  `latitude` varchar(40) NOT NULL,
  `longitude` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `crmdelivery_history`
--

INSERT INTO `crmdelivery_history` (`id`, `delivery_id`, `delivery_status`, `date_time`, `latitude`, `longitude`) VALUES
(1, 1, 'Acknowledged', '2020-04-29 07:04:39', '1.4624441', '103.8125315');

-- --------------------------------------------------------

--
-- Table structure for table `crmdriver_availablity`
--

CREATE TABLE `crmdriver_availablity` (
  `id` int(11) NOT NULL,
  `driver_id` int(11) NOT NULL,
  `date` date NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1' COMMENT '0 - not available , 1 - available	',
  `onduty` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `crmdriver_availablity`
--

INSERT INTO `crmdriver_availablity` (`id`, `driver_id`, `date`, `status`, `onduty`) VALUES
(1, 4, '2020-05-22', 1, 1),
(2, 5, '2020-05-22', 1, 1),
(3, 6, '2020-05-22', 1, 1),
(7, 4, '2020-05-23', 1, 1),
(8, 5, '2020-05-23', 0, 1),
(9, 6, '2020-05-23', 1, 1),
(10, 4, '2020-05-14', 1, 1),
(11, 5, '2020-05-14', 1, 1),
(12, 6, '2020-05-14', 1, 1),
(19, 4, '2020-05-15', 1, 1),
(20, 5, '2020-05-15', 1, 1),
(21, 6, '2020-05-15', 1, 1),
(22, 4, '2020-05-16', 1, 1),
(23, 5, '2020-05-16', 1, 1),
(24, 6, '2020-05-16', 1, 1),
(25, 4, '2020-05-17', 1, 1),
(26, 5, '2020-05-17', 1, 1),
(27, 6, '2020-05-17', 1, 1),
(28, 4, '2020-05-18', 1, 1),
(29, 5, '2020-05-18', 1, 1),
(30, 6, '2020-05-18', 1, 1);

-- --------------------------------------------------------

--
-- Table structure for table `crmdriver_location`
--

CREATE TABLE `crmdriver_location` (
  `id` int(11) NOT NULL,
  `driver_id` int(11) NOT NULL,
  `latitude` varchar(50) NOT NULL,
  `longitude` varchar(50) NOT NULL,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `date_time` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `crmleadactivity`
--

CREATE TABLE `crmleadactivity` (
  `id` int(11) NOT NULL,
  `cid` int(11) NOT NULL DEFAULT '0',
  `msg` text NOT NULL,
  `icon` varchar(100) NOT NULL,
  `stime` varchar(50) NOT NULL,
  `sdate` date NOT NULL,
  `o` int(11) NOT NULL DEFAULT '0',
  `oname` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `crmleadactivity`
--

INSERT INTO `crmleadactivity` (`id`, `cid`, `msg`, `icon`, `stime`, `sdate`, `o`, `oname`) VALUES
(2, 6, 'mail me', 'fa fa-envelope-o', '1589225875', '2020-05-12', 1, 'Karthik'),
(4, 4, 'rrrrrrrrrrr', 'fa fa-check', '1589228108', '2020-05-12', 1, 'Karthik'),
(5, 2, 'dhfh', 'fa fa-check', '1589228540', '2020-05-12', 1, 'Karthik'),
(6, 2, 'sajuuu m emno', 'fa fa-check', '1589228796', '2020-05-12', 1, 'Karthik'),
(7, 2, 'edada', 'fa fa-tasks', '1589271503', '2020-05-12', 1, 'Karthik'),
(8, 2, 'adsd', 'fa fa-check', '1589274738', '2020-05-12', 1, 'Karthik'),
(9, 2, 'qeq', 'fa fa-tasks', '1589274759', '2020-05-12', 1, 'Karthik'),
(10, 2, '1231', 'fa fa-check', '1589276730', '2020-05-12', 1, 'Karthik'),
(11, 7, 'a1', 'fa fa-check', '1589630613', '2020-05-16', 1, 'Karthik'),
(12, 7, 'a2', 'fa fa-check', '1589630624', '2020-05-16', 1, 'Karthik');

-- --------------------------------------------------------

--
-- Table structure for table `crm_accounts`
--

CREATE TABLE `crm_accounts` (
  `id` int(11) NOT NULL,
  `account` varchar(200) DEFAULT NULL,
  `fname` varchar(100) DEFAULT NULL,
  `lname` varchar(100) DEFAULT NULL,
  `company` varchar(200) DEFAULT NULL,
  `business_number` varchar(200) DEFAULT NULL,
  `jobtitle` varchar(100) DEFAULT NULL,
  `cid` int(11) DEFAULT NULL,
  `o` int(11) DEFAULT '0',
  `phone` varchar(100) DEFAULT NULL,
  `fax` varchar(100) DEFAULT NULL,
  `email` varchar(100) DEFAULT NULL,
  `username` varchar(100) DEFAULT NULL,
  `address` varchar(200) DEFAULT NULL,
  `city` varchar(100) DEFAULT NULL,
  `state` varchar(100) DEFAULT NULL,
  `zip` varchar(100) DEFAULT NULL,
  `country` varchar(100) DEFAULT NULL,
  `balance` decimal(16,2) DEFAULT NULL,
  `status` enum('Active','Inactive') NOT NULL DEFAULT 'Active',
  `notes` text,
  `options` text,
  `tags` text,
  `password` text,
  `token` text,
  `ts` text,
  `img` varchar(100) DEFAULT NULL,
  `web` varchar(200) DEFAULT NULL,
  `facebook` varchar(100) DEFAULT NULL,
  `google` varchar(100) DEFAULT NULL,
  `linkedin` varchar(100) DEFAULT NULL,
  `twitter` varchar(100) DEFAULT NULL,
  `skype` varchar(100) DEFAULT NULL,
  `tax_number` varchar(100) DEFAULT NULL,
  `entity_number` varchar(100) DEFAULT NULL,
  `currency` int(11) DEFAULT '0',
  `pmethod` varchar(100) DEFAULT NULL,
  `autologin` varchar(100) DEFAULT NULL,
  `lastlogin` datetime DEFAULT NULL,
  `lastloginip` varchar(100) DEFAULT NULL,
  `stage` varchar(50) DEFAULT NULL,
  `timezone` varchar(50) DEFAULT NULL,
  `isp` varchar(100) DEFAULT NULL,
  `lat` varchar(50) DEFAULT NULL,
  `lon` varchar(50) DEFAULT NULL,
  `gname` varchar(200) DEFAULT NULL,
  `gid` int(11) NOT NULL DEFAULT '0',
  `sid` varchar(200) DEFAULT NULL,
  `role` varchar(200) DEFAULT NULL,
  `country_code` varchar(20) DEFAULT NULL,
  `country_idd` varchar(20) DEFAULT NULL,
  `signed_up_by` varchar(100) DEFAULT NULL,
  `signed_up_ip` varchar(20) DEFAULT NULL,
  `dob` date DEFAULT NULL,
  `ct` varchar(200) DEFAULT NULL,
  `assistant` varchar(200) DEFAULT NULL,
  `asst_phone` varchar(100) DEFAULT NULL,
  `second_email` varchar(100) DEFAULT NULL,
  `second_phone` varchar(100) DEFAULT NULL,
  `taxexempt` varchar(50) DEFAULT NULL,
  `latefeeoveride` varchar(50) DEFAULT NULL,
  `overideduenotices` varchar(50) DEFAULT NULL,
  `separateinvoices` varchar(50) DEFAULT NULL,
  `disableautocc` varchar(50) DEFAULT NULL,
  `billingcid` int(10) NOT NULL DEFAULT '0',
  `securityqid` int(10) NOT NULL DEFAULT '0',
  `securityqans` text,
  `cardtype` varchar(200) DEFAULT NULL,
  `cardlastfour` varchar(20) DEFAULT NULL,
  `cardnum` text,
  `startdate` varchar(50) DEFAULT NULL,
  `expdate` varchar(50) DEFAULT NULL,
  `issuenumber` varchar(200) DEFAULT NULL,
  `bankname` varchar(200) DEFAULT NULL,
  `banktype` varchar(200) DEFAULT NULL,
  `bankcode` varchar(200) DEFAULT NULL,
  `bankacct` varchar(200) DEFAULT NULL,
  `gatewayid` int(10) NOT NULL DEFAULT '0',
  `language` text,
  `pwresetkey` varchar(100) DEFAULT NULL,
  `emailoptout` varchar(50) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `pwresetexpiry` datetime DEFAULT NULL,
  `is_email_verified` int(1) NOT NULL DEFAULT '0',
  `is_phone_veirifed` int(1) NOT NULL DEFAULT '0',
  `photo_id_type` varchar(100) DEFAULT NULL,
  `photo_id` varchar(100) DEFAULT NULL,
  `type` varchar(200) NOT NULL DEFAULT 'Customer',
  `drive` varchar(50) DEFAULT NULL,
  `workspace_id` int(11) NOT NULL DEFAULT '0',
  `parent_id` int(11) NOT NULL DEFAULT '0',
  `code` varchar(100) DEFAULT NULL,
  `display_name` varchar(200) DEFAULT NULL,
  `secondary_email` varchar(200) DEFAULT NULL,
  `secondary_phone` varchar(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `crm_accounts`
--

INSERT INTO `crm_accounts` (`id`, `account`, `fname`, `lname`, `company`, `business_number`, `jobtitle`, `cid`, `o`, `phone`, `fax`, `email`, `username`, `address`, `city`, `state`, `zip`, `country`, `balance`, `status`, `notes`, `options`, `tags`, `password`, `token`, `ts`, `img`, `web`, `facebook`, `google`, `linkedin`, `twitter`, `skype`, `tax_number`, `entity_number`, `currency`, `pmethod`, `autologin`, `lastlogin`, `lastloginip`, `stage`, `timezone`, `isp`, `lat`, `lon`, `gname`, `gid`, `sid`, `role`, `country_code`, `country_idd`, `signed_up_by`, `signed_up_ip`, `dob`, `ct`, `assistant`, `asst_phone`, `second_email`, `second_phone`, `taxexempt`, `latefeeoveride`, `overideduenotices`, `separateinvoices`, `disableautocc`, `billingcid`, `securityqid`, `securityqans`, `cardtype`, `cardlastfour`, `cardnum`, `startdate`, `expdate`, `issuenumber`, `bankname`, `banktype`, `bankcode`, `bankacct`, `gatewayid`, `language`, `pwresetkey`, `emailoptout`, `created_at`, `updated_at`, `pwresetexpiry`, `is_email_verified`, `is_phone_veirifed`, `photo_id_type`, `photo_id`, `type`, `drive`, `workspace_id`, `parent_id`, `code`, `display_name`, `secondary_email`, `secondary_phone`) VALUES
(1, 'Vimal Karthik', '', '', 'Apstrix', '', '', 1, 1, '82918173', '', 'vimalkarthik@apstrix.com', '', '#03-470, Block 582, Woodlands Drive 16', 'Woodlands', 'Others', '730582', 'Singapore', '0.00', 'Active', '', NULL, '', '$2y$10$BDkZmu8yQt7Tk2BPMtKFueXfSNCA1ZXHXTfOQLmqJM46KWzvVLzfe', '3mc7mpq5kqcprv4eq5c24473d38b8aa3a09673d5ed01f5764e45', '', '', '', '', '', '', NULL, NULL, NULL, NULL, 1, NULL, 'wqljysw4c0jw0fwf924c11582025234', NULL, NULL, NULL, NULL, NULL, '1.430286', '103.795868', '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, '2020-02-18 05:12:38', '2020-03-27 00:46:30', NULL, 0, 0, NULL, NULL, 'Customer', '1582020758wlwng9q16f00', 0, 0, 'CUS-00003', NULL, 'vimalkarthik@akstech.com.sg', NULL),
(2, 'Xander', '', '', '', '', '', 0, 1, '867543', '', 'xander@apstrix.com', '', '1 North Bridge Rd, #18-03 High Street Centre, Singapore', '', '', '179094', 'Singapore', '0.00', 'Active', '', NULL, '', '$2y$10$tJQK2t709pcnzOdZA8WNwOvTKIFaRVdaGRiiMyJe97wNPw1qySKQm', '', '', '', '', '', '', '', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1.28983', '103.849601', '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, '2020-03-30 17:14:57', NULL, NULL, 0, 0, NULL, NULL, 'Customer', '1585559697omwb1cp0juv7', 0, 0, 'CUS-00004', NULL, '', NULL),
(3, 'Richin', '', '', '', '', '', 0, 1, '09496330961', '', 'richin1990@gmail.com', NULL, '4th Floor,, Dubai Towers', 'Mavelikara', 'Kerala', '690101', 'India', '0.00', 'Active', '', NULL, '', '$2y$10$c7EkwZyscZQDmeV251cd3eXI4WBO1EPbiiIUDG4L9y5Bqpsbd0AbW', '', '', '', '', '', '', '', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, '2020-04-16 14:25:09', NULL, NULL, 0, 0, NULL, NULL, 'Customer', '1587018309vwpul4ohx3dl', 0, 0, 'CUS-00005', NULL, 'richin1990@gmail.com', NULL),
(4, 'Kumar', '', '', '', '', '', 0, 1, '', '', 'kumar@gmail.com', '', '1 Kim Seng Promenade, Singapore', '', '', '237994', 'Singapore', '0.00', 'Active', '', NULL, '', '$2y$10$.FmZftV8vhESsz8XmdyoA.XtPjRimWAYrkUVbxu5PDdrHeu8eAGZa', '', '', '', '', '', '', '', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1.293984', '103.832088', 'Technical', 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, '2020-04-17 17:34:14', NULL, NULL, 0, 0, NULL, NULL, 'Customer', '1587116054cdb8ffgwhd4a', 0, 0, 'CUS-00006', NULL, '', NULL),
(5, 'Jeevan', '', '', '', '', '', 0, 1, '342', '', 'jeevan@gmail.com', '', '10 ADMIRALTY STREET # 02-68 NORTH LINK BUILDING', '', '', '757695', 'Singapore', '0.00', 'Active', '', NULL, '', '$2y$10$L0e4UrV.ZUae5Ir9IdIRS.crWUwF0kTXXGABgUAEhxJPUgivbQzFC', '', '', '', '', '', '', '', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1.461615', '103.812348', '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, '2020-04-18 15:02:54', NULL, NULL, 0, 0, NULL, NULL, 'Customer', '15871933742mfyyiptjcvg', 0, 0, 'CUS-00007', NULL, '', NULL),
(6, 'Mr. Geetha S aju', '', '', '', NULL, '', 0, 0, '12389123', '', 'geetha@gmail.com', '', '1 Raffles Place, #44-01A, Singapore', 'Singapore', '12', '048616', '', '0.00', 'Active', '', NULL, '', '$2y$10$JfeyjVGtBWK/pZFAtibDg.oYz1lr8ecyOXorT3FOphXrNu55hrqse', '', '', '', '', '', '', '', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1.284479', '103.851082', '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 'Customer', NULL, 0, 0, '', NULL, '', NULL),
(7, 'Devu', '', '', '', '', '', 0, 1, '', '', 'devu@gmail.com', '', '1 Coleman St, #10-06 The Adelphi,', '', '', '179803', 'Singapore', '0.00', 'Active', '', NULL, '', '$2y$10$dbCq7uTq.WZEFN49RkC0XOvLPE2SduYEDHQZ1pfp/bIB61HGmPIkS', '', '', '', '', '', '', '', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1.291359', '103.851346', '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, '2020-04-29 17:34:30', NULL, NULL, 0, 0, NULL, NULL, 'Customer', '1588152870spxzyjwh2xn7', 0, 0, 'CUS-00008', NULL, '', NULL),
(8, 'Abyy', '', '', '', '', '', 0, 1, '', '', 'a@gmail.com', '', '150 Beach Rd,', 'Singapore', '', '189720', 'Singapore', '0.00', 'Active', '', NULL, '', '$2y$10$ejFS3FnGQMDJpnDJEBE8geEuErp1sVHUYP99uACKa99piULMaQtpW', '', '', '', '', '', '', '', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1.2987089', '103.85862', '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, '2020-05-11 17:47:14', NULL, NULL, 0, 0, NULL, NULL, 'Customer', '15891904340tuvl8x4zzno', 0, 0, 'CUS-00009', NULL, '', NULL),
(9, 'Weeswan', '', '', '', '', '', 0, 1, '', '', 'w@gmail.com', NULL, 'Yishvan', 'Singapore', '', '760101', 'Singapore', '0.00', 'Active', '', NULL, '', '$2y$10$co7CUsxpJqRNAz5BXfkho.Kd7CmsXngFnLbXhs.HEmkJGgtiAQa3K', '', '', '', '', '', '', '', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1.4306319', '103.8276489', '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, '2020-05-17 14:12:05', NULL, NULL, 0, 0, NULL, NULL, 'Customer', '1589695925cb7qf5c5zyr6', 0, 0, 'CUS-00010', NULL, '', NULL),
(10, 'ben', '', '', '', '', '', 0, 1, '', '', 'be@gmail.com', NULL, '10 Admiralty St,', 'Singapore', '', '757695', 'Singapore', '0.00', 'Active', '', NULL, '', '$2y$10$fMBI049toN4K7tdpA9KQ7u6wkMWptZO2SrHnhfoSNSNQbP4hudjQK', '', '', '', '', '', '', '', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1.461615', '103.812348', '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, '2020-05-17 14:14:33', NULL, NULL, 0, 0, NULL, NULL, 'Customer', '15896960733j33z36ly9ob', 0, 0, 'CUS-00011', NULL, '', NULL),
(11, 'Kadan', '', '', '', '', '', 0, 1, '', '', 'k@gmailc.com', NULL, 'Sembawang, Singapore', '', '', '778906', 'Singapore', '0.00', 'Active', '', NULL, '', '$2y$10$vwUEoNCK2QzHE5GmSB7KauO4yfBapka7zqwR8tWEEatxTBqURyWXC', '', '', '', '', '', '', '', NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1.402745', '103.8176809', '', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, '2020-05-17 14:18:57', NULL, NULL, 0, 0, NULL, NULL, 'Customer', '15896963371yda4olj0f7e', 0, 0, 'CUS-00012', NULL, '', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `crm_customfields`
--

CREATE TABLE `crm_customfields` (
  `id` int(10) NOT NULL,
  `ctype` text,
  `relid` int(10) NOT NULL DEFAULT '0',
  `fieldname` text,
  `fieldtype` text,
  `description` text,
  `fieldoptions` text,
  `regexpr` text,
  `adminonly` text,
  `required` text,
  `showorder` text,
  `showinvoice` text,
  `sorder` int(10) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `crm_customfieldsvalues`
--

CREATE TABLE `crm_customfieldsvalues` (
  `id` int(10) NOT NULL,
  `fieldid` int(10) NOT NULL,
  `relid` int(10) NOT NULL,
  `fvalue` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `crm_groups`
--

CREATE TABLE `crm_groups` (
  `id` int(11) NOT NULL,
  `gname` varchar(200) DEFAULT NULL,
  `color` varchar(50) DEFAULT NULL,
  `discount` varchar(50) DEFAULT NULL,
  `parent` varchar(200) DEFAULT NULL,
  `pid` int(10) DEFAULT NULL,
  `exempt` text,
  `description` text,
  `separateinvoices` text,
  `sorder` int(10) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `crm_groups`
--

INSERT INTO `crm_groups` (`id`, `gname`, `color`, `discount`, `parent`, `pid`, `exempt`, `description`, `separateinvoices`, `sorder`, `created_at`, `updated_at`) VALUES
(1, 'Technical', '', '', '', 0, '', '', '', 0, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `crm_industries`
--

CREATE TABLE `crm_industries` (
  `id` int(11) NOT NULL,
  `industry` varchar(200) DEFAULT NULL,
  `is_active` int(1) NOT NULL DEFAULT '1',
  `is_default` int(1) NOT NULL DEFAULT '0',
  `sorder` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `crm_industries`
--

INSERT INTO `crm_industries` (`id`, `industry`, `is_active`, `is_default`, `sorder`) VALUES
(1, 'Agriculture', 1, 0, 0),
(2, 'Apparel', 1, 0, 0),
(3, 'Banking', 1, 0, 0),
(4, 'Biotechnology', 1, 0, 0),
(5, 'Chemicals', 1, 0, 0),
(6, 'Communications', 1, 0, 0),
(7, 'Construction', 1, 0, 0),
(8, 'Consulting', 1, 0, 0),
(9, 'Education', 1, 0, 0),
(10, 'Electronics', 1, 0, 0),
(11, 'Energy', 1, 0, 0),
(12, 'Engineering', 1, 0, 0),
(13, 'Entertainment', 1, 0, 0),
(14, 'Environmental', 1, 0, 0),
(15, 'Finance', 1, 0, 0),
(16, 'Food & Beverage', 1, 0, 0),
(17, 'Government', 1, 0, 0),
(18, 'Healthcare', 1, 0, 0),
(19, 'Hospitality', 1, 0, 0),
(20, 'Insurance', 1, 0, 0),
(21, 'Machinery', 1, 0, 0),
(22, 'Manufacturing', 1, 0, 0),
(23, 'Media', 1, 0, 0),
(24, 'Not For Profit', 1, 0, 0),
(25, 'Other', 1, 0, 0),
(26, 'Recreation', 1, 0, 0),
(27, 'Retail', 1, 0, 0),
(28, 'Shipping', 1, 0, 0),
(29, 'Technology', 1, 0, 0),
(30, 'Telecommunications', 1, 0, 0),
(31, 'Transportation', 1, 0, 0),
(32, 'Utilities', 1, 0, 0);

-- --------------------------------------------------------

--
-- Table structure for table `crm_leads`
--

CREATE TABLE `crm_leads` (
  `id` int(11) NOT NULL,
  `secret` varchar(200) DEFAULT NULL,
  `status` varchar(200) DEFAULT NULL,
  `o` varchar(200) DEFAULT NULL,
  `oid` int(11) NOT NULL DEFAULT '0',
  `salutation` varchar(200) DEFAULT NULL,
  `first_name` varchar(200) DEFAULT NULL,
  `middle_name` varchar(200) DEFAULT NULL,
  `last_name` varchar(200) DEFAULT NULL,
  `suffix` varchar(200) DEFAULT NULL,
  `title` varchar(200) DEFAULT NULL,
  `company` varchar(200) DEFAULT NULL,
  `company_id` int(11) NOT NULL DEFAULT '0',
  `website` varchar(200) DEFAULT NULL,
  `industry` varchar(200) DEFAULT NULL,
  `employees` varchar(200) DEFAULT NULL,
  `email` varchar(200) DEFAULT NULL,
  `phone` varchar(50) DEFAULT NULL,
  `color` varchar(20) DEFAULT NULL,
  `source` varchar(200) DEFAULT NULL,
  `added_from` varchar(200) DEFAULT NULL,
  `mobile` varchar(200) DEFAULT NULL,
  `address` varchar(200) DEFAULT NULL,
  `street` varchar(200) DEFAULT NULL,
  `city` varchar(200) DEFAULT NULL,
  `state` varchar(200) DEFAULT NULL,
  `zip` varchar(50) DEFAULT NULL,
  `country` varchar(50) DEFAULT NULL,
  `created_by` varchar(200) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `updated_by` varchar(200) DEFAULT NULL,
  `viewed_at` datetime DEFAULT NULL,
  `cid` int(11) NOT NULL DEFAULT '0',
  `aid` int(11) NOT NULL DEFAULT '0',
  `iid` int(11) NOT NULL DEFAULT '0',
  `rid` int(11) NOT NULL DEFAULT '0',
  `sorder` int(11) NOT NULL DEFAULT '0',
  `assigned` int(11) NOT NULL DEFAULT '0',
  `last_contact` datetime DEFAULT NULL,
  `last_contact_by` varchar(200) DEFAULT NULL,
  `date_converted` datetime DEFAULT NULL,
  `public` int(1) NOT NULL DEFAULT '0',
  `ratings` varchar(50) DEFAULT NULL,
  `flag` int(1) NOT NULL DEFAULT '0',
  `lost` int(1) NOT NULL DEFAULT '0',
  `junk` int(1) NOT NULL DEFAULT '0',
  `trash` int(1) NOT NULL DEFAULT '0',
  `archived` int(1) NOT NULL DEFAULT '0',
  `memo` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `crm_leads`
--

INSERT INTO `crm_leads` (`id`, `secret`, `status`, `o`, `oid`, `salutation`, `first_name`, `middle_name`, `last_name`, `suffix`, `title`, `company`, `company_id`, `website`, `industry`, `employees`, `email`, `phone`, `color`, `source`, `added_from`, `mobile`, `address`, `street`, `city`, `state`, `zip`, `country`, `created_by`, `created_at`, `updated_at`, `updated_by`, `viewed_at`, `cid`, `aid`, `iid`, `rid`, `sorder`, `assigned`, `last_contact`, `last_contact_by`, `date_converted`, `public`, `ratings`, `flag`, `lost`, `junk`, `trash`, `archived`, `memo`) VALUES
(1, NULL, 'New', 'Karthik', 1, 'Mr.', 'Geetha', 'S', 'aju', NULL, 'ttitlww', 'Apstrix', 1, NULL, 'Agriculture', NULL, 'geetha@gmail.com', '12389123', NULL, 'None', NULL, NULL, NULL, 'street', 'city', '12', '2123', '123', 'Karthik', '2020-04-28 14:37:14', '2020-04-28 14:58:57', NULL, NULL, 0, 1, 0, 0, 0, 0, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 0, 'my memmoo  sfsd f\n\nok ok'),
(2, NULL, 'Working', 'Karthik', 1, NULL, 'sanju', 's', 'asd', NULL, NULL, NULL, 0, NULL, 'Agriculture', NULL, '', NULL, NULL, 'None', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Karthik', '2020-04-28 14:57:42', '2020-04-28 14:57:42', NULL, NULL, 0, 1, 0, 0, 0, 1, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 0, 'fthtf dr gdf gd fg df\nytut'),
(3, NULL, 'Nurturing', 'Karthik', 1, NULL, 'fff', 'mmm', 'lllll', NULL, 'tttt', 'Apstrix', 1, NULL, 'Banking', NULL, 'email@gmail.com', '122222', NULL, 'Facebook', NULL, NULL, NULL, 'strrrr', 'citt', 'sta', '122', 'indd', 'Karthik', '2020-04-30 02:32:12', '2020-04-30 02:32:12', NULL, NULL, 0, 1, 0, 0, 0, 1, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 0, 'mmvxvxmv'),
(4, NULL, 'New', '', 2, 'Mr', 'fname', NULL, 'lass', NULL, 'title', 'Apstrix', 1, NULL, 'Agri', NULL, NULL, NULL, NULL, NULL, NULL, '41312', 'rosw', NULL, NULL, NULL, NULL, NULL, '', '2020-04-30 02:35:30', '2020-04-30 02:35:30', NULL, NULL, 0, 2, 0, 0, 0, 2, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 0, NULL),
(5, NULL, 'New', '', 2, 'Mr', 'fname', NULL, 'lass', NULL, 'title', 'Apstrix', 1, NULL, 'Agri', NULL, 'wemail@yoahoo.com', '9999922', NULL, 'Webinar', NULL, NULL, 'rosw', NULL, NULL, NULL, NULL, NULL, '', '2020-04-30 02:39:51', '2020-04-30 02:39:51', NULL, NULL, 0, 2, 0, 0, 0, 2, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 0, NULL),
(6, NULL, 'New', 'ABV', 7, 'Mr', 'fname', NULL, 'lass', NULL, 'title', 'Apstrix', 1, NULL, 'Agri', NULL, 'email@yoahoo.comqe', '9999911', NULL, 'Webinar', NULL, NULL, 'rosw', NULL, NULL, NULL, NULL, NULL, 'ABV', '2020-04-30 02:42:07', '2020-04-30 02:42:07', NULL, NULL, 0, 7, 0, 0, 0, 7, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 0, NULL),
(7, NULL, 'New', 'ABV', 7, 'Mr', 'fname', NULL, 'lass', NULL, 'title', 'Apstrix', 1, NULL, 'Agri', NULL, 'email@yoahoo.com', '9999933', NULL, 'Webinar', NULL, NULL, 'rosw', NULL, NULL, NULL, NULL, NULL, 'ABV', '2020-05-11 12:48:59', '2020-05-11 12:48:59', NULL, NULL, 0, 7, 0, 0, 0, 7, NULL, NULL, NULL, 0, NULL, 0, 0, 0, 0, 0, 'memo check');

-- --------------------------------------------------------

--
-- Table structure for table `crm_lead_sources`
--

CREATE TABLE `crm_lead_sources` (
  `id` int(11) NOT NULL,
  `sname` varchar(200) DEFAULT NULL,
  `is_active` int(1) NOT NULL DEFAULT '1',
  `is_default` int(1) NOT NULL DEFAULT '1',
  `sorder` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `crm_lead_sources`
--

INSERT INTO `crm_lead_sources` (`id`, `sname`, `is_active`, `is_default`, `sorder`) VALUES
(1, 'Advertisement', 1, 1, 0),
(2, 'Customer Event', 1, 1, 0),
(3, 'Employee Referral', 1, 1, 0),
(4, 'Google AdWords', 1, 1, 0),
(5, 'Other', 1, 1, 0),
(6, 'Partner', 1, 1, 0),
(7, 'Purchased List', 1, 1, 0),
(8, 'Trade Show', 1, 1, 0),
(9, 'Webinar', 1, 1, 0),
(10, 'Website', 1, 1, 0),
(11, 'Facebook', 1, 1, 0);

-- --------------------------------------------------------

--
-- Table structure for table `crm_lead_status`
--

CREATE TABLE `crm_lead_status` (
  `id` int(11) NOT NULL,
  `sname` varchar(200) DEFAULT NULL,
  `is_active` int(1) NOT NULL DEFAULT '1',
  `is_default` int(1) NOT NULL DEFAULT '0',
  `is_converted` int(1) NOT NULL DEFAULT '0',
  `sorder` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `crm_lead_status`
--

INSERT INTO `crm_lead_status` (`id`, `sname`, `is_active`, `is_default`, `is_converted`, `sorder`) VALUES
(1, 'Unqualified', 1, 0, 0, 4),
(2, 'New', 1, 1, 0, 2),
(3, 'Working', 1, 0, 0, 5),
(4, 'Nurturing', 1, 0, 0, 6),
(5, 'Qualified', 1, 0, 0, 1),
(6, 'adad', 1, 0, 0, 3);

-- --------------------------------------------------------

--
-- Table structure for table `crm_salutations`
--

CREATE TABLE `crm_salutations` (
  `id` int(11) NOT NULL,
  `sname` varchar(200) DEFAULT NULL,
  `is_active` int(1) NOT NULL DEFAULT '1',
  `is_default` int(1) NOT NULL DEFAULT '0',
  `sorder` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `crm_salutations`
--

INSERT INTO `crm_salutations` (`id`, `sname`, `is_active`, `is_default`, `sorder`) VALUES
(1, 'Mr.', 1, 0, 0),
(2, 'Ms.', 1, 0, 0),
(3, 'Mrs.', 1, 0, 0),
(4, 'Dr.', 1, 0, 0),
(5, 'Prof.', 1, 0, 0);

-- --------------------------------------------------------

--
-- Table structure for table `delivery_notes`
--

CREATE TABLE `delivery_notes` (
  `id` int(10) UNSIGNED NOT NULL,
  `contact_id` int(10) UNSIGNED DEFAULT NULL,
  `currency` char(3) COLLATE utf8mb4_unicode_ci NOT NULL,
  `number` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `reference` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date` date DEFAULT NULL,
  `type` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `sub_total` decimal(16,8) NOT NULL DEFAULT '0.00000000',
  `note` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `delivery_note_items`
--

CREATE TABLE `delivery_note_items` (
  `id` int(10) UNSIGNED NOT NULL,
  `item_id` int(10) UNSIGNED DEFAULT NULL,
  `quantity` decimal(8,2) UNSIGNED NOT NULL DEFAULT '0.00',
  `rate` decimal(16,8) UNSIGNED NOT NULL DEFAULT '0.00000000',
  `tax_id` int(10) UNSIGNED DEFAULT NULL,
  `tax_rate` decimal(16,8) UNSIGNED NOT NULL DEFAULT '0.00000000',
  `total` decimal(16,8) UNSIGNED NOT NULL DEFAULT '0.00000000',
  `discount_type` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `discount_amount` decimal(16,8) UNSIGNED NOT NULL DEFAULT '0.00000000',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `employees`
--

CREATE TABLE `employees` (
  `id` int(10) UNSIGNED NOT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `job_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date_hired` date DEFAULT NULL,
  `department_id` int(10) UNSIGNED DEFAULT NULL,
  `manager_id` int(10) UNSIGNED DEFAULT NULL,
  `image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `pay_frequency` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `currency` char(3) COLLATE utf8mb4_unicode_ci NOT NULL,
  `amount` decimal(16,8) NOT NULL,
  `employee_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `legal_name_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `legal_name_first` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `legal_name_mi` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `legal_name_last` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `banking_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `ssn` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `gender` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `date_of_birht` date DEFAULT NULL,
  `marital_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `is_citizen` tinyint(1) NOT NULL DEFAULT '1',
  `ethnicity` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `has_i9_form` tinyint(1) DEFAULT NULL,
  `work_authorization_expires` date DEFAULT NULL,
  `address_line_1` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address_line_2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `state` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `zip` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `country` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `work_phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `work_mobile` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `work_fax` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `cc_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `other` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `emergency_contact_name_1` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `emergency_contact_phone_1` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `emergency_contact_relation_1` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `emergency_contact_name_2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `emergency_contact_phone_2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `emergency_contact_relation_2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `last_day_worked` date DEFAULT NULL,
  `last_day_on_benefits` date DEFAULT NULL,
  `last_day_on_payroll` date DEFAULT NULL,
  `termination_type` date DEFAULT NULL,
  `termination_reason` date DEFAULT NULL,
  `is_recommended` tinyint(1) DEFAULT NULL,
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `facebook` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `google` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `linkedin` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `skype` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `twitter` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `summary` text COLLATE utf8mb4_unicode_ci,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `end_users`
--

CREATE TABLE `end_users` (
  `id` int(10) UNSIGNED NOT NULL,
  `parent_id` int(10) UNSIGNED DEFAULT NULL,
  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `company` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `phone` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `fax` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `address_line_2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `zip` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `state` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `country` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `c1` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `c2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `c3` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `c4` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `c5` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  `note` text COLLATE utf8mb4_unicode_ci,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `expense_types`
--

CREATE TABLE `expense_types` (
  `id` int(11) NOT NULL,
  `name` varchar(200) COLLATE utf8_bin DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `sorder` int(11) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

--
-- Dumping data for table `expense_types`
--

INSERT INTO `expense_types` (`id`, `name`, `created_at`, `updated_at`, `sorder`) VALUES
(1, 'Hardware', '2020-04-25 07:32:19', '2020-04-25 07:32:19', 3),
(2, 'Food', '2020-04-25 07:32:26', '2020-04-25 07:32:26', 1),
(3, 'Maintenance', '2020-04-25 07:32:44', '2020-04-25 07:32:44', 2);

-- --------------------------------------------------------

--
-- Table structure for table `ib_assets`
--

CREATE TABLE `ib_assets` (
  `id` int(11) NOT NULL,
  `asset_name` varchar(200) DEFAULT NULL,
  `price` decimal(14,2) NOT NULL DEFAULT '0.00',
  `date_purchased` date DEFAULT NULL,
  `warranty_period` date DEFAULT NULL,
  `image` text,
  `description` text,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `ib_doc_rel`
--

CREATE TABLE `ib_doc_rel` (
  `id` int(11) NOT NULL,
  `rtype` varchar(100) NOT NULL DEFAULT 'contact',
  `rid` int(11) NOT NULL DEFAULT '0',
  `did` int(11) NOT NULL DEFAULT '0',
  `can_download` int(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ib_doc_rel`
--

INSERT INTO `ib_doc_rel` (`id`, `rtype`, `rid`, `did`, `can_download`) VALUES
(1, 'contact', 1, 1, 0);

-- --------------------------------------------------------

--
-- Table structure for table `ib_invoice_access_log`
--

CREATE TABLE `ib_invoice_access_log` (
  `id` int(11) NOT NULL,
  `lid` int(11) NOT NULL DEFAULT '0',
  `cid` int(11) NOT NULL DEFAULT '0',
  `iid` int(11) NOT NULL DEFAULT '0',
  `company_id` int(11) NOT NULL DEFAULT '0',
  `customer` varchar(200) DEFAULT NULL,
  `ip` varchar(50) DEFAULT NULL,
  `browser` varchar(200) DEFAULT NULL,
  `referer` varchar(200) DEFAULT NULL,
  `city` varchar(200) DEFAULT NULL,
  `postal_code` varchar(50) DEFAULT NULL,
  `country` varchar(200) DEFAULT NULL,
  `country_iso` varchar(20) DEFAULT NULL,
  `viewed_at` varchar(200) DEFAULT NULL,
  `lat` varchar(100) DEFAULT NULL,
  `lon` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `ib_invoice_access_log`
--

INSERT INTO `ib_invoice_access_log` (`id`, `lid`, `cid`, `iid`, `company_id`, `customer`, `ip`, `browser`, `referer`, `city`, `postal_code`, `country`, `country_iso`, `viewed_at`, `lat`, `lon`) VALUES
(1, 0, 0, 1, 0, 'Vimal Karthik', '219.74.117.154', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.106 Safari/537.36', 'http://crm.meganemarine.com.sg/?ng=client/dashboard/', '', NULL, '', NULL, '2020-02-18 17:57:47', NULL, NULL),
(2, 0, 0, 1, 0, 'Vimal Karthik', '182.55.74.39', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36', 'http://crm.meganemarine.com.sg/?ng=client/dashboard/', '', NULL, '', NULL, '2020-03-25 20:36:52', NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `ib_kb`
--

CREATE TABLE `ib_kb` (
  `id` int(11) NOT NULL,
  `gid` int(11) DEFAULT NULL,
  `gname` varchar(200) DEFAULT NULL,
  `status` varchar(200) DEFAULT NULL,
  `type` varchar(200) DEFAULT NULL,
  `groups` text,
  `title` text,
  `slug` text,
  `description` text,
  `created_by` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `views` int(11) DEFAULT NULL,
  `is_public` int(1) NOT NULL DEFAULT '1',
  `sorder` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `ib_kb_groups`
--

CREATE TABLE `ib_kb_groups` (
  `id` int(11) NOT NULL,
  `gname` varchar(200) DEFAULT NULL,
  `description` text,
  `status` varchar(200) DEFAULT NULL,
  `color` varchar(50) DEFAULT NULL,
  `pid` int(11) DEFAULT NULL,
  `sorder` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `ib_kb_rel`
--

CREATE TABLE `ib_kb_rel` (
  `id` int(11) NOT NULL,
  `kbid` int(11) DEFAULT NULL,
  `gid` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `ib_kb_replies`
--

CREATE TABLE `ib_kb_replies` (
  `id` int(11) NOT NULL,
  `kbid` int(11) DEFAULT NULL,
  `cid` int(11) DEFAULT NULL,
  `pid` int(11) DEFAULT NULL,
  `status` varchar(200) DEFAULT NULL,
  `name` varchar(200) DEFAULT NULL,
  `phone` varchar(200) DEFAULT NULL,
  `email` varchar(200) DEFAULT NULL,
  `website` varchar(200) DEFAULT NULL,
  `ip` varchar(100) DEFAULT NULL,
  `date` date DEFAULT NULL,
  `reply` text,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `item_categories`
--

CREATE TABLE `item_categories` (
  `id` int(10) UNSIGNED NOT NULL,
  `parent_id` int(11) NOT NULL,
  `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
  `description` text COLLATE utf8mb4_unicode_ci NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `order_items`
--

CREATE TABLE `order_items` (
  `id` int(11) NOT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `order_id` int(11) DEFAULT NULL,
  `currency_id` int(11) DEFAULT NULL,
  `tax_id` int(11) DEFAULT NULL,
  `item_id` int(11) DEFAULT NULL,
  `item_name` varchar(200) DEFAULT NULL,
  `tax_name` varchar(200) DEFAULT NULL,
  `currency_symbol` varchar(20) DEFAULT NULL,
  `quantity` varchar(20) DEFAULT NULL,
  `unit_price` decimal(16,2) DEFAULT NULL,
  `tax_rate` decimal(16,2) DEFAULT NULL,
  `total` decimal(16,2) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `relations`
--

CREATE TABLE `relations` (
  `id` int(10) UNSIGNED NOT NULL,
  `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  `source_id` int(11) NOT NULL,
  `target_id` int(11) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- --------------------------------------------------------

--
-- Table structure for table `sys_accounts`
--

CREATE TABLE `sys_accounts` (
  `id` int(11) NOT NULL,
  `account` varchar(100) NOT NULL,
  `description` varchar(200) DEFAULT NULL,
  `balance` decimal(18,2) NOT NULL DEFAULT '0.00',
  `bank_name` varchar(200) DEFAULT NULL,
  `account_number` varchar(200) DEFAULT NULL,
  `currency` varchar(20) DEFAULT NULL,
  `branch` varchar(200) DEFAULT NULL,
  `address` varchar(200) DEFAULT NULL,
  `contact_person` varchar(200) DEFAULT NULL,
  `contact_phone` varchar(100) DEFAULT NULL,
  `website` varchar(200) DEFAULT NULL,
  `ib_url` varchar(200) DEFAULT NULL,
  `created` date DEFAULT NULL,
  `notes` text,
  `sorder` int(11) DEFAULT NULL,
  `e` varchar(200) DEFAULT NULL,
  `token` varchar(200) DEFAULT NULL,
  `status` varchar(200) DEFAULT NULL,
  `owner_id` int(10) UNSIGNED DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_accounts`
--

INSERT INTO `sys_accounts` (`id`, `account`, `description`, `balance`, `bank_name`, `account_number`, `currency`, `branch`, `address`, `contact_person`, `contact_phone`, `website`, `ib_url`, `created`, `notes`, `sorder`, `e`, `token`, `status`, `owner_id`, `created_at`, `updated_at`) VALUES
(1, 'UOB Account', 'Uob Current Account', '0.00', '', '033227856', '', '', '', 'Karthik', '82918173', '', '', '2020-03-25', '', 1, '', '', '', 1, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `sys_activity`
--

CREATE TABLE `sys_activity` (
  `id` int(11) NOT NULL,
  `cid` int(11) NOT NULL DEFAULT '0',
  `msg` text NOT NULL,
  `icon` varchar(100) NOT NULL DEFAULT '',
  `stime` varchar(50) NOT NULL,
  `sdate` date NOT NULL,
  `o` int(11) NOT NULL DEFAULT '0',
  `oname` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_activity`
--

INSERT INTO `sys_activity` (`id`, `cid`, `msg`, `icon`, `stime`, `sdate`, `o`, `oname`) VALUES
(3, 8, 'grr<br />ter<br />t', 'fa fa-check', '1589227956', '2020-05-12', 1, 'Karthik'),
(4, 8, 'dfg<br /><br />fgh<br />f<br />hertet', 'fa fa-life-ring', '1589227965', '2020-05-12', 1, 'Karthik');

-- --------------------------------------------------------

--
-- Table structure for table `sys_api`
--

CREATE TABLE `sys_api` (
  `id` int(11) NOT NULL,
  `label` text,
  `ip` text,
  `apikey` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_api`
--

INSERT INTO `sys_api` (`id`, `label`, `ip`, `apikey`) VALUES
(1, 'api_key', NULL, 'w1o3sdsfvo4eandux30mdr3b70hb4a1fozmd267j');

-- --------------------------------------------------------

--
-- Table structure for table `sys_appconfig`
--

CREATE TABLE `sys_appconfig` (
  `id` int(11) NOT NULL,
  `setting` varchar(200) NOT NULL DEFAULT '',
  `value` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_appconfig`
--

INSERT INTO `sys_appconfig` (`id`, `setting`, `value`) VALUES
(1, 'CompanyName', 'Apstrix Solutions'),
(29, 'theme', 'default'),
(37, 'currency_code', '$'),
(56, 'language', 'en'),
(57, 'show-logo', '1'),
(58, 'nstyle', 'dark_mode'),
(63, 'dec_point', '.'),
(64, 'thousands_sep', ','),
(65, 'timezone', 'Asia/Singapore'),
(66, 'country', 'Singapore'),
(67, 'country_code', 'US'),
(68, 'df', 'Y-m-d'),
(69, 'caddress', '<p>Apstrix Singapore</p>'),
(70, 'account_search', '1'),
(71, 'redirect_url', 'dashboard'),
(72, 'rtl', '0'),
(73, 'ckey', '0982995697'),
(74, 'networth_goal', '350000'),
(75, 'sysEmail', 'demo@example.com'),
(76, 'url_rewrite', '0'),
(77, 'build', '430'),
(78, 'animate', '0'),
(79, 'pdf_font', 'dejavusanscondensed'),
(80, 'accounting', '1'),
(81, 'invoicing', '1'),
(82, 'quotes', '1'),
(83, 'client_dashboard', '1'),
(84, 'contact_set_view_mode', 'search'),
(85, 'invoice_terms', '<p>This default invoice term</p>'),
(86, 'console_notify_invoice_created', '0'),
(87, 'i_driver', 'v2'),
(88, 'purchase_key', 'B5VE-SNP4-KB15-1179-7948'),
(89, 'c_cache', ''),
(90, 'mininav', '0'),
(91, 'hide_footer', '1'),
(92, 'design', 'default'),
(93, 'default_landing_page', 'login'),
(94, 'recaptcha', '0'),
(95, 'recaptcha_sitekey', ''),
(96, 'recaptcha_secretkey', ''),
(97, 'home_currency', 'SGD'),
(98, 'currency_decimal_digits', 'true'),
(99, 'currency_symbol_position', 'p'),
(100, 'thousand_separator_placement', '3'),
(101, 'dashboard', 'canvas'),
(102, 'header_scripts', ''),
(103, 'footer_scripts', ''),
(104, 'ib_key', 'vLBLfhA6DNi1R2MFHO8IvFWr4Cn9665eHUF+L/sqAKM='),
(105, 'ib_s', 'PNhjeZ0sOFF3JNfzT2mLxvNNKPeh6ltqpE+G5LVSDSvgp/z79Sco7W4tJEoXYIl8'),
(106, 'ib_u_t', '1512841700'),
(107, 'ib_u_a', '0'),
(108, 'momentLocale', 'en'),
(109, 'contentAnimation', 'animated fadeIn'),
(110, 'calendar', '1'),
(111, 'leads', '1'),
(112, 'tasks', '1'),
(113, 'orders', '1'),
(114, 'show_quantity_as', ''),
(115, 'gmap_api_key', ''),
(116, 'license_key', '5FEB-2E39-D4DF-24C0-5DF8-2090-AC98-5962'),
(117, 'local_key', ''),
(118, 'ib_installed_at', '1485170108'),
(119, 'maxmind_installed', '1'),
(120, 'maxmind_db_version', ''),
(121, 'add_fund', '1'),
(122, 'add_fund_minimum_deposit', '100'),
(123, 'add_fund_maximum_deposit', '2500'),
(124, 'add_fund_maximum_balance', '25000'),
(125, 'add_fund_require_active_order', '0'),
(126, 'industry', 'default'),
(127, 'sales_target', '10000'),
(128, 'inventory', '1'),
(129, 'secondary_currency', ''),
(130, 'customer_custom_username', '0'),
(131, 'documents', '1'),
(132, 'projects', '1'),
(133, 'purchase', '1'),
(134, 'suppliers', '1'),
(135, 'support', '1'),
(136, 'hrm', '1'),
(137, 'companies', '1'),
(138, 'plugins', '1'),
(139, 'country_flag_code', 'sg'),
(140, 'graph_primary_color', '2196f3'),
(141, 'graph_secondary_color', 'eb3c00'),
(142, 'expense_type_1', 'Personal'),
(143, 'expense_type_2', 'Business'),
(144, 'edition', 'default'),
(147, 'assets', '1'),
(148, 'kb', '1'),
(149, 'business_id_1', ''),
(150, 'business_id_2', ''),
(151, 'logo_default', 'logo_4149658227.png'),
(152, 'logo_inverse', 'logo_inverse_5883084039.png'),
(153, 'add_fund_client', '0'),
(154, 'order_method', 'create_invoice_later'),
(155, 'purchase_code', ''),
(156, 'invoice_receipt_number', '1'),
(157, 'allow_customer_registration', '1'),
(158, 'fax_field', '0'),
(159, 'show_business_number', '0'),
(160, 'label_business_number', 'Business Number'),
(161, 'sms', '1'),
(162, 'sms_request_method', 'POST'),
(163, 'sms_auth_header', ''),
(164, 'sms_req_url', ''),
(165, 'sms_notify_admin_new_deposit', '0'),
(166, 'sms_notify_customer_signed_up', '0'),
(167, 'sms_notify_customer_invoice_created', '0'),
(168, 'sms_notify_customer_invoice_paid', '0'),
(169, 'sms_notify_customer_payment_received', '0'),
(170, 'sms_api_handler', 'Nexmo'),
(171, 'sms_auth_username', ''),
(172, 'sms_auth_password', ''),
(173, 'sms_sender_name', 'CLX'),
(175, 'sms_http_params', ''),
(176, 'purchase_invoice_payment_status', '0'),
(177, 'quote_confirmation_email', '1'),
(178, 'client_drive', '1'),
(179, 's_version', '7'),
(180, 'latest_file', '4618152936941418.zip'),
(181, 'invoice_show_watermark', '1'),
(183, 'show_country_flag', '0'),
(184, 'drive', '0'),
(185, 'tax_system', 'default'),
(186, 'pos', '1'),
(187, 'password_manager', 'default'),
(188, 'update_manager', '1'),
(189, 'app_credentials', '0'),
(190, 'business_location', 'Andaman and Nicobar Island'),
(191, 'hr', '1'),
(192, 'mailgun_api_key', ''),
(193, 'sparkpost_api_key', ''),
(194, 'mailgun_domain', ''),
(195, 'show_sidebar_header', '1'),
(196, 'top_bar_is_dark', '1'),
(198, 'slack_webhook_url', ''),
(199, 'config_recaptcha_in_client_login', '0'),
(200, 'config_recaptcha_in_admin_login', '0'),
(201, 'contact_list_show_company_column', '0'),
(202, 'config_contact_list_show_group_column', '1'),
(203, 'contact_list_show_group_column', '0'),
(208, 'tickets_assigned_sms_notification', '1'),
(209, 'number_pad', '5'),
(210, 'customer_code_prefix', 'CUS-'),
(211, 'customer_code_template', ''),
(212, 'customer_code_current_number', '13'),
(213, 'supplier_code_prefix', 'SUP-'),
(214, 'supplier_code_template', ''),
(215, 'supplier_code_current_number', '1'),
(216, 'income_code_prefix', 'INC-'),
(217, 'income_code_template', ''),
(218, 'income_code_current_number', '3'),
(219, 'expense_code_prefix', 'EXP-'),
(220, 'expense_code_template', ''),
(221, 'expense_code_current_number', '1'),
(222, 'invoice_code_prefix', 'INV-'),
(223, 'invoice_code_template', ''),
(224, 'invoice_code_current_number', '29'),
(225, 'quotation_code_prefix', 'QUOTE-'),
(226, 'quotation_code_template', ''),
(227, 'quotation_code_current_number', '3'),
(228, 'purchase_code_prefix', 'PO-'),
(229, 'purchase_code_template', ''),
(230, 'purchase_code_current_number', '1'),
(231, 'contact_display_name_string', 'Display Name'),
(232, 'contact_extra_field', 'Display Name'),
(233, 'company_code_prefix', 'COMP-'),
(234, 'company_code_template', ''),
(235, 'company_code_current_number', '3'),
(236, 'ticket_code_prefix', ''),
(237, 'ticket_code_template', ''),
(238, 'ticket_code_current_number', ''),
(239, 'invoice_client_can_attach_signature', '1'),
(240, 'dashboard_widgets_tickets', '1'),
(241, 'dashboard_widgets_tasks', '1'),
(242, 'refresh_widget_every', '900000'),
(243, 'address_format', 'default'),
(244, 'vat_number', ''),
(245, 'invoice_default_date', 'due_on_receipt'),
(246, 'delivery_challans', '1'),
(247, 'client_id', '10'),
(248, 'latitude', '1.454201'),
(249, 'longitude', '103.817423');

-- --------------------------------------------------------

--
-- Table structure for table `sys_canned_responses`
--

CREATE TABLE `sys_canned_responses` (
  `id` int(11) NOT NULL,
  `title` text,
  `message` text,
  `tags` text,
  `attachments` text,
  `sorder` int(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `sys_cart`
--

CREATE TABLE `sys_cart` (
  `id` int(11) NOT NULL,
  `secret` varchar(100) DEFAULT NULL,
  `items` text,
  `total` decimal(16,2) NOT NULL DEFAULT '0.00',
  `discount` decimal(16,2) NOT NULL DEFAULT '0.00',
  `ip` varchar(100) DEFAULT NULL,
  `fullname` varchar(200) DEFAULT NULL,
  `phone` varchar(200) DEFAULT NULL,
  `email` varchar(200) DEFAULT NULL,
  `status` varchar(200) DEFAULT NULL,
  `browser` varchar(200) DEFAULT NULL,
  `country` varchar(200) DEFAULT NULL,
  `currency` varchar(200) DEFAULT NULL,
  `language` varchar(200) DEFAULT NULL,
  `coupon` varchar(200) DEFAULT NULL,
  `lat` varchar(50) DEFAULT NULL,
  `lon` varchar(50) DEFAULT NULL,
  `item_count` int(11) NOT NULL DEFAULT '0',
  `cid` int(11) NOT NULL DEFAULT '0',
  `aid` int(11) NOT NULL DEFAULT '0',
  `lid` int(11) NOT NULL DEFAULT '0',
  `currency_id` int(11) NOT NULL DEFAULT '0',
  `company_id` int(11) NOT NULL DEFAULT '0',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `expiry` datetime DEFAULT NULL,
  `memo` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `sys_cats`
--

CREATE TABLE `sys_cats` (
  `id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `type` enum('Income','Expense') NOT NULL,
  `sorder` int(11) NOT NULL DEFAULT '0',
  `total_amount` decimal(16,4) DEFAULT '0.0000',
  `budget` decimal(16,4) DEFAULT '0.0000',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `total_spend` decimal(16,4) DEFAULT '0.0000',
  `current_month_spend` decimal(16,4) DEFAULT '0.0000',
  `current_year_spend` decimal(16,4) DEFAULT '0.0000'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_cats`
--

INSERT INTO `sys_cats` (`id`, `name`, `type`, `sorder`, `total_amount`, `budget`, `created_at`, `updated_at`, `total_spend`, `current_month_spend`, `current_year_spend`) VALUES
(14, 'Advertising', 'Expense', 3, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(15, 'Bank and Credit Card Interest', 'Expense', 21, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(16, 'Car and Truck', 'Expense', 22, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(17, 'Commissions and Fees', 'Expense', 23, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(18, 'Contract Labor', 'Expense', 24, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(19, 'Contributions', 'Expense', 25, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(20, 'Cost of Goods Sold', 'Expense', 26, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(21, 'Credit Card Interest', 'Expense', 27, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(22, 'Depreciation', 'Expense', 29, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(23, 'Dividend Payments', 'Expense', 30, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(24, 'Employee Benefit Programs', 'Expense', 31, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(25, 'Entertainment', 'Expense', 32, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(26, 'Gift', 'Expense', 33, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(27, 'Insurance', 'Expense', 34, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(28, 'Legal, Accountant &amp; Other Professional Services', 'Expense', 35, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(29, 'Meals', 'Expense', 36, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(30, 'Mortgage Interest', 'Expense', 37, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(31, 'Non-Deductible Expense', 'Expense', 38, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(33, 'Other Business Property Leasing', 'Expense', 20, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(34, 'Owner Draws', 'Expense', 19, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(35, 'Payroll Taxes', 'Expense', 6, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(37, 'Phone', 'Expense', 7, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(38, 'Postage', 'Expense', 8, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(39, 'Rent', 'Expense', 10, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(40, 'Repairs &amp; Maintenance', 'Expense', 9, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(41, 'Supplies', 'Expense', 11, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(42, 'Taxes and Licenses', 'Expense', 12, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(43, 'Transfer Funds', 'Expense', 13, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(44, 'Travel', 'Expense', 14, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(45, 'Utilities', 'Expense', 15, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(46, 'Vehicle, Machinery &amp; Equipment Rental or Leasing', 'Expense', 16, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(47, 'Wages', 'Expense', 17, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(48, 'Regular Income', 'Income', 1, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(49, 'Owner Contribution', 'Income', 12, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(50, 'Interest Income', 'Income', 11, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(51, 'Expense Refund', 'Income', 10, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(52, 'Other Income', 'Income', 9, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(53, 'Salary', 'Income', 8, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(54, 'Equities', 'Income', 7, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(55, 'Rent &amp; Royalties', 'Income', 6, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(56, 'Home equity', 'Income', 5, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(57, 'Part Time Work', 'Income', 3, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(58, 'Account Transfer', 'Income', 4, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(60, 'Health Care', 'Expense', 18, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(63, 'Loans', 'Expense', 28, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(64, 'Selling Software', 'Income', 2, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(65, 'Software Customization', 'Income', 13, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(67, 'Salary', 'Expense', 4, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(68, 'Paypal', 'Expense', 5, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(69, 'Office Equipment', 'Expense', 2, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(70, 'Staff Entertaining', 'Expense', 1, '0.0000', '0.0000', NULL, '2020-02-18 05:07:50', '0.0000', '0.0000', '0.0000'),
(71, 'Uncategorized', 'Income', 0, '86.0000', '0.0000', '2018-04-05 04:59:50', '2020-04-23 14:53:13', '0.0000', '0.0000', '0.0000');

-- --------------------------------------------------------

--
-- Table structure for table `sys_companies`
--

CREATE TABLE `sys_companies` (
  `id` int(11) NOT NULL,
  `company_name` varchar(200) DEFAULT NULL,
  `code` varchar(100) DEFAULT NULL,
  `business_number` varchar(200) DEFAULT NULL,
  `url` varchar(200) DEFAULT NULL,
  `logo_url` varchar(200) DEFAULT NULL,
  `logo_path` varchar(200) DEFAULT NULL,
  `email` varchar(200) DEFAULT NULL,
  `phone` varchar(200) DEFAULT NULL,
  `emails` text,
  `phones` text,
  `tags` text,
  `description` text,
  `notes` text,
  `address1` varchar(200) DEFAULT NULL,
  `address2` varchar(200) DEFAULT NULL,
  `city` varchar(200) DEFAULT NULL,
  `state` varchar(200) DEFAULT NULL,
  `zip` varchar(50) DEFAULT NULL,
  `country` varchar(100) DEFAULT NULL,
  `source` varchar(200) DEFAULT NULL,
  `added_from` varchar(200) DEFAULT NULL,
  `o` varchar(200) DEFAULT NULL,
  `cid` int(11) NOT NULL DEFAULT '0',
  `aid` int(11) NOT NULL DEFAULT '0',
  `pid` int(11) NOT NULL DEFAULT '0',
  `oid` int(11) NOT NULL DEFAULT '0',
  `rid` int(11) NOT NULL DEFAULT '0',
  `assigned` int(11) NOT NULL DEFAULT '0',
  `created_at` timestamp NULL DEFAULT NULL,
  `created_by` varchar(200) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `updated_by` varchar(200) DEFAULT NULL,
  `last_contact` datetime DEFAULT NULL,
  `last_contact_by` varchar(200) DEFAULT NULL,
  `ratings` varchar(50) DEFAULT NULL,
  `trash` int(1) NOT NULL DEFAULT '0',
  `archived` int(1) NOT NULL DEFAULT '0',
  `c1` text,
  `c2` text,
  `c3` text,
  `c4` text,
  `c5` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_companies`
--

INSERT INTO `sys_companies` (`id`, `company_name`, `code`, `business_number`, `url`, `logo_url`, `logo_path`, `email`, `phone`, `emails`, `phones`, `tags`, `description`, `notes`, `address1`, `address2`, `city`, `state`, `zip`, `country`, `source`, `added_from`, `o`, `cid`, `aid`, `pid`, `oid`, `rid`, `assigned`, `created_at`, `created_by`, `updated_at`, `updated_by`, `last_contact`, `last_contact_by`, `ratings`, `trash`, `archived`, `c1`, `c2`, `c3`, `c4`, `c5`) VALUES
(1, 'Apstrix', 'COMP-00002', '', 'http://', '', NULL, '', '', NULL, NULL, NULL, NULL, NULL, '', NULL, '', '', '', 'Singapore', NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, '2020-03-30 18:29:37', NULL, '2020-03-30 18:29:37', NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `sys_currencies`
--

CREATE TABLE `sys_currencies` (
  `id` int(11) NOT NULL,
  `cname` varchar(100) DEFAULT NULL,
  `iso_code` varchar(10) DEFAULT NULL,
  `symbol` varchar(20) DEFAULT NULL,
  `rate` decimal(16,8) NOT NULL DEFAULT '1.00000000',
  `prefix` varchar(20) DEFAULT NULL,
  `suffix` varchar(20) DEFAULT NULL,
  `format` varchar(100) DEFAULT NULL,
  `decimal_separator` varchar(10) DEFAULT NULL,
  `thousand_separator` varchar(10) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `created_by` varchar(200) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `updated_by` varchar(200) DEFAULT NULL,
  `available_in` text,
  `isdefault` int(1) NOT NULL DEFAULT '0',
  `trash` int(1) NOT NULL DEFAULT '0',
  `archived` int(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_currencies`
--

INSERT INTO `sys_currencies` (`id`, `cname`, `iso_code`, `symbol`, `rate`, `prefix`, `suffix`, `format`, `decimal_separator`, `thousand_separator`, `created_at`, `created_by`, `updated_at`, `updated_by`, `available_in`, `isdefault`, `trash`, `archived`) VALUES
(1, 'SGD', 'SGD', '', '1.00000000', NULL, NULL, NULL, NULL, NULL, '2020-02-18 05:07:50', NULL, '2020-02-18 18:17:48', NULL, NULL, 0, 0, 0);

-- --------------------------------------------------------

--
-- Table structure for table `sys_documents`
--

CREATE TABLE `sys_documents` (
  `id` int(11) NOT NULL,
  `title` varchar(200) DEFAULT NULL,
  `file_o_name` varchar(200) DEFAULT NULL,
  `file_r_name` varchar(200) DEFAULT NULL,
  `file_mime_type` varchar(200) DEFAULT NULL,
  `file_path` varchar(200) DEFAULT NULL,
  `file_dl_token` varchar(200) DEFAULT NULL,
  `file_owner` int(11) NOT NULL DEFAULT '0',
  `version` varchar(100) DEFAULT NULL,
  `link` varchar(100) DEFAULT NULL,
  `sha1` varchar(40) DEFAULT NULL,
  `md5` varchar(32) DEFAULT NULL,
  `cid` int(11) NOT NULL DEFAULT '0',
  `gid` int(11) NOT NULL DEFAULT '0',
  `company_id` int(11) NOT NULL DEFAULT '0',
  `aid` int(11) NOT NULL DEFAULT '0',
  `contacts` text,
  `deals` text,
  `leads` text,
  `created_at` datetime DEFAULT NULL,
  `created_by` varchar(200) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `updated_by` varchar(200) DEFAULT NULL,
  `customer_can_download` int(1) NOT NULL DEFAULT '0',
  `trash` int(1) NOT NULL DEFAULT '0',
  `archived` int(1) NOT NULL DEFAULT '0',
  `is_global` int(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_documents`
--

INSERT INTO `sys_documents` (`id`, `title`, `file_o_name`, `file_r_name`, `file_mime_type`, `file_path`, `file_dl_token`, `file_owner`, `version`, `link`, `sha1`, `md5`, `cid`, `gid`, `company_id`, `aid`, `contacts`, `deals`, `leads`, `created_at`, `created_by`, `updated_at`, `updated_by`, `customer_can_download`, `trash`, `archived`, `is_global`) VALUES
(1, 'Test  File', NULL, NULL, 'jpg', '_348a38cd430575158229276710319566.jpg', 'xl5mm0kumv1k6uknirmkmcoc07kzuf', 0, NULL, NULL, NULL, NULL, 1, 0, 0, 0, NULL, NULL, NULL, '2020-02-21 21:46:44', NULL, '2020-02-21 21:46:44', NULL, 0, 0, 0, 0);

-- --------------------------------------------------------

--
-- Table structure for table `sys_emailconfig`
--

CREATE TABLE `sys_emailconfig` (
  `id` int(11) NOT NULL,
  `method` varchar(50) NOT NULL,
  `host` varchar(100) NOT NULL,
  `username` varchar(100) NOT NULL,
  `password` varchar(200) NOT NULL,
  `apikey` varchar(200) NOT NULL,
  `port` varchar(10) NOT NULL,
  `secure` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_emailconfig`
--

INSERT INTO `sys_emailconfig` (`id`, `method`, `host`, `username`, `password`, `apikey`, `port`, `secure`) VALUES
(1, 'phpmail', '', '', '', '', '', '');

-- --------------------------------------------------------

--
-- Table structure for table `sys_email_logs`
--

CREATE TABLE `sys_email_logs` (
  `id` int(10) NOT NULL,
  `userid` int(10) NOT NULL,
  `sender` varchar(200) NOT NULL,
  `email` text NOT NULL,
  `subject` text NOT NULL,
  `message` text NOT NULL,
  `date` datetime DEFAULT NULL,
  `iid` int(11) NOT NULL DEFAULT '0',
  `rel_type` varchar(100) DEFAULT NULL,
  `rel_id` int(11) NOT NULL DEFAULT '0',
  `purchase_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_email_logs`
--

INSERT INTO `sys_email_logs` (`id`, `userid`, `sender`, `email`, `subject`, `message`, `date`, `iid`, `rel_type`, `rel_id`, `purchase_id`) VALUES
(1, 0, '', 'vimalkarthik@apstrix.com', 'Apstrix Solutions Quote', '<div style=\"line-height: 1.6; color: #222; text-align: left; width: 550px; font-size: 10pt; margin: 0px 10px; font-family: verdana,sans-serif; padding: 14px; border: 3px solid #d8d8d8; border-top: 3px solid #007bc3;\">\n<div style=\"padding: 5px; font-size: 11pt; font-weight: bold;\">Greetings,</div>\n<div style=\"padding: 5px;\">Dear Vimal Karthik,&nbsp;<br />Thank you for accepting the Quote.</div>\n<div style=\"padding: 10px 5px;\">Quote: <a href=\"http://crm.meganemarine.com.sg/?ng=client/q/1/token_7457956176\" target=\"_blank\" rel=\"noopener noreferrer\">http://crm.meganemarine.com.sg/?ng=client/q/1/token_7457956176</a></div>\n<div style=\"padding: 5px;\"><span style=\"font-size: 13.3333330154419px; line-height: 21.3333320617676px;\">You may view the quote at any time and simply reply to this email with any further questions or requirement.</span></div>\n<div style=\"padding: 0px 5px;\">\n<div>Best Regards,<br />Apstrix Solutions Team</div>\n</div>\n</div>', '2020-04-01 19:22:28', 0, NULL, 0, NULL),
(2, 0, '', 'admin@akstech.com.sg', 'Apstrix Solutions Quote Accpeted', 'Quote- 1 has been Accepted. You can view this quote- http://crm.meganemarine.com.sg/?ng=client/q/1/token_7457956176', '2020-04-01 19:22:28', 0, NULL, 0, NULL),
(3, 0, '', 'vimalkarthik@apstrix.com', 'Apstrix Solutions Quote', '<div style=\"line-height: 1.6; color: #222; text-align: left; width: 550px; font-size: 10pt; margin: 0px 10px; font-family: verdana,sans-serif; padding: 14px; border: 3px solid #d8d8d8; border-top: 3px solid #007bc3;\">\n<div style=\"padding: 5px; font-size: 11pt; font-weight: bold;\">Greetings,</div>\n<div style=\"padding: 5px;\">Dear Vimal Karthik,&nbsp;<br />We are sorry to see you go. If you chnage your mind, you can Accept it again from following url. The quote is valid until 2020-04-27.</div>\n<div style=\"padding: 10px 5px;\">Quote Unique URL: <a href=\"http://stackb.dev/http://crm.meganemarine.com.sg/?ng=client/q/1/token_7457956176\" target=\"_blank\" rel=\"noopener noreferrer\">http://crm.meganemarine.com.sg/?ng=client/q/1/token_7457956176</a></div>\n<div style=\"padding: 5px;\"><span style=\"font-size: 13.3333330154419px; line-height: 21.3333320617676px;\">You may view the quote at any time and simply reply to this email with any further questions or requirement.</span></div>\n<div style=\"padding: 0px 5px;\">\n<div>Best Regards,<br />Apstrix Solutions Team</div>\n</div>\n</div>', '2020-04-01 19:23:10', 0, NULL, 0, NULL),
(4, 0, '', 'admin@akstech.com.sg', 'Apstrix Solutions Quote Cancelled', 'Quote- 1 has been cancelled. You can view this quote- http://crm.meganemarine.com.sg/?ng=client/q/1/token_7457956176', '2020-04-01 19:23:10', 0, NULL, 0, NULL),
(5, 1, '', 'vimalkarthik@apstrix.com', 'Issues with Login', '<p>Vimal Karthik,</p>\n<p>Thank you for contacting our support team. A support ticket has now been opened for your request. You will be notified when a response is made by email. Your ticket ID is #QUC-33395164 and a copy of your original message is included below.</p>\n<p>Subject: Issues with Login <br /> Message: <br /> Server Keeps down. Please rectify <br /> Priority: High <br /> Status: Open</p>\n<p>You can view the ticket at any time at http://crm.meganemarine.com.sg/?ng=client/tickets/view/QUC-33395164/</p>', '2020-04-10 21:38:17', 0, NULL, 0, NULL),
(6, 1, '', 'support@akstech.com.sg', 'Issues with Login', '<p>http://crm.meganemarine.com.sg/?ng=tickets/admin/view/1</p> Server Keeps down. Please rectify', '2020-04-10 21:38:17', 0, NULL, 0, NULL),
(7, 0, '', 'admin@akstech.com.sg', 'Ticket assigned: QUC-33395164', 'View Ticket- http://crm.meganemarine.com.sg/?ng=tickets/admin/view/1', '2020-04-10 21:39:34', 0, NULL, 0, NULL),
(8, 1, '', 'vimalkarthik@apstrix.com', 'Issues with Login', '<p>Check Webmin Configurations</p>\n<p>----------------------------------------------<br /> Ticket ID: #QUC-33395164<br /> Subject: Issues with Login<br /> Status: Open<br /> Ticket URL: http://crm.meganemarine.com.sg/?ng=client/tickets/view/QUC-33395164/<br /> ----------------------------------------------</p>', '2020-04-10 21:40:29', 0, NULL, 0, NULL),
(9, 1, '', 'vimalkarthik@apstrix.com', 'Server Error', '<p>Vimal Karthik,</p>\n<p>Thank you for contacting our support team. A support ticket has now been opened for your request. You will be notified when a response is made by email. Your ticket ID is #STG-57223929 and a copy of your original message is included below.</p>\n<p>Subject: Server Error <br /> Message: <br /> <p>hii</p><p>There is server error occured</p> <br /> Priority: Medium <br /> Status: Open</p>\n<p>You can view the ticket at any time at http://crm.meganemarine.com.sg/?ng=client/tickets/view/STG-57223929/</p>', '2020-04-15 13:27:58', 0, NULL, 0, NULL),
(10, 1, '', 'support@akstech.com.sg', 'Server Error', '<p>http://crm.meganemarine.com.sg/?ng=tickets/admin/view/2</p> <p>hii</p><p>There is server error occured</p>', '2020-04-15 13:27:58', 0, NULL, 0, NULL),
(11, 1, '', 'vimalkarthik@apstrix.com', 'Repaid', '<p>Vimal Karthik,</p>\n<p>Thank you for contacting our support team. A support ticket has now been opened for your request. You will be notified when a response is made by email. Your ticket ID is #ZPK-96337565 and a copy of your original message is included below.</p>\n<p>Subject: Repaid <br /> Message: <br /> <p>Error Occurred in hardware system</p><p><br></p> <br /> Priority: Medium <br /> Status: Open</p>\n<p>You can view the ticket at any time at http://crm.meganemarine.com.sg/?ng=client/tickets/view/ZPK-96337565/</p>', '2020-04-15 20:19:01', 0, NULL, 0, NULL),
(12, 1, '', 'support@akstech.com.sg', 'Repaid', '<p>http://crm.meganemarine.com.sg/?ng=tickets/admin/view/5</p> <p>Error Occurred in hardware system</p><p><br></p>', '2020-04-15 20:19:01', 0, NULL, 0, NULL),
(13, 0, '', 'kumar@gmail.com', 'Your Apstrix Solutions Login Info', '<p>Dear Kumar,</p>\n<p>Welcome to Apstrix Solutions.</p>\n<p>You can track your billing, profile, transactions from this portal.</p>\n<p>Your login information is as follows:</p>\n<p>---------------------------------------------------------------------------------------</p>\n<p>Login URL: http://localhost:8888/apstrix/crm-backend/?ng=client/login/ <br />Email Address: kumar@gmail.com<br /> Password: Your chosen password.</p>\n<p>----------------------------------------------------------------------------------------</p>\n<p>We very much appreciate you for choosing us.</p>\n<p>Apstrix Solutions Team</p>', '2020-04-17 17:34:14', 0, NULL, 0, NULL),
(14, 0, '', 'jeevan@gmail.com', 'Your Apstrix Solutions Login Info', '<p>Dear Jeevan,</p>\n<p>Welcome to Apstrix Solutions.</p>\n<p>You can track your billing, profile, transactions from this portal.</p>\n<p>Your login information is as follows:</p>\n<p>---------------------------------------------------------------------------------------</p>\n<p>Login URL: http://localhost:8888/apstrix/crm-backend/?ng=client/login/ <br />Email Address: jeevan@gmail.com<br /> Password: Your chosen password.</p>\n<p>----------------------------------------------------------------------------------------</p>\n<p>We very much appreciate you for choosing us.</p>\n<p>Apstrix Solutions Team</p>', '2020-04-18 15:02:54', 0, NULL, 0, NULL),
(15, 0, '', 'devu@gmail.com', 'Your Apstrix Solutions Login Info', '<p>Dear Devu,</p>\n<p>Welcome to Apstrix Solutions.</p>\n<p>You can track your billing, profile, transactions from this portal.</p>\n<p>Your login information is as follows:</p>\n<p>---------------------------------------------------------------------------------------</p>\n<p>Login URL: http://localhost:8888/apstrix/crm-backend/?ng=client/login/ <br />Email Address: devu@gmail.com<br /> Password: Your chosen password.</p>\n<p>----------------------------------------------------------------------------------------</p>\n<p>We very much appreciate you for choosing us.</p>\n<p>Apstrix Solutions Team</p>', '2020-04-29 17:34:30', 0, NULL, 0, NULL),
(16, 0, '', 'a@gmail.com', 'Your Apstrix Solutions Login Info', '<p>Dear Abyy,</p>\n<p>Welcome to Apstrix Solutions.</p>\n<p>You can track your billing, profile, transactions from this portal.</p>\n<p>Your login information is as follows:</p>\n<p>---------------------------------------------------------------------------------------</p>\n<p>Login URL: http://localhost:8888/apstrix/crm-backend/?ng=client/login/ <br />Email Address: a@gmail.com<br /> Password: Your chosen password.</p>\n<p>----------------------------------------------------------------------------------------</p>\n<p>We very much appreciate you for choosing us.</p>\n<p>Apstrix Solutions Team</p>', '2020-05-11 17:47:14', 0, NULL, 0, NULL),
(17, 0, '', 'w@gmail.com', 'Your Apstrix Solutions Login Info', '<p>Dear Weeswan,</p>\n<p>Welcome to Apstrix Solutions.</p>\n<p>You can track your billing, profile, transactions from this portal.</p>\n<p>Your login information is as follows:</p>\n<p>---------------------------------------------------------------------------------------</p>\n<p>Login URL: http://localhost:8888/apstrix/crm-backend/?ng=client/login/ <br />Email Address: w@gmail.com<br /> Password: Your chosen password.</p>\n<p>----------------------------------------------------------------------------------------</p>\n<p>We very much appreciate you for choosing us.</p>\n<p>Apstrix Solutions Team</p>', '2020-05-17 14:12:05', 0, NULL, 0, NULL),
(18, 0, '', 'be@gmail.com', 'Your Apstrix Solutions Login Info', '<p>Dear ben,</p>\n<p>Welcome to Apstrix Solutions.</p>\n<p>You can track your billing, profile, transactions from this portal.</p>\n<p>Your login information is as follows:</p>\n<p>---------------------------------------------------------------------------------------</p>\n<p>Login URL: http://localhost:8888/apstrix/crm-backend/?ng=client/login/ <br />Email Address: be@gmail.com<br /> Password: Your chosen password.</p>\n<p>----------------------------------------------------------------------------------------</p>\n<p>We very much appreciate you for choosing us.</p>\n<p>Apstrix Solutions Team</p>', '2020-05-17 14:14:33', 0, NULL, 0, NULL),
(19, 0, '', 'k@gmailc.com', 'Your Apstrix Solutions Login Info', '<p>Dear Kadan,</p>\n<p>Welcome to Apstrix Solutions.</p>\n<p>You can track your billing, profile, transactions from this portal.</p>\n<p>Your login information is as follows:</p>\n<p>---------------------------------------------------------------------------------------</p>\n<p>Login URL: http://localhost:8888/apstrix/crm-backend/?ng=client/login/ <br />Email Address: k@gmailc.com<br /> Password: Your chosen password.</p>\n<p>----------------------------------------------------------------------------------------</p>\n<p>We very much appreciate you for choosing us.</p>\n<p>Apstrix Solutions Team</p>', '2020-05-17 14:18:57', 0, NULL, 0, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `sys_email_templates`
--

CREATE TABLE `sys_email_templates` (
  `id` int(11) NOT NULL,
  `tplname` varchar(128) NOT NULL,
  `language_id` int(11) NOT NULL DEFAULT '1',
  `subject` text NOT NULL,
  `message` text NOT NULL,
  `send` varchar(50) DEFAULT 'Active',
  `core` enum('Yes','No') DEFAULT 'Yes',
  `hidden` tinyint(1) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_email_templates`
--

INSERT INTO `sys_email_templates` (`id`, `tplname`, `language_id`, `subject`, `message`, `send`, `core`, `hidden`) VALUES
(3, 'Invoice:Invoice Created', 1, '{{business_name}} Invoice', '<div style=\"line-height:1.6;color:#222;text-align:left;width:550px;font-size:10pt;margin:0px 10px;font-family:verdana,\'droid sans\',\'lucida sans\',sans-serif;padding:14px;border:3px solid #d8d8d8;border-top:3px solid #007bc3\"><div style=\"padding:5px;font-size:11pt;font-weight:bold\">   Greetings,</div>	<div style=\"padding:5px\">		This email serves as your official invoice from <strong>{{business_name}}. </strong>	</div><div style=\"padding:10px 5px\">    Invoice URL: <a href=\"{{invoice_url}}\" target=\"_blank\">{{invoice_url}}</a><a target=\"_blank\" style=\"color:#1da9c0;font-weight:bold;padding:3px;text-decoration:none\" href=\"{{app_url}}\"></a><br>Invoice ID: {{invoice_id}}<br>Invoice Amount: {{invoice_amount}}<br>Due Date: {{invoice_due_date}}</div><div style=\"padding:5px\"><span style=\"font-size: 13.3333330154419px; line-height: 21.3333320617676px;\">If you have any questions or need assistance, please don\'t hesitate to contact us.</span><br></div><div style=\"padding:0px 5px\">	<div>Best Regards,<br>{{business_name}} Team</div></div></div>', 'Yes', 'Yes', 0),
(7, 'Admin:Password Change Request', 1, '{{business_name}} password change request', '<div style=\"line-height:1.6;color:#222;text-align:left;width:550px;font-size:10pt;margin:0px 10px;font-family:verdana,\'droid sans\',\'lucida sans\',sans-serif;padding:14px;border:3px solid #d8d8d8;border-top:3px solid #007bc3\"><div style=\"padding:5px;font-size:11pt;font-weight:bold\">   Hi {{name}},</div>	<div style=\"padding:5px\">		This is to confirm that we have received a Forgot Password request for your Account Username - {{username}} <br>From the IP Address - {{ip_address}}	</div>	<div style=\"padding:5px\">		Click this linke to reset your password- <br><a target=\"_blank\" style=\"color:#1da9c0;font-weight:bold;padding:3px;text-decoration:none\" href=\"{{password_reset_link}}\">{{password_reset_link}}</a>	</div><div style=\"padding:5px\">Please note: until your password has been changed, your current password will remain valid. The Forgot Password Link will be available for a limited time only.</div><div style=\"padding:0px 5px\">	<div>Best Regards,<br>{{business_name}} Team</div></div></div>', 'Yes', 'Yes', 0),
(10, 'Admin:New Password', 1, '{{business_name}} New Password for Admin', '<div style=\"line-height:1.6;color:#222;text-align:left;width:550px;font-size:10pt;margin:0px 10px;font-family:verdana,\'droid sans\',\'lucida sans\',sans-serif;padding:14px;border:3px solid #d8d8d8;border-top:3px solid #007bc3\">\n\n<div style=\"padding:5px;font-size:11pt;font-weight:bold\">\n   Hello {{name}}\n</div>\n\n\n	<div style=\"padding:5px\">\n		Here is your new password for <strong>{{business_name}}. </strong>\n	</div>\n\n	\n<div style=\"padding:10px 5px\">\n    Log in URL: <a target=\"_blank\" style=\"color:#1da9c0;font-weight:bold;padding:3px;text-decoration:none\" href=\"{{login_url}}\">{{login_url}}</a><br>Username: {{username}}<br>Password: {{password}}</div>\n\n<div style=\"padding:5px\">For security reason, Please change your password after login. </div>\n\n<div style=\"padding:0px 5px\">\n	<div>Best Regards,<br>{{business_name}} Team</div>\n\n</div>\n\n</div>', 'Yes', 'Yes', 0),
(12, 'Invoice:Invoice Payment Reminder', 1, '{{business_name}} Invoice Payment Reminder', '<div style=\"line-height:1.6;color:#222;text-align:left;width:550px;font-size:10pt;margin:0px 10px;font-family:verdana,\'droid sans\',\'lucida sans\',sans-serif;padding:14px;border:3px solid #d8d8d8;border-top:3px solid #007bc3\"><div style=\"padding:5px;font-size:11pt;font-weight:bold\">   Greetings,</div>	<div style=\"padding:5px\">		This is a billing reminder that your invoice no. {{invoice_id}} which was generated on {{invoice_date}} is due on {{invoice_due_date}}. 	</div><div style=\"padding:10px 5px\">    Invoice URL: <a href=\"{{invoice_url}}\" target=\"_blank\">{{invoice_url}}</a><a target=\"_blank\" style=\"color:#1da9c0;font-weight:bold;padding:3px;text-decoration:none\" href=\"{{app_url}}\"></a><br>Invoice ID: {{invoice_id}}<br>Invoice Amount: {{invoice_amount}}<br>Due Date: {{invoice_due_date}}</div><div style=\"padding:5px\"><span style=\"font-size: 13.3333330154419px; line-height: 21.3333320617676px;\">If you have any questions or need assistance, please don\'t hesitate to contact us.</span><br></div><div style=\"padding:0px 5px\">	<div>Best Regards,<br>{{business_name}} Team</div></div></div>', 'Yes', 'Yes', 0),
(13, 'Invoice:Invoice Overdue Notice', 1, '{{business_name}} Invoice Overdue Notice', '<div style=\"line-height:1.6;color:#222;text-align:left;width:550px;font-size:10pt;margin:0px 10px;font-family:verdana,\'droid sans\',\'lucida sans\',sans-serif;padding:14px;border:3px solid #d8d8d8;border-top:3px solid #007bc3\"><div style=\"padding:5px;font-size:11pt;font-weight:bold\">   Greetings,</div>	<div style=\"padding:5px\">		This is the notice that your invoice no. {{invoice_id}} which was generated on {{invoice_date}} is now overdue.	</div>	<div style=\"padding:10px 5px\">    Invoice URL: <a href=\"{{invoice_url}}\" target=\"_blank\">{{invoice_url}}</a><a target=\"_blank\" style=\"color:#1da9c0;font-weight:bold;padding:3px;text-decoration:none\" href=\"{{app_url}}\"></a><br>Invoice ID: {{invoice_id}}<br>Invoice Amount: {{invoice_amount}}<br>Due Date: {{invoice_due_date}}</div><div style=\"padding:5px\"><span style=\"font-size: 13.3333330154419px; line-height: 21.3333320617676px;\">If you have any questions or need assistance, please don\'t hesitate to contact us.</span><br></div><div style=\"padding:0px 5px\">	<div>Best Regards,<br>{{business_name}} Team</div></div></div>', 'Yes', 'Yes', 0),
(14, 'Invoice:Invoice Payment Confirmation', 1, '{{business_name}} Invoice Payment Confirmation', '<div style=\"line-height:1.6;color:#222;text-align:left;width:550px;font-size:10pt;margin:0px 10px;font-family:verdana,\'droid sans\',\'lucida sans\',sans-serif;padding:14px;border:3px solid #d8d8d8;border-top:3px solid #007bc3\">\n\n<div style=\"padding:5px;font-size:11pt;font-weight:bold\">\n   Greetings,\n</div>\n\n\n\n	<div style=\"padding:5px\">\n		This is a payment receipt for Invoice {{invoice_id}} sent on {{invoice_date}}.\n	</div>\n\n\n	<div style=\"padding:5px\">\n		Login to your client Portal to view this invoice.\n	</div>\n\n\n<div style=\"padding:10px 5px\">\n    Invoice URL: <a href=\"{{invoice_url}}\" target=\"_blank\">{{invoice_url}}</a><a target=\"_blank\" style=\"color:#1da9c0;font-weight:bold;padding:3px;text-decoration:none\" href=\"{{app_url}}\"></a><br>Invoice ID: {{invoice_id}}<br>Invoice Amount: {{invoice_amount}}<br>Due Date: {{invoice_due_date}}</div>\n\n\n<div style=\"padding:5px\"><span style=\"font-size: 13.3333330154419px; line-height: 21.3333320617676px;\">If you have any questions or need assistance, please don\'t hesitate to contact us.</span><br></div>\n\n\n<div style=\"padding:0px 5px\">\n	<div>Best Regards,<br>{{business_name}} Team</div>\n\n\n</div>\n\n\n</div>', 'Yes', 'Yes', 0),
(15, 'Invoice:Invoice Refund Confirmation', 1, '{{business_name}} Invoice Refund Confirmation', '<div style=\"line-height:1.6;color:#222;text-align:left;width:550px;font-size:10pt;margin:0px 10px;font-family:verdana,\'droid sans\',\'lucida sans\',sans-serif;padding:14px;border:3px solid #d8d8d8;border-top:3px solid #007bc3\"><div style=\"padding:5px;font-size:11pt;font-weight:bold\">   Greetings,</div>	<div style=\"padding:5px\">		This is confirmation that a refund has been processed for Invoice {{invoice_id}} sent on {{invoice_date}}.	</div><div style=\"padding:10px 5px\">    Invoice URL: <a href=\"{{invoice_url}}\" target=\"_blank\">{{invoice_url}}</a><a target=\"_blank\" style=\"color:#1da9c0;font-weight:bold;padding:3px;text-decoration:none\" href=\"{{app_url}}\"></a><br>Invoice ID: {{invoice_id}}<br>Invoice Amount: {{invoice_amount}}<br>Due Date: {{invoice_due_date}}</div><div style=\"padding:5px\"><span style=\"font-size: 13.3333330154419px; line-height: 21.3333320617676px;\">If you have any questions or need assistance, please don\'t hesitate to contact us.</span><br></div><div style=\"padding:0px 5px\">	<div>Best Regards,<br>{{business_name}} Team</div></div></div>', 'Yes', 'Yes', 0),
(16, 'Quote:Quote Created', 1, '{{quote_subject}}', '<div style=\"line-height:1.6;color:#222;text-align:left;width:550px;font-size:10pt;margin:0px 10px;font-family:verdana,sans-serif;padding:14px;border:3px solid #d8d8d8;border-top:3px solid #007bc3\"><div style=\"padding:5px;font-size:11pt;font-weight:bold\">   Greetings,</div>	<div style=\"padding:5px\">		Dear {{contact_name}},&nbsp;<br> Here is the quote you requested for.  The quote is valid until {{valid_until}}.	</div><div style=\"padding:10px 5px\">    Quote Unique URL: <a href=\"{{quote_url}}\" target=\"_blank\">{{quote_url}}</a><br></div><div style=\"padding:5px\"><span style=\"font-size: 13.3333330154419px; line-height: 21.3333320617676px;\">You may view the quote at any time and simply reply to this email with any further questions or requirement.</span><br></div><div style=\"padding:0px 5px\">	<div>Best Regards,<br>{{business_name}} Team</div></div></div>', 'Yes', 'Yes', 0),
(17, 'Client:Client Signup Email', 1, 'Your {{business_name}} Login Info', '<p>Dear {{client_name}},</p>\n<p>Welcome to {{business_name}}.</p>\n<p>You can track your billing, profile, transactions from this portal.</p>\n<p>Your login information is as follows:</p>\n<p>---------------------------------------------------------------------------------------</p>\n<p>Login URL: {{client_login_url}} <br />Email Address: {{client_email}}<br /> Password: Your chosen password.</p>\n<p>----------------------------------------------------------------------------------------</p>\n<p>We very much appreciate you for choosing us.</p>\n<p>{{business_name}} Team</p>', 'Yes', 'Yes', 0),
(18, 'Tickets:Client Ticket Created', 1, '{{subject}}', '<p>{{client_name}},</p>\n<p>Thank you for contacting our support team. A support ticket has now been opened for your request. You will be notified when a response is made by email. Your ticket ID is {{ticket_id}} and a copy of your original message is included below.</p>\n<p>Subject: {{ticket_subject}} <br /> Message: <br /> {{message}} <br /> Priority: {{ticket_priority}} <br /> Status: {{ticket_status}}</p>\n<p>You can view the ticket at any time at {{ticket_link}}</p>', 'Yes', 'Yes', 0),
(19, 'Tickets:Admin Ticket Created', 1, '{{subject}}', '<p>{{admin_view_link}}</p> {{message}}', 'Yes', 'Yes', 0),
(20, 'Tickets:Client Response', 1, '{{subject}}', '<p>{{ticket_message}}</p>\n<p>----------------------------------------------<br /> Ticket ID: #{{ticket_id}}<br /> Subject: {{ticket_subject}}<br /> Status: {{ticket_status}}<br /> Ticket URL: {{ticket_link}}<br /> ----------------------------------------------</p>', 'Yes', 'Yes', 0),
(21, 'Tickets:Admin Response', 1, '{{subject}}', '<p>{{ticket_message}}</p>\n<p>----------------------------------------------<br /> Ticket ID: #{{ticket_id}}<br /> Subject: {{ticket_subject}}<br /> Status: {{ticket_status}}<br /> Ticket URL: {{ticket_link}}<br /> ----------------------------------------------</p>', 'Yes', 'Yes', 0),
(23, 'Purchase Invoice:Invoice Created', 1, '{{business_name}} Invoice', '<div style=\"line-height: 1.6; color: #222; text-align: left; width: 550px; font-size: 10pt; margin: 0px 10px; font-family: verdana,\'droid sans\',\'lucida sans\',sans-serif; padding: 14px; border: 3px solid #d8d8d8; border-top: 3px solid #007bc3;\">\n<div style=\"padding: 5px; font-size: 11pt; font-weight: bold;\">Greetings,</div>\n<div style=\"padding: 5px;\">This email serves as your official invoice from <strong>{{business_name}}. </strong></div>\n<div style=\"padding: 10px 5px;\">Invoice URL: {{invoice_url}}<br />Invoice ID: {{invoice_id}}<br />Invoice Amount: {{invoice_amount}}</div>\n<div style=\"padding: 5px;\"><span style=\"font-size: 13.3333330154419px; line-height: 21.3333320617676px;\">If you have any questions or need assistance, please don\'t hesitate to contact us.</span></div>\n<div style=\"padding: 0px 5px;\">\n<div>Best Regards,<br />{{business_name}} Team</div>\n</div>\n</div>', 'Yes', 'Yes', 0),
(24, 'Quote:Quote Cancelled', 1, '{{business_name}} Quote', '<div style=\"line-height: 1.6; color: #222; text-align: left; width: 550px; font-size: 10pt; margin: 0px 10px; font-family: verdana,sans-serif; padding: 14px; border: 3px solid #d8d8d8; border-top: 3px solid #007bc3;\">\n<div style=\"padding: 5px; font-size: 11pt; font-weight: bold;\">Greetings,</div>\n<div style=\"padding: 5px;\">Dear {{contact_name}},&nbsp;<br />We are sorry to see you go. If you chnage your mind, you can Accept it again from following url. The quote is valid until {{valid_until}}.</div>\n<div style=\"padding: 10px 5px;\">Quote Unique URL: <a href=\"http://stackb.dev/{{quote_url}}\" target=\"_blank\" rel=\"noopener noreferrer\">{{quote_url}}</a></div>\n<div style=\"padding: 5px;\"><span style=\"font-size: 13.3333330154419px; line-height: 21.3333320617676px;\">You may view the quote at any time and simply reply to this email with any further questions or requirement.</span></div>\n<div style=\"padding: 0px 5px;\">\n<div>Best Regards,<br />{{business_name}} Team</div>\n</div>\n</div>', 'Yes', 'Yes', 0),
(25, 'Quote:Quote Accepted', 1, '{{business_name}} Quote', '<div style=\"line-height: 1.6; color: #222; text-align: left; width: 550px; font-size: 10pt; margin: 0px 10px; font-family: verdana,sans-serif; padding: 14px; border: 3px solid #d8d8d8; border-top: 3px solid #007bc3;\">\n<div style=\"padding: 5px; font-size: 11pt; font-weight: bold;\">Greetings,</div>\n<div style=\"padding: 5px;\">Dear {{contact_name}},&nbsp;<br />Thank you for accepting the Quote.</div>\n<div style=\"padding: 10px 5px;\">Quote: <a href=\"{{quote_url}}\" target=\"_blank\" rel=\"noopener noreferrer\">{{quote_url}}</a></div>\n<div style=\"padding: 5px;\"><span style=\"font-size: 13.3333330154419px; line-height: 21.3333320617676px;\">You may view the quote at any time and simply reply to this email with any further questions or requirement.</span></div>\n<div style=\"padding: 0px 5px;\">\n<div>Best Regards,<br />{{business_name}} Team</div>\n</div>\n</div>', 'Yes', 'Yes', 0);

-- --------------------------------------------------------

--
-- Table structure for table `sys_events`
--

CREATE TABLE `sys_events` (
  `id` int(11) NOT NULL,
  `title` text,
  `description` text,
  `contacts` text,
  `deals` text,
  `owner` varchar(200) DEFAULT NULL,
  `status` varchar(200) DEFAULT NULL,
  `etype` varchar(200) DEFAULT NULL,
  `priority` varchar(200) DEFAULT NULL,
  `color` varchar(20) DEFAULT NULL,
  `o` varchar(200) DEFAULT NULL,
  `cid` int(11) NOT NULL DEFAULT '0',
  `aid` int(11) NOT NULL DEFAULT '0',
  `iid` int(11) NOT NULL DEFAULT '0',
  `oid` int(11) NOT NULL DEFAULT '0',
  `rid` int(11) NOT NULL DEFAULT '0',
  `company_id` int(11) NOT NULL DEFAULT '0',
  `start` datetime DEFAULT NULL,
  `end` datetime DEFAULT NULL,
  `allday` int(1) NOT NULL DEFAULT '0',
  `notification` int(1) NOT NULL DEFAULT '0',
  `trash` int(1) NOT NULL DEFAULT '0',
  `archived` int(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `sys_invoiceitems`
--

CREATE TABLE `sys_invoiceitems` (
  `id` int(10) NOT NULL,
  `invoiceid` int(10) NOT NULL DEFAULT '0',
  `userid` int(10) NOT NULL,
  `type` text NOT NULL,
  `relid` int(10) NOT NULL,
  `itemcode` varchar(100) NOT NULL,
  `tax_code` varchar(200) DEFAULT NULL,
  `description` text NOT NULL,
  `qty` varchar(20) NOT NULL DEFAULT '1',
  `amount` decimal(14,2) NOT NULL DEFAULT '0.00',
  `taxed` int(1) NOT NULL,
  `tax_name` varchar(200) DEFAULT NULL,
  `tax_rate` decimal(16,3) DEFAULT NULL,
  `taxamount` decimal(10,2) NOT NULL DEFAULT '0.00',
  `tax1` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `tax2` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `tax3` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `discount_type` varchar(100) DEFAULT NULL,
  `discount_amount` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `total` decimal(14,2) NOT NULL DEFAULT '0.00',
  `duedate` date DEFAULT NULL,
  `paymentmethod` text NOT NULL,
  `notes` text NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_invoiceitems`
--

INSERT INTO `sys_invoiceitems` (`id`, `invoiceid`, `userid`, `type`, `relid`, `itemcode`, `tax_code`, `description`, `qty`, `amount`, `taxed`, `tax_name`, `tax_rate`, `taxamount`, `tax1`, `tax2`, `tax3`, `discount_type`, `discount_amount`, `total`, `duedate`, `paymentmethod`, `notes`, `business_id`, `created_at`, `updated_at`) VALUES
(12, 1, 8, '', 0, '3', '', '<p>Basic Plan</p>', '1', '123.00', 0, NULL, '0.000', '0.00', '0.0000', '0.0000', '0.0000', 'p', '0.0000', '123.00', '2020-05-15', '', '', NULL, NULL, NULL),
(13, 2, 7, '', 0, '3', '', '<p>Basic Plan</p>', '1', '123.00', 0, NULL, '0.000', '0.00', '0.0000', '0.0000', '0.0000', 'p', '0.0000', '123.00', '2020-05-15', '', '', NULL, NULL, NULL),
(18, 3, 1, '', 0, '1', '', '<p>Night Recovery Cream</p>', '1', '232.00', 0, NULL, '0.000', '0.00', '0.0000', '0.0000', '0.0000', 'p', '0.0000', '232.00', '2020-05-17', '', '', NULL, NULL, NULL),
(21, 4, 5, '', 0, '3', '', '<p>Basic Plan</p>', '1', '123.00', 0, NULL, '0.000', '0.00', '0.0000', '0.0000', '0.0000', 'p', '0.0000', '123.00', '2020-05-17', '', '', NULL, NULL, NULL),
(20, 5, 4, '', 0, '2', '', '<p>Face Serum</p>', '1', '21.58', 0, NULL, '0.000', '0.00', '0.0000', '0.0000', '0.0000', 'p', '0.0000', '21.58', '2020-05-17', '', '', NULL, NULL, NULL),
(19, 5, 4, '', 0, '3', '', '<p>Basic Plan</p>', '1', '123.00', 0, NULL, '0.000', '0.00', '0.0000', '0.0000', '0.0000', 'p', '0.0000', '123.00', '2020-05-17', '', '', NULL, NULL, NULL),
(24, 6, 6, '', 0, '2', '', '<p>Face Serum</p>', '1', '21.58', 0, NULL, '0.000', '0.00', '0.0000', '0.0000', '0.0000', 'p', '0.0000', '21.58', '2020-05-17', '', '', NULL, NULL, NULL),
(22, 7, 11, '', 0, '3', '', '<p>Basic Plan</p>', '1', '123.00', 0, NULL, '0.000', '0.00', '0.0000', '0.0000', '0.0000', 'p', '0.0000', '123.00', '2020-05-17', '', '', NULL, NULL, NULL),
(23, 8, 10, '', 0, '1', '', '<p>Night Recovery Cream</p>', '1', '232.00', 0, NULL, '0.000', '0.00', '0.0000', '0.0000', '0.0000', 'p', '0.0000', '232.00', '2020-05-17', '', '', NULL, NULL, NULL),
(25, 9, 1, '', 0, '3', '', '<p>Basic Plan</p>', '1', '123.00', 0, NULL, '0.000', '0.00', '0.0000', '0.0000', '0.0000', 'p', '0.0000', '123.00', '2020-05-17', '', '', NULL, NULL, NULL),
(26, 9, 1, '', 0, '2', '', '<p>Face Serum</p>', '1', '21.58', 0, NULL, '0.000', '0.00', '0.0000', '0.0000', '0.0000', 'p', '0.0000', '21.58', '2020-05-17', '', '', NULL, NULL, NULL),
(27, 10, 9, '', 0, '3', '', '<p>Basic Plan</p>', '1', '123.00', 0, NULL, '0.000', '0.00', '0.0000', '0.0000', '0.0000', 'p', '0.0000', '123.00', '2020-05-17', '', '', NULL, NULL, NULL),
(28, 10, 9, '', 0, '2', '', '<p>Face Serum</p>', '1', '21.58', 0, NULL, '0.000', '0.00', '0.0000', '0.0000', '0.0000', 'p', '0.0000', '21.58', '2020-05-17', '', '', NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `sys_invoices`
--

CREATE TABLE `sys_invoices` (
  `id` int(10) NOT NULL,
  `userid` int(10) NOT NULL,
  `account` varchar(200) NOT NULL,
  `title` varchar(200) DEFAULT NULL,
  `cn` varchar(100) NOT NULL DEFAULT '',
  `invoicenum` text NOT NULL,
  `date` date DEFAULT NULL,
  `duedate` date DEFAULT NULL,
  `datepaid` datetime DEFAULT NULL,
  `subtotal` decimal(18,2) NOT NULL,
  `discount_type` varchar(1) NOT NULL DEFAULT 'f',
  `discount_value` decimal(14,2) NOT NULL DEFAULT '0.00',
  `discount` decimal(14,2) NOT NULL DEFAULT '0.00',
  `credit` decimal(10,2) NOT NULL DEFAULT '0.00',
  `taxname` varchar(100) NOT NULL,
  `tax` decimal(10,2) NOT NULL,
  `tax2` decimal(10,2) NOT NULL,
  `tax_total` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `total` decimal(18,2) NOT NULL DEFAULT '0.00',
  `taxrate` decimal(10,2) NOT NULL,
  `taxrate2` decimal(10,2) NOT NULL,
  `status` text NOT NULL,
  `paymentmethod` text NOT NULL,
  `notes` text NOT NULL,
  `vtoken` varchar(20) NOT NULL,
  `ptoken` varchar(20) NOT NULL,
  `r` varchar(100) NOT NULL DEFAULT '0',
  `nd` date DEFAULT NULL,
  `eid` int(10) NOT NULL DEFAULT '0',
  `ename` varchar(200) NOT NULL DEFAULT '',
  `vid` int(11) NOT NULL DEFAULT '0',
  `quote_id` int(11) NOT NULL DEFAULT '0',
  `ticket_id` int(11) DEFAULT '0',
  `currency` int(11) NOT NULL DEFAULT '0',
  `currency_iso_code` char(3) DEFAULT NULL,
  `currency_symbol` varchar(10) DEFAULT NULL,
  `currency_prefix` varchar(10) DEFAULT NULL,
  `currency_suffix` varchar(10) DEFAULT NULL,
  `currency_rate` decimal(11,4) NOT NULL DEFAULT '1.0000',
  `recurring` tinyint(1) NOT NULL DEFAULT '0',
  `recurring_ends` date DEFAULT NULL,
  `last_recurring_date` date DEFAULT NULL,
  `source` varchar(200) DEFAULT NULL,
  `sale_agent` int(11) NOT NULL DEFAULT '0',
  `last_overdue_reminder` date DEFAULT NULL,
  `allowed_payment_methods` text,
  `billing_street` varchar(200) DEFAULT NULL,
  `billing_city` varchar(100) DEFAULT NULL,
  `billing_state` varchar(100) DEFAULT NULL,
  `billing_zip` varchar(50) DEFAULT NULL,
  `billing_country` varchar(100) DEFAULT NULL,
  `shipping_street` varchar(200) DEFAULT NULL,
  `shipping_city` varchar(100) DEFAULT NULL,
  `shipping_state` varchar(100) DEFAULT NULL,
  `shipping_zip` varchar(100) DEFAULT NULL,
  `shipping_country` varchar(100) DEFAULT NULL,
  `q_hide` tinyint(1) NOT NULL DEFAULT '0',
  `show_quantity_as` varchar(100) DEFAULT NULL,
  `pid` int(11) NOT NULL DEFAULT '0',
  `is_credit_invoice` int(1) NOT NULL DEFAULT '0',
  `aid` int(11) NOT NULL DEFAULT '0',
  `aname` varchar(200) DEFAULT NULL,
  `receipt_number` varchar(200) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `workspace_id` int(11) NOT NULL DEFAULT '0',
  `parent_id` int(11) NOT NULL DEFAULT '0',
  `c1` varchar(255) DEFAULT '0',
  `c2` varchar(255) DEFAULT NULL,
  `c3` varchar(255) DEFAULT NULL,
  `c4` varchar(255) DEFAULT NULL,
  `c5` text,
  `signature_data_source` text,
  `signature_data_base64` text,
  `signature_data_svg` text,
  `is_same_state` tinyint(1) DEFAULT '1',
  `code` varchar(100) DEFAULT NULL,
  `delivery_status` varchar(40) NOT NULL DEFAULT 'Unassigned'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_invoices`
--

INSERT INTO `sys_invoices` (`id`, `userid`, `account`, `title`, `cn`, `invoicenum`, `date`, `duedate`, `datepaid`, `subtotal`, `discount_type`, `discount_value`, `discount`, `credit`, `taxname`, `tax`, `tax2`, `tax_total`, `total`, `taxrate`, `taxrate2`, `status`, `paymentmethod`, `notes`, `vtoken`, `ptoken`, `r`, `nd`, `eid`, `ename`, `vid`, `quote_id`, `ticket_id`, `currency`, `currency_iso_code`, `currency_symbol`, `currency_prefix`, `currency_suffix`, `currency_rate`, `recurring`, `recurring_ends`, `last_recurring_date`, `source`, `sale_agent`, `last_overdue_reminder`, `allowed_payment_methods`, `billing_street`, `billing_city`, `billing_state`, `billing_zip`, `billing_country`, `shipping_street`, `shipping_city`, `shipping_state`, `shipping_zip`, `shipping_country`, `q_hide`, `show_quantity_as`, `pid`, `is_credit_invoice`, `aid`, `aname`, `receipt_number`, `updated_at`, `created_at`, `workspace_id`, `parent_id`, `c1`, `c2`, `c3`, `c4`, `c5`, `signature_data_source`, `signature_data_base64`, `signature_data_svg`, `is_same_state`, `code`, `delivery_status`) VALUES
(1, 8, 'Abyy', '', '00021', 'DO-', '2020-05-15', '2020-05-15', '2020-05-15 12:55:22', '123.00', 'p', '0.00', '0.00', '0.00', '', '0.00', '0.00', '0.0000', '123.00', '0.00', '0.00', 'Unpaid', '', '<p>This default invoice term</p>', '1052267481', '3156426950', '0', '2020-05-15', 0, '', 0, 0, 0, 1, 'SGD', '', NULL, NULL, '1.0000', 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'Qty', 0, 0, 1, NULL, '', '2020-05-15 07:25:22', '2020-05-14 21:26:13', 0, 0, '1', '2020-05-16', '1.2987089', '103.85862', '5', NULL, NULL, NULL, 1, '1', 'Assigned'),
(2, 7, 'Devu', '', '00022', 'DO-', '2020-05-15', '2020-05-15', '2020-05-15 12:55:47', '123.00', 'p', '0.00', '0.00', '0.00', '', '0.00', '0.00', '0.0000', '123.00', '0.00', '0.00', 'Unpaid', '', '<p>This default invoice term</p>', '1406369264', '2505272959', '0', '2020-05-15', 0, '', 0, 0, 0, 1, 'SGD', '', NULL, NULL, '1.0000', 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'Qty', 0, 0, 1, NULL, '', '2020-05-15 07:25:47', '2020-05-14 21:26:48', 0, 0, '1', '2020-05-16', '1.291359', '103.851346', '5', NULL, NULL, NULL, 1, '2', 'Assigned'),
(3, 1, 'Vimal Karthik', '', '00023', 'DO-', '2020-05-15', '2020-05-15', '2020-05-17 14:05:24', '232.00', 'p', '0.00', '0.00', '0.00', '', '0.00', '0.00', '0.0000', '232.00', '0.00', '0.00', 'Unpaid', '', '<p>This default invoice term</p>', '6181146692', '3445465951', '0', '2020-05-15', 0, '', 0, 0, 0, 1, 'SGD', '', NULL, NULL, '1.0000', 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'Qty', 0, 0, 1, NULL, '', '2020-05-17 08:35:24', '2020-05-14 21:27:06', 0, 0, '1', '2020-05-18', '1.430286', '103.795868', '4', NULL, NULL, NULL, 1, NULL, 'Assigned'),
(4, 5, 'Jeevan', '', '00024', 'DO-', '2020-05-18', '2020-05-15', '2020-05-17 14:07:31', '123.00', 'p', '0.00', '0.00', '0.00', '', '0.00', '0.00', '0.0000', '123.00', '0.00', '0.00', 'Unpaid', '', '<p>This default invoice term</p>', '9261611698', '7471084418', '0', '2020-05-18', 0, '', 0, 0, 0, 1, 'SGD', '', NULL, NULL, '1.0000', 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'Qty', 0, 0, 1, NULL, '', '2020-05-17 08:37:31', '2020-05-14 21:27:34', 0, 0, '1', '2020-05-15', '1.461615', '103.812348', '4', NULL, NULL, NULL, 1, NULL, 'Assigned'),
(5, 4, 'Kumar', '', '00025', 'DO-', '2020-05-18', '2020-05-15', '2020-05-17 14:06:25', '144.58', 'p', '0.00', '0.00', '0.00', '', '0.00', '0.00', '0.0000', '144.58', '0.00', '0.00', 'Unpaid', '', '<p>This default invoice term</p>', '3647874615', '9560629953', '0', '2020-05-18', 0, '', 0, 0, 0, 1, 'SGD', '', NULL, NULL, '1.0000', 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'Qty', 0, 0, 1, NULL, '', '2020-05-17 08:36:25', '2020-05-14 22:13:13', 0, 0, '1', '2020-05-15', '1.301674', '103.8380766', '5', NULL, NULL, NULL, 1, NULL, 'Assigned'),
(6, 6, 'Mr. Geetha S aju', '', '00026', 'DO-', '2020-05-15', '2020-05-15', '2020-05-17 14:21:39', '21.58', 'p', '0.00', '0.00', '0.00', '', '0.00', '0.00', '0.0000', '21.58', '0.00', '0.00', 'Unpaid', '', '<p>This default invoice term</p>', '1937170436', '4077698802', '0', '2020-05-15', 0, '', 0, 0, 0, 1, 'SGD', '', NULL, NULL, '1.0000', 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'Qty', 0, 0, 1, NULL, '', '2020-05-17 08:51:39', '2020-05-14 22:13:40', 0, 0, '1', '2020-05-20', '1.284479', '103.851082', '6', NULL, NULL, NULL, 1, NULL, 'Assigned'),
(7, 11, 'Kadan', '', '00025', 'DO-', '2020-05-17', '2020-05-17', '2020-05-17 14:20:43', '123.00', 'p', '0.00', '0.00', '0.00', '', '0.00', '0.00', '0.0000', '123.00', '0.00', '0.00', 'Unpaid', '', '<p>This default invoice term</p>', '7860412366', '2077143639', '0', '2020-05-17', 0, '', 0, 0, 0, 1, 'SGD', '', NULL, NULL, '1.0000', 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'Qty', 0, 0, 1, NULL, '', '2020-05-17 08:50:43', '2020-05-17 08:50:43', 0, 0, '1', '2020-05-17', '1.402745', '103.8176809', '4', NULL, NULL, NULL, 1, NULL, 'Assigned'),
(8, 10, 'ben', '', '00026', 'DO-', '2020-05-17', '2020-05-17', '2020-05-17 14:21:17', '232.00', 'p', '0.00', '0.00', '0.00', '', '0.00', '0.00', '0.0000', '232.00', '0.00', '0.00', 'Unpaid', '', '<p>This default invoice term</p>', '4448913609', '5640336910', '0', '2020-05-17', 0, '', 0, 0, 0, 1, 'SGD', '', NULL, NULL, '1.0000', 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'Qty', 0, 0, 1, NULL, '', '2020-05-17 08:51:17', '2020-05-17 08:51:17', 0, 0, '1', '2020-05-17', '1.461615', '103.812348', '4', NULL, NULL, NULL, 1, NULL, 'Assigned'),
(9, 1, 'Vimal Karthik', '', '00027', 'DO-', '2020-05-17', '2020-05-17', '2020-05-17 14:22:25', '144.58', 'p', '0.00', '0.00', '0.00', '', '0.00', '0.00', '0.0000', '144.58', '0.00', '0.00', 'Unpaid', '', '<p>This default invoice term</p>', '1735793216', '5419190941', '0', '2020-05-17', 0, '', 0, 0, 0, 1, 'SGD', '', NULL, NULL, '1.0000', 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'Qty', 0, 0, 1, NULL, '', '2020-05-17 08:52:25', '2020-05-17 08:52:25', 0, 0, '1', '2020-05-17', '1.430286', '103.795868', '4', NULL, NULL, NULL, 1, NULL, 'Assigned'),
(10, 9, 'Weeswan', '', '00028', 'DO-', '2020-05-17', '2020-05-17', '2020-05-17 14:24:14', '144.58', 'p', '0.00', '0.00', '0.00', '', '0.00', '0.00', '0.0000', '144.58', '0.00', '0.00', 'Unpaid', '', '<p>This default invoice term</p>', '1129546786', '9652179463', '0', '2020-05-17', 0, '', 0, 0, 0, 1, 'SGD', '', NULL, NULL, '1.0000', 0, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 'Qty', 0, 0, 1, NULL, '', '2020-05-17 08:54:14', '2020-05-17 08:54:14', 0, 0, '1', '2020-05-17', '1.4306319', '103.8276489', '4', NULL, NULL, NULL, 1, NULL, 'Assigned');

-- --------------------------------------------------------

--
-- Table structure for table `sys_items`
--

CREATE TABLE `sys_items` (
  `id` int(11) NOT NULL,
  `name` mediumtext NOT NULL,
  `unit` varchar(100) NOT NULL DEFAULT '',
  `sales_price` decimal(16,2) NOT NULL DEFAULT '0.00',
  `inventory` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `weight` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `width` decimal(12,4) NOT NULL DEFAULT '0.0000',
  `length` decimal(12,4) NOT NULL DEFAULT '0.0000',
  `height` decimal(12,4) NOT NULL DEFAULT '0.0000',
  `sku` varchar(50) DEFAULT NULL,
  `upc` varchar(50) DEFAULT NULL,
  `ean` varchar(50) DEFAULT NULL,
  `mpn` varchar(50) DEFAULT NULL,
  `isbn` varchar(50) DEFAULT NULL,
  `sid` int(11) NOT NULL DEFAULT '0',
  `supplier` varchar(200) DEFAULT NULL,
  `bid` int(11) NOT NULL DEFAULT '0',
  `brand` varchar(200) DEFAULT NULL,
  `sell_account` int(11) NOT NULL DEFAULT '0',
  `purchase_account` int(11) NOT NULL DEFAULT '0',
  `inventory_account` int(11) NOT NULL DEFAULT '0',
  `taxable` int(1) NOT NULL DEFAULT '0',
  `location` varchar(200) DEFAULT NULL,
  `item_number` varchar(100) NOT NULL DEFAULT '',
  `description` mediumtext NOT NULL,
  `type` enum('Service','Product') NOT NULL,
  `track_inventroy` enum('Yes','No') NOT NULL DEFAULT 'No',
  `negative_stock` enum('Yes','No') NOT NULL DEFAULT 'No',
  `available` int(11) NOT NULL DEFAULT '0',
  `status` enum('Active','Inactive') NOT NULL DEFAULT 'Active',
  `added` date DEFAULT NULL,
  `last_sold` date DEFAULT NULL,
  `e` mediumtext NOT NULL,
  `sorder` int(11) NOT NULL DEFAULT '0',
  `gid` int(11) NOT NULL DEFAULT '0',
  `category_id` int(11) NOT NULL DEFAULT '0',
  `supplier_id` int(11) NOT NULL DEFAULT '0',
  `gname` varchar(100) DEFAULT NULL,
  `product_id` varchar(100) DEFAULT NULL,
  `size` varchar(100) DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `expire_date` date DEFAULT NULL,
  `expire_days` int(11) NOT NULL DEFAULT '0',
  `image` text,
  `flag` int(1) NOT NULL DEFAULT '0',
  `is_service` int(1) NOT NULL DEFAULT '0',
  `commission_percent` decimal(16,2) NOT NULL DEFAULT '0.00',
  `commission_percent_type` varchar(100) DEFAULT NULL,
  `commission_fixed` decimal(16,2) NOT NULL DEFAULT '0.00',
  `trash` int(1) NOT NULL DEFAULT '0',
  `payterm` varchar(200) DEFAULT NULL,
  `cost_price` decimal(16,2) NOT NULL DEFAULT '0.00',
  `unit_price` decimal(16,2) NOT NULL DEFAULT '0.00',
  `promo_price` decimal(16,2) NOT NULL DEFAULT '0.00',
  `setup` decimal(16,2) NOT NULL DEFAULT '0.00',
  `onetime` decimal(16,2) NOT NULL DEFAULT '0.00',
  `monthly` decimal(16,2) NOT NULL DEFAULT '0.00',
  `monthlysetup` decimal(16,2) NOT NULL DEFAULT '0.00',
  `quarterly` decimal(16,2) NOT NULL DEFAULT '0.00',
  `quarterlysetup` decimal(16,2) NOT NULL DEFAULT '0.00',
  `halfyearly` decimal(16,2) NOT NULL DEFAULT '0.00',
  `halfyearlysetup` decimal(16,2) NOT NULL DEFAULT '0.00',
  `annually` decimal(16,2) NOT NULL DEFAULT '0.00',
  `annuallysetup` decimal(16,2) NOT NULL DEFAULT '0.00',
  `biennially` decimal(16,2) NOT NULL DEFAULT '0.00',
  `bienniallysetup` decimal(16,2) NOT NULL DEFAULT '0.00',
  `triennially` decimal(16,2) NOT NULL DEFAULT '0.00',
  `trienniallysetup` decimal(16,2) NOT NULL DEFAULT '0.00',
  `has_domain` varchar(100) DEFAULT NULL,
  `free_domain` varchar(100) DEFAULT NULL,
  `email_rel` int(11) NOT NULL DEFAULT '0',
  `tags` text,
  `sold_count` decimal(16,4) DEFAULT '0.0000',
  `total_amount` decimal(16,4) DEFAULT '0.0000',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `tax_code` varchar(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_items`
--

INSERT INTO `sys_items` (`id`, `name`, `unit`, `sales_price`, `inventory`, `weight`, `width`, `length`, `height`, `sku`, `upc`, `ean`, `mpn`, `isbn`, `sid`, `supplier`, `bid`, `brand`, `sell_account`, `purchase_account`, `inventory_account`, `taxable`, `location`, `item_number`, `description`, `type`, `track_inventroy`, `negative_stock`, `available`, `status`, `added`, `last_sold`, `e`, `sorder`, `gid`, `category_id`, `supplier_id`, `gname`, `product_id`, `size`, `start_date`, `end_date`, `expire_date`, `expire_days`, `image`, `flag`, `is_service`, `commission_percent`, `commission_percent_type`, `commission_fixed`, `trash`, `payterm`, `cost_price`, `unit_price`, `promo_price`, `setup`, `onetime`, `monthly`, `monthlysetup`, `quarterly`, `quarterlysetup`, `halfyearly`, `halfyearlysetup`, `annually`, `annuallysetup`, `biennially`, `bienniallysetup`, `triennially`, `trienniallysetup`, `has_domain`, `free_domain`, `email_rel`, `tags`, `sold_count`, `total_amount`, `created_at`, `updated_at`, `tax_code`) VALUES
(1, 'Night Recovery Cream', '', '232.00', '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', '', NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, 0, 0, 0, 0, NULL, '0001', '<p>Night Recovery Cream</p>', 'Product', 'No', 'No', 0, 'Active', NULL, NULL, '', 0, 0, 3, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, '_d880067f106231158694095910768142.jpg', 0, 0, '0.00', NULL, '0.00', 0, NULL, '1233.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', NULL, NULL, 0, NULL, '0.0000', '0.0000', NULL, NULL, ''),
(2, 'Face Serum', '', '21.58', '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', '', NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, 0, 0, 0, 0, NULL, '0002', '<p>Face Serum</p>', 'Product', 'No', 'No', 0, 'Active', NULL, NULL, '', 0, 0, 3, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, '_c348616c551236158694076910148280.jpg', 0, 0, '0.00', NULL, '0.00', 0, NULL, '11.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', NULL, NULL, 0, NULL, '0.0000', '0.0000', NULL, NULL, ''),
(3, 'Basic Plan', '', '123.00', '0.0000', '0.0000', '0.0000', '0.0000', '0.0000', NULL, NULL, NULL, NULL, NULL, 0, NULL, 0, NULL, 0, 0, 0, 0, NULL, '0003', '', 'Service', 'No', 'No', 0, 'Active', NULL, NULL, '', 0, 0, 2, 0, NULL, NULL, NULL, NULL, NULL, NULL, 0, '', 0, 0, '0.00', NULL, '0.00', 0, NULL, '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', '0.00', NULL, NULL, 0, NULL, '0.0000', '0.0000', NULL, NULL, '');

-- --------------------------------------------------------

--
-- Table structure for table `sys_item_cats`
--

CREATE TABLE `sys_item_cats` (
  `id` int(11) NOT NULL,
  `pid` int(11) NOT NULL DEFAULT '0',
  `name` varchar(200) DEFAULT NULL,
  `type` varchar(200) DEFAULT NULL,
  `img` varchar(200) DEFAULT NULL,
  `status` varchar(200) DEFAULT NULL,
  `description` text,
  `sorder` int(11) NOT NULL DEFAULT '0',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_item_cats`
--

INSERT INTO `sys_item_cats` (`id`, `pid`, `name`, `type`, `img`, `status`, `description`, `sorder`, `created_at`, `updated_at`) VALUES
(1, 0, 'Skin Products', '1', '_0ae1dd39642059158694033810046810.png', 'Active', '<p><strong>Web design</strong> encompasses many different skills and disciplines in the production and maintenance of websites</p>', 0, NULL, NULL),
(2, 0, 'Make Up Services', '2', '_a928731e027152158694057910335140.jpeg', 'Active', '<p>We provide <strong>hosting</strong> solutions are built for speed, reliability and security. Select the best domain <strong>hosting</strong> plan for you from Shared, WordPress etc</p>', 0, NULL, NULL),
(3, 0, 'Facial Products', '1', '_018b59ce919169158694001410189764.jpg', 'Active', '<ol><li><strong>CRM</strong> is an acronym that stands for <strong>customer relationship management</strong>. </li></ol>', 0, NULL, NULL),
(4, 0, 'Eye Products', '1', '_d94fd74d451060158694037710972903.jpg', 'Active', '<p>Furniture</p>', 0, NULL, NULL),
(5, 0, 'Skincare Services', '2', '_6e187996569102158694061310739924.jpeg', 'Active', '<p>Skin Care Services</p>', 0, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `sys_leads`
--

CREATE TABLE `sys_leads` (
  `id` int(11) NOT NULL,
  `fullname` varchar(200) DEFAULT NULL,
  `company` varchar(200) DEFAULT NULL,
  `email` varchar(200) DEFAULT NULL,
  `phone` varchar(50) DEFAULT NULL,
  `color` varchar(20) DEFAULT NULL,
  `status` varchar(200) DEFAULT NULL,
  `source` varchar(200) DEFAULT NULL,
  `added_from` varchar(200) DEFAULT NULL,
  `o` varchar(200) DEFAULT NULL,
  `cid` int(11) NOT NULL DEFAULT '0',
  `aid` int(11) NOT NULL DEFAULT '0',
  `iid` int(11) NOT NULL DEFAULT '0',
  `oid` int(11) NOT NULL DEFAULT '0',
  `rid` int(11) NOT NULL DEFAULT '0',
  `sorder` int(11) NOT NULL DEFAULT '0',
  `assigned` int(11) NOT NULL DEFAULT '0',
  `created_at` datetime DEFAULT NULL,
  `created_by` varchar(200) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `updated_by` varchar(200) DEFAULT NULL,
  `last_contact` datetime DEFAULT NULL,
  `last_contact_by` varchar(200) DEFAULT NULL,
  `date_converted` datetime DEFAULT NULL,
  `public` int(1) NOT NULL DEFAULT '0',
  `ratings` varchar(50) DEFAULT NULL,
  `flag` int(1) NOT NULL DEFAULT '0',
  `lost` int(1) NOT NULL DEFAULT '0',
  `junk` int(1) NOT NULL DEFAULT '0',
  `trash` int(1) NOT NULL DEFAULT '0',
  `archived` int(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `sys_logs`
--

CREATE TABLE `sys_logs` (
  `id` int(10) NOT NULL,
  `date` datetime DEFAULT NULL,
  `type` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `userid` int(10) NOT NULL,
  `ip` text NOT NULL,
  `related_to` varchar(100) DEFAULT NULL,
  `related_id` int(10) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_logs`
--

INSERT INTO `sys_logs` (`id`, `date`, `type`, `description`, `userid`, `ip`, `related_to`, `related_id`) VALUES
(1, '2020-02-18 05:09:54', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '219.74.117.154', NULL, NULL),
(2, '2020-02-18 05:12:36', 'Admin', 'Failed Login admin@akstech.com.sg', 0, '202.88.246.198', NULL, NULL),
(3, '2020-02-18 05:12:38', 'Admin', 'New Contact Added Vimal Karthik [CID: 1]', 1, '219.74.117.154', NULL, NULL),
(4, '2020-02-18 05:12:59', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '202.88.246.198', NULL, NULL),
(5, '2020-02-18 05:15:36', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '202.88.246.198', NULL, NULL),
(6, '2020-02-18 18:27:04', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '219.74.117.154', NULL, NULL),
(7, '2020-02-18 19:15:11', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '219.74.117.154', NULL, NULL),
(8, '2020-02-25 14:34:46', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '202.88.246.198', NULL, NULL),
(9, '2020-02-27 23:26:44', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '116.68.104.101', NULL, NULL),
(10, '2020-02-27 23:29:46', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '116.68.104.101', NULL, NULL),
(11, '2020-03-02 15:36:04', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '202.88.246.198', NULL, NULL),
(12, '2020-03-04 00:02:13', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '116.68.104.101', NULL, NULL),
(13, '2020-03-14 15:53:54', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '202.88.246.198', NULL, NULL),
(14, '2020-03-14 16:00:17', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '202.88.246.198', NULL, NULL),
(15, '2020-03-22 17:43:28', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.160.239', NULL, NULL),
(16, '2020-03-22 18:22:43', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.160.239', NULL, NULL),
(17, '2020-03-22 20:16:12', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '1.39.75.252', NULL, NULL),
(18, '2020-03-22 20:16:32', 'Admin', 'Failed Login admin@akstech.com.sg', 0, '182.55.74.39', NULL, NULL),
(19, '2020-03-22 20:16:40', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '182.55.74.39', NULL, NULL),
(20, '2020-03-25 20:18:08', 'Admin', 'Failed Login admin@akstech.com.sg', 0, '182.55.74.39', NULL, NULL),
(21, '2020-03-25 20:18:21', 'Admin', 'Failed Login admin@akstech.com.sg', 0, '182.55.74.39', NULL, NULL),
(22, '2020-03-25 20:36:07', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.71.194', NULL, NULL),
(23, '2020-03-25 20:36:28', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.71.194', NULL, NULL),
(24, '2020-03-25 20:37:09', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.71.194', NULL, NULL),
(25, '2020-03-25 20:48:36', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.71.194', NULL, NULL),
(26, '2020-03-25 20:49:20', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '182.55.74.39', NULL, NULL),
(27, '2020-03-25 20:53:51', 'Admin', 'New Deposit: Invoice 1 Payment [TrID: 2 | Amount: 80]', 1, '182.55.74.39', NULL, NULL),
(28, '2020-03-25 20:58:39', 'Admin', 'New Deposit: Invoice 2 Payment [TrID: 3 | Amount: 100]', 1, '182.55.74.39', NULL, NULL),
(29, '2020-03-27 00:25:49', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '182.55.74.39', NULL, NULL),
(30, '2020-03-27 00:25:51', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '182.55.74.39', NULL, NULL),
(31, '2020-03-27 00:46:17', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '182.55.74.39', NULL, NULL),
(32, '2020-03-27 21:08:38', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.186.105', NULL, NULL),
(33, '2020-03-30 16:11:44', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '219.74.117.154', NULL, NULL),
(34, '2020-03-30 17:10:06', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.96.216', NULL, NULL),
(35, '2020-03-30 17:14:57', 'Admin', 'New Contact Added Xander [CID: 2]', 1, '137.97.96.216', NULL, NULL),
(36, '2020-04-02 00:05:01', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.96.216', NULL, NULL),
(37, '2020-04-02 01:05:17', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.96.216', NULL, NULL),
(38, '2020-04-02 02:03:13', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.96.216', NULL, NULL),
(39, '2020-04-03 12:19:54', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '182.55.74.39', NULL, NULL),
(40, '2020-04-03 12:19:55', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '182.55.74.39', NULL, NULL),
(41, '2020-04-03 12:33:14', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '1.39.77.67', NULL, NULL),
(42, '2020-04-03 14:13:41', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '1.39.77.67', NULL, NULL),
(43, '2020-04-04 19:21:48', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.190.237', NULL, NULL),
(44, '2020-04-04 19:54:20', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '182.55.74.39', NULL, NULL),
(45, '2020-04-06 14:43:34', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.190.237', NULL, NULL),
(46, '2020-04-06 18:08:53', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '182.55.74.39', NULL, NULL),
(47, '2020-04-06 18:08:54', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '182.55.74.39', NULL, NULL),
(48, '2020-04-07 17:26:06', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '1.39.77.164', NULL, NULL),
(49, '2020-04-08 15:30:00', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '1.39.78.78', NULL, NULL),
(50, '2020-04-08 15:36:18', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '182.55.74.39', NULL, NULL),
(51, '2020-04-08 17:01:45', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '1.39.78.78', NULL, NULL),
(52, '2020-04-09 20:15:06', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.176.229', NULL, NULL),
(53, '2020-04-10 10:50:17', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.176.229', NULL, NULL),
(54, '2020-04-10 15:38:38', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '182.55.74.39', NULL, NULL),
(55, '2020-04-10 15:38:40', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '182.55.74.39', NULL, NULL),
(56, '2020-04-10 17:30:18', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '1.39.78.78', NULL, NULL),
(57, '2020-04-10 17:31:36', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '1.39.78.78', NULL, NULL),
(58, '2020-04-10 21:39:34', 'Ticket', 'Ticket assigned By- Karthik Assigned To: Karthik', 1, '182.55.74.39', NULL, NULL),
(59, '2020-04-11 00:59:39', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '182.55.74.39', NULL, NULL),
(60, '2020-04-11 13:21:45', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.126.16', NULL, NULL),
(61, '2020-04-13 21:14:51', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.80.18', NULL, NULL),
(62, '2020-04-14 04:11:39', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.80.18', NULL, NULL),
(63, '2020-04-14 05:01:13', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.80.18', NULL, NULL),
(64, '2020-04-14 21:23:59', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '1.39.77.214', NULL, NULL),
(65, '2020-04-15 13:27:04', 'Client', 'Autologin Successful', 1, '1.39.77.214', NULL, NULL),
(66, '2020-04-15 16:35:37', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '222.164.107.77', NULL, NULL),
(67, '2020-04-15 16:35:51', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.66.52', NULL, NULL),
(68, '2020-04-16 13:27:14', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '222.164.107.77', NULL, NULL),
(69, '2020-04-16 14:22:55', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '137.97.99.198', NULL, NULL),
(70, '2020-04-16 14:25:09', 'Admin', 'New Contact Added Richin [CID: 3]', 1, '1.39.77.139', NULL, NULL),
(71, '2020-04-16 16:06:19', 'Admin', 'Failed Login admin@akstech.com.sg', 0, '::1', NULL, NULL),
(72, '2020-04-16 16:06:44', 'Admin', 'Failed Login admin@akstech.com.sg', 0, '::1', NULL, NULL),
(73, '2020-04-16 16:07:23', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(74, '2020-04-16 16:35:33', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(75, '2020-04-17 12:57:47', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(76, '2020-04-17 17:34:14', 'Admin', 'New Contact Added Kumar [CID: 4]', 1, '::1', NULL, NULL),
(77, '2020-04-18 00:17:30', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(78, '2020-04-18 01:42:38', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(79, '2020-04-18 02:33:15', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(80, '2020-04-18 02:34:21', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(81, '2020-04-18 15:02:54', 'Admin', 'New Contact Added Jeevan [CID: 5]', 1, '::1', NULL, NULL),
(82, '2020-04-19 00:47:38', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(83, '2020-04-19 01:01:17', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(84, '2020-04-19 19:12:14', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(85, '2020-04-19 21:43:13', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(86, '2020-04-23 04:42:23', 'Admin', 'Failed Login admin@akstech.com.sg', 0, '::1', NULL, NULL),
(87, '2020-04-23 04:42:38', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(88, '2020-04-23 04:43:24', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(89, '2020-04-23 14:51:49', 'Admin', 'New Deposit: qwewq [TrID: 4 | Amount: 10]', 1, '::1', NULL, NULL),
(90, '2020-04-23 14:53:13', 'Admin', 'New Deposit: 121 [TrID: 5 | Amount: 33]', 1, '::1', NULL, NULL),
(91, '2020-04-24 04:18:42', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(92, '2020-04-25 13:01:44', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(93, '2020-04-27 21:39:35', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(94, '2020-04-28 14:31:03', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(95, '2020-04-29 15:26:23', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(96, '2020-04-29 17:34:30', 'Admin', 'New Contact Added Devu [CID: 7]', 1, '::1', NULL, NULL),
(97, '2020-04-30 02:25:04', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(98, '2020-05-03 17:46:28', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(99, '2020-05-07 20:13:21', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(100, '2020-05-09 22:20:25', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(101, '2020-05-09 23:19:43', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(102, '2020-05-11 13:40:25', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(103, '2020-05-11 13:41:49', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(104, '2020-05-11 16:26:18', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(105, '2020-05-11 17:47:14', 'Admin', 'New Contact Added Abyy [CID: 8]', 1, '::1', NULL, NULL),
(106, '2020-05-12 12:46:14', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(107, '2020-05-12 14:46:39', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(108, '2020-05-14 15:30:36', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(109, '2020-05-14 15:30:56', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(110, '2020-05-14 15:36:09', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(111, '2020-05-14 21:26:08', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(112, '2020-05-15 02:45:27', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(113, '2020-05-16 20:02:58', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(114, '2020-05-16 22:16:54', 'Admin', 'Login Successful admin@akstech.com.sg', 1, '::1', NULL, NULL),
(115, '2020-05-17 14:12:05', 'Admin', 'New Contact Added Weeswan [CID: 9]', 1, '::1', NULL, NULL),
(116, '2020-05-17 14:14:33', 'Admin', 'New Contact Added ben [CID: 10]', 1, '::1', NULL, NULL),
(117, '2020-05-17 14:18:57', 'Admin', 'New Contact Added Kadan [CID: 11]', 1, '::1', NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `sys_orders`
--

CREATE TABLE `sys_orders` (
  `id` int(11) NOT NULL,
  `ordernum` varchar(50) DEFAULT NULL,
  `source` varchar(100) DEFAULT NULL,
  `status` varchar(100) DEFAULT NULL,
  `sales_person` varchar(100) DEFAULT NULL,
  `branch_name` varchar(100) DEFAULT NULL,
  `cname` varchar(100) DEFAULT NULL,
  `cid` int(11) DEFAULT NULL,
  `contract_id` int(11) DEFAULT NULL,
  `bid` int(11) DEFAULT NULL,
  `date_added` date DEFAULT NULL,
  `date_expiry` date DEFAULT NULL,
  `pid` int(11) DEFAULT NULL,
  `stitle` varchar(200) DEFAULT NULL,
  `sid` int(11) DEFAULT NULL,
  `iid` int(11) DEFAULT NULL,
  `aid` int(11) DEFAULT NULL,
  `amount` decimal(16,2) NOT NULL DEFAULT '0.00',
  `recurring` decimal(16,2) NOT NULL DEFAULT '0.00',
  `setup_fee` decimal(16,2) NOT NULL DEFAULT '0.00',
  `billing_cycle` text,
  `addon_ids` text,
  `related_orders` text,
  `description` text,
  `upgrade_ids` text,
  `xdata` text,
  `xsecret` varchar(100) DEFAULT NULL,
  `promo_code` text,
  `promo_type` text,
  `promo_value` text,
  `payment_method` text,
  `ipaddress` text,
  `fraud_module` text,
  `fraud_output` text,
  `activation_subject` text,
  `activation_message` text,
  `trash` int(1) NOT NULL DEFAULT '0',
  `archived` int(1) NOT NULL DEFAULT '0',
  `c1` text,
  `c2` text,
  `c3` text,
  `c4` text,
  `c5` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `sys_permissions`
--

CREATE TABLE `sys_permissions` (
  `id` int(11) NOT NULL,
  `pname` varchar(200) DEFAULT NULL,
  `shortname` varchar(200) DEFAULT NULL,
  `available` int(1) NOT NULL DEFAULT '0',
  `core` int(1) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_permissions`
--

INSERT INTO `sys_permissions` (`id`, `pname`, `shortname`, `available`, `core`) VALUES
(1, 'Customers', 'customers', 0, 1),
(2, 'Companies', 'companies', 0, 1),
(3, 'Transactions', 'transactions', 0, 1),
(4, 'Sales', 'sales', 0, 1),
(5, 'Bank & Cash', 'bank_n_cash', 0, 1),
(6, 'Products & Services', 'products_n_services', 0, 1),
(7, 'Reports', 'reports', 0, 1),
(8, 'Utilities', 'utilities', 0, 1),
(9, 'Appearance', 'appearance', 0, 1),
(10, 'Plugins', 'plugins', 0, 1),
(11, 'Calendar', 'calendar', 0, 1),
(12, 'Leads', 'leads', 0, 1),
(13, 'Tasks', 'tasks', 0, 1),
(14, 'Contracts', 'contracts', 0, 1),
(15, 'Orders', 'orders', 0, 1),
(16, 'Settings', 'settings', 0, 1),
(17, 'Documents', 'documents', 0, 1),
(18, 'Purchase', 'purchase', 0, 1),
(19, 'Suppliers', 'suppliers', 0, 1),
(20, 'SMS', 'sms', 0, 1),
(21, 'Support', 'support', 0, 1),
(22, 'Knowledgebase', 'kb', 0, 1),
(23, 'Password Manager', 'password_manager', 0, 1),
(24, 'HRM', 'hr', 0, 1);

-- --------------------------------------------------------

--
-- Table structure for table `sys_pg`
--

CREATE TABLE `sys_pg` (
  `id` int(11) NOT NULL,
  `name` text NOT NULL,
  `settings` text NOT NULL,
  `value` text NOT NULL,
  `processor` text NOT NULL,
  `ins` text NOT NULL,
  `c1` text NOT NULL,
  `c2` text NOT NULL,
  `c3` text NOT NULL,
  `c4` text NOT NULL,
  `c5` text NOT NULL,
  `status` enum('Active','Inactive') NOT NULL,
  `sorder` int(2) NOT NULL,
  `logo` varchar(200) DEFAULT NULL,
  `mode` varchar(200) DEFAULT NULL,
  `account_id` int(11) UNSIGNED DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_pg`
--

INSERT INTO `sys_pg` (`id`, `name`, `settings`, `value`, `processor`, `ins`, `c1`, `c2`, `c3`, `c4`, `c5`, `status`, `sorder`, `logo`, `mode`, `account_id`, `created_at`, `updated_at`) VALUES
(1, 'Paypal', 'Paypal Email', 'vimalkarthik@hotmail.com', 'paypal', 'Invoices', 'SGD', '1', '', '', '', 'Active', 2, NULL, '', NULL, NULL, NULL),
(2, 'Stripe', 'API Key', 'sk_test_ARblMczqDw61NusMMs7o1RVK', 'stripe', '', 'USD', '', '', '', '', 'Active', 3, NULL, '', NULL, NULL, NULL),
(3, 'Bank / Cash', 'Instructions', '', 'manualpayment', '', '', '', '', '', '', 'Inactive', 4, NULL, '', NULL, NULL, NULL),
(4, 'Authorize.net', 'API_LOGIN_ID', 'Insert API Login ID here', 'authorize_net', '', 'Insert Transaction Key Here', '', '', '', '', 'Inactive', 5, NULL, '', NULL, NULL, NULL),
(5, 'Braintree', 'Merchant ID', 'your merchant id', 'braintree', '', 'your public key', 'your private key', 'bank account', 'sandbox', '', 'Inactive', 6, NULL, NULL, NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `sys_pl`
--

CREATE TABLE `sys_pl` (
  `id` int(11) NOT NULL,
  `c` varchar(50) NOT NULL,
  `status` int(11) NOT NULL DEFAULT '1',
  `sorder` int(11) NOT NULL DEFAULT '0',
  `build` int(10) DEFAULT '1',
  `c1` text,
  `c2` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `sys_pmethods`
--

CREATE TABLE `sys_pmethods` (
  `id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `sorder` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_pmethods`
--

INSERT INTO `sys_pmethods` (`id`, `name`, `sorder`) VALUES
(1, 'Cash', 1),
(2, 'Check', 4),
(3, 'Credit Card', 5),
(4, 'Debit', 6),
(5, 'Electronic Transfer', 7),
(9, 'Paypal', 2),
(10, 'ATM Withdrawals', 3),
(11, 'Pagseguro', 1);

-- --------------------------------------------------------

--
-- Table structure for table `sys_purchaseitems`
--

CREATE TABLE `sys_purchaseitems` (
  `id` int(10) NOT NULL,
  `invoiceid` int(10) NOT NULL DEFAULT '0',
  `userid` int(10) NOT NULL,
  `type` text NOT NULL,
  `relid` int(10) NOT NULL,
  `itemcode` varchar(100) NOT NULL,
  `tax_code` varchar(200) DEFAULT NULL,
  `description` text NOT NULL,
  `qty` varchar(20) NOT NULL DEFAULT '1',
  `amount` decimal(14,2) NOT NULL DEFAULT '0.00',
  `taxed` int(1) NOT NULL,
  `tax_rate` decimal(16,2) DEFAULT NULL,
  `tax_name` varchar(200) DEFAULT NULL,
  `taxamount` decimal(10,2) NOT NULL DEFAULT '0.00',
  `tax1` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `tax2` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `tax3` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `discount_type` varchar(100) DEFAULT NULL,
  `discount_amount` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `total` decimal(14,2) NOT NULL DEFAULT '0.00',
  `duedate` date DEFAULT NULL,
  `paymentmethod` text NOT NULL,
  `notes` text NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `sys_purchases`
--

CREATE TABLE `sys_purchases` (
  `id` int(10) NOT NULL,
  `userid` int(10) NOT NULL,
  `supplier_id` int(10) DEFAULT NULL,
  `supplier_name` varchar(200) DEFAULT NULL,
  `account` varchar(200) NOT NULL,
  `title` varchar(200) DEFAULT NULL,
  `cn` varchar(100) NOT NULL DEFAULT '',
  `invoicenum` text NOT NULL,
  `date` date DEFAULT NULL,
  `duedate` date DEFAULT NULL,
  `datepaid` datetime DEFAULT NULL,
  `subtotal` decimal(18,2) NOT NULL,
  `discount_type` varchar(1) NOT NULL DEFAULT 'f',
  `discount_value` decimal(14,2) NOT NULL DEFAULT '0.00',
  `discount` decimal(14,2) NOT NULL DEFAULT '0.00',
  `credit` decimal(10,2) NOT NULL DEFAULT '0.00',
  `taxname` varchar(100) DEFAULT NULL,
  `tax` decimal(10,2) DEFAULT NULL,
  `tax2` decimal(10,2) DEFAULT NULL,
  `tax1_total` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `tax2_total` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `tax3_total` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `tax_total` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `total` decimal(18,2) NOT NULL DEFAULT '0.00',
  `taxrate` decimal(10,2) DEFAULT NULL,
  `taxrate2` decimal(10,2) DEFAULT NULL,
  `status` varchar(200) DEFAULT NULL,
  `paymentmethod` text NOT NULL,
  `notes` text NOT NULL,
  `vtoken` varchar(20) NOT NULL,
  `ptoken` varchar(20) NOT NULL,
  `r` varchar(100) NOT NULL DEFAULT '0',
  `nd` date DEFAULT NULL,
  `eid` int(10) NOT NULL DEFAULT '0',
  `ename` varchar(200) NOT NULL DEFAULT '',
  `vid` int(11) NOT NULL DEFAULT '0',
  `currency` int(11) NOT NULL DEFAULT '0',
  `currency_iso_code` char(3) DEFAULT NULL,
  `currency_symbol` varchar(10) DEFAULT NULL,
  `currency_prefix` varchar(10) DEFAULT NULL,
  `currency_suffix` varchar(10) DEFAULT NULL,
  `currency_rate` decimal(11,4) NOT NULL DEFAULT '1.0000',
  `recurring` tinyint(1) NOT NULL DEFAULT '0',
  `recurring_ends` date DEFAULT NULL,
  `last_recurring_date` date DEFAULT NULL,
  `source` varchar(200) DEFAULT NULL,
  `sale_agent` int(11) NOT NULL DEFAULT '0',
  `last_overdue_reminder` date DEFAULT NULL,
  `allowed_payment_methods` text,
  `billing_street` varchar(200) DEFAULT NULL,
  `billing_city` varchar(100) DEFAULT NULL,
  `billing_state` varchar(100) DEFAULT NULL,
  `billing_zip` varchar(50) DEFAULT NULL,
  `billing_country` varchar(100) DEFAULT NULL,
  `shipping_street` varchar(200) DEFAULT NULL,
  `shipping_city` varchar(100) DEFAULT NULL,
  `shipping_state` varchar(100) DEFAULT NULL,
  `shipping_zip` varchar(100) DEFAULT NULL,
  `shipping_country` varchar(100) DEFAULT NULL,
  `q_hide` tinyint(1) NOT NULL DEFAULT '0',
  `show_quantity_as` varchar(100) DEFAULT NULL,
  `pid` int(11) NOT NULL DEFAULT '0',
  `is_credit_invoice` int(1) NOT NULL DEFAULT '0',
  `aid` int(11) NOT NULL DEFAULT '0',
  `aname` varchar(200) DEFAULT NULL,
  `receipt_number` varchar(200) DEFAULT NULL,
  `stage` varchar(200) DEFAULT 'Pending',
  `subject` varchar(200) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `code` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `sys_quoteitems`
--

CREATE TABLE `sys_quoteitems` (
  `id` int(10) NOT NULL,
  `qid` int(10) NOT NULL,
  `itemcode` text NOT NULL,
  `description` text NOT NULL,
  `qty` text NOT NULL,
  `amount` decimal(18,2) NOT NULL,
  `discount` decimal(10,2) NOT NULL,
  `total` decimal(18,2) NOT NULL,
  `taxable` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_quoteitems`
--

INSERT INTO `sys_quoteitems` (`id`, `qid`, `itemcode`, `description`, `qty`, `amount`, `discount`, `total`, `taxable`) VALUES
(3, 1, '', 'CRM License for 1 year (Outright Purchase)', '1', '299.00', '0.00', '299.00', 0),
(4, 1, '', 'Hosting and Maintenace', '1', '699.00', '0.00', '699.00', 0),
(7, 2, '', 'Static Wordpress Website', '1', '1200.00', '0.00', '1200.00', 0),
(8, 2, '', 'Hosting and Maintenance for 1 yr', '1', '399.00', '0.00', '399.00', 0);

-- --------------------------------------------------------

--
-- Table structure for table `sys_quotes`
--

CREATE TABLE `sys_quotes` (
  `id` int(10) NOT NULL,
  `subject` text NOT NULL,
  `stage` enum('Draft','Delivered','On Hold','Accepted','Lost','Dead') NOT NULL,
  `validuntil` date NOT NULL,
  `userid` int(10) NOT NULL,
  `invoicenum` text NOT NULL,
  `cn` text NOT NULL,
  `account` text NOT NULL,
  `firstname` text NOT NULL,
  `lastname` text NOT NULL,
  `companyname` text NOT NULL,
  `email` text NOT NULL,
  `address1` text NOT NULL,
  `address2` text NOT NULL,
  `city` text NOT NULL,
  `state` text NOT NULL,
  `postcode` text NOT NULL,
  `country` text NOT NULL,
  `phonenumber` text NOT NULL,
  `currency` int(10) NOT NULL,
  `subtotal` decimal(18,2) NOT NULL,
  `discount_type` text NOT NULL,
  `discount_value` decimal(10,2) NOT NULL,
  `discount` decimal(10,2) NOT NULL,
  `taxname` text NOT NULL,
  `taxrate` decimal(10,2) NOT NULL,
  `tax1` decimal(10,2) NOT NULL,
  `tax2` decimal(10,2) NOT NULL,
  `total` decimal(18,2) NOT NULL,
  `proposal` text NOT NULL,
  `customernotes` text NOT NULL,
  `adminnotes` text NOT NULL,
  `datecreated` date NOT NULL,
  `lastmodified` date NOT NULL,
  `datesent` date NOT NULL,
  `dateaccepted` date NOT NULL,
  `vtoken` text NOT NULL,
  `code` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_quotes`
--

INSERT INTO `sys_quotes` (`id`, `subject`, `stage`, `validuntil`, `userid`, `invoicenum`, `cn`, `account`, `firstname`, `lastname`, `companyname`, `email`, `address1`, `address2`, `city`, `state`, `postcode`, `country`, `phonenumber`, `currency`, `subtotal`, `discount_type`, `discount_value`, `discount`, `taxname`, `taxrate`, `tax1`, `tax2`, `total`, `proposal`, `customernotes`, `adminnotes`, `datecreated`, `lastmodified`, `datesent`, `dateaccepted`, `vtoken`, `code`) VALUES
(1, 'CRM Development Proposal', 'Lost', '2020-04-27', 1, 'QUOTE-', '00001', 'Vimal Karthik', '', '', '', '', '', '', '', '', '', '', '', 1, '998.00', 'p', '0.00', '0.00', '', '0.00', '0.00', '0.00', '998.00', '<p>This is a proposal prepared to submit for the Development of Customer Relationship Management. You may either accept it or reject it. </p><p>Upon your acceptance we will covert the exact proposal into Quotation. Meantime if you want to amend anything, kindly inform us. We may help.</p><p>Thank you for your time and please go through fully.</p>', '<p>All Payments shall be made via issuance of cheque or bank transfer.</p><p>50% payment should be made upon accepting this proposal.</p><p>Remaining based on project milestones.</p>', '', '2020-03-27', '2020-03-27', '2020-03-27', '2020-03-27', '7457956176', NULL),
(2, 'Quote for a Static Website Development', 'Draft', '2020-04-27', 1, 'QUOTE-', '00002', 'Vimal Karthik', '', '', '', '', '', '', '', '', '', '', '', 1, '1599.00', 'p', '0.00', '0.00', '', '0.00', '0.00', '0.00', '1599.00', '<p>This is a proposal prepared to submit for the Development of Static Website You may either accept it or reject it.</p><p>Upon your acceptance we will covert the exact proposal into Quotation. Meantime if you want to amend anything, kindly inform us. We may help.</p><p>Thank you for your time and please go through fully.</p>', '<p>All Payments shall be made via issuance of cheque or bank transfer.</p><p>50% payment should be made upon accepting this proposal.</p><p>Remaining based on project milestones.</p>', '', '2020-03-27', '2020-03-27', '2020-03-27', '2020-03-27', '8690583865', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `sys_roles`
--

CREATE TABLE `sys_roles` (
  `id` int(11) NOT NULL,
  `rname` varchar(200) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_roles`
--

INSERT INTO `sys_roles` (`id`, `rname`) VALUES
(3, 'Employee'),
(4, 'Driver'),
(5, 'Salesman');

-- --------------------------------------------------------

--
-- Table structure for table `sys_sales`
--

CREATE TABLE `sys_sales` (
  `id` int(11) NOT NULL,
  `cid` int(11) NOT NULL DEFAULT '0',
  `oid` int(11) NOT NULL DEFAULT '0',
  `oname` varchar(200) NOT NULL,
  `description` mediumtext NOT NULL,
  `amount` decimal(14,2) NOT NULL,
  `term` varchar(100) NOT NULL,
  `milestone` varchar(100) NOT NULL,
  `p` int(11) NOT NULL,
  `o` int(11) NOT NULL,
  `open` date NOT NULL,
  `close` date NOT NULL,
  `status` enum('New','In Progress','Won','Lost') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `sys_schedule`
--

CREATE TABLE `sys_schedule` (
  `id` int(11) NOT NULL,
  `cname` mediumtext NOT NULL,
  `val` mediumtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_schedule`
--

INSERT INTO `sys_schedule` (`id`, `cname`, `val`) VALUES
(1, 'accounting_snapshot', 'Active'),
(2, 'recurring_invoice', 'Active'),
(3, 'notify', 'Active'),
(4, 'notifyemail', 'demo@example.com');

-- --------------------------------------------------------

--
-- Table structure for table `sys_schedulelogs`
--

CREATE TABLE `sys_schedulelogs` (
  `id` int(11) NOT NULL,
  `date` date NOT NULL,
  `logs` mediumtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_schedulelogs`
--

INSERT INTO `sys_schedulelogs` (`id`, `date`, `logs`) VALUES
(4, '2015-03-14', '2015-03-14 20:17:15 : Schedule Jobs Started....... <br>2015-03-14 20:17:15 : Creating Accounting Snapshot <br>2015-03-14 20:17:15 : Accounting Snapshot created! <br>=============== Accounting Snaphsot ==================== <br>Accounting Snaphsot - Date: 2015-03-13<br>Total Income: Tk. 0.00<br>Total Expense: Tk. 0.00<br>================================================== <br>2015-03-14 20:17:15 : Creating Recurring Invoice <br>2015-03-14 20:17:15 : 1 Invoice created! <br>================================================== <br>'),
(5, '2018-07-24', '================================================== <br>2018-07-24 13:27:38 : Schedule Jobs Started....... <br>2018-07-24 13:27:38 : Creating Accounting Snapshot <br>2018-07-24 13:27:38 : Accounting Snapshot created! <br>=============== Accounting Snaphsot ==================== <br>Accounting Snaphsot - Date: 2018-07-23<br>Total Income: $ 13,800.00<br>Total Expense: $ 0.00<br>================================================== <br>2018-07-24 13:27:38 : Creating Recurring Invoice <br>2018-07-24 13:27:38 : 0 Invoice created! <br>================================================== <br>');

-- --------------------------------------------------------

--
-- Table structure for table `sys_staffpermissions`
--

CREATE TABLE `sys_staffpermissions` (
  `id` int(11) NOT NULL,
  `rid` int(11) DEFAULT NULL,
  `pid` int(11) DEFAULT NULL,
  `shortname` varchar(50) DEFAULT NULL,
  `can_view` int(1) NOT NULL DEFAULT '0',
  `can_edit` int(1) NOT NULL DEFAULT '0',
  `can_create` int(1) NOT NULL DEFAULT '0',
  `can_delete` int(1) NOT NULL DEFAULT '0',
  `all_data` int(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_staffpermissions`
--

INSERT INTO `sys_staffpermissions` (`id`, `rid`, `pid`, `shortname`, `can_view`, `can_edit`, `can_create`, `can_delete`, `all_data`) VALUES
(111, 3, 1, 'customers', 1, 1, 1, 1, 0),
(112, 3, 2, 'companies', 0, 0, 0, 0, 0),
(113, 3, 3, 'transactions', 0, 0, 0, 0, 0),
(114, 3, 4, 'sales', 0, 0, 0, 0, 0),
(115, 3, 5, 'bank_n_cash', 0, 0, 0, 0, 0),
(116, 3, 6, 'products_n_services', 0, 0, 0, 0, 0),
(117, 3, 7, 'reports', 0, 0, 0, 0, 0),
(118, 3, 8, 'utilities', 0, 0, 0, 0, 0),
(119, 3, 9, 'appearance', 0, 0, 0, 0, 0),
(120, 3, 10, 'plugins', 0, 0, 0, 0, 0),
(121, 3, 11, 'calendar', 0, 0, 0, 0, 0),
(122, 3, 12, 'leads', 0, 0, 0, 0, 0),
(123, 3, 13, 'tasks', 0, 0, 0, 0, 0),
(124, 3, 14, 'contracts', 0, 0, 0, 0, 0),
(125, 3, 15, 'orders', 0, 0, 0, 0, 0),
(126, 3, 16, 'settings', 0, 0, 0, 0, 0),
(127, 3, 17, 'documents', 0, 0, 0, 0, 0),
(128, 3, 18, 'purchase', 0, 0, 0, 0, 0),
(129, 3, 19, 'suppliers', 0, 0, 0, 0, 0),
(130, 3, 20, 'sms', 0, 0, 0, 0, 0),
(131, 3, 21, 'support', 0, 0, 0, 0, 0),
(132, 3, 22, 'kb', 0, 0, 0, 0, 0),
(133, 3, 23, 'password_manager', 0, 0, 0, 0, 0),
(134, 3, 24, 'hr', 0, 0, 0, 0, 0),
(135, 4, 1, 'customers', 0, 0, 0, 0, 0),
(136, 4, 2, 'companies', 0, 0, 0, 0, 0),
(137, 4, 3, 'transactions', 0, 0, 0, 0, 0),
(138, 4, 4, 'sales', 0, 0, 0, 0, 0),
(139, 4, 5, 'bank_n_cash', 0, 0, 0, 0, 0),
(140, 4, 6, 'products_n_services', 0, 0, 0, 0, 0),
(141, 4, 7, 'reports', 0, 0, 0, 0, 0),
(142, 4, 8, 'utilities', 0, 0, 0, 0, 0),
(143, 4, 9, 'appearance', 0, 0, 0, 0, 0),
(144, 4, 10, 'plugins', 0, 0, 0, 0, 0),
(145, 4, 11, 'calendar', 0, 0, 0, 0, 0),
(146, 4, 12, 'leads', 0, 0, 0, 0, 0),
(147, 4, 13, 'tasks', 0, 0, 0, 0, 0),
(148, 4, 14, 'contracts', 0, 0, 0, 0, 0),
(149, 4, 15, 'orders', 0, 0, 0, 0, 0),
(150, 4, 16, 'settings', 0, 0, 0, 0, 0),
(151, 4, 17, 'documents', 0, 0, 0, 0, 0),
(152, 4, 18, 'purchase', 0, 0, 0, 0, 0),
(153, 4, 19, 'suppliers', 0, 0, 0, 0, 0),
(154, 4, 20, 'sms', 0, 0, 0, 0, 0),
(155, 4, 21, 'support', 0, 0, 0, 0, 0),
(156, 4, 22, 'kb', 0, 0, 0, 0, 0),
(157, 4, 23, 'password_manager', 0, 0, 0, 0, 0),
(158, 4, 24, 'hr', 0, 0, 0, 0, 0),
(159, 5, 1, 'customers', 0, 0, 0, 0, 0),
(160, 5, 2, 'companies', 0, 0, 0, 0, 0),
(161, 5, 3, 'transactions', 0, 0, 0, 0, 0),
(162, 5, 4, 'sales', 1, 1, 1, 1, 1),
(163, 5, 5, 'bank_n_cash', 0, 0, 0, 0, 0),
(164, 5, 6, 'products_n_services', 0, 0, 0, 0, 0),
(165, 5, 7, 'reports', 0, 0, 0, 0, 0),
(166, 5, 8, 'utilities', 0, 0, 0, 0, 0),
(167, 5, 9, 'appearance', 0, 0, 0, 0, 0),
(168, 5, 10, 'plugins', 0, 0, 0, 0, 0),
(169, 5, 11, 'calendar', 0, 0, 0, 0, 0),
(170, 5, 12, 'leads', 0, 0, 0, 0, 0),
(171, 5, 13, 'tasks', 0, 0, 0, 0, 0),
(172, 5, 14, 'contracts', 0, 0, 0, 0, 0),
(173, 5, 15, 'orders', 0, 0, 0, 0, 0),
(174, 5, 16, 'settings', 0, 0, 0, 0, 0),
(175, 5, 17, 'documents', 0, 0, 0, 0, 0),
(176, 5, 18, 'purchase', 0, 0, 0, 0, 0),
(177, 5, 19, 'suppliers', 0, 0, 0, 0, 0),
(178, 5, 20, 'sms', 0, 0, 0, 0, 0),
(179, 5, 21, 'support', 0, 0, 0, 0, 0),
(180, 5, 22, 'kb', 0, 0, 0, 0, 0),
(181, 5, 23, 'password_manager', 0, 0, 0, 0, 0),
(182, 5, 24, 'hr', 0, 0, 0, 0, 0);

-- --------------------------------------------------------

--
-- Table structure for table `sys_status`
--

CREATE TABLE `sys_status` (
  `id` int(11) UNSIGNED NOT NULL,
  `type` varchar(200) DEFAULT NULL,
  `name` varchar(200) DEFAULT NULL,
  `sorder` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_status`
--

INSERT INTO `sys_status` (`id`, `type`, `name`, `sorder`, `created_at`, `updated_at`) VALUES
(1, 'Purchase Invoice', 'Pending', NULL, NULL, NULL),
(2, 'Purchase Invoice', 'Accepted', NULL, NULL, NULL),
(3, 'Purchase Invoice', 'Declined', NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `sys_tags`
--

CREATE TABLE `sys_tags` (
  `id` int(11) NOT NULL,
  `text` varchar(100) NOT NULL,
  `type` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `sys_tasks`
--

CREATE TABLE `sys_tasks` (
  `id` int(11) NOT NULL,
  `title` text,
  `description` text,
  `status` varchar(200) DEFAULT NULL,
  `cid` int(11) NOT NULL DEFAULT '0',
  `oid` int(11) NOT NULL DEFAULT '0',
  `iid` int(11) NOT NULL DEFAULT '0',
  `aid` int(11) NOT NULL DEFAULT '0',
  `tid` int(11) NOT NULL DEFAULT '0',
  `eid` int(11) NOT NULL DEFAULT '0',
  `pid` int(11) NOT NULL DEFAULT '0',
  `did` int(11) NOT NULL DEFAULT '0',
  `company_id` int(11) NOT NULL DEFAULT '0',
  `subscribers` text,
  `assigned_to` text,
  `priority` varchar(200) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `created_by` varchar(200) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `updated_by` varchar(200) DEFAULT NULL,
  `vtoken` varchar(50) DEFAULT NULL,
  `ptoken` varchar(50) DEFAULT NULL,
  `started` date DEFAULT NULL,
  `due_date` date DEFAULT NULL,
  `stime` varchar(50) DEFAULT NULL,
  `dtime` varchar(50) DEFAULT NULL,
  `time_spent` varchar(50) DEFAULT NULL,
  `date_finished` date DEFAULT NULL,
  `source` varchar(100) DEFAULT NULL,
  `flag` int(1) NOT NULL DEFAULT '0',
  `finished` int(1) NOT NULL DEFAULT '0',
  `ratings` varchar(50) DEFAULT NULL,
  `rel_type` varchar(50) DEFAULT NULL,
  `rel_id` int(11) DEFAULT NULL,
  `parent` int(11) NOT NULL DEFAULT '0',
  `is_public` int(1) NOT NULL DEFAULT '0',
  `billable` int(1) NOT NULL DEFAULT '0',
  `billed` int(1) NOT NULL DEFAULT '0',
  `hourly_rate` decimal(14,2) NOT NULL DEFAULT '0.00',
  `milestone` int(11) DEFAULT NULL,
  `progress` int(3) DEFAULT NULL,
  `visible_to_client` int(1) NOT NULL DEFAULT '0',
  `notification` int(1) NOT NULL DEFAULT '0',
  `trash` int(1) NOT NULL DEFAULT '0',
  `archived` int(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_tasks`
--

INSERT INTO `sys_tasks` (`id`, `title`, `description`, `status`, `cid`, `oid`, `iid`, `aid`, `tid`, `eid`, `pid`, `did`, `company_id`, `subscribers`, `assigned_to`, `priority`, `created_at`, `created_by`, `updated_at`, `updated_by`, `vtoken`, `ptoken`, `started`, `due_date`, `stime`, `dtime`, `time_spent`, `date_finished`, `source`, `flag`, `finished`, `ratings`, `rel_type`, `rel_id`, `parent`, `is_public`, `billable`, `billed`, `hourly_rate`, `milestone`, `progress`, `visible_to_client`, `notification`, `trash`, `archived`) VALUES
(1, 'Webmin Configurations', NULL, 'Not Started', 1, 0, 0, 1, 1, 0, 0, 0, 0, NULL, NULL, 'High', '2020-04-10 21:40:10', 'Karthik', NULL, NULL, NULL, NULL, NULL, '2020-04-10', NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, 'Ticket', 1, 0, 0, 0, 0, '0.00', NULL, NULL, 0, 0, 0, 0);

-- --------------------------------------------------------

--
-- Table structure for table `sys_tax`
--

CREATE TABLE `sys_tax` (
  `id` int(10) NOT NULL,
  `name` text,
  `state` text,
  `country` text,
  `rate` decimal(10,2) DEFAULT NULL,
  `aid` int(11) DEFAULT NULL,
  `bal` decimal(10,2) DEFAULT '0.00',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `is_default` int(1) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_tax`
--

INSERT INTO `sys_tax` (`id`, `name`, `state`, `country`, `rate`, `aid`, `bal`, `created_at`, `updated_at`, `is_default`) VALUES
(1, 'None', NULL, NULL, '0.00', NULL, '0.00', '2020-04-17 11:09:28', '2020-04-17 11:09:28', 1);

-- --------------------------------------------------------

--
-- Table structure for table `sys_ticketdepartments`
--

CREATE TABLE `sys_ticketdepartments` (
  `id` int(11) NOT NULL,
  `dname` varchar(200) DEFAULT NULL,
  `description` text,
  `email` varchar(200) DEFAULT NULL,
  `hidden` int(1) NOT NULL DEFAULT '0',
  `delete_after_import` int(1) NOT NULL DEFAULT '0',
  `host` varchar(200) DEFAULT NULL,
  `port` varchar(50) DEFAULT NULL,
  `username` varchar(200) DEFAULT NULL,
  `password` varchar(100) DEFAULT NULL,
  `encryption` varchar(100) DEFAULT NULL,
  `calendar_id` varchar(200) DEFAULT NULL,
  `sorder` int(10) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_ticketdepartments`
--

INSERT INTO `sys_ticketdepartments` (`id`, `dname`, `description`, `email`, `hidden`, `delete_after_import`, `host`, `port`, `username`, `password`, `encryption`, `calendar_id`, `sorder`, `created_at`, `updated_at`) VALUES
(1, 'Technical Support', NULL, 'support@akstech.com.sg', 1, 0, '', '', 'support@akstech.com.sg', '', '', NULL, 1, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `sys_ticketmaillog`
--

CREATE TABLE `sys_ticketmaillog` (
  `id` int(11) NOT NULL,
  `date` datetime DEFAULT NULL,
  `account` varchar(200) DEFAULT NULL,
  `subject` varchar(200) DEFAULT NULL,
  `message` text,
  `status` varchar(100) DEFAULT NULL,
  `attachments` text,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `sys_ticketpredefinedreplies`
--

CREATE TABLE `sys_ticketpredefinedreplies` (
  `id` int(11) NOT NULL,
  `rname` varchar(200) DEFAULT NULL,
  `reply` text,
  `tags` text,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `attachments` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `sys_ticketreplies`
--

CREATE TABLE `sys_ticketreplies` (
  `id` int(11) NOT NULL,
  `tid` int(11) DEFAULT NULL,
  `userid` int(11) DEFAULT NULL,
  `account` varchar(200) DEFAULT NULL,
  `reply_type` varchar(200) DEFAULT NULL,
  `email` varchar(200) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `message` text,
  `replied_by` varchar(200) DEFAULT NULL,
  `admin` varchar(100) DEFAULT NULL,
  `attachments` text,
  `client_read` varchar(100) DEFAULT NULL,
  `admin_read` varchar(100) DEFAULT NULL,
  `rating` int(2) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_ticketreplies`
--

INSERT INTO `sys_ticketreplies` (`id`, `tid`, `userid`, `account`, `reply_type`, `email`, `created_at`, `updated_at`, `message`, `replied_by`, `admin`, `attachments`, `client_read`, `admin_read`, `rating`) VALUES
(1, 1, 1, 'Karthik', 'public', '', '2020-04-10 21:40:29', '2020-04-10 21:40:29', 'Check Webmin Configurations', 'Karthik', '1', '', '', '', NULL),
(2, 1, 1, 'Karthik', 'internal', '', '2020-04-10 21:41:12', '2020-04-10 21:41:12', 'Please check Webmin Licencing', 'Karthik', '1', '', '', '', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `sys_tickets`
--

CREATE TABLE `sys_tickets` (
  `id` int(11) NOT NULL,
  `tid` varchar(100) DEFAULT NULL,
  `did` int(10) DEFAULT NULL,
  `aid` int(10) DEFAULT NULL,
  `pid` int(10) DEFAULT NULL,
  `sid` int(10) DEFAULT NULL,
  `lid` int(10) DEFAULT NULL,
  `oid` int(10) DEFAULT NULL,
  `company_id` int(10) DEFAULT NULL,
  `dname` varchar(100) DEFAULT NULL,
  `userid` int(11) DEFAULT NULL,
  `account` varchar(200) DEFAULT NULL,
  `email` varchar(200) DEFAULT NULL,
  `cc` varchar(200) DEFAULT NULL,
  `bcc` varchar(200) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `subject` text,
  `message` text,
  `status` varchar(100) DEFAULT NULL,
  `urgency` varchar(100) DEFAULT NULL,
  `admin` varchar(100) DEFAULT NULL,
  `attachments` text,
  `last_reply` varchar(100) DEFAULT NULL,
  `flag` int(1) DEFAULT NULL,
  `escalated` int(1) DEFAULT NULL,
  `replying` int(1) DEFAULT NULL,
  `is_spam` int(1) DEFAULT NULL,
  `rating` int(2) DEFAULT NULL,
  `client_read` varchar(100) DEFAULT NULL,
  `admin_read` varchar(100) DEFAULT NULL,
  `source` varchar(100) DEFAULT NULL,
  `ttype` varchar(100) DEFAULT NULL,
  `tstart` varchar(100) DEFAULT NULL,
  `tend` varchar(100) DEFAULT NULL,
  `ttotal` varchar(100) DEFAULT NULL,
  `todo` text,
  `tags` text,
  `notes` text,
  `c1` varchar(255) DEFAULT NULL,
  `c2` varchar(255) DEFAULT NULL,
  `c3` varchar(255) DEFAULT NULL,
  `c4` varchar(255) DEFAULT NULL,
  `c5` text,
  `end_user_id` int(10) UNSIGNED DEFAULT NULL,
  `model` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_tickets`
--

INSERT INTO `sys_tickets` (`id`, `tid`, `did`, `aid`, `pid`, `sid`, `lid`, `oid`, `company_id`, `dname`, `userid`, `account`, `email`, `cc`, `bcc`, `created_at`, `updated_at`, `subject`, `message`, `status`, `urgency`, `admin`, `attachments`, `last_reply`, `flag`, `escalated`, `replying`, `is_spam`, `rating`, `client_read`, `admin_read`, `source`, `ttype`, `tstart`, `tend`, `ttotal`, `todo`, `tags`, `notes`, `c1`, `c2`, `c3`, `c4`, `c5`, `end_user_id`, `model`) VALUES
(1, 'QUC-33395164', 1, 1, NULL, NULL, NULL, NULL, NULL, 'Technical Support', 1, 'Vimal Karthik', 'vimalkarthik@apstrix.com', NULL, NULL, '2020-04-10 21:38:17', '2020-04-10 21:41:12', 'Issues with Login', 'Server Keeps down. Please rectify', 'Open', 'High', '1', '', 'Vimal Karthik', 0, NULL, NULL, 0, NULL, 'No', 'No', 'Web', '', '', '', '', '', '', '', '', '', NULL, NULL, NULL, NULL, NULL),
(2, 'STG-57223929', 1, NULL, NULL, NULL, NULL, NULL, NULL, 'Technical Support', 1, 'Vimal Karthik', 'vimalkarthik@apstrix.com', NULL, NULL, '2020-04-15 13:27:58', '2020-04-15 13:27:58', 'Server Error', '<p>hii</p><p>There is server error occured</p>', 'Open', 'Medium', '0', '', 'Vimal Karthik', 0, NULL, NULL, 0, NULL, 'No', 'No', 'Web', '', '', '', '', '', '', '', '', '', NULL, NULL, NULL, NULL, NULL),
(3, 'EER-72601101', 1, NULL, NULL, NULL, NULL, NULL, NULL, 'Technical Support', 1, 'Vimal Karthik', 'vimalkarthik@apstrix.com', NULL, NULL, '2020-04-15 19:35:21', '2020-04-15 19:35:21', 'Server', 'Server down', 'Open', 'High', '0', '', 'Vimal Karthik', 0, NULL, NULL, 0, NULL, 'No', 'No', 'Mobile', '', '', '', '', '', '', '', '', '', NULL, NULL, NULL, NULL, NULL),
(4, 'RQS-07038201', 1, NULL, NULL, NULL, NULL, NULL, NULL, 'Technical Support', 1, 'Vimal Karthik', 'vimalkarthik@apstrix.com', NULL, NULL, '2020-04-15 19:39:50', '2020-04-15 19:39:50', 'Website', 'Web page down', 'Open', 'High', '0', '', 'Vimal Karthik', 0, NULL, NULL, 0, NULL, 'No', 'No', 'Mobile', '', '', '', '', '', '', '', '', '', NULL, NULL, NULL, NULL, NULL),
(5, 'ZPK-96337565', 1, NULL, NULL, NULL, NULL, NULL, NULL, 'Technical Support', 1, 'Vimal Karthik', 'vimalkarthik@apstrix.com', NULL, NULL, '2020-04-15 20:19:01', '2020-04-15 20:19:01', 'Repaid', '<p>Error Occurred in hardware system</p><p><br></p>', 'Open', 'Medium', '0', '_955d864a330240158695310810843325.jpg', 'Vimal Karthik', 0, NULL, NULL, 0, NULL, 'No', 'No', 'Web', '', '', '', '', '', '', '', '', '', NULL, NULL, NULL, NULL, NULL),
(6, 'ORD-76281607', 0, NULL, NULL, NULL, NULL, NULL, NULL, '', 1, 'Vimal Karthik', 'vimalkarthik@apstrix.com', NULL, NULL, '2020-04-16 19:23:16', '2020-04-16 19:23:16', 'hi', 'hii', 'Open', 'high', '0', '', 'Vimal Karthik', 0, NULL, NULL, 0, NULL, 'No', 'No', 'Mobile', '', '', '', '', '', '', '', '', '', NULL, NULL, NULL, NULL, NULL),
(7, 'SBK-67457057', 0, NULL, NULL, NULL, NULL, NULL, NULL, '', 1, 'Vimal Karthik', 'vimalkarthik@apstrix.com', NULL, NULL, '2020-04-22 10:35:47', '2020-04-22 10:35:47', 'hi', 'hii', 'Open', 'High', '0', '', 'Vimal Karthik', 0, NULL, NULL, 0, NULL, 'No', 'No', 'Mobile', '', '', '', '', '', '', '', '', '', NULL, NULL, NULL, NULL, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `sys_transactions`
--

CREATE TABLE `sys_transactions` (
  `id` int(11) NOT NULL,
  `account` varchar(200) NOT NULL,
  `account_id` int(11) NOT NULL DEFAULT '0',
  `type` varchar(200) DEFAULT NULL,
  `sub_type` varchar(200) DEFAULT NULL,
  `cat_id` int(11) DEFAULT NULL,
  `category` varchar(200) DEFAULT NULL,
  `amount` decimal(18,2) DEFAULT NULL,
  `payer` varchar(200) DEFAULT NULL,
  `payee` varchar(200) DEFAULT NULL,
  `payerid` int(11) NOT NULL DEFAULT '0',
  `payeeid` int(11) NOT NULL DEFAULT '0',
  `method` varchar(200) DEFAULT NULL,
  `ref` varchar(200) DEFAULT NULL,
  `status` enum('Cleared','Uncleared','Reconciled','Void') NOT NULL DEFAULT 'Cleared',
  `description` text,
  `tags` text,
  `tax` decimal(18,2) NOT NULL DEFAULT '0.00',
  `date` date DEFAULT NULL,
  `dr` decimal(18,2) NOT NULL DEFAULT '0.00',
  `cr` decimal(18,2) NOT NULL DEFAULT '0.00',
  `bal` decimal(18,2) NOT NULL DEFAULT '0.00',
  `iid` int(11) NOT NULL DEFAULT '0',
  `currency_iso_code` char(3) DEFAULT NULL,
  `currency` int(11) NOT NULL DEFAULT '0',
  `currency_symbol` varchar(10) DEFAULT NULL,
  `currency_prefix` varchar(10) DEFAULT NULL,
  `currency_suffix` varchar(10) DEFAULT NULL,
  `currency_rate` decimal(11,4) NOT NULL DEFAULT '1.0000',
  `base_amount` decimal(16,4) NOT NULL DEFAULT '0.0000',
  `company_id` int(11) NOT NULL DEFAULT '0',
  `vid` int(11) NOT NULL DEFAULT '0',
  `aid` int(11) DEFAULT NULL,
  `staff_id` int(11) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `updated_by` int(11) NOT NULL DEFAULT '0',
  `attachments` text,
  `source` varchar(200) DEFAULT NULL,
  `rid` int(11) NOT NULL DEFAULT '0',
  `pid` int(11) NOT NULL DEFAULT '0',
  `archived` int(1) NOT NULL DEFAULT '0',
  `trash` int(1) NOT NULL DEFAULT '0',
  `flag` int(1) NOT NULL DEFAULT '0',
  `c1` text,
  `c2` text,
  `c3` text,
  `c4` text,
  `c5` text,
  `purchase_id` int(11) DEFAULT NULL,
  `code` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_transactions`
--

INSERT INTO `sys_transactions` (`id`, `account`, `account_id`, `type`, `sub_type`, `cat_id`, `category`, `amount`, `payer`, `payee`, `payerid`, `payeeid`, `method`, `ref`, `status`, `description`, `tags`, `tax`, `date`, `dr`, `cr`, `bal`, `iid`, `currency_iso_code`, `currency`, `currency_symbol`, `currency_prefix`, `currency_suffix`, `currency_rate`, `base_amount`, `company_id`, `vid`, `aid`, `staff_id`, `created_at`, `updated_at`, `updated_by`, `attachments`, `source`, `rid`, `pid`, `archived`, `trash`, `flag`, `c1`, `c2`, `c3`, `c4`, `c5`, `purchase_id`, `code`) VALUES
(1, 'UOB Account', 1, 'Equity', NULL, 0, '', '600.00', '', '', 0, 0, '', '', 'Cleared', 'Opening balance', '', '0.00', '2020-03-25', '0.00', '600.00', '600.00', 0, 'SGD', 0, NULL, NULL, NULL, '1.0000', '0.0000', 0, 24194360, 1, NULL, '2020-03-25 20:52:51', '2020-03-25 20:52:51', 0, '', 'Opening balance', 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(2, 'UOB Account', 1, 'Income', NULL, NULL, 'Regular Income', '80.00', 'Vimal Karthik', '', 1, 0, 'Cash', '', 'Cleared', 'Invoice 1 Payment', '', '0.00', '2020-03-25', '0.00', '80.00', '0.00', 1, 'SGD', 0, '', NULL, NULL, '1.0000', '0.0000', 0, 59927575, 1, NULL, NULL, '2020-03-25 20:53:51', 0, NULL, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(3, 'UOB Account', 1, 'Income', NULL, NULL, 'Regular Income', '100.00', 'Vimal Karthik', '', 1, 0, 'Cash', '', 'Cleared', 'Invoice 2 Payment', '', '0.00', '2020-03-25', '0.00', '100.00', '0.00', 2, 'SGD', 0, '', NULL, NULL, '1.0000', '0.0000', 0, 81224700, 1, NULL, NULL, '2020-03-25 20:58:39', 0, NULL, NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(4, 'UOB Account', 1, 'Income', NULL, 71, 'Uncategorized', '10.00', '', '', 1, 0, 'Cash', '', 'Cleared', 'qwewq', '', '0.00', '2020-04-23', '0.00', '10.00', '0.00', 0, 'SGD', 0, NULL, NULL, NULL, '1.0000', '0.0000', 0, 71382999, 1, 0, NULL, '2020-04-23 09:21:49', 0, '', NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 'INC-00001'),
(5, 'UOB Account', 1, 'Income', NULL, 71, 'Uncategorized', '33.00', '', '', 2, 0, 'Check', '', 'Cleared', '121', '', '0.00', '2020-04-23', '0.00', '33.00', '0.00', 0, 'SGD', 0, NULL, NULL, NULL, '1.0000', '0.0000', 0, 87588116, 1, 0, NULL, '2020-04-23 09:23:13', 0, '', NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 'INC-00002');

-- --------------------------------------------------------

--
-- Table structure for table `sys_units`
--

CREATE TABLE `sys_units` (
  `id` int(11) NOT NULL,
  `type` varchar(200) DEFAULT NULL,
  `name` varchar(200) DEFAULT NULL,
  `reference` varchar(200) DEFAULT NULL,
  `conversion_factor` decimal(16,2) NOT NULL DEFAULT '0.00',
  `sorder` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `sys_users`
--

CREATE TABLE `sys_users` (
  `id` int(10) UNSIGNED NOT NULL,
  `username` varchar(100) NOT NULL DEFAULT '',
  `fullname` varchar(100) NOT NULL DEFAULT '',
  `phonenumber` varchar(20) DEFAULT NULL,
  `password` text,
  `user_type` varchar(50) NOT NULL DEFAULT 'Full Access',
  `status` enum('Active','Inactive') NOT NULL DEFAULT 'Active',
  `last_login` datetime DEFAULT NULL,
  `email` varchar(200) DEFAULT NULL,
  `creationdate` datetime NOT NULL,
  `otp` enum('Yes','No') NOT NULL DEFAULT 'No',
  `pin_enabled` enum('Yes','No') NOT NULL DEFAULT 'No',
  `pin` mediumtext NOT NULL,
  `img` text NOT NULL,
  `api` enum('Yes','No') DEFAULT 'No',
  `pwresetkey` varchar(100) NOT NULL,
  `keyexpire` varchar(100) NOT NULL,
  `roleid` int(11) NOT NULL DEFAULT '0',
  `role` varchar(200) DEFAULT NULL,
  `last_activity` datetime DEFAULT NULL,
  `autologin` varchar(200) DEFAULT NULL,
  `at` varchar(200) DEFAULT NULL,
  `landing_page` varchar(200) DEFAULT NULL,
  `language` varchar(100) DEFAULT NULL,
  `notes` text,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `sms_notify` int(1) DEFAULT NULL,
  `email_notify` int(1) DEFAULT NULL,
  `slack_notify` int(1) DEFAULT NULL,
  `job_title` varchar(150) DEFAULT NULL,
  `date_hired` date DEFAULT NULL,
  `department_id` int(11) DEFAULT '0',
  `manager_id` int(11) DEFAULT '0',
  `pay_frequency` varchar(150) DEFAULT NULL,
  `currency` char(3) DEFAULT NULL,
  `amount` decimal(16,2) NOT NULL DEFAULT '0.00',
  `employee_id` varchar(150) DEFAULT NULL,
  `legal_name_title` varchar(150) DEFAULT NULL,
  `legal_name_first` varchar(150) DEFAULT NULL,
  `legal_name_mi` varchar(150) DEFAULT NULL,
  `legal_name_last` varchar(150) DEFAULT NULL,
  `banking_name` varchar(150) DEFAULT NULL,
  `ssn` varchar(150) DEFAULT NULL,
  `gender` varchar(150) DEFAULT NULL,
  `date_of_birth` date DEFAULT NULL,
  `marital_status` varchar(150) DEFAULT NULL,
  `ethnicity` varchar(150) DEFAULT NULL,
  `is_citizen` tinyint(1) NOT NULL DEFAULT '1',
  `has_i9_form` varchar(150) DEFAULT NULL,
  `work_authorization_expires` date DEFAULT NULL,
  `address_line_1` varchar(150) DEFAULT NULL,
  `address_line_2` varchar(150) DEFAULT NULL,
  `city` varchar(150) DEFAULT NULL,
  `state` varchar(150) DEFAULT NULL,
  `zip` varchar(150) DEFAULT NULL,
  `country` varchar(150) DEFAULT NULL,
  `work_phone` varchar(150) DEFAULT NULL,
  `work_mobile` varchar(150) DEFAULT NULL,
  `work_fax` varchar(150) DEFAULT NULL,
  `cc_email` varchar(150) DEFAULT NULL,
  `other` varchar(150) DEFAULT NULL,
  `emergency_contact_name_1` varchar(150) DEFAULT NULL,
  `emergency_contact_phone_1` varchar(150) DEFAULT NULL,
  `emergency_contact_relation_1` varchar(150) DEFAULT NULL,
  `emergency_contact_name_2` varchar(150) DEFAULT NULL,
  `emergency_contact_phone_2` varchar(150) DEFAULT NULL,
  `emergency_contact_relation_2` varchar(150) DEFAULT NULL,
  `last_day_worked` date DEFAULT NULL,
  `last_day_on_benefits` date DEFAULT NULL,
  `last_day_on_payroll` date DEFAULT NULL,
  `termination_type` varchar(150) DEFAULT NULL,
  `termination_reason` varchar(150) DEFAULT NULL,
  `is_recommended` tinyint(1) NOT NULL DEFAULT '1',
  `is_active` tinyint(1) NOT NULL DEFAULT '1',
  `facebook` varchar(150) DEFAULT NULL,
  `google` varchar(150) DEFAULT NULL,
  `linkedin` varchar(150) DEFAULT NULL,
  `skype` varchar(150) DEFAULT NULL,
  `twitter` varchar(150) DEFAULT NULL,
  `summary` text,
  `vehicle_type` varchar(50) NOT NULL DEFAULT '  ',
  `vehicle_number` varchar(50) NOT NULL DEFAULT ' '
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `sys_users`
--

INSERT INTO `sys_users` (`id`, `username`, `fullname`, `phonenumber`, `password`, `user_type`, `status`, `last_login`, `email`, `creationdate`, `otp`, `pin_enabled`, `pin`, `img`, `api`, `pwresetkey`, `keyexpire`, `roleid`, `role`, `last_activity`, `autologin`, `at`, `landing_page`, `language`, `notes`, `created_at`, `updated_at`, `sms_notify`, `email_notify`, `slack_notify`, `job_title`, `date_hired`, `department_id`, `manager_id`, `pay_frequency`, `currency`, `amount`, `employee_id`, `legal_name_title`, `legal_name_first`, `legal_name_mi`, `legal_name_last`, `banking_name`, `ssn`, `gender`, `date_of_birth`, `marital_status`, `ethnicity`, `is_citizen`, `has_i9_form`, `work_authorization_expires`, `address_line_1`, `address_line_2`, `city`, `state`, `zip`, `country`, `work_phone`, `work_mobile`, `work_fax`, `cc_email`, `other`, `emergency_contact_name_1`, `emergency_contact_phone_1`, `emergency_contact_relation_1`, `emergency_contact_name_2`, `emergency_contact_phone_2`, `emergency_contact_relation_2`, `last_day_worked`, `last_day_on_benefits`, `last_day_on_payroll`, `termination_type`, `termination_reason`, `is_recommended`, `is_active`, `facebook`, `google`, `linkedin`, `skype`, `twitter`, `summary`, `vehicle_type`, `vehicle_number`) VALUES
(1, 'admin@akstech.com.sg', 'Karthik', '82918173', '$2y$10$v1h.MccsamTQ.b3xHuZ9.OSIAF8uPO0cE33h4dfctrDRtDBeg56ZO', 'Admin', 'Active', '2020-05-16 22:16:54', '', '2014-10-20 01:43:07', 'No', 'No', 'Y6AOTKNSQ5D7J4FU', '', 'No', '', '0', 0, NULL, NULL, '2zomffa8igrb78cdw2o21', NULL, NULL, 'en', NULL, NULL, '2020-02-27 23:27:21', 1, 1, NULL, '', NULL, 0, 0, 'Monthly', 'SGD', '0.00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, '', '', '', 'Singapore', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, '', '', ''),
(4, 'sam@yahoo.com', 'Sam', '123', '$2y$10$aMCEsOArZ1mDaUTmBUZE3.5zm6zOv/oFGkINwA.exLWsJJxr/V02W', 'Driver', 'Active', '2020-04-14 22:00:55', '', '2020-04-14 22:00:55', 'No', 'No', '', '', 'No', '', '', 4, 'Driver', NULL, '6bir2k5c5quxg9k9gg7441586896136', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, '0.00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '231', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, 'Truck', 'Kl211'),
(5, 'Leo@gmail.com', 'Leo e', '123', '$2y$10$nPT6rIc8upmJmhqheHSLAOCiZoH7d1VG.qLSxm1AUENa0qrqT2Y8O', 'Driver', 'Active', '2020-04-19 13:46:09', '', '2020-04-19 13:46:09', 'No', 'No', '', '', 'No', '', '', 4, 'Driver', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, '0.00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '323', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, 'Car', '222'),
(6, 'abc@gmail.com', 'Abc', '123', '$2y$10$T2Kqflz0d3mefyuttp6wAu/38O44Gq2fufA.xCAoQXX3ygygDv6rm', 'Driver', 'Active', '2020-04-19 19:12:59', '', '2020-04-19 19:12:59', 'No', 'No', '', '', 'No', '', '', 4, 'Driver', NULL, '7kgc8ffede8u7vi4wvwm61587295022', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, '0.00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '321', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, 'Truck', '123'),
(7, 'abv@gmail.com', 'ABV', 'Abc', '$2y$10$l9awdD8DZEijR1bNxyPTGOZGNSXzA/RxAJmYK2gp5q5dWw51HeBVa', 'Salesman', 'Active', '2020-04-24 06:08:06', '', '2020-04-24 06:08:06', 'No', 'No', '', '', 'No', '', '', 5, 'Salesman', NULL, '090s52sf2eou450zk4ri71587681720', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, '0.00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, '  ', ' ');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `account_balances`
--
ALTER TABLE `account_balances`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `app_notes`
--
ALTER TABLE `app_notes`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `app_password_manager`
--
ALTER TABLE `app_password_manager`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `app_sms`
--
ALTER TABLE `app_sms`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `app_sms_drivers`
--
ALTER TABLE `app_sms_drivers`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `app_sms_templates`
--
ALTER TABLE `app_sms_templates`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `assets`
--
ALTER TABLE `assets`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `asset_categories`
--
ALTER TABLE `asset_categories`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `attendances`
--
ALTER TABLE `attendances`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `bills`
--
ALTER TABLE `bills`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `clx_integrations`
--
ALTER TABLE `clx_integrations`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `clx_projects`
--
ALTER TABLE `clx_projects`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `clx_shared_preferences`
--
ALTER TABLE `clx_shared_preferences`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `credit_cards`
--
ALTER TABLE `credit_cards`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `crmdelivery_history`
--
ALTER TABLE `crmdelivery_history`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `crmdriver_availablity`
--
ALTER TABLE `crmdriver_availablity`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `crmdriver_location`
--
ALTER TABLE `crmdriver_location`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `crmleadactivity`
--
ALTER TABLE `crmleadactivity`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `crm_accounts`
--
ALTER TABLE `crm_accounts`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `crm_customfields`
--
ALTER TABLE `crm_customfields`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `crm_customfieldsvalues`
--
ALTER TABLE `crm_customfieldsvalues`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `crm_groups`
--
ALTER TABLE `crm_groups`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `crm_industries`
--
ALTER TABLE `crm_industries`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `crm_leads`
--
ALTER TABLE `crm_leads`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `crm_lead_sources`
--
ALTER TABLE `crm_lead_sources`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `crm_lead_status`
--
ALTER TABLE `crm_lead_status`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `crm_salutations`
--
ALTER TABLE `crm_salutations`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `delivery_notes`
--
ALTER TABLE `delivery_notes`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `delivery_note_items`
--
ALTER TABLE `delivery_note_items`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `employees`
--
ALTER TABLE `employees`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `end_users`
--
ALTER TABLE `end_users`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `expense_types`
--
ALTER TABLE `expense_types`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `ib_assets`
--
ALTER TABLE `ib_assets`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `ib_doc_rel`
--
ALTER TABLE `ib_doc_rel`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `ib_invoice_access_log`
--
ALTER TABLE `ib_invoice_access_log`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `ib_kb`
--
ALTER TABLE `ib_kb`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `ib_kb_groups`
--
ALTER TABLE `ib_kb_groups`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `ib_kb_rel`
--
ALTER TABLE `ib_kb_rel`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `ib_kb_replies`
--
ALTER TABLE `ib_kb_replies`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `item_categories`
--
ALTER TABLE `item_categories`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `order_items`
--
ALTER TABLE `order_items`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `relations`
--
ALTER TABLE `relations`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_accounts`
--
ALTER TABLE `sys_accounts`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_activity`
--
ALTER TABLE `sys_activity`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_api`
--
ALTER TABLE `sys_api`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_appconfig`
--
ALTER TABLE `sys_appconfig`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_canned_responses`
--
ALTER TABLE `sys_canned_responses`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_cart`
--
ALTER TABLE `sys_cart`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_cats`
--
ALTER TABLE `sys_cats`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_companies`
--
ALTER TABLE `sys_companies`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_currencies`
--
ALTER TABLE `sys_currencies`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_documents`
--
ALTER TABLE `sys_documents`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_emailconfig`
--
ALTER TABLE `sys_emailconfig`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_email_logs`
--
ALTER TABLE `sys_email_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_email_templates`
--
ALTER TABLE `sys_email_templates`
  ADD PRIMARY KEY (`id`,`language_id`),
  ADD KEY `tplname` (`tplname`(32));

--
-- Indexes for table `sys_events`
--
ALTER TABLE `sys_events`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_invoiceitems`
--
ALTER TABLE `sys_invoiceitems`
  ADD PRIMARY KEY (`id`),
  ADD KEY `invoiceid` (`invoiceid`);

--
-- Indexes for table `sys_invoices`
--
ALTER TABLE `sys_invoices`
  ADD PRIMARY KEY (`id`),
  ADD KEY `userid` (`userid`),
  ADD KEY `status` (`status`(3));

--
-- Indexes for table `sys_items`
--
ALTER TABLE `sys_items`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_item_cats`
--
ALTER TABLE `sys_item_cats`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_leads`
--
ALTER TABLE `sys_leads`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_logs`
--
ALTER TABLE `sys_logs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_orders`
--
ALTER TABLE `sys_orders`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_permissions`
--
ALTER TABLE `sys_permissions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_pg`
--
ALTER TABLE `sys_pg`
  ADD PRIMARY KEY (`id`),
  ADD KEY `gateway_setting` (`name`(32),`processor`(32)),
  ADD KEY `setting_value` (`processor`(32),`ins`(32));

--
-- Indexes for table `sys_pl`
--
ALTER TABLE `sys_pl`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_pmethods`
--
ALTER TABLE `sys_pmethods`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_purchaseitems`
--
ALTER TABLE `sys_purchaseitems`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_purchases`
--
ALTER TABLE `sys_purchases`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_quoteitems`
--
ALTER TABLE `sys_quoteitems`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_quotes`
--
ALTER TABLE `sys_quotes`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_roles`
--
ALTER TABLE `sys_roles`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_sales`
--
ALTER TABLE `sys_sales`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_schedule`
--
ALTER TABLE `sys_schedule`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_schedulelogs`
--
ALTER TABLE `sys_schedulelogs`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_staffpermissions`
--
ALTER TABLE `sys_staffpermissions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_status`
--
ALTER TABLE `sys_status`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_tags`
--
ALTER TABLE `sys_tags`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_tasks`
--
ALTER TABLE `sys_tasks`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_tax`
--
ALTER TABLE `sys_tax`
  ADD PRIMARY KEY (`id`),
  ADD KEY `state_country` (`state`(32),`country`(2));

--
-- Indexes for table `sys_ticketdepartments`
--
ALTER TABLE `sys_ticketdepartments`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_ticketmaillog`
--
ALTER TABLE `sys_ticketmaillog`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_ticketpredefinedreplies`
--
ALTER TABLE `sys_ticketpredefinedreplies`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_ticketreplies`
--
ALTER TABLE `sys_ticketreplies`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_tickets`
--
ALTER TABLE `sys_tickets`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_transactions`
--
ALTER TABLE `sys_transactions`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_units`
--
ALTER TABLE `sys_units`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `sys_users`
--
ALTER TABLE `sys_users`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `account_balances`
--
ALTER TABLE `account_balances`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `app_notes`
--
ALTER TABLE `app_notes`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `app_password_manager`
--
ALTER TABLE `app_password_manager`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `app_sms`
--
ALTER TABLE `app_sms`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `app_sms_drivers`
--
ALTER TABLE `app_sms_drivers`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=141;

--
-- AUTO_INCREMENT for table `app_sms_templates`
--
ALTER TABLE `app_sms_templates`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `assets`
--
ALTER TABLE `assets`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `asset_categories`
--
ALTER TABLE `asset_categories`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `attendances`
--
ALTER TABLE `attendances`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `bills`
--
ALTER TABLE `bills`
  MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `clx_integrations`
--
ALTER TABLE `clx_integrations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `clx_projects`
--
ALTER TABLE `clx_projects`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `clx_shared_preferences`
--
ALTER TABLE `clx_shared_preferences`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `credit_cards`
--
ALTER TABLE `credit_cards`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `crmdelivery_history`
--
ALTER TABLE `crmdelivery_history`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `crmdriver_availablity`
--
ALTER TABLE `crmdriver_availablity`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;

--
-- AUTO_INCREMENT for table `crmdriver_location`
--
ALTER TABLE `crmdriver_location`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `crmleadactivity`
--
ALTER TABLE `crmleadactivity`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;

--
-- AUTO_INCREMENT for table `crm_accounts`
--
ALTER TABLE `crm_accounts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `crm_customfields`
--
ALTER TABLE `crm_customfields`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `crm_customfieldsvalues`
--
ALTER TABLE `crm_customfieldsvalues`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `crm_groups`
--
ALTER TABLE `crm_groups`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `crm_industries`
--
ALTER TABLE `crm_industries`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;

--
-- AUTO_INCREMENT for table `crm_leads`
--
ALTER TABLE `crm_leads`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `crm_lead_sources`
--
ALTER TABLE `crm_lead_sources`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `crm_lead_status`
--
ALTER TABLE `crm_lead_status`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;

--
-- AUTO_INCREMENT for table `crm_salutations`
--
ALTER TABLE `crm_salutations`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `delivery_notes`
--
ALTER TABLE `delivery_notes`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `delivery_note_items`
--
ALTER TABLE `delivery_note_items`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `employees`
--
ALTER TABLE `employees`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `end_users`
--
ALTER TABLE `end_users`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `expense_types`
--
ALTER TABLE `expense_types`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `ib_assets`
--
ALTER TABLE `ib_assets`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ib_doc_rel`
--
ALTER TABLE `ib_doc_rel`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `ib_invoice_access_log`
--
ALTER TABLE `ib_invoice_access_log`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `ib_kb`
--
ALTER TABLE `ib_kb`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ib_kb_groups`
--
ALTER TABLE `ib_kb_groups`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ib_kb_rel`
--
ALTER TABLE `ib_kb_rel`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `ib_kb_replies`
--
ALTER TABLE `ib_kb_replies`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `item_categories`
--
ALTER TABLE `item_categories`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `order_items`
--
ALTER TABLE `order_items`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `relations`
--
ALTER TABLE `relations`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sys_accounts`
--
ALTER TABLE `sys_accounts`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `sys_activity`
--
ALTER TABLE `sys_activity`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `sys_api`
--
ALTER TABLE `sys_api`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `sys_appconfig`
--
ALTER TABLE `sys_appconfig`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=250;

--
-- AUTO_INCREMENT for table `sys_canned_responses`
--
ALTER TABLE `sys_canned_responses`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sys_cart`
--
ALTER TABLE `sys_cart`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sys_cats`
--
ALTER TABLE `sys_cats`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=72;

--
-- AUTO_INCREMENT for table `sys_companies`
--
ALTER TABLE `sys_companies`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `sys_currencies`
--
ALTER TABLE `sys_currencies`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `sys_documents`
--
ALTER TABLE `sys_documents`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `sys_emailconfig`
--
ALTER TABLE `sys_emailconfig`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `sys_email_logs`
--
ALTER TABLE `sys_email_logs`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;

--
-- AUTO_INCREMENT for table `sys_email_templates`
--
ALTER TABLE `sys_email_templates`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;

--
-- AUTO_INCREMENT for table `sys_events`
--
ALTER TABLE `sys_events`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sys_invoiceitems`
--
ALTER TABLE `sys_invoiceitems`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;

--
-- AUTO_INCREMENT for table `sys_invoices`
--
ALTER TABLE `sys_invoices`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;

--
-- AUTO_INCREMENT for table `sys_items`
--
ALTER TABLE `sys_items`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `sys_item_cats`
--
ALTER TABLE `sys_item_cats`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `sys_leads`
--
ALTER TABLE `sys_leads`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sys_logs`
--
ALTER TABLE `sys_logs`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=118;

--
-- AUTO_INCREMENT for table `sys_orders`
--
ALTER TABLE `sys_orders`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sys_permissions`
--
ALTER TABLE `sys_permissions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;

--
-- AUTO_INCREMENT for table `sys_pg`
--
ALTER TABLE `sys_pg`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `sys_pl`
--
ALTER TABLE `sys_pl`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sys_pmethods`
--
ALTER TABLE `sys_pmethods`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `sys_purchaseitems`
--
ALTER TABLE `sys_purchaseitems`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sys_purchases`
--
ALTER TABLE `sys_purchases`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sys_quoteitems`
--
ALTER TABLE `sys_quoteitems`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;

--
-- AUTO_INCREMENT for table `sys_quotes`
--
ALTER TABLE `sys_quotes`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `sys_roles`
--
ALTER TABLE `sys_roles`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `sys_sales`
--
ALTER TABLE `sys_sales`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sys_schedule`
--
ALTER TABLE `sys_schedule`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `sys_schedulelogs`
--
ALTER TABLE `sys_schedulelogs`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `sys_staffpermissions`
--
ALTER TABLE `sys_staffpermissions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=183;

--
-- AUTO_INCREMENT for table `sys_status`
--
ALTER TABLE `sys_status`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `sys_tags`
--
ALTER TABLE `sys_tags`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sys_tasks`
--
ALTER TABLE `sys_tasks`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `sys_tax`
--
ALTER TABLE `sys_tax`
  MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `sys_ticketdepartments`
--
ALTER TABLE `sys_ticketdepartments`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `sys_ticketmaillog`
--
ALTER TABLE `sys_ticketmaillog`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sys_ticketpredefinedreplies`
--
ALTER TABLE `sys_ticketpredefinedreplies`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sys_ticketreplies`
--
ALTER TABLE `sys_ticketreplies`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `sys_tickets`
--
ALTER TABLE `sys_tickets`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

--
-- AUTO_INCREMENT for table `sys_transactions`
--
ALTER TABLE `sys_transactions`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `sys_units`
--
ALTER TABLE `sys_units`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `sys_users`
--
ALTER TABLE `sys_users`
  MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
