#
# TABLE STRUCTURE FOR: sma_addresses
#

DROP TABLE IF EXISTS `sma_addresses`;

CREATE TABLE `sma_addresses` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `company_id` int(11) NOT NULL,
  `line1` varchar(50) NOT NULL,
  `line2` varchar(50) DEFAULT NULL,
  `city` varchar(25) NOT NULL,
  `postal_code` varchar(20) DEFAULT NULL,
  `state` varchar(25) NOT NULL,
  `country` varchar(50) NOT NULL,
  `phone` varchar(50) DEFAULT NULL,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `company_id` (`company_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_adjustment_items
#

DROP TABLE IF EXISTS `sma_adjustment_items`;

CREATE TABLE `sma_adjustment_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `adjustment_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `option_id` int(11) DEFAULT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `serial_no` varchar(255) DEFAULT NULL,
  `type` varchar(20) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `adjustment_id` (`adjustment_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

INSERT INTO `sma_adjustment_items` (`id`, `adjustment_id`, `product_id`, `option_id`, `quantity`, `warehouse_id`, `serial_no`, `type`) VALUES ('1', '1', '9', NULL, '100.0000', '1', '', 'addition');
INSERT INTO `sma_adjustment_items` (`id`, `adjustment_id`, `product_id`, `option_id`, `quantity`, `warehouse_id`, `serial_no`, `type`) VALUES ('2', '2', '11', NULL, '500.0000', '1', '', 'addition');


#
# TABLE STRUCTURE FOR: sma_adjustments
#

DROP TABLE IF EXISTS `sma_adjustments`;

CREATE TABLE `sma_adjustments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `reference_no` varchar(55) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `note` text,
  `attachment` varchar(55) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `count_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `warehouse_id` (`warehouse_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

INSERT INTO `sma_adjustments` (`id`, `date`, `reference_no`, `warehouse_id`, `note`, `attachment`, `created_by`, `updated_by`, `updated_at`, `count_id`) VALUES ('1', '2018-01-16 09:32:00', 'PR2018/01/0005', '1', '', NULL, '1', NULL, NULL, NULL);
INSERT INTO `sma_adjustments` (`id`, `date`, `reference_no`, `warehouse_id`, `note`, `attachment`, `created_by`, `updated_by`, `updated_at`, `count_id`) VALUES ('2', '2018-01-16 09:54:00', 'PR2018/01/0006', '1', '', NULL, '1', NULL, NULL, NULL);


#
# TABLE STRUCTURE FOR: sma_brands
#

DROP TABLE IF EXISTS `sma_brands`;

CREATE TABLE `sma_brands` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(20) DEFAULT NULL,
  `name` varchar(50) NOT NULL,
  `image` varchar(50) DEFAULT NULL,
  `slug` varchar(55) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;

INSERT INTO `sma_brands` (`id`, `code`, `name`, `image`, `slug`) VALUES ('1', 'Maxi', 'Maxi', 'a87aeecb03a718b64f49779b772ccf36.png', 'maxi');
INSERT INTO `sma_brands` (`id`, `code`, `name`, `image`, `slug`) VALUES ('2', 'VIV', 'VIVO', '5ff6268770402e5792b940b90e8d760a.png', 'vivo');
INSERT INTO `sma_brands` (`id`, `code`, `name`, `image`, `slug`) VALUES ('3', 'SNY', 'SONY', 'd75ada324328bdef46dbd3aeb5ecac42.png', 'sony');
INSERT INTO `sma_brands` (`id`, `code`, `name`, `image`, `slug`) VALUES ('4', 'HTC', 'HTC', 'bd77ac03b594ff38303b27a977057f62.png', 'htc');
INSERT INTO `sma_brands` (`id`, `code`, `name`, `image`, `slug`) VALUES ('5', 'AS', 'ASUS', 'e841234e6b68c55a56c7721eccd4929f.png', 'asus');
INSERT INTO `sma_brands` (`id`, `code`, `name`, `image`, `slug`) VALUES ('6', 'LNV', 'LENOVO', '23e72f457d5ec7deabd18bbb27d85669.png', 'lenovo');


#
# TABLE STRUCTURE FOR: sma_calendar
#

DROP TABLE IF EXISTS `sma_calendar`;

CREATE TABLE `sma_calendar` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(55) NOT NULL,
  `description` varchar(255) DEFAULT NULL,
  `start` datetime NOT NULL,
  `end` datetime DEFAULT NULL,
  `color` varchar(7) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_captcha
#

DROP TABLE IF EXISTS `sma_captcha`;

CREATE TABLE `sma_captcha` (
  `captcha_id` bigint(13) unsigned NOT NULL AUTO_INCREMENT,
  `captcha_time` int(10) unsigned NOT NULL,
  `ip_address` varchar(16) CHARACTER SET latin1 NOT NULL DEFAULT '0',
  `word` varchar(20) CHARACTER SET latin1 NOT NULL,
  PRIMARY KEY (`captcha_id`),
  KEY `word` (`word`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_categories
#

DROP TABLE IF EXISTS `sma_categories`;

CREATE TABLE `sma_categories` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(55) NOT NULL,
  `name` varchar(55) NOT NULL,
  `image` varchar(55) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `slug` varchar(55) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;

INSERT INTO `sma_categories` (`id`, `code`, `name`, `image`, `parent_id`, `slug`) VALUES ('6', '15', 'Safety Items', NULL, '0', 'safety-items');
INSERT INTO `sma_categories` (`id`, `code`, `name`, `image`, `parent_id`, `slug`) VALUES ('7', '100', 'Stationary', NULL, '0', 'stationary');
INSERT INTO `sma_categories` (`id`, `code`, `name`, `image`, `parent_id`, `slug`) VALUES ('8', 'Choclate', 'Choclates', NULL, '0', 'choclates');
INSERT INTO `sma_categories` (`id`, `code`, `name`, `image`, `parent_id`, `slug`) VALUES ('10', 'MbPh', 'Mobile Phone', '0a3653822aada88fe09088cd4f72cdad.jpg', '0', 'mobile-phone');


#
# TABLE STRUCTURE FOR: sma_combo_items
#

DROP TABLE IF EXISTS `sma_combo_items`;

CREATE TABLE `sma_combo_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL,
  `item_code` varchar(20) NOT NULL,
  `quantity` decimal(12,4) NOT NULL,
  `unit_price` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_companies
#

DROP TABLE IF EXISTS `sma_companies`;

CREATE TABLE `sma_companies` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `group_id` int(10) unsigned DEFAULT NULL,
  `group_name` varchar(20) NOT NULL,
  `customer_group_id` int(11) DEFAULT NULL,
  `customer_group_name` varchar(100) DEFAULT NULL,
  `name` varchar(55) NOT NULL,
  `company` varchar(255) NOT NULL,
  `vat_no` varchar(100) DEFAULT NULL,
  `address` varchar(255) DEFAULT NULL,
  `city` varchar(55) DEFAULT NULL,
  `state` varchar(55) DEFAULT NULL,
  `postal_code` varchar(8) DEFAULT NULL,
  `country` varchar(100) DEFAULT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `email` varchar(100) NOT NULL,
  `cf1` varchar(100) DEFAULT NULL,
  `cf2` varchar(100) DEFAULT NULL,
  `cf3` varchar(100) DEFAULT NULL,
  `cf4` varchar(100) DEFAULT NULL,
  `cf5` varchar(100) DEFAULT NULL,
  `cf6` varchar(100) DEFAULT NULL,
  `invoice_footer` text,
  `payment_term` int(11) DEFAULT '0',
  `logo` varchar(255) DEFAULT 'logo.png',
  `award_points` int(11) DEFAULT '0',
  `deposit_amount` decimal(25,4) DEFAULT NULL,
  `price_group_id` int(11) DEFAULT NULL,
  `price_group_name` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `group_id` (`group_id`),
  KEY `group_id_2` (`group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8;

INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`) VALUES ('9', '3', 'customer', '1', 'General', 'Mr. Tajir', 'Al Yamama Company', '1000052', 'Dammam', 'Dammam', '0', '', '', '054632147', 'purchaser@ymm.com.sa', '', '', '', '', '', '', NULL, '0', 'logo.png', '0', NULL, '1', 'Default');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`) VALUES ('10', '4', 'supplier', NULL, NULL, 'Lojam', 'Lojam', '', 'sdfsdf', 'sdfsdf', '0', '', '', '45621354', 'dd@mm.com.sa', '', '', '', '', '', '', NULL, '0', 'logo.png', '0', NULL, NULL, NULL);
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`) VALUES ('11', '4', 'supplier', NULL, NULL, 'ssd', 'Bahlaiwa', '', 'sfsf', 'sdfsdf', '0', '', '', '4564564564', 'sdsd@sa.com', '', '', '', '', '', '', NULL, '0', 'logo.png', '0', NULL, NULL, NULL);
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`) VALUES ('12', '4', 'supplier', NULL, NULL, 'sd', 'Delmon Chemical Industries', '', 'asdfsdf', 'sdfsdf', '0', '', '', '55454564', 'sd@df.com', '', '', '', '', '', '', NULL, '0', 'logo.png', '0', NULL, NULL, NULL);
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`) VALUES ('13', '4', 'supplier', NULL, NULL, 'sddd', 'Bahlaiwa', '', 'jhjhjk', 'Dammam', '0', '', '', '2045244', 'Bahlaiwa@sd.com', '', '', '', '', '', '', NULL, '0', 'logo.png', '0', NULL, NULL, NULL);
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`) VALUES ('14', '4', 'supplier', NULL, NULL, 'abc', 'abc', '123', 'test', 'test', '0', '', '', '8888', 'abc@anc.com', '', '', '', '', '', '', NULL, '0', 'logo.png', '0', NULL, NULL, NULL);
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`) VALUES ('15', '3', 'customer', '1', 'General', 'General', '', '', 'AslamBuilding, Malaz', 'Riyadh', '0', '', '', '0821332432844', 'shahdan@gmail.com', '', '', '', '', '', '', NULL, '0', 'logo.png', '0', NULL, '1', 'Default');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`) VALUES ('16', '3', 'customer', '1', 'General', 'abcdefg', 'abcdefg', '456456456', 'sdfsdfsdf', 'dfdsfsdf', '0', '', '', '5646432323', 'safeerparuthikkad@gmail.com', '', '', '', '', '', '', NULL, '0', 'logo.png', '0', NULL, '1', 'Default');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`) VALUES ('17', '4', 'supplier', NULL, NULL, 'MK', 'ABC Company', 'VAT 1234', '123456', '5656', 'KL', '', '', '1234', 'moideenkutty.pv@gmail.com', '', '', '', '', '', '', NULL, '0', 'logo.png', '0', NULL, NULL, NULL);
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`) VALUES ('18', '3', 'customer', '1', 'General', '234', '234', 'vat098', 'address', 'city', 'KL', '', '', 'phone', 'moideenkutty@gmail.com', '', '', '', '', '', '', NULL, '0', 'logo.png', '0', NULL, '1', 'Default');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`) VALUES ('19', '3', 'customer', '1', 'General', 'Abdullah ', 'BakaalaAbdullah', '1000022222', 'Bakaalamusthalifa', 'musthalifa', '0', '', '', '05035478999', 'bakaala@gmail.com', '', '', '', '', '', '', NULL, '0', 'logo.png', '0', NULL, '1', 'Default');
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`) VALUES ('20', NULL, 'biller', NULL, NULL, 'Saleel M K', 'Al-Assi Trading Est.', '123456', 'RIYADH', 'RIYADH', 'AN', '', '', '053558888', 'saleelmk@gmail.com', '', '', '', '', '', '', 'العاصي للتجارة الشرق', '0', 'logo.png', '0', NULL, NULL, NULL);
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`) VALUES ('21', '3', 'customer', '1', 'General', 'Jamshiya', 'Neighbours', '12345678901 V/C', 'maskan', 'Kozhikode', 'KL', '673003', 'India', '9567987482', 'jamshiyakk7@gmail.com', 'a', 'b', 'c', 'd', 'e', 'f', NULL, '0', 'logo.png', '0', '5000.0000', NULL, NULL);
INSERT INTO `sma_companies` (`id`, `group_id`, `group_name`, `customer_group_id`, `customer_group_name`, `name`, `company`, `vat_no`, `address`, `city`, `state`, `postal_code`, `country`, `phone`, `email`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `invoice_footer`, `payment_term`, `logo`, `award_points`, `deposit_amount`, `price_group_id`, `price_group_name`) VALUES ('22', NULL, 'biller', NULL, NULL, 'Mifna', 'NM Traders', '54678', 'calicut', 'Calicut', 'KL', '678567', 'india', '9087678956', 'mifna.ak@gmail.com', '', '', '', '', '', '', 'nm trad213', '0', 'logo2.png', '0', NULL, NULL, NULL);


#
# TABLE STRUCTURE FOR: sma_costing
#

DROP TABLE IF EXISTS `sma_costing`;

CREATE TABLE `sma_costing` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `product_id` int(11) DEFAULT NULL,
  `sale_item_id` int(11) NOT NULL,
  `sale_id` int(11) DEFAULT NULL,
  `purchase_item_id` int(11) DEFAULT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `purchase_net_unit_cost` decimal(25,4) DEFAULT NULL,
  `purchase_unit_cost` decimal(25,4) DEFAULT NULL,
  `sale_net_unit_price` decimal(25,4) NOT NULL,
  `sale_unit_price` decimal(25,4) NOT NULL,
  `quantity_balance` decimal(15,4) DEFAULT NULL,
  `inventory` tinyint(1) DEFAULT '0',
  `overselling` tinyint(1) DEFAULT '0',
  `option_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES ('6', '2017-12-04', '6', '6', '5', '6', '2.0000', '8499.0000', '8499.0000', '9500.0000', '9500.0000', '5.0000', '1', '0', NULL);
INSERT INTO `sma_costing` (`id`, `date`, `product_id`, `sale_item_id`, `sale_id`, `purchase_item_id`, `quantity`, `purchase_net_unit_cost`, `purchase_unit_cost`, `sale_net_unit_price`, `sale_unit_price`, `quantity_balance`, `inventory`, `overselling`, `option_id`) VALUES ('7', '2017-12-04', '4', '7', '5', '3', '4.0000', '67690.0000', '74459.0000', '75600.0000', '83160.0000', '40.0000', '1', '0', NULL);


#
# TABLE STRUCTURE FOR: sma_currencies
#

DROP TABLE IF EXISTS `sma_currencies`;

CREATE TABLE `sma_currencies` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(5) NOT NULL,
  `name` varchar(55) NOT NULL,
  `rate` decimal(12,4) NOT NULL,
  `auto_update` tinyint(1) NOT NULL DEFAULT '0',
  `symbol` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

INSERT INTO `sma_currencies` (`id`, `code`, `name`, `rate`, `auto_update`, `symbol`) VALUES ('1', 'USD', 'US Dollar', '1.0000', '0', NULL);
INSERT INTO `sma_currencies` (`id`, `code`, `name`, `rate`, `auto_update`, `symbol`) VALUES ('2', 'ERU', 'EURO', '0.7340', '0', NULL);
INSERT INTO `sma_currencies` (`id`, `code`, `name`, `rate`, `auto_update`, `symbol`) VALUES ('3', 'IN', 'INDIA', '1.0000', '0', '₹');
INSERT INTO `sma_currencies` (`id`, `code`, `name`, `rate`, `auto_update`, `symbol`) VALUES ('4', 'KSA', 'Saudi Riyals', '1.0000', '0', 'SAR');


#
# TABLE STRUCTURE FOR: sma_customer_groups
#

DROP TABLE IF EXISTS `sma_customer_groups`;

CREATE TABLE `sma_customer_groups` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL,
  `percent` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

INSERT INTO `sma_customer_groups` (`id`, `name`, `percent`) VALUES ('1', 'General', '0');
INSERT INTO `sma_customer_groups` (`id`, `name`, `percent`) VALUES ('2', 'Reseller', '-5');
INSERT INTO `sma_customer_groups` (`id`, `name`, `percent`) VALUES ('3', 'Distributor', '-15');
INSERT INTO `sma_customer_groups` (`id`, `name`, `percent`) VALUES ('4', 'New Customer (+10)', '10');


#
# TABLE STRUCTURE FOR: sma_date_format
#

DROP TABLE IF EXISTS `sma_date_format`;

CREATE TABLE `sma_date_format` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `js` varchar(20) NOT NULL,
  `php` varchar(20) NOT NULL,
  `sql` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;

INSERT INTO `sma_date_format` (`id`, `js`, `php`, `sql`) VALUES ('1', 'mm-dd-yyyy', 'm-d-Y', '%m-%d-%Y');
INSERT INTO `sma_date_format` (`id`, `js`, `php`, `sql`) VALUES ('2', 'mm/dd/yyyy', 'm/d/Y', '%m/%d/%Y');
INSERT INTO `sma_date_format` (`id`, `js`, `php`, `sql`) VALUES ('3', 'mm.dd.yyyy', 'm.d.Y', '%m.%d.%Y');
INSERT INTO `sma_date_format` (`id`, `js`, `php`, `sql`) VALUES ('4', 'dd-mm-yyyy', 'd-m-Y', '%d-%m-%Y');
INSERT INTO `sma_date_format` (`id`, `js`, `php`, `sql`) VALUES ('5', 'dd/mm/yyyy', 'd/m/Y', '%d/%m/%Y');
INSERT INTO `sma_date_format` (`id`, `js`, `php`, `sql`) VALUES ('6', 'dd.mm.yyyy', 'd.m.Y', '%d.%m.%Y');


#
# TABLE STRUCTURE FOR: sma_deliveries
#

DROP TABLE IF EXISTS `sma_deliveries`;

CREATE TABLE `sma_deliveries` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `sale_id` int(11) NOT NULL,
  `do_reference_no` varchar(50) NOT NULL,
  `sale_reference_no` varchar(50) NOT NULL,
  `customer` varchar(55) NOT NULL,
  `address` varchar(1000) NOT NULL,
  `note` varchar(1000) DEFAULT NULL,
  `status` varchar(15) DEFAULT NULL,
  `attachment` varchar(50) DEFAULT NULL,
  `delivered_by` varchar(50) DEFAULT NULL,
  `received_by` varchar(50) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_deposits
#

DROP TABLE IF EXISTS `sma_deposits`;

CREATE TABLE `sma_deposits` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `company_id` int(11) NOT NULL,
  `amount` decimal(25,4) NOT NULL,
  `paid_by` varchar(50) DEFAULT NULL,
  `note` varchar(255) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) NOT NULL,
  `updated_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

INSERT INTO `sma_deposits` (`id`, `date`, `company_id`, `amount`, `paid_by`, `note`, `created_by`, `updated_by`, `updated_at`) VALUES ('1', '2017-12-05 15:10:00', '7', '25000.0000', '', '', '3', '0', NULL);
INSERT INTO `sma_deposits` (`id`, `date`, `company_id`, `amount`, `paid_by`, `note`, `created_by`, `updated_by`, `updated_at`) VALUES ('2', '2018-01-16 09:42:00', '21', '5000.0000', '250', '', '1', '0', NULL);


#
# TABLE STRUCTURE FOR: sma_expense_categories
#

DROP TABLE IF EXISTS `sma_expense_categories`;

CREATE TABLE `sma_expense_categories` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(55) NOT NULL,
  `name` varchar(55) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

INSERT INTO `sma_expense_categories` (`id`, `code`, `name`) VALUES ('1', 'MbPh', 'Mobile Phone');
INSERT INTO `sma_expense_categories` (`id`, `code`, `name`) VALUES ('2', 'elec', 'electricity');


#
# TABLE STRUCTURE FOR: sma_expenses
#

DROP TABLE IF EXISTS `sma_expenses`;

CREATE TABLE `sma_expenses` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `reference` varchar(50) NOT NULL,
  `amount` decimal(25,4) NOT NULL,
  `note` varchar(1000) DEFAULT NULL,
  `created_by` varchar(55) NOT NULL,
  `attachment` varchar(55) DEFAULT NULL,
  `category_id` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_expenses` (`id`, `date`, `reference`, `amount`, `note`, `created_by`, `attachment`, `category_id`, `warehouse_id`) VALUES ('1', '2017-12-24 10:54:00', '2017/12/0001', '50.0000', '', '1', NULL, '1', '1');


#
# TABLE STRUCTURE FOR: sma_gift_card_topups
#

DROP TABLE IF EXISTS `sma_gift_card_topups`;

CREATE TABLE `sma_gift_card_topups` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `card_id` int(11) NOT NULL,
  `amount` decimal(15,4) NOT NULL,
  `created_by` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `card_id` (`card_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_gift_cards
#

DROP TABLE IF EXISTS `sma_gift_cards`;

CREATE TABLE `sma_gift_cards` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `card_no` varchar(20) NOT NULL,
  `value` decimal(25,4) NOT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `customer` varchar(255) DEFAULT NULL,
  `balance` decimal(25,4) NOT NULL,
  `expiry` date DEFAULT NULL,
  `created_by` varchar(55) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `card_no` (`card_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_groups
#

DROP TABLE IF EXISTS `sma_groups`;

CREATE TABLE `sma_groups` (
  `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL,
  `description` varchar(100) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;

INSERT INTO `sma_groups` (`id`, `name`, `description`) VALUES ('1', 'owner', 'Owner');
INSERT INTO `sma_groups` (`id`, `name`, `description`) VALUES ('2', 'admin', 'Administrator');
INSERT INTO `sma_groups` (`id`, `name`, `description`) VALUES ('3', 'customer', 'Customer');
INSERT INTO `sma_groups` (`id`, `name`, `description`) VALUES ('4', 'supplier', 'Supplier');
INSERT INTO `sma_groups` (`id`, `name`, `description`) VALUES ('5', 'sales', 'Sales Staff');
INSERT INTO `sma_groups` (`id`, `name`, `description`) VALUES ('6', 'sales_executives', 'sales management');


#
# TABLE STRUCTURE FOR: sma_login_attempts
#

DROP TABLE IF EXISTS `sma_login_attempts`;

CREATE TABLE `sma_login_attempts` (
  `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  `ip_address` varbinary(16) NOT NULL,
  `login` varchar(100) NOT NULL,
  `time` int(11) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;

INSERT INTO `sma_login_attempts` (`id`, `ip_address`, `login`, `time`) VALUES ('6', '171.49.194.36', 'hhhh', '1515989711');


#
# TABLE STRUCTURE FOR: sma_migrations
#

DROP TABLE IF EXISTS `sma_migrations`;

CREATE TABLE `sma_migrations` (
  `version` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `sma_migrations` (`version`) VALUES ('315');


#
# TABLE STRUCTURE FOR: sma_notifications
#

DROP TABLE IF EXISTS `sma_notifications`;

CREATE TABLE `sma_notifications` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `comment` text NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `from_date` datetime DEFAULT NULL,
  `till_date` datetime DEFAULT NULL,
  `scope` tinyint(1) NOT NULL DEFAULT '3',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_order_ref
#

DROP TABLE IF EXISTS `sma_order_ref`;

CREATE TABLE `sma_order_ref` (
  `ref_id` int(11) NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `so` int(11) NOT NULL DEFAULT '1',
  `qu` int(11) NOT NULL DEFAULT '1',
  `po` int(11) NOT NULL DEFAULT '1',
  `to` int(11) NOT NULL DEFAULT '1',
  `pos` int(11) NOT NULL DEFAULT '1',
  `do` int(11) NOT NULL DEFAULT '1',
  `pay` int(11) NOT NULL DEFAULT '1',
  `re` int(11) NOT NULL DEFAULT '1',
  `rep` int(11) NOT NULL DEFAULT '1',
  `ex` int(11) NOT NULL DEFAULT '1',
  `ppay` int(11) NOT NULL DEFAULT '1',
  `qa` int(11) DEFAULT '1',
  PRIMARY KEY (`ref_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_order_ref` (`ref_id`, `date`, `so`, `qu`, `po`, `to`, `pos`, `do`, `pay`, `re`, `rep`, `ex`, `ppay`, `qa`) VALUES ('1', '2015-03-01', '4', '1', '6', '1', '3', '2', '9', '1', '1', '2', '3', '7');


#
# TABLE STRUCTURE FOR: sma_payments
#

DROP TABLE IF EXISTS `sma_payments`;

CREATE TABLE `sma_payments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `sale_id` int(11) DEFAULT NULL,
  `return_id` int(11) DEFAULT NULL,
  `purchase_id` int(11) DEFAULT NULL,
  `reference_no` varchar(50) NOT NULL,
  `transaction_id` varchar(50) DEFAULT NULL,
  `paid_by` varchar(20) NOT NULL,
  `cheque_no` varchar(20) DEFAULT NULL,
  `cc_no` varchar(20) DEFAULT NULL,
  `cc_holder` varchar(25) DEFAULT NULL,
  `cc_month` varchar(2) DEFAULT NULL,
  `cc_year` varchar(4) DEFAULT NULL,
  `cc_type` varchar(20) DEFAULT NULL,
  `amount` decimal(25,4) NOT NULL,
  `currency` varchar(3) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `attachment` varchar(55) DEFAULT NULL,
  `type` varchar(20) NOT NULL,
  `note` varchar(1000) DEFAULT NULL,
  `pos_paid` decimal(25,4) DEFAULT '0.0000',
  `pos_balance` decimal(25,4) DEFAULT '0.0000',
  `approval_code` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;

INSERT INTO `sma_payments` (`id`, `date`, `sale_id`, `return_id`, `purchase_id`, `reference_no`, `transaction_id`, `paid_by`, `cheque_no`, `cc_no`, `cc_holder`, `cc_month`, `cc_year`, `cc_type`, `amount`, `currency`, `created_by`, `attachment`, `type`, `note`, `pos_paid`, `pos_balance`, `approval_code`) VALUES ('8', '2017-12-04 17:40:00', '5', NULL, NULL, 'IPAY2017/12/0008', NULL, 'cash', '', '', '', '', '', 'Visa', '200000.0000', NULL, '1', NULL, 'received', '', '0.0000', '0.0000', NULL);


#
# TABLE STRUCTURE FOR: sma_paypal
#

DROP TABLE IF EXISTS `sma_paypal`;

CREATE TABLE `sma_paypal` (
  `id` int(11) NOT NULL,
  `active` tinyint(4) NOT NULL,
  `account_email` varchar(255) NOT NULL,
  `paypal_currency` varchar(3) NOT NULL DEFAULT 'USD',
  `fixed_charges` decimal(25,4) NOT NULL DEFAULT '2.0000',
  `extra_charges_my` decimal(25,4) NOT NULL DEFAULT '3.9000',
  `extra_charges_other` decimal(25,4) NOT NULL DEFAULT '4.4000',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `sma_paypal` (`id`, `active`, `account_email`, `paypal_currency`, `fixed_charges`, `extra_charges_my`, `extra_charges_other`) VALUES ('1', '1', 'mypaypal@paypal.com', 'USD', '0.0000', '0.0000', '0.0000');


#
# TABLE STRUCTURE FOR: sma_permissions
#

DROP TABLE IF EXISTS `sma_permissions`;

CREATE TABLE `sma_permissions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `group_id` int(11) NOT NULL,
  `products-index` tinyint(1) DEFAULT '0',
  `products-add` tinyint(1) DEFAULT '0',
  `products-edit` tinyint(1) DEFAULT '0',
  `products-delete` tinyint(1) DEFAULT '0',
  `products-cost` tinyint(1) DEFAULT '0',
  `products-price` tinyint(1) DEFAULT '0',
  `quotes-index` tinyint(1) DEFAULT '0',
  `quotes-add` tinyint(1) DEFAULT '0',
  `quotes-edit` tinyint(1) DEFAULT '0',
  `quotes-pdf` tinyint(1) DEFAULT '0',
  `quotes-email` tinyint(1) DEFAULT '0',
  `quotes-delete` tinyint(1) DEFAULT '0',
  `sales-index` tinyint(1) DEFAULT '0',
  `sales-add` tinyint(1) DEFAULT '0',
  `sales-edit` tinyint(1) DEFAULT '0',
  `sales-pdf` tinyint(1) DEFAULT '0',
  `sales-email` tinyint(1) DEFAULT '0',
  `sales-delete` tinyint(1) DEFAULT '0',
  `purchases-index` tinyint(1) DEFAULT '0',
  `purchases-add` tinyint(1) DEFAULT '0',
  `purchases-edit` tinyint(1) DEFAULT '0',
  `purchases-pdf` tinyint(1) DEFAULT '0',
  `purchases-email` tinyint(1) DEFAULT '0',
  `purchases-delete` tinyint(1) DEFAULT '0',
  `transfers-index` tinyint(1) DEFAULT '0',
  `transfers-add` tinyint(1) DEFAULT '0',
  `transfers-edit` tinyint(1) DEFAULT '0',
  `transfers-pdf` tinyint(1) DEFAULT '0',
  `transfers-email` tinyint(1) DEFAULT '0',
  `transfers-delete` tinyint(1) DEFAULT '0',
  `customers-index` tinyint(1) DEFAULT '0',
  `customers-add` tinyint(1) DEFAULT '0',
  `customers-edit` tinyint(1) DEFAULT '0',
  `customers-delete` tinyint(1) DEFAULT '0',
  `suppliers-index` tinyint(1) DEFAULT '0',
  `suppliers-add` tinyint(1) DEFAULT '0',
  `suppliers-edit` tinyint(1) DEFAULT '0',
  `suppliers-delete` tinyint(1) DEFAULT '0',
  `sales-deliveries` tinyint(1) DEFAULT '0',
  `sales-add_delivery` tinyint(1) DEFAULT '0',
  `sales-edit_delivery` tinyint(1) DEFAULT '0',
  `sales-delete_delivery` tinyint(1) DEFAULT '0',
  `sales-email_delivery` tinyint(1) DEFAULT '0',
  `sales-pdf_delivery` tinyint(1) DEFAULT '0',
  `sales-gift_cards` tinyint(1) DEFAULT '0',
  `sales-add_gift_card` tinyint(1) DEFAULT '0',
  `sales-edit_gift_card` tinyint(1) DEFAULT '0',
  `sales-delete_gift_card` tinyint(1) DEFAULT '0',
  `pos-index` tinyint(1) DEFAULT '0',
  `sales-return_sales` tinyint(1) DEFAULT '0',
  `reports-index` tinyint(1) DEFAULT '0',
  `reports-warehouse_stock` tinyint(1) DEFAULT '0',
  `reports-quantity_alerts` tinyint(1) DEFAULT '0',
  `reports-expiry_alerts` tinyint(1) DEFAULT '0',
  `reports-products` tinyint(1) DEFAULT '0',
  `reports-daily_sales` tinyint(1) DEFAULT '0',
  `reports-monthly_sales` tinyint(1) DEFAULT '0',
  `reports-sales` tinyint(1) DEFAULT '0',
  `reports-payments` tinyint(1) DEFAULT '0',
  `reports-purchases` tinyint(1) DEFAULT '0',
  `reports-profit_loss` tinyint(1) DEFAULT '0',
  `reports-customers` tinyint(1) DEFAULT '0',
  `reports-suppliers` tinyint(1) DEFAULT '0',
  `reports-staff` tinyint(1) DEFAULT '0',
  `reports-register` tinyint(1) DEFAULT '0',
  `sales-payments` tinyint(1) DEFAULT '0',
  `purchases-payments` tinyint(1) DEFAULT '0',
  `purchases-expenses` tinyint(1) DEFAULT '0',
  `products-adjustments` tinyint(1) NOT NULL DEFAULT '0',
  `bulk_actions` tinyint(1) NOT NULL DEFAULT '0',
  `customers-deposits` tinyint(1) NOT NULL DEFAULT '0',
  `customers-delete_deposit` tinyint(1) NOT NULL DEFAULT '0',
  `products-barcode` tinyint(1) NOT NULL DEFAULT '0',
  `purchases-return_purchases` tinyint(1) NOT NULL DEFAULT '0',
  `reports-expenses` tinyint(1) NOT NULL DEFAULT '0',
  `reports-daily_purchases` tinyint(1) DEFAULT '0',
  `reports-monthly_purchases` tinyint(1) DEFAULT '0',
  `products-stock_count` tinyint(1) DEFAULT '0',
  `edit_price` tinyint(1) DEFAULT '0',
  `returns-index` tinyint(1) DEFAULT '0',
  `returns-add` tinyint(1) DEFAULT '0',
  `returns-edit` tinyint(1) DEFAULT '0',
  `returns-delete` tinyint(1) DEFAULT '0',
  `returns-email` tinyint(1) DEFAULT '0',
  `returns-pdf` tinyint(1) DEFAULT '0',
  `reports-tax` tinyint(1) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

INSERT INTO `sma_permissions` (`id`, `group_id`, `products-index`, `products-add`, `products-edit`, `products-delete`, `products-cost`, `products-price`, `quotes-index`, `quotes-add`, `quotes-edit`, `quotes-pdf`, `quotes-email`, `quotes-delete`, `sales-index`, `sales-add`, `sales-edit`, `sales-pdf`, `sales-email`, `sales-delete`, `purchases-index`, `purchases-add`, `purchases-edit`, `purchases-pdf`, `purchases-email`, `purchases-delete`, `transfers-index`, `transfers-add`, `transfers-edit`, `transfers-pdf`, `transfers-email`, `transfers-delete`, `customers-index`, `customers-add`, `customers-edit`, `customers-delete`, `suppliers-index`, `suppliers-add`, `suppliers-edit`, `suppliers-delete`, `sales-deliveries`, `sales-add_delivery`, `sales-edit_delivery`, `sales-delete_delivery`, `sales-email_delivery`, `sales-pdf_delivery`, `sales-gift_cards`, `sales-add_gift_card`, `sales-edit_gift_card`, `sales-delete_gift_card`, `pos-index`, `sales-return_sales`, `reports-index`, `reports-warehouse_stock`, `reports-quantity_alerts`, `reports-expiry_alerts`, `reports-products`, `reports-daily_sales`, `reports-monthly_sales`, `reports-sales`, `reports-payments`, `reports-purchases`, `reports-profit_loss`, `reports-customers`, `reports-suppliers`, `reports-staff`, `reports-register`, `sales-payments`, `purchases-payments`, `purchases-expenses`, `products-adjustments`, `bulk_actions`, `customers-deposits`, `customers-delete_deposit`, `products-barcode`, `purchases-return_purchases`, `reports-expenses`, `reports-daily_purchases`, `reports-monthly_purchases`, `products-stock_count`, `edit_price`, `returns-index`, `returns-add`, `returns-edit`, `returns-delete`, `returns-email`, `returns-pdf`, `reports-tax`) VALUES ('1', '5', '1', '0', '0', '0', '0', '0', '1', '1', '1', '1', '1', '0', '1', '1', '0', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '1', '1', '0', '0', '0', '0', '0', '1', '1', '1', '0', '0', '1', '1', '1', '0', '0', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');
INSERT INTO `sma_permissions` (`id`, `group_id`, `products-index`, `products-add`, `products-edit`, `products-delete`, `products-cost`, `products-price`, `quotes-index`, `quotes-add`, `quotes-edit`, `quotes-pdf`, `quotes-email`, `quotes-delete`, `sales-index`, `sales-add`, `sales-edit`, `sales-pdf`, `sales-email`, `sales-delete`, `purchases-index`, `purchases-add`, `purchases-edit`, `purchases-pdf`, `purchases-email`, `purchases-delete`, `transfers-index`, `transfers-add`, `transfers-edit`, `transfers-pdf`, `transfers-email`, `transfers-delete`, `customers-index`, `customers-add`, `customers-edit`, `customers-delete`, `suppliers-index`, `suppliers-add`, `suppliers-edit`, `suppliers-delete`, `sales-deliveries`, `sales-add_delivery`, `sales-edit_delivery`, `sales-delete_delivery`, `sales-email_delivery`, `sales-pdf_delivery`, `sales-gift_cards`, `sales-add_gift_card`, `sales-edit_gift_card`, `sales-delete_gift_card`, `pos-index`, `sales-return_sales`, `reports-index`, `reports-warehouse_stock`, `reports-quantity_alerts`, `reports-expiry_alerts`, `reports-products`, `reports-daily_sales`, `reports-monthly_sales`, `reports-sales`, `reports-payments`, `reports-purchases`, `reports-profit_loss`, `reports-customers`, `reports-suppliers`, `reports-staff`, `reports-register`, `sales-payments`, `purchases-payments`, `purchases-expenses`, `products-adjustments`, `bulk_actions`, `customers-deposits`, `customers-delete_deposit`, `products-barcode`, `purchases-return_purchases`, `reports-expenses`, `reports-daily_purchases`, `reports-monthly_purchases`, `products-stock_count`, `edit_price`, `returns-index`, `returns-add`, `returns-edit`, `returns-delete`, `returns-email`, `returns-pdf`, `reports-tax`) VALUES ('2', '6', '1', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', '1', '1', '1', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', NULL, NULL, NULL, NULL, NULL, NULL, '1', '1', '1', NULL, NULL, '1', '1', '1', NULL, NULL, NULL, NULL, '0', '0', '1', '1', '1', NULL, NULL, NULL, NULL, NULL, '0', NULL, NULL, '0', '0', NULL, NULL, NULL, '0', '0', '0', '0', '0', '0', '0', NULL, NULL, '1', NULL, '0', '0', '0', '0', '0', '0', '0');


#
# TABLE STRUCTURE FOR: sma_pos_register
#

DROP TABLE IF EXISTS `sma_pos_register`;

CREATE TABLE `sma_pos_register` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `user_id` int(11) NOT NULL,
  `cash_in_hand` decimal(25,4) NOT NULL,
  `status` varchar(10) NOT NULL,
  `total_cash` decimal(25,4) DEFAULT NULL,
  `total_cheques` int(11) DEFAULT NULL,
  `total_cc_slips` int(11) DEFAULT NULL,
  `total_cash_submitted` decimal(25,4) DEFAULT NULL,
  `total_cheques_submitted` int(11) DEFAULT NULL,
  `total_cc_slips_submitted` int(11) DEFAULT NULL,
  `note` text,
  `closed_at` timestamp NULL DEFAULT NULL,
  `transfer_opened_bills` varchar(50) DEFAULT NULL,
  `closed_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

INSERT INTO `sma_pos_register` (`id`, `date`, `user_id`, `cash_in_hand`, `status`, `total_cash`, `total_cheques`, `total_cc_slips`, `total_cash_submitted`, `total_cheques_submitted`, `total_cc_slips_submitted`, `note`, `closed_at`, `transfer_opened_bills`, `closed_by`) VALUES ('1', '2017-12-02 12:53:21', '1', '7.0000', 'open', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `sma_pos_register` (`id`, `date`, `user_id`, `cash_in_hand`, `status`, `total_cash`, `total_cheques`, `total_cc_slips`, `total_cash_submitted`, `total_cheques_submitted`, `total_cc_slips_submitted`, `note`, `closed_at`, `transfer_opened_bills`, `closed_by`) VALUES ('2', '2017-12-04 12:22:12', '2', '50000.0000', 'open', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `sma_pos_register` (`id`, `date`, `user_id`, `cash_in_hand`, `status`, `total_cash`, `total_cheques`, `total_cc_slips`, `total_cash_submitted`, `total_cheques_submitted`, `total_cc_slips_submitted`, `note`, `closed_at`, `transfer_opened_bills`, `closed_by`) VALUES ('3', '2017-12-05 16:33:56', '3', '50000.0000', 'open', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `sma_pos_register` (`id`, `date`, `user_id`, `cash_in_hand`, `status`, `total_cash`, `total_cheques`, `total_cc_slips`, `total_cash_submitted`, `total_cheques_submitted`, `total_cc_slips_submitted`, `note`, `closed_at`, `transfer_opened_bills`, `closed_by`) VALUES ('4', '2018-01-06 15:25:46', '4', '0.0000', 'open', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);


#
# TABLE STRUCTURE FOR: sma_pos_settings
#

DROP TABLE IF EXISTS `sma_pos_settings`;

CREATE TABLE `sma_pos_settings` (
  `pos_id` int(1) NOT NULL,
  `cat_limit` int(11) NOT NULL,
  `pro_limit` int(11) NOT NULL,
  `default_category` int(11) NOT NULL,
  `default_customer` int(11) NOT NULL,
  `default_biller` int(11) NOT NULL,
  `display_time` varchar(3) NOT NULL DEFAULT 'yes',
  `cf_title1` varchar(255) DEFAULT NULL,
  `cf_title2` varchar(255) DEFAULT NULL,
  `cf_value1` varchar(255) DEFAULT NULL,
  `cf_value2` varchar(255) DEFAULT NULL,
  `receipt_printer` varchar(55) DEFAULT NULL,
  `cash_drawer_codes` varchar(55) DEFAULT NULL,
  `focus_add_item` varchar(55) DEFAULT NULL,
  `add_manual_product` varchar(55) DEFAULT NULL,
  `customer_selection` varchar(55) DEFAULT NULL,
  `add_customer` varchar(55) DEFAULT NULL,
  `toggle_category_slider` varchar(55) DEFAULT NULL,
  `toggle_subcategory_slider` varchar(55) DEFAULT NULL,
  `cancel_sale` varchar(55) DEFAULT NULL,
  `suspend_sale` varchar(55) DEFAULT NULL,
  `print_items_list` varchar(55) DEFAULT NULL,
  `finalize_sale` varchar(55) DEFAULT NULL,
  `today_sale` varchar(55) DEFAULT NULL,
  `open_hold_bills` varchar(55) DEFAULT NULL,
  `close_register` varchar(55) DEFAULT NULL,
  `keyboard` tinyint(1) NOT NULL,
  `pos_printers` varchar(255) DEFAULT NULL,
  `java_applet` tinyint(1) NOT NULL,
  `product_button_color` varchar(20) NOT NULL DEFAULT 'default',
  `tooltips` tinyint(1) DEFAULT '1',
  `paypal_pro` tinyint(1) DEFAULT '0',
  `stripe` tinyint(1) DEFAULT '0',
  `rounding` tinyint(1) DEFAULT '0',
  `char_per_line` tinyint(4) DEFAULT '42',
  `pin_code` varchar(20) DEFAULT NULL,
  `purchase_code` varchar(100) DEFAULT 'purchase_code',
  `envato_username` varchar(50) DEFAULT 'envato_username',
  `version` varchar(10) DEFAULT '3.2.12',
  `after_sale_page` tinyint(1) DEFAULT '0',
  `item_order` tinyint(1) DEFAULT '0',
  `authorize` tinyint(1) DEFAULT '0',
  `toggle_brands_slider` varchar(55) DEFAULT NULL,
  `remote_printing` tinyint(1) DEFAULT '1',
  `printer` int(11) DEFAULT NULL,
  `order_printers` varchar(55) DEFAULT NULL,
  `auto_print` tinyint(1) DEFAULT '0',
  `customer_details` tinyint(1) DEFAULT NULL,
  `local_printers` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`pos_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `sma_pos_settings` (`pos_id`, `cat_limit`, `pro_limit`, `default_category`, `default_customer`, `default_biller`, `display_time`, `cf_title1`, `cf_title2`, `cf_value1`, `cf_value2`, `receipt_printer`, `cash_drawer_codes`, `focus_add_item`, `add_manual_product`, `customer_selection`, `add_customer`, `toggle_category_slider`, `toggle_subcategory_slider`, `cancel_sale`, `suspend_sale`, `print_items_list`, `finalize_sale`, `today_sale`, `open_hold_bills`, `close_register`, `keyboard`, `pos_printers`, `java_applet`, `product_button_color`, `tooltips`, `paypal_pro`, `stripe`, `rounding`, `char_per_line`, `pin_code`, `purchase_code`, `envato_username`, `version`, `after_sale_page`, `item_order`, `authorize`, `toggle_brands_slider`, `remote_printing`, `printer`, `order_printers`, `auto_print`, `customer_details`, `local_printers`) VALUES ('1', '22', '5', '6', '1', '22', '1', 'GST Reg', 'VAT Reg', '123456789', '987654321', NULL, 'x1C', 'Ctrl+F3', 'Ctrl+Shift+M', 'Ctrl+Shift+C', 'Ctrl+Shift+A', 'Ctrl+F11', 'Ctrl+F12', 'F4', 'F7', 'F9', 'F8', 'Ctrl+F1', 'Ctrl+F2', 'Ctrl+F10', '1', NULL, '0', 'primary', '1', '0', '0', '0', '42', NULL, 'purchase_code', 'envato_username', '3.2.12', '0', '0', '0', '', '1', NULL, 'null', '0', '1', '1');


#
# TABLE STRUCTURE FOR: sma_price_groups
#

DROP TABLE IF EXISTS `sma_price_groups`;

CREATE TABLE `sma_price_groups` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

INSERT INTO `sma_price_groups` (`id`, `name`) VALUES ('2', 'Below Ten Thousand');
INSERT INTO `sma_price_groups` (`id`, `name`) VALUES ('1', 'Default');


#
# TABLE STRUCTURE FOR: sma_printers
#

DROP TABLE IF EXISTS `sma_printers`;

CREATE TABLE `sma_printers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(55) NOT NULL,
  `type` varchar(25) NOT NULL,
  `profile` varchar(25) NOT NULL,
  `char_per_line` tinyint(3) unsigned DEFAULT NULL,
  `path` varchar(255) DEFAULT NULL,
  `ip_address` varbinary(45) DEFAULT NULL,
  `port` varchar(10) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_product_photos
#

DROP TABLE IF EXISTS `sma_product_photos`;

CREATE TABLE `sma_product_photos` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL,
  `photo` varchar(100) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_product_prices
#

DROP TABLE IF EXISTS `sma_product_prices`;

CREATE TABLE `sma_product_prices` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL,
  `price_group_id` int(11) NOT NULL,
  `price` decimal(25,4) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `product_id` (`product_id`),
  KEY `price_group_id` (`price_group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

INSERT INTO `sma_product_prices` (`id`, `product_id`, `price_group_id`, `price`) VALUES ('1', '10', '2', '0.0000');
INSERT INTO `sma_product_prices` (`id`, `product_id`, `price_group_id`, `price`) VALUES ('2', '11', '2', '9999.0000');


#
# TABLE STRUCTURE FOR: sma_product_variants
#

DROP TABLE IF EXISTS `sma_product_variants`;

CREATE TABLE `sma_product_variants` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL,
  `name` varchar(55) NOT NULL,
  `cost` decimal(25,4) DEFAULT NULL,
  `price` decimal(25,4) DEFAULT NULL,
  `quantity` decimal(15,4) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_products
#

DROP TABLE IF EXISTS `sma_products`;

CREATE TABLE `sma_products` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(50) NOT NULL,
  `name` varchar(255) NOT NULL,
  `unit` int(11) DEFAULT NULL,
  `cost` decimal(25,4) DEFAULT NULL,
  `price` decimal(25,4) NOT NULL,
  `alert_quantity` decimal(15,4) DEFAULT '20.0000',
  `image` varchar(255) DEFAULT 'no_image.png',
  `category_id` int(11) NOT NULL,
  `subcategory_id` int(11) DEFAULT NULL,
  `cf1` varchar(255) DEFAULT NULL,
  `cf2` varchar(255) DEFAULT NULL,
  `cf3` varchar(255) DEFAULT NULL,
  `cf4` varchar(255) DEFAULT NULL,
  `cf5` varchar(255) DEFAULT NULL,
  `cf6` varchar(255) DEFAULT NULL,
  `quantity` decimal(15,4) DEFAULT '0.0000',
  `tax_rate` int(11) DEFAULT NULL,
  `track_quantity` tinyint(1) DEFAULT '1',
  `details` varchar(1000) DEFAULT NULL,
  `warehouse` int(11) DEFAULT NULL,
  `barcode_symbology` varchar(55) NOT NULL DEFAULT 'code128',
  `file` varchar(100) DEFAULT NULL,
  `product_details` text,
  `tax_method` tinyint(1) DEFAULT '0',
  `type` varchar(55) NOT NULL DEFAULT 'standard',
  `supplier1` int(11) DEFAULT NULL,
  `supplier1price` decimal(25,4) DEFAULT NULL,
  `supplier2` int(11) DEFAULT NULL,
  `supplier2price` decimal(25,4) DEFAULT NULL,
  `supplier3` int(11) DEFAULT NULL,
  `supplier3price` decimal(25,4) DEFAULT NULL,
  `supplier4` int(11) DEFAULT NULL,
  `supplier4price` decimal(25,4) DEFAULT NULL,
  `supplier5` int(11) DEFAULT NULL,
  `supplier5price` decimal(25,4) DEFAULT NULL,
  `promotion` tinyint(1) DEFAULT '0',
  `promo_price` decimal(25,4) DEFAULT NULL,
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `supplier1_part_no` varchar(50) DEFAULT NULL,
  `supplier2_part_no` varchar(50) DEFAULT NULL,
  `supplier3_part_no` varchar(50) DEFAULT NULL,
  `supplier4_part_no` varchar(50) DEFAULT NULL,
  `supplier5_part_no` varchar(50) DEFAULT NULL,
  `sale_unit` int(11) DEFAULT NULL,
  `purchase_unit` int(11) DEFAULT NULL,
  `brand` int(11) DEFAULT NULL,
  `slug` varchar(55) DEFAULT NULL,
  `featured` tinyint(1) DEFAULT NULL,
  `weight` decimal(10,4) DEFAULT NULL,
  `hsn_code` int(11) DEFAULT NULL,
  `views` int(11) NOT NULL DEFAULT '0',
  `hide` tinyint(1) NOT NULL DEFAULT '0',
  `second_name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `code` (`code`),
  KEY `category_id` (`category_id`),
  KEY `id` (`id`),
  KEY `id_2` (`id`),
  KEY `category_id_2` (`category_id`),
  KEY `unit` (`unit`),
  KEY `brand` (`brand`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;

INSERT INTO `sma_products` (`id`, `code`, `name`, `unit`, `cost`, `price`, `alert_quantity`, `image`, `category_id`, `subcategory_id`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `quantity`, `tax_rate`, `track_quantity`, `details`, `warehouse`, `barcode_symbology`, `file`, `product_details`, `tax_method`, `type`, `supplier1`, `supplier1price`, `supplier2`, `supplier2price`, `supplier3`, `supplier3price`, `supplier4`, `supplier4price`, `supplier5`, `supplier5price`, `promotion`, `promo_price`, `start_date`, `end_date`, `supplier1_part_no`, `supplier2_part_no`, `supplier3_part_no`, `supplier4_part_no`, `supplier5_part_no`, `sale_unit`, `purchase_unit`, `brand`, `slug`, `featured`, `weight`, `hsn_code`, `views`, `hide`, `second_name`) VALUES ('6', 'PRD1', 'Product1', '2', '100.0000', '110.0000', '0.0000', 'no_image.png', '7', NULL, '', '', '', '', '', '', '25.0000', '2', '1', '', NULL, 'code128', '', '', '0', 'standard', '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, '2', '2', '1', 'product1', NULL, '1000.0000', '0', '0', '0', '');
INSERT INTO `sma_products` (`id`, `code`, `name`, `unit`, `cost`, `price`, `alert_quantity`, `image`, `category_id`, `subcategory_id`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `quantity`, `tax_rate`, `track_quantity`, `details`, `warehouse`, `barcode_symbology`, `file`, `product_details`, `tax_method`, `type`, `supplier1`, `supplier1price`, `supplier2`, `supplier2price`, `supplier3`, `supplier3price`, `supplier4`, `supplier4price`, `supplier5`, `supplier5price`, `promotion`, `promo_price`, `start_date`, `end_date`, `supplier1_part_no`, `supplier2_part_no`, `supplier3_part_no`, `supplier4_part_no`, `supplier5_part_no`, `sale_unit`, `purchase_unit`, `brand`, `slug`, `featured`, `weight`, `hsn_code`, `views`, `hide`, `second_name`) VALUES ('7', '71465766', 'glazed marble', '2', '520.0000', '700.0000', '0.0000', 'no_image.png', '6', NULL, '', '', '', '', '', '', '141.0000', '2', '1', '', NULL, 'code128', '', '', '0', 'standard', '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, '2', '2', '1', 'glazed-marble', '1', '50.0000', '0', '0', '0', '');
INSERT INTO `sma_products` (`id`, `code`, `name`, `unit`, `cost`, `price`, `alert_quantity`, `image`, `category_id`, `subcategory_id`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `quantity`, `tax_rate`, `track_quantity`, `details`, `warehouse`, `barcode_symbology`, `file`, `product_details`, `tax_method`, `type`, `supplier1`, `supplier1price`, `supplier2`, `supplier2price`, `supplier3`, `supplier3price`, `supplier4`, `supplier4price`, `supplier5`, `supplier5price`, `promotion`, `promo_price`, `start_date`, `end_date`, `supplier1_part_no`, `supplier2_part_no`, `supplier3_part_no`, `supplier4_part_no`, `supplier5_part_no`, `sale_unit`, `purchase_unit`, `brand`, `slug`, `featured`, `weight`, `hsn_code`, `views`, `hide`, `second_name`) VALUES ('8', 'Snickers50g', 'Snickers50g', '4', '80.0000', '85.0000', '10.0000', 'no_image.png', '8', NULL, '', '', '', '', '', '', '0.0000', '2', '0', '', NULL, 'code128', '', '', '1', 'standard', '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, '4', '4', '0', 'Snickers50g', NULL, '0.0000', '0', '0', '0', '');
INSERT INTO `sma_products` (`id`, `code`, `name`, `unit`, `cost`, `price`, `alert_quantity`, `image`, `category_id`, `subcategory_id`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `quantity`, `tax_rate`, `track_quantity`, `details`, `warehouse`, `barcode_symbology`, `file`, `product_details`, `tax_method`, `type`, `supplier1`, `supplier1price`, `supplier2`, `supplier2price`, `supplier3`, `supplier3price`, `supplier4`, `supplier4price`, `supplier5`, `supplier5price`, `promotion`, `promo_price`, `start_date`, `end_date`, `supplier1_part_no`, `supplier2_part_no`, `supplier3_part_no`, `supplier4_part_no`, `supplier5_part_no`, `sale_unit`, `purchase_unit`, `brand`, `slug`, `featured`, `weight`, `hsn_code`, `views`, `hide`, `second_name`) VALUES ('9', 'KitKat20g', 'KitKat20g', '4', '65.0000', '70.0000', '0.0000', 'no_image.png', '8', NULL, '', '', '', '', '', '', '100.0000', '2', '0', '', NULL, 'code128', '', '', '1', 'standard', '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, '4', '4', '0', 'kitkat20g', NULL, '2.0000', '0', '0', '0', '');
INSERT INTO `sma_products` (`id`, `code`, `name`, `unit`, `cost`, `price`, `alert_quantity`, `image`, `category_id`, `subcategory_id`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `quantity`, `tax_rate`, `track_quantity`, `details`, `warehouse`, `barcode_symbology`, `file`, `product_details`, `tax_method`, `type`, `supplier1`, `supplier1price`, `supplier2`, `supplier2price`, `supplier3`, `supplier3price`, `supplier4`, `supplier4price`, `supplier5`, `supplier5price`, `promotion`, `promo_price`, `start_date`, `end_date`, `supplier1_part_no`, `supplier2_part_no`, `supplier3_part_no`, `supplier4_part_no`, `supplier5_part_no`, `sale_unit`, `purchase_unit`, `brand`, `slug`, `featured`, `weight`, `hsn_code`, `views`, `hide`, `second_name`) VALUES ('10', '42092763', 'snickers', '4', '15.0000', '15.0000', '0.0000', 'no_image.png', '6', NULL, '', '', '', '', '', '', '150.0000', '1', '1', '', NULL, 'code128', '', '', '1', 'standard', '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, '4', '4', '2', 'snickers', NULL, '5.0000', '0', '0', '0', 's');
INSERT INTO `sma_products` (`id`, `code`, `name`, `unit`, `cost`, `price`, `alert_quantity`, `image`, `category_id`, `subcategory_id`, `cf1`, `cf2`, `cf3`, `cf4`, `cf5`, `cf6`, `quantity`, `tax_rate`, `track_quantity`, `details`, `warehouse`, `barcode_symbology`, `file`, `product_details`, `tax_method`, `type`, `supplier1`, `supplier1price`, `supplier2`, `supplier2price`, `supplier3`, `supplier3price`, `supplier4`, `supplier4price`, `supplier5`, `supplier5price`, `promotion`, `promo_price`, `start_date`, `end_date`, `supplier1_part_no`, `supplier2_part_no`, `supplier3_part_no`, `supplier4_part_no`, `supplier5_part_no`, `sale_unit`, `purchase_unit`, `brand`, `slug`, `featured`, `weight`, `hsn_code`, `views`, `hide`, `second_name`) VALUES ('11', '55893102', 'vivo v7', '2', '16990.0000', '18000.0000', '0.0000', 'no_image.png', '10', NULL, '', '', '', '', '', '', '500.0000', '2', '1', '', NULL, 'code128', '', '', '0', 'standard', '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', NULL, NULL, NULL, NULL, '0', '0', '2', 'vivo-v7', NULL, '0.1600', '0', '0', '0', 'vivo v7');


#
# TABLE STRUCTURE FOR: sma_purchase_items
#

DROP TABLE IF EXISTS `sma_purchase_items`;

CREATE TABLE `sma_purchase_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `purchase_id` int(11) DEFAULT NULL,
  `transfer_id` int(11) DEFAULT NULL,
  `product_id` int(11) NOT NULL,
  `product_code` varchar(50) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `option_id` int(11) DEFAULT NULL,
  `net_unit_cost` decimal(25,4) NOT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `item_tax` decimal(25,4) DEFAULT NULL,
  `tax_rate_id` int(11) DEFAULT NULL,
  `tax` varchar(20) DEFAULT NULL,
  `discount` varchar(20) DEFAULT NULL,
  `item_discount` decimal(25,4) DEFAULT NULL,
  `expiry` date DEFAULT NULL,
  `subtotal` decimal(25,4) NOT NULL,
  `quantity_balance` decimal(15,4) DEFAULT '0.0000',
  `date` date NOT NULL,
  `status` varchar(50) NOT NULL,
  `unit_cost` decimal(25,4) DEFAULT NULL,
  `real_unit_cost` decimal(25,4) DEFAULT NULL,
  `quantity_received` decimal(15,4) DEFAULT NULL,
  `supplier_part_no` varchar(50) DEFAULT NULL,
  `purchase_item_id` int(11) DEFAULT NULL,
  `product_unit_id` int(11) DEFAULT NULL,
  `product_unit_code` varchar(10) DEFAULT NULL,
  `unit_quantity` decimal(15,4) NOT NULL,
  `gst` varchar(20) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `purchase_id` (`purchase_id`),
  KEY `product_id` (`product_id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;

INSERT INTO `sma_purchase_items` (`id`, `purchase_id`, `transfer_id`, `product_id`, `product_code`, `product_name`, `option_id`, `net_unit_cost`, `quantity`, `warehouse_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `expiry`, `subtotal`, `quantity_balance`, `date`, `status`, `unit_cost`, `real_unit_cost`, `quantity_received`, `supplier_part_no`, `purchase_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `gst`, `cgst`, `sgst`, `igst`) VALUES ('1', NULL, NULL, '2', '22157199', 'book', NULL, '500.0000', '100.0000', '1', '0.0000', '1', '0.0000', NULL, NULL, NULL, '50000.0000', '97.0000', '2017-12-02', 'received', '500.0000', '500.0000', '100.0000', NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL);
INSERT INTO `sma_purchase_items` (`id`, `purchase_id`, `transfer_id`, `product_id`, `product_code`, `product_name`, `option_id`, `net_unit_cost`, `quantity`, `warehouse_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `expiry`, `subtotal`, `quantity_balance`, `date`, `status`, `unit_cost`, `real_unit_cost`, `quantity_received`, `supplier_part_no`, `purchase_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `gst`, `cgst`, `sgst`, `igst`) VALUES ('2', NULL, NULL, '1', '65305359', 'Mobile', NULL, '5000.0000', '80.0000', '1', '500.0000', '2', '10%', NULL, NULL, NULL, '440000.0000', '63.0000', '2017-12-02', 'received', '5500.0000', '5000.0000', '80.0000', NULL, NULL, '1', 'MB', '80.0000', '10%', '0.0000', '0.0000', '40000.0000');
INSERT INTO `sma_purchase_items` (`id`, `purchase_id`, `transfer_id`, `product_id`, `product_code`, `product_name`, `option_id`, `net_unit_cost`, `quantity`, `warehouse_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `expiry`, `subtotal`, `quantity_balance`, `date`, `status`, `unit_cost`, `real_unit_cost`, `quantity_received`, `supplier_part_no`, `purchase_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `gst`, `cgst`, `sgst`, `igst`) VALUES ('3', NULL, NULL, '4', 'AP', 'Apple iPhone 7 Plus ', NULL, '67690.0000', '50.0000', '1', '338450.0000', '2', '10.0000%', NULL, NULL, NULL, '3722950.0000', '40.0000', '2017-12-04', 'received', '74459.0000', '74459.0000', '50.0000', NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL);
INSERT INTO `sma_purchase_items` (`id`, `purchase_id`, `transfer_id`, `product_id`, `product_code`, `product_name`, `option_id`, `net_unit_cost`, `quantity`, `warehouse_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `expiry`, `subtotal`, `quantity_balance`, `date`, `status`, `unit_cost`, `real_unit_cost`, `quantity_received`, `supplier_part_no`, `purchase_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `gst`, `cgst`, `sgst`, `igst`) VALUES ('4', NULL, NULL, '3', 'LNV', 'Lenovo K8 Note', NULL, '11000.0000', '50.0000', '2', '0.0000', '1', '0', NULL, NULL, NULL, '550000.0000', '35.0000', '2017-12-04', 'received', '11000.0000', '11000.0000', '50.0000', NULL, NULL, '2', 'Pcs', '50.0000', '0', '0.0000', '0.0000', '0.0000');
INSERT INTO `sma_purchase_items` (`id`, `purchase_id`, `transfer_id`, `product_id`, `product_code`, `product_name`, `option_id`, `net_unit_cost`, `quantity`, `warehouse_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `expiry`, `subtotal`, `quantity_balance`, `date`, `status`, `unit_cost`, `real_unit_cost`, `quantity_received`, `supplier_part_no`, `purchase_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `gst`, `cgst`, `sgst`, `igst`) VALUES ('5', NULL, NULL, '4', 'AP', 'Apple iPhone 7 Plus ', NULL, '67690.0000', '100.0000', '2', '6769.0000', '2', '10%', NULL, NULL, NULL, '7445900.0000', '180.0000', '2017-12-04', 'received', '74459.0000', '67690.0000', '100.0000', NULL, NULL, '2', 'Pcs', '100.0000', '10%', '0.0000', '0.0000', '676900.0000');
INSERT INTO `sma_purchase_items` (`id`, `purchase_id`, `transfer_id`, `product_id`, `product_code`, `product_name`, `option_id`, `net_unit_cost`, `quantity`, `warehouse_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `expiry`, `subtotal`, `quantity_balance`, `date`, `status`, `unit_cost`, `real_unit_cost`, `quantity_received`, `supplier_part_no`, `purchase_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `gst`, `cgst`, `sgst`, `igst`) VALUES ('6', NULL, NULL, '6', '84472546', 'asus zenfone max', NULL, '8499.0000', '7.0000', '1', '0.0000', '1', '0', NULL, NULL, NULL, '59493.0000', '5.0000', '2017-12-04', 'received', '8499.0000', '8499.0000', '7.0000', NULL, NULL, '2', 'Pcs', '7.0000', '0', '0.0000', '0.0000', '0.0000');
INSERT INTO `sma_purchase_items` (`id`, `purchase_id`, `transfer_id`, `product_id`, `product_code`, `product_name`, `option_id`, `net_unit_cost`, `quantity`, `warehouse_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `expiry`, `subtotal`, `quantity_balance`, `date`, `status`, `unit_cost`, `real_unit_cost`, `quantity_received`, `supplier_part_no`, `purchase_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `gst`, `cgst`, `sgst`, `igst`) VALUES ('13', '6', NULL, '6', 'PRD1', 'Product1', NULL, '95.2381', '20.0000', '1', '95.2380', '2', '5%', '0', '0.0000', NULL, '2000.0000', '20.0000', '2017-12-24', 'received', '100.0000', '100.0000', '20.0000', NULL, NULL, '2', 'Pcs', '20.0000', '3%', '47.6190', '47.6190', '0.0000');
INSERT INTO `sma_purchase_items` (`id`, `purchase_id`, `transfer_id`, `product_id`, `product_code`, `product_name`, `option_id`, `net_unit_cost`, `quantity`, `warehouse_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `expiry`, `subtotal`, `quantity_balance`, `date`, `status`, `unit_cost`, `real_unit_cost`, `quantity_received`, `supplier_part_no`, `purchase_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `gst`, `cgst`, `sgst`, `igst`) VALUES ('14', NULL, NULL, '7', '71465766', 'glazed marble', NULL, '495.2381', '52.0000', '1', '1287.6190', '2', '5.0000%', NULL, NULL, NULL, '27040.0000', '52.0000', '2017-12-28', 'received', '520.0000', '520.0000', '52.0000', NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL);
INSERT INTO `sma_purchase_items` (`id`, `purchase_id`, `transfer_id`, `product_id`, `product_code`, `product_name`, `option_id`, `net_unit_cost`, `quantity`, `warehouse_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `expiry`, `subtotal`, `quantity_balance`, `date`, `status`, `unit_cost`, `real_unit_cost`, `quantity_received`, `supplier_part_no`, `purchase_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `gst`, `cgst`, `sgst`, `igst`) VALUES ('15', NULL, NULL, '7', '71465766', 'glazed marble', NULL, '495.2381', '89.0000', '2', '2203.8095', '2', '5.0000%', NULL, NULL, NULL, '46280.0000', '89.0000', '2017-12-28', 'received', '520.0000', '520.0000', '89.0000', NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL);
INSERT INTO `sma_purchase_items` (`id`, `purchase_id`, `transfer_id`, `product_id`, `product_code`, `product_name`, `option_id`, `net_unit_cost`, `quantity`, `warehouse_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `expiry`, `subtotal`, `quantity_balance`, `date`, `status`, `unit_cost`, `real_unit_cost`, `quantity_received`, `supplier_part_no`, `purchase_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `gst`, `cgst`, `sgst`, `igst`) VALUES ('16', NULL, NULL, '10', '42092763', 'snickers', NULL, '15.0000', '50.0000', '1', '0.0000', '1', '0.0000', NULL, NULL, NULL, '750.0000', '50.0000', '2018-01-08', 'received', '15.0000', '15.0000', '50.0000', NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL);
INSERT INTO `sma_purchase_items` (`id`, `purchase_id`, `transfer_id`, `product_id`, `product_code`, `product_name`, `option_id`, `net_unit_cost`, `quantity`, `warehouse_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `expiry`, `subtotal`, `quantity_balance`, `date`, `status`, `unit_cost`, `real_unit_cost`, `quantity_received`, `supplier_part_no`, `purchase_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `gst`, `cgst`, `sgst`, `igst`) VALUES ('17', NULL, NULL, '10', '42092763', 'snickers', NULL, '15.0000', '100.0000', '2', '0.0000', '1', '0.0000', NULL, NULL, NULL, '1500.0000', '100.0000', '2018-01-08', 'received', '15.0000', '15.0000', '100.0000', NULL, NULL, NULL, NULL, '0.0000', NULL, NULL, NULL, NULL);
INSERT INTO `sma_purchase_items` (`id`, `purchase_id`, `transfer_id`, `product_id`, `product_code`, `product_name`, `option_id`, `net_unit_cost`, `quantity`, `warehouse_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `expiry`, `subtotal`, `quantity_balance`, `date`, `status`, `unit_cost`, `real_unit_cost`, `quantity_received`, `supplier_part_no`, `purchase_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `gst`, `cgst`, `sgst`, `igst`) VALUES ('18', NULL, NULL, '9', 'KitKat20g', 'KitKat20g', NULL, '65.0000', '100.0000', '1', '3.2500', '2', '5%', NULL, NULL, NULL, '6825.0000', '100.0000', '2018-01-16', 'received', '68.2500', '65.0000', '100.0000', NULL, NULL, '4', 'Box', '100.0000', '5%', '0.0000', '0.0000', '325.0000');
INSERT INTO `sma_purchase_items` (`id`, `purchase_id`, `transfer_id`, `product_id`, `product_code`, `product_name`, `option_id`, `net_unit_cost`, `quantity`, `warehouse_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `expiry`, `subtotal`, `quantity_balance`, `date`, `status`, `unit_cost`, `real_unit_cost`, `quantity_received`, `supplier_part_no`, `purchase_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `gst`, `cgst`, `sgst`, `igst`) VALUES ('19', NULL, NULL, '11', '55893102', 'vivo v7', NULL, '16180.9524', '500.0000', '1', '809.0476', '2', '5%', NULL, NULL, NULL, '8495000.0000', '500.0000', '2018-01-16', 'received', '16990.0000', '16990.0000', '500.0000', NULL, NULL, '2', 'Pcs', '500.0000', '5%', '0.0000', '0.0000', '404523.8000');


#
# TABLE STRUCTURE FOR: sma_purchases
#

DROP TABLE IF EXISTS `sma_purchases`;

CREATE TABLE `sma_purchases` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `reference_no` varchar(55) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `supplier_id` int(11) NOT NULL,
  `supplier` varchar(55) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `note` varchar(1000) NOT NULL,
  `total` decimal(25,4) DEFAULT NULL,
  `product_discount` decimal(25,4) DEFAULT NULL,
  `order_discount_id` varchar(20) DEFAULT NULL,
  `order_discount` decimal(25,4) DEFAULT NULL,
  `total_discount` decimal(25,4) DEFAULT NULL,
  `product_tax` decimal(25,4) DEFAULT NULL,
  `order_tax_id` int(11) DEFAULT NULL,
  `order_tax` decimal(25,4) DEFAULT NULL,
  `total_tax` decimal(25,4) DEFAULT '0.0000',
  `shipping` decimal(25,4) DEFAULT '0.0000',
  `grand_total` decimal(25,4) NOT NULL,
  `paid` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `status` varchar(55) DEFAULT '',
  `payment_status` varchar(20) DEFAULT 'pending',
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `attachment` varchar(55) DEFAULT NULL,
  `payment_term` tinyint(4) DEFAULT NULL,
  `due_date` date DEFAULT NULL,
  `return_id` int(11) DEFAULT NULL,
  `surcharge` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `return_purchase_ref` varchar(55) DEFAULT NULL,
  `purchase_id` int(11) DEFAULT NULL,
  `return_purchase_total` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;

INSERT INTO `sma_purchases` (`id`, `reference_no`, `date`, `supplier_id`, `supplier`, `warehouse_id`, `note`, `total`, `product_discount`, `order_discount_id`, `order_discount`, `total_discount`, `product_tax`, `order_tax_id`, `order_tax`, `total_tax`, `shipping`, `grand_total`, `paid`, `status`, `payment_status`, `created_by`, `updated_by`, `updated_at`, `attachment`, `payment_term`, `due_date`, `return_id`, `surcharge`, `return_purchase_ref`, `purchase_id`, `return_purchase_total`, `cgst`, `sgst`, `igst`) VALUES ('6', 'PO2017/12/0005', '2017-12-24 12:51:00', '17', 'ABC Company', '1', '', '1904.7620', '0.0000', '', '0.0000', '0.0000', '95.2380', NULL, '0.0000', '95.2380', '0.0000', '2000.0000', '0.0000', 'received', 'pending', '1', NULL, NULL, NULL, '0', NULL, NULL, '0.0000', NULL, NULL, '0.0000', '47.6190', '47.6190', '0.0000');


#
# TABLE STRUCTURE FOR: sma_quote_items
#

DROP TABLE IF EXISTS `sma_quote_items`;

CREATE TABLE `sma_quote_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `quote_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `product_code` varchar(55) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `product_type` varchar(20) DEFAULT NULL,
  `option_id` int(11) DEFAULT NULL,
  `net_unit_price` decimal(25,4) NOT NULL,
  `unit_price` decimal(25,4) DEFAULT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `item_tax` decimal(25,4) DEFAULT NULL,
  `tax_rate_id` int(11) DEFAULT NULL,
  `tax` varchar(55) DEFAULT NULL,
  `discount` varchar(55) DEFAULT NULL,
  `item_discount` decimal(25,4) DEFAULT NULL,
  `subtotal` decimal(25,4) NOT NULL,
  `serial_no` varchar(255) DEFAULT NULL,
  `real_unit_price` decimal(25,4) DEFAULT NULL,
  `product_unit_id` int(11) DEFAULT NULL,
  `product_unit_code` varchar(10) DEFAULT NULL,
  `unit_quantity` decimal(15,4) NOT NULL,
  `gst` varchar(20) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `quote_id` (`quote_id`),
  KEY `product_id` (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_quotes
#

DROP TABLE IF EXISTS `sma_quotes`;

CREATE TABLE `sma_quotes` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `reference_no` varchar(55) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `customer` varchar(55) NOT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `biller_id` int(11) NOT NULL,
  `biller` varchar(55) NOT NULL,
  `note` varchar(1000) DEFAULT NULL,
  `internal_note` varchar(1000) DEFAULT NULL,
  `total` decimal(25,4) NOT NULL,
  `product_discount` decimal(25,4) DEFAULT '0.0000',
  `order_discount` decimal(25,4) DEFAULT NULL,
  `order_discount_id` varchar(20) DEFAULT NULL,
  `total_discount` decimal(25,4) DEFAULT '0.0000',
  `product_tax` decimal(25,4) DEFAULT '0.0000',
  `order_tax_id` int(11) DEFAULT NULL,
  `order_tax` decimal(25,4) DEFAULT NULL,
  `total_tax` decimal(25,4) DEFAULT NULL,
  `shipping` decimal(25,4) DEFAULT '0.0000',
  `grand_total` decimal(25,4) NOT NULL,
  `status` varchar(20) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `attachment` varchar(55) DEFAULT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `supplier` varchar(55) DEFAULT NULL,
  `hash` varchar(255) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_return_items
#

DROP TABLE IF EXISTS `sma_return_items`;

CREATE TABLE `sma_return_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `return_id` int(11) unsigned NOT NULL,
  `product_id` int(11) unsigned NOT NULL,
  `product_code` varchar(55) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `product_type` varchar(20) DEFAULT NULL,
  `option_id` int(11) DEFAULT NULL,
  `net_unit_price` decimal(25,4) NOT NULL,
  `unit_price` decimal(25,4) DEFAULT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `item_tax` decimal(25,4) DEFAULT NULL,
  `tax_rate_id` int(11) DEFAULT NULL,
  `tax` varchar(55) DEFAULT NULL,
  `discount` varchar(55) DEFAULT NULL,
  `item_discount` decimal(25,4) DEFAULT NULL,
  `subtotal` decimal(25,4) NOT NULL,
  `serial_no` varchar(255) DEFAULT NULL,
  `real_unit_price` decimal(25,4) DEFAULT NULL,
  `product_unit_id` int(11) DEFAULT NULL,
  `product_unit_code` varchar(10) DEFAULT NULL,
  `unit_quantity` decimal(15,4) NOT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `gst` varchar(20) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `return_id` (`return_id`),
  KEY `product_id` (`product_id`),
  KEY `product_id_2` (`product_id`,`return_id`),
  KEY `return_id_2` (`return_id`,`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_returns
#

DROP TABLE IF EXISTS `sma_returns`;

CREATE TABLE `sma_returns` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `reference_no` varchar(55) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `customer` varchar(55) NOT NULL,
  `biller_id` int(11) NOT NULL,
  `biller` varchar(55) NOT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `note` varchar(1000) DEFAULT NULL,
  `staff_note` varchar(1000) DEFAULT NULL,
  `total` decimal(25,4) NOT NULL,
  `product_discount` decimal(25,4) DEFAULT '0.0000',
  `order_discount_id` varchar(20) DEFAULT NULL,
  `total_discount` decimal(25,4) DEFAULT '0.0000',
  `order_discount` decimal(25,4) DEFAULT '0.0000',
  `product_tax` decimal(25,4) DEFAULT '0.0000',
  `order_tax_id` int(11) DEFAULT NULL,
  `order_tax` decimal(25,4) DEFAULT '0.0000',
  `total_tax` decimal(25,4) DEFAULT '0.0000',
  `grand_total` decimal(25,4) NOT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `total_items` smallint(6) DEFAULT NULL,
  `paid` decimal(25,4) DEFAULT '0.0000',
  `surcharge` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `attachment` varchar(55) DEFAULT NULL,
  `hash` varchar(255) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_sale_items
#

DROP TABLE IF EXISTS `sma_sale_items`;

CREATE TABLE `sma_sale_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `sale_id` int(11) unsigned NOT NULL,
  `product_id` int(11) unsigned NOT NULL,
  `product_code` varchar(55) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `product_type` varchar(20) DEFAULT NULL,
  `option_id` int(11) DEFAULT NULL,
  `net_unit_price` decimal(25,4) NOT NULL,
  `unit_price` decimal(25,4) DEFAULT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `item_tax` decimal(25,4) DEFAULT NULL,
  `tax_rate_id` int(11) DEFAULT NULL,
  `tax` varchar(55) DEFAULT NULL,
  `discount` varchar(55) DEFAULT NULL,
  `item_discount` decimal(25,4) DEFAULT NULL,
  `subtotal` decimal(25,4) NOT NULL,
  `serial_no` varchar(255) DEFAULT NULL,
  `real_unit_price` decimal(25,4) DEFAULT NULL,
  `sale_item_id` int(11) DEFAULT NULL,
  `product_unit_id` int(11) DEFAULT NULL,
  `product_unit_code` varchar(10) DEFAULT NULL,
  `unit_quantity` decimal(15,4) NOT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `gst` varchar(20) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sale_id` (`sale_id`),
  KEY `product_id` (`product_id`),
  KEY `product_id_2` (`product_id`,`sale_id`),
  KEY `sale_id_2` (`sale_id`,`product_id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

INSERT INTO `sma_sale_items` (`id`, `sale_id`, `product_id`, `product_code`, `product_name`, `product_type`, `option_id`, `net_unit_price`, `unit_price`, `quantity`, `warehouse_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `subtotal`, `serial_no`, `real_unit_price`, `sale_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `comment`, `gst`, `cgst`, `sgst`, `igst`) VALUES ('6', '5', '6', '84472546', 'asus zenfone max', 'standard', NULL, '9500.0000', '9500.0000', '2.0000', '1', '0.0000', '1', '0', '0', '0.0000', '19000.0000', '', '9500.0000', NULL, '2', 'Pcs', '2.0000', NULL, '0', '0.0000', '0.0000', '0.0000');
INSERT INTO `sma_sale_items` (`id`, `sale_id`, `product_id`, `product_code`, `product_name`, `product_type`, `option_id`, `net_unit_price`, `unit_price`, `quantity`, `warehouse_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `subtotal`, `serial_no`, `real_unit_price`, `sale_item_id`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `comment`, `gst`, `cgst`, `sgst`, `igst`) VALUES ('7', '5', '4', 'AP', 'Apple iPhone 7 Plus ', 'standard', NULL, '75600.0000', '83160.0000', '4.0000', '1', '30240.0000', '2', '10%', '0', '0.0000', '332640.0000', '', '75600.0000', NULL, '2', 'Pcs', '4.0000', NULL, '10%', '0.0000', '0.0000', '30240.0000');


#
# TABLE STRUCTURE FOR: sma_sales
#

DROP TABLE IF EXISTS `sma_sales`;

CREATE TABLE `sma_sales` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `reference_no` varchar(55) NOT NULL,
  `customer_id` int(11) NOT NULL,
  `customer` varchar(55) NOT NULL,
  `biller_id` int(11) NOT NULL,
  `biller` varchar(55) NOT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `note` varchar(1000) DEFAULT NULL,
  `staff_note` varchar(1000) DEFAULT NULL,
  `total` decimal(25,4) NOT NULL,
  `product_discount` decimal(25,4) DEFAULT '0.0000',
  `order_discount_id` varchar(20) DEFAULT NULL,
  `total_discount` decimal(25,4) DEFAULT '0.0000',
  `order_discount` decimal(25,4) DEFAULT '0.0000',
  `product_tax` decimal(25,4) DEFAULT '0.0000',
  `order_tax_id` int(11) DEFAULT NULL,
  `order_tax` decimal(25,4) DEFAULT '0.0000',
  `total_tax` decimal(25,4) DEFAULT '0.0000',
  `shipping` decimal(25,4) DEFAULT '0.0000',
  `grand_total` decimal(25,4) NOT NULL,
  `sale_status` varchar(20) DEFAULT NULL,
  `payment_status` varchar(20) DEFAULT NULL,
  `payment_term` tinyint(4) DEFAULT NULL,
  `due_date` date DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `total_items` smallint(6) DEFAULT NULL,
  `pos` tinyint(1) NOT NULL DEFAULT '0',
  `paid` decimal(25,4) DEFAULT '0.0000',
  `return_id` int(11) DEFAULT NULL,
  `surcharge` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `attachment` varchar(55) DEFAULT NULL,
  `return_sale_ref` varchar(55) DEFAULT NULL,
  `sale_id` int(11) DEFAULT NULL,
  `return_sale_total` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `rounding` decimal(10,4) DEFAULT NULL,
  `suspend_note` varchar(255) DEFAULT NULL,
  `api` tinyint(1) DEFAULT '0',
  `shop` tinyint(1) DEFAULT '0',
  `address_id` int(11) DEFAULT NULL,
  `reserve_id` int(11) DEFAULT NULL,
  `hash` varchar(255) DEFAULT NULL,
  `manual_payment` varchar(55) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_sessions
#

DROP TABLE IF EXISTS `sma_sessions`;

CREATE TABLE `sma_sessions` (
  `id` varchar(40) NOT NULL,
  `ip_address` varchar(45) NOT NULL,
  `timestamp` int(10) unsigned NOT NULL DEFAULT '0',
  `data` blob NOT NULL,
  PRIMARY KEY (`id`),
  KEY `ci_sessions_timestamp` (`timestamp`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('0600r9ggnlsqaubp3k76bl6jb0chortj', '159.203.196.79', '1516077081', '__ci_last_regenerate|i:1516077081;requested_page|s:30:\"admin/products/get_suggestions\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('0g1nc96rfoq18fnjdrghr6e3u8nkt3e0', '171.49.194.36', '1516087765', '__ci_last_regenerate|i:1516087478;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516087516;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('0kkpg4eo2on0g08c2176bh0pb8djlk2l', '159.203.42.143', '1516076572', '__ci_last_regenerate|i:1516076572;requested_page|s:18:\"admin/products/add\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('0p34hegairvoue47i9a2oafn4j6hh6hd', '171.49.194.36', '1515663611', '__ci_last_regenerate|i:1515663551;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515481375\";last_ip|s:12:\"84.22.254.28\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('100pafl46uo0abv83gp777iodejfb6k5', '171.49.194.36', '1515748154', '__ci_last_regenerate|i:1515747939;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515660584\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1515748048;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('10io2m8rdo9ebamepdp0qtgpdosl77s8', '171.49.194.36', '1515661735', '__ci_last_regenerate|i:1515661444;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515659994\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1515661655;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";user_csrf|s:20:\"jwc4mnZkSe68ErVOJpWB\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('21emgrre65srb3tujdvacdk7efckd649', '159.203.42.143', '1515664721', '__ci_last_regenerate|i:1515664609;requested_page|s:5:\"admin\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('253g26sreqe2ord4bk1kjt4mpvk1etbh', '107.170.96.6', '1516084517', '__ci_last_regenerate|i:1516084517;requested_page|s:31:\"admin/system_settings/tax_rates\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('27av6omhs79s63n6fhamped8bcmmt9bs', '107.170.96.6', '1516084353', '__ci_last_regenerate|i:1516084353;requested_page|s:24:\"admin/returns/getReturns\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('29cglj41qffrv2oj1qphf3r15593prb3', '159.203.196.79', '1516084506', '__ci_last_regenerate|i:1516084506;requested_page|s:27:\"admin/system_settings/units\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('29qdcnhb4k0h8ttlr2rd7n61nvqviedp', '162.243.69.215', '1516087966', '__ci_last_regenerate|i:1516087966;requested_page|s:40:\"admin/system_settings/getProductPrices/3\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('2aa58avspunvof8rplnso1t7i2ibc63d', '159.203.196.79', '1516077198', '__ci_last_regenerate|i:1516077198;requested_page|s:27:\"admin/products/stock_counts\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('2k6tmge1a5r1041hhk9hag08nob0f11p', '198.38.82.161', '1515747990', '__ci_last_regenerate|i:1515747990;requested_page|s:5:\"admin\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('2opf4a2re4s1p2n3rgsa9jfrgbp4a1s9', '159.203.196.79', '1516084495', '__ci_last_regenerate|i:1516084495;requested_page|s:22:\"admin/pos/get_printers\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('2ui4lho5h1jq94la8n6kntumm5aeq2db', '107.170.96.6', '1516077174', '__ci_last_regenerate|i:1516077174;requested_page|s:24:\"admin/products/getCounts\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('30d7bspif428k4g0nrh3345ksjd02qnt', '159.203.81.93', '1516086059', '__ci_last_regenerate|i:1516086059;requested_page|s:28:\"admin/reports/getSalesReport\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('34dlv1dopsbjct5vc2q6bg6r2f8ckl9r', '171.49.194.36', '1516090942', '__ci_last_regenerate|i:1516090697;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516087516;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('364n3protqgbejp4ajon1i9aa5vq2sbp', '138.197.202.197', '1516076020', '__ci_last_regenerate|i:1516076020;requested_page|s:20:\"admin/customers/view\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('3chpjvaagrcregnthqi29dq0sv70adbd', '198.38.82.161', '1515747978', '__ci_last_regenerate|i:1515747978;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('3grukr765c9sva2ighshj6mcqosfngbp', '159.203.81.93', '1516092984', '__ci_last_regenerate|i:1516092984;requested_page|s:35:\"admin/system_settings/permissions/6\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('3mmvqn14vhaimjltae330ebkiru1mfbj', '159.203.196.79', '1516075969', '__ci_last_regenerate|i:1516075969;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('3v4p344uvaqqr8gqk7lcfmp6ao9gavuv', '171.49.194.36', '1515663421', '__ci_last_regenerate|i:1515663171;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515481375\";last_ip|s:12:\"84.22.254.28\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('448sdk6uq7cj8dqf42ovn1apdk8oor91', '171.49.194.36', '1516093009', '__ci_last_regenerate|i:1516092802;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516087516;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('4gmbu3fi8a16esffaiaadk82ckn1hcql', '159.203.42.143', '1515989527', '__ci_last_regenerate|i:1515989527;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('4h1o13975iol0otgqao6c2kbo0r9o5lf', '171.49.194.36', '1516092233', '__ci_last_regenerate|i:1516091965;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516087516;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('4l4e0af811sndiis0gc3eohri7iohoup', '159.203.42.143', '1516086333', '__ci_last_regenerate|i:1516086333;requested_page|s:22:\"admin/sales/deliveries\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('4llp880mbinn7eni3okufqvjnq3pplrn', '198.38.82.161', '1515747990', '__ci_last_regenerate|i:1515747990;error|s:178:\"<h4>404 Not Found!</h4><p>The page you are looking for can not be found.</p>http://shope.jubtech.com/themes/default/admin/assets/styles/pdf/fonts/glyphicons-halflings-regular.ttf\";__ci_vars|a:1:{s:5:\"error\";s:3:\"new\";}');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('4s0k8lhnlcel8k5sopkun8ilg48gev8a', '171.49.194.36', '1516090688', '__ci_last_regenerate|i:1516090393;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516087516;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('4v3hq62a0gc71sju397ni45bqjvttpju', '107.170.96.6', '1515748154', '__ci_last_regenerate|i:1515748154;requested_page|s:18:\"admin/products/add\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('5autcpfd410ihgj8p555543t44m6ldqp', '107.170.96.6', '1515989712', '__ci_last_regenerate|i:1515989712;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('5hh4ot74i48qqmponn6d2qelshr61663', '138.197.202.197', '1516091276', '__ci_last_regenerate|i:1516091276;requested_page|s:35:\"admin/system_settings/import_brands\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('5j25knc1gqfqus557aft9uh3g983u3nj', '171.49.194.36', '1516075765', '__ci_last_regenerate|i:1516075454;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516075752;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('5kbr8b85pvqrno25hsrim1udfqdg5faj', '138.197.202.197', '1516075905', '__ci_last_regenerate|i:1516075905;requested_page|s:31:\"admin/customers/get_deposits/21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('6056jvidc7r0pvs9pae3hal5efju2j8h', '159.203.42.143', '1516075834', '__ci_last_regenerate|i:1516075834;requested_page|s:24:\"admin/billers/getBillers\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('6061glqokgnpkvakg4r45p7lq8a76oqi', '198.38.82.161', '1515747981', '__ci_last_regenerate|i:1515747981;error|s:178:\"<h4>404 Not Found!</h4><p>The page you are looking for can not be found.</p>http://shope.jubtech.com/themes/default/admin/assets/styles/pdf/fonts/glyphicons-halflings-regular.ttf\";__ci_vars|a:1:{s:5:\"error\";s:3:\"new\";}');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('63e0ne89c6pkg980kps1tndm27ugs117', '138.197.202.197', '1516075455', '__ci_last_regenerate|i:1516075455;requested_page|s:21:\"admin/products/edit/6\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('6a1hvgg0j1e90fpm0m9fn5q2ltg6a5j4', '171.49.194.36', '1515662071', '__ci_last_regenerate|i:1515662071;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515659994\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1515661655;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";user_csrf|s:20:\"P4xZaAStJj09k1vqIbYQ\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('6j8sj830nhn88diqsgrbfb82vbccb0gp', '138.197.202.197', '1516092639', '__ci_last_regenerate|i:1516092639;requested_page|s:34:\"admin/system_settings/create_group\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('6p5d5l0emq3ppiv9evof79rq585hkei2', '171.49.194.36', '1516076573', '__ci_last_regenerate|i:1516076572;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516076134;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";error|s:123:\"<h4>404 Not Found!</h4><p>The page you are looking for can not be found.</p>http://shope.jubtech.com/admin/images/undefined\";__ci_vars|a:1:{s:5:\"error\";s:3:\"old\";}');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('72smqdkcf0gnvdqnvf78bdp4c56ng1cl', '107.170.96.6', '1516090682', '__ci_last_regenerate|i:1516090682;requested_page|s:42:\"admin/system_settings/getExpenseCategories\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('752684mksel4ftr4r05u581s9lk1ltfo', '159.203.42.143', '1516084385', '__ci_last_regenerate|i:1516084385;requested_page|s:17:\"admin/billers/add\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('79pv701vfjcap34ojmmbc84f1k60ijn4', '162.243.69.215', '1515661773', '__ci_last_regenerate|i:1515661773;requested_page|s:19:\"admin/purchases/add\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('7csjr5302ro0scj3atu4qj6iep0soh3e', '159.203.42.143', '1515661636', '__ci_last_regenerate|i:1515661636;requested_page|s:26:\"admin/products/getProducts\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('7efk0e7k2p5c9flhpck0m505jhiaj4b8', '171.49.194.36', '1516075443', '__ci_last_regenerate|i:1516075151;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('7ju5etjt2d1pt3o6r1egppoo4fssn88r', '162.243.69.215', '1516077657', '__ci_last_regenerate|i:1516077657;requested_page|s:36:\"admin/notifications/getNotifications\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('7kdsjk0jasei3vudl47lca91cujn3afp', '171.49.194.36', '1515660620', '__ci_last_regenerate|i:1515660566;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515659994\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('7m5srgh8qoio1qae5f8nob8122po84d3', '159.203.81.93', '1516075306', '__ci_last_regenerate|i:1516075306;requested_page|s:21:\"admin/products/edit/9\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('7oh5kq31kl03l1agdttr4piqbeo0tdhd', '138.197.202.197', '1516089998', '__ci_last_regenerate|i:1516089998;requested_page|s:33:\"admin/reports/getAdjustmentReport\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('850blsp5c5irj4u20d1r5slq9tt1l798', '171.49.194.36', '1515659995', '__ci_last_regenerate|i:1515659979;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515481375\";last_ip|s:12:\"84.22.254.28\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";message|s:38:\"<p>You are successfully logged in.</p>\";__ci_vars|a:1:{s:7:\"message\";s:3:\"old\";}');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('8uh63hvrqmstqcvuo8aofpt34tfeu9c6', '159.203.42.143', '1516075838', '__ci_last_regenerate|i:1516075749;requested_page|s:15:\"admin/customers\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('922suh0lld0li0tcefmsm7tr0d5crkb7', '171.49.194.36', '1516076838', '__ci_last_regenerate|i:1516076572;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516076838;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('93q5eqdeo5ucs1avchntirspr77ukhsk', '159.203.42.143', '1516075748', '__ci_last_regenerate|i:1516075748;requested_page|s:13:\"admin/welcome\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('9960v0jcrg8j1hcrihikjl4m18utctpg', '171.49.194.36', '1515664484', '__ci_last_regenerate|i:1515664484;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515481375\";last_ip|s:12:\"84.22.254.28\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1515664484;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('9ma57v1nfaan1tlqpu5v1mprhevt36t7', '171.49.194.36', '1515664720', '__ci_last_regenerate|i:1515664484;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515481375\";last_ip|s:12:\"84.22.254.28\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1515664711;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('9ru0sf7fh3782kmicegr4fktuq0ubrt6', '171.49.194.36', '1515753921', '__ci_last_regenerate|i:1515753920;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515660584\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1515748048;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('a0jppq6tn6u1hg4rkbebig777u1j50cc', '159.203.42.143', '1516075230', '__ci_last_regenerate|i:1516075230;requested_page|s:14:\"admin/products\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('a7e171abk15f1ffgbuv5gf4ehuikfe5g', '162.243.69.215', '1516076390', '__ci_last_regenerate|i:1516076390;requested_page|s:34:\"admin/products/getSubCategories/10\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('a8qlk06sjf82o4tl52k2c6bvgrs6sjfd', '162.243.69.215', '1516087903', '__ci_last_regenerate|i:1516087903;requested_page|s:43:\"admin/system_settings/edit_customer_group/5\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('adm91lf1amto5dahd1mg443acj49fbik', '107.170.96.6', '1515664698', '__ci_last_regenerate|i:1515664698;requested_page|s:20:\"admin/reports/profit\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('am178dj43pl46ufbij7odngt6f19d8ft', '162.243.69.215', '1516090050', '__ci_last_regenerate|i:1516090050;requested_page|s:40:\"admin/system_settings/getProductPrices/2\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('anrfpc4onm8f6r38n110jrvcb6jubabc', '159.203.42.143', '1516076677', '__ci_last_regenerate|i:1516076677;requested_page|s:32:\"admin/products/edit_adjustment/2\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('apa0vjd09i5ausqngpi64um5uf1qo6gr', '171.49.194.36', '1515662327', '__ci_last_regenerate|i:1515662072;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515659994\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1515661655;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";user_csrf|s:20:\"G4QbSJI6rDCuXBlohNME\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('aqhvc8uosu8n5chsue44g9nkis1csr48', '159.203.42.143', '1516087955', '__ci_last_regenerate|i:1516087955;requested_page|s:40:\"admin/system_settings/edit_price_group/3\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('b2c0kqfdeloijr1rs4esghe7i4pofn8u', '107.170.96.6', '1516089862', '__ci_last_regenerate|i:1516089862;requested_page|s:50:\"admin/system_settings/update_product_group_price/2\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('bccv6a97vocce75bbgtj0mc1djoa5d0v', '159.203.196.79', '1515747941', '__ci_last_regenerate|i:1515747941;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('bi1al27fhmn73me4t3o15r2j2bevsp8r', '171.49.194.36', '1516087481', '__ci_last_regenerate|i:1516087480;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516087480;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('bn9veuljl9kj2a5nnaepdn3g28imhb19', '171.49.194.36', '1515664246', '__ci_last_regenerate|i:1515664005;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515481375\";last_ip|s:12:\"84.22.254.28\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1515664234;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('bufnhjfse66rtqkbarn9md16kvr6f281', '162.243.69.215', '1515751032', '__ci_last_regenerate|i:1515751032;requested_page|s:14:\"admin/products\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('c2ur55fdu75m97b6h6h0rug072duv67o', '162.243.69.215', '1516090731', '__ci_last_regenerate|i:1516090731;requested_page|s:40:\"admin/system_settings/expense_categories\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('cg79ghgbc2eua3vfsqdvud0824as8c1g', '138.197.202.197', '1516075307', '__ci_last_regenerate|i:1516075307;requested_page|s:33:\"admin/products/getSubCategories/8\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('cjpa9bs5g6i3tfnfl59ajguq3l74msq0', '162.243.69.215', '1516075422', '__ci_last_regenerate|i:1516075422;requested_page|s:26:\"admin/products/getProducts\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('d43f1n4v8u3b50efn5mnhposou8iti2a', '171.49.194.36', '1516091916', '__ci_last_regenerate|i:1516091634;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516087516;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('df7n0t052edu23lsml3688jm7u9nfent', '107.170.96.6', '1515755096', '__ci_last_regenerate|i:1515755096;requested_page|s:26:\"admin/products/getProducts\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('dj9bsf38qnqu0elgaqgoqrb1l89odtm4', '138.197.202.197', '1516090670', '__ci_last_regenerate|i:1516090670;requested_page|s:38:\"admin/system_settings/edit_category/10\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('dmn6n7rur5jiu413q35kngvgkn2gq5oi', '159.203.196.79', '1516075298', '__ci_last_regenerate|i:1516075298;requested_page|s:27:\"admin/products/modal_view/9\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('dtjrfnksdg36nqb89fgrg4u6k44ji8ou', '171.49.194.36', '1515669948', '__ci_last_regenerate|i:1515669924;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515481375\";last_ip|s:12:\"84.22.254.28\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1515669451;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('dtq7qjf0ictndlikorkhgg52c31ebu6n', '171.49.194.36', '1515662039', '__ci_last_regenerate|i:1515661755;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515659994\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1515661655;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";user_csrf|s:20:\"P4xZaAStJj09k1vqIbYQ\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('e0lf6hom9staksrs7fip0jaqje1li1ns', '198.38.82.161', '1515747990', '__ci_last_regenerate|i:1515747990;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('e87go4r01nrghfhlhidaiq54ntkh698i', '138.197.202.197', '1516087479', '__ci_last_regenerate|i:1516087479;requested_page|s:21:\"admin/pos/add_printer\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('ebs78pnrlkmaj915mf1qktpcm7a0nioo', '138.197.202.197', '1516075522', '__ci_last_regenerate|i:1516075522;requested_page|s:9:\"admin/pos\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('edt9llc1k025le6l7fahdpgfbtq86jhm', '162.243.69.215', '1516092129', '__ci_last_regenerate|i:1516092129;requested_page|s:38:\"admin/system_settings/edit_warehouse/1\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('ei1im6lh0uos0uedllbrtfo0j8ah1af1', '138.197.202.197', '1515659999', '__ci_last_regenerate|i:1515659998;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('evjms2ktjptj2b465c1jbc8tbo8lqmtd', '171.49.194.36', '1515755096', '__ci_last_regenerate|i:1515754893;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515660584\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1515748048;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('f183fp7liklesdln3cv8ta8292fdqjcj', '159.203.196.79', '1516087766', '__ci_last_regenerate|i:1516087766;requested_page|s:39:\"admin/system_settings/getCustomerGroups\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('f5ruie4b4gqe6uuadp8vg2q7rgp0273c', '171.49.194.36', '1516086426', '__ci_last_regenerate|i:1516086285;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516086317;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('f916fbl6rfmjmeufcg4tggp9lmei6is1', '159.203.42.143', '1516086055', '__ci_last_regenerate|i:1516086055;requested_page|s:21:\"admin/products/view/6\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('f9knl9d179i0gnl34pvas6aa4p5if6s1', '162.243.69.215', '1516077168', '__ci_last_regenerate|i:1516077168;requested_page|s:35:\"admin/products/quantity_adjustments\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('fk3skmqmgrg6s6him5rufod3tn29duvt', '171.49.194.36', '1516085946', '__ci_last_regenerate|i:1516085650;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516085942;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('fnai7tkspf83rmj3ueotnll7qd022cbj', '159.203.42.143', '1516075455', '__ci_last_regenerate|i:1516075455;requested_page|s:33:\"admin/products/getSubCategories/7\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('fuk5j4c9q3s5clue795lptuje18fpb5q', '171.49.194.36', '1516087992', '__ci_last_regenerate|i:1516087792;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516087516;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('g6rq0u7e177gs66i3g65b9cpui4i5bud', '171.49.194.36', '1515751036', '__ci_last_regenerate|i:1515751012;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515660584\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1515748048;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('g97v30pmr7r2pmqp6m3h5upir3jubjaj', '171.49.194.36', '1516090050', '__ci_last_regenerate|i:1516089761;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516087516;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('i7qnn9kef576th8j47qqenl2ephmmo8b', '171.49.194.36', '1516076054', '__ci_last_regenerate|i:1516075772;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516076046;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('inovi75f7m4vmbb7heq17tmenuidvk9n', '159.203.42.143', '1516087005', '__ci_last_regenerate|i:1516087005;requested_page|s:18:\"admin/pos/settings\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('ioiv9erd0acklhrh9g3sl7ta9mj8qget', '171.49.194.36', '1516084883', '__ci_last_regenerate|i:1516084595;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516084495;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('is9m42gk5nima49mv6hkdvfhs4dh8u41', '159.203.81.93', '1516092061', '__ci_last_regenerate|i:1516091914;requested_page|s:33:\"admin/system_settings/getTaxRates\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('it45cec142ktrc9q4m1dbnj83iefaqh1', '162.243.69.215', '1516075159', '__ci_last_regenerate|i:1516075159;requested_page|s:5:\"admin\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('j05kr2cac6tre3fgk53fk8m74rsin9eq', '171.49.194.36', '1516086237', '__ci_last_regenerate|i:1516085962;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516086236;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('j1d6iq523u8is2qaf3l5hp3c9pck632p', '159.203.196.79', '1516077204', '__ci_last_regenerate|i:1516077204;requested_page|s:26:\"admin/products/count_stock\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('j6d0pg1g2pav2ds1o8jor8d7oi6001k8', '159.203.81.93', '1516075901', '__ci_last_regenerate|i:1516075901;requested_page|s:28:\"admin/customers/getCustomers\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('j8e63l2rsna87qd9179me641lf7piiej', '138.197.202.197', '1516087993', '__ci_last_regenerate|i:1516087993;requested_page|s:34:\"admin/system_settings/price_groups\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('j8nvpfcs30qucmrpl4ia75n46ojbc6ss', '159.203.42.143', '1515662196', '__ci_last_regenerate|i:1515662196;requested_page|s:27:\"admin/purchases/add_expense\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('jeklguj1k42mgor65h93n34l7r09aj8l', '171.49.194.36', '1515989711', '__ci_last_regenerate|i:1515989523;requested_page|s:5:\"admin\";error|s:37:\"<p>Login Failed, Please try again</p>\";__ci_vars|a:1:{s:5:\"error\";s:3:\"old\";}');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('jjud8aepnvuilbg8qt753fe8l1eid3s9', '159.203.81.93', '1516076767', '__ci_last_regenerate|i:1516076767;requested_page|s:21:\"admin/system_settings\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('jndjdetdsa8slfoa43sor168us8fhp0v', '171.49.194.36', '1516091618', '__ci_last_regenerate|i:1516091164;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516087516;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('jo2tj3hhk546qfadiiqtnuv9i6e9arl2', '171.49.194.36', '1516085592', '__ci_last_regenerate|i:1516085301;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516085591;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('jqur4qjs9v44lsp2b2r69r7elnoias94', '107.170.96.6', '1516077659', '__ci_last_regenerate|i:1516077659;requested_page|s:14:\"admin/calendar\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('k2fjccemglelcsrp5vsj8l0rslhjjh4i', '159.203.81.93', '1516085546', '__ci_last_regenerate|i:1516085546;requested_page|s:19:\"admin/pos/registers\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('k37a4261d338s4enb9ugqf1407m27n52', '171.49.194.36', '1515747349', '__ci_last_regenerate|i:1515747294;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515660584\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('k7d0p9vn2li5cn5lu9n8ojdakrsjfodk', '171.49.194.36', '1516085217', '__ci_last_regenerate|i:1516084938;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516085217;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('k7iq45hk4e618cjfkvhsv9rbh9ooock8', '159.203.196.79', '1516075969', '__ci_last_regenerate|i:1516075969;requested_page|s:30:\"admin/customers/add_deposit/21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('kf2h5si9s7p02boplg6pff6g6bvs83iu', '198.38.82.161', '1515747991', '__ci_last_regenerate|i:1515747990;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('kroqv778drccnsk9d9tfqfj46q3dlb6d', '171.49.194.36', '1516087305', '__ci_last_regenerate|i:1516087114;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516087305;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('l4kei91cfnmn8da022ar1mm1h6qge5im', '198.38.82.161', '1515747982', '__ci_last_regenerate|i:1515747982;requested_page|s:5:\"admin\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('l72iu54pvr24jk2tfk26cj3tfbqpiupb', '159.203.42.143', '1516087513', '__ci_last_regenerate|i:1516087513;requested_page|s:32:\"admin/system_settings/currencies\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('l9lbo297r56es0924nd6c2q309gn445e', '171.49.194.36', '1516090378', '__ci_last_regenerate|i:1516090091;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516087516;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('lr3t4i2858okgi0naofbuqc9bdgjvl39', '171.49.194.36', '1515662410', '__ci_last_regenerate|i:1515662409;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515481375\";last_ip|s:12:\"84.22.254.28\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('muqborf3ld46ib6roit3578uvp4ef57t', '38.100.21.65', '1515685767', '__ci_last_regenerate|i:1515685767;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('n405dtin8jkrft3eudhem1t45khcflbe', '159.203.196.79', '1516090271', '__ci_last_regenerate|i:1516090271;requested_page|s:29:\"admin/products/print_barcodes\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('n5ob0m8v8a74b9qo1pc5tivel7lqqns5', '138.197.202.197', '1515662327', '__ci_last_regenerate|i:1515662327;requested_page|s:42:\"admin/system_settings/add_expense_category\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('n847so48pf6gok48pljqj3i6841q92r4', '171.49.194.36', '1516077655', '__ci_last_regenerate|i:1516077655;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516076838;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('njvnclmd40a1ecj0qomdmuscikj7g4cb', '171.49.194.36', '1515669497', '__ci_last_regenerate|i:1515669451;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515481375\";last_ip|s:12:\"84.22.254.28\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1515669451;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('o15buevucbcit2dp1av7f3eaj188ib7o', '159.203.81.93', '1516087798', '__ci_last_regenerate|i:1516087798;requested_page|s:38:\"admin/system_settings/currency_actions\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('olcum6s6kpnle1ccr8gf1q9ms58nbf3t', '198.38.82.161', '1515747989', '__ci_last_regenerate|i:1515747989;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('onu06jni3iuclev99n2ner4sfgkb9erh', '159.203.196.79', '1516089998', '__ci_last_regenerate|i:1516089998;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('p8ssl2af8ki1tqthjn8ncpo212h432jj', '162.243.69.215', '1516075393', '__ci_last_regenerate|i:1516075393;requested_page|s:29:\"admin/products/getadjustments\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('pbve7d7ock43tgpba80p7pqjhhngj4ab', '107.170.96.6', '1516077183', '__ci_last_regenerate|i:1516077183;requested_page|s:27:\"admin/products/view_count/4\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('ptcbn3cvlhsnq4b5nlq33mc680236dlo', '159.203.196.79', '1516091972', '__ci_last_regenerate|i:1516091972;requested_page|s:33:\"admin/system_settings/add_variant\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('q2fara1rt6dhqgco83pt185atdv9e4nt', '159.203.196.79', '1516090698', '__ci_last_regenerate|i:1516090698;requested_page|s:45:\"admin/system_settings/edit_expense_category/2\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('q3sllkq6llijoo5n8fs9b02trlqictet', '162.243.69.215', '1516087302', '__ci_last_regenerate|i:1516087302;requested_page|s:18:\"admin/pos/printers\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('qag4vesmko3k63cc664bk2bn1mff6tp8', '159.203.196.79', '1516076778', '__ci_last_regenerate|i:1516076778;requested_page|s:29:\"admin/customers/getCustomer/1\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('qbupq6vl3m1kg1s8rb2c9op5fuq7n9fe', '162.243.69.215', '1516089834', '__ci_last_regenerate|i:1516089834;requested_page|s:44:\"admin/system_settings/group_product_prices/2\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('qjcrckqmm1h33jj82db3jjklal3a7icl', '171.49.194.36', '1516077303', '__ci_last_regenerate|i:1516077038;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516076838;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('qnqg25qjpbr6eiviklkrp9dodnfca1el', '107.170.96.6', '1516076350', '__ci_last_regenerate|i:1516076280;requested_page|s:32:\"admin/system_settings/categories\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('r91es3u5dqhjf2oi2s341iphpdm3i9ij', '159.203.81.93', '1515664517', '__ci_last_regenerate|i:1515664517;requested_page|s:20:\"admin/customers/view\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('rpcfost49rkm43nnielmf9136k7665jd', '159.203.42.143', '1516092123', '__ci_last_regenerate|i:1516092116;requested_page|s:32:\"admin/system_settings/warehouses\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('rqa4puvpoornfg6g50me07qp9m11d7hn', '162.243.69.215', '1516084492', '__ci_last_regenerate|i:1516084492;requested_page|s:35:\"admin/system_settings/getCurrencies\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('rvj81lekfal40u8r90g573qlfl9ppdlq', '159.203.81.93', '1515748015', '__ci_last_regenerate|i:1515748015;requested_page|s:9:\"admin/pos\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('se4h2cd8arv5tc25se3keaa29upf359t', '162.243.69.215', '1515661470', '__ci_last_regenerate|i:1515661470;requested_page|s:27:\"admin/products/modal_view/7\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('sk4vfj7qfo3n8t31gnjsgers5af5ecr0', '171.49.194.36', '1516076397', '__ci_last_regenerate|i:1516076075;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516076134;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('smdto5igsmufkk9jdqc6t8epqabrj0v0', '171.49.194.36', '1515996822', '__ci_last_regenerate|i:1515996822;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('svg9v5dhn6hfb8errcfe6e8jmhruf1h4', '198.38.82.161', '1515747982', '__ci_last_regenerate|i:1515747981;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('tjevv59ao0n8u9c6e4s7d92npal2lk94', '159.203.81.93', '1516086057', '__ci_last_regenerate|i:1516086057;requested_page|s:32:\"admin/reports/getTransfersReport\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('tlhnchu2pael8949j0jkir50ns3aqel3', '159.203.196.79', '1516087749', '__ci_last_regenerate|i:1516087749;requested_page|s:37:\"admin/system_settings/edit_currency/5\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('tqgug38prihoelnm6bhjrd4t7qgksq70', '159.203.81.93', '1516089827', '__ci_last_regenerate|i:1516089827;requested_page|s:36:\"admin/system_settings/getPriceGroups\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('tr8s0kn5h6cqdvrig5p3dr4d93nlsjm3', '138.197.202.197', '1516090844', '__ci_last_regenerate|i:1516090844;requested_page|s:30:\"admin/system_settings/getUnits\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('ttuaadboejbthlpgnacg1r4mgmt37tj7', '159.203.81.93', '1515664683', '__ci_last_regenerate|i:1515664683;requested_page|s:15:\"admin/customers\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('tufgmvtiql1l4m3j9fjpgdgo8oafftbn', '171.49.194.36', '1516084574', '__ci_last_regenerate|i:1516084293;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516084495;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('uejvtgf906t7ttkma0cflfpv32d9jja3', '171.49.194.36', '1516077691', '__ci_last_regenerate|i:1516077656;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516076838;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('ujhql3r50bbj4j5d420tk6glcb0giotn', '138.197.202.197', '1516084409', '__ci_last_regenerate|i:1516084409;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('umgl0nbsrkjhcjlm9nsmrp6qi0uq2uq3', '138.197.202.197', '1516076093', '__ci_last_regenerate|i:1516076093;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('umjtts37ihr94j3ugmh83s4lvfo05be0', '171.49.194.36', '1516092767', '__ci_last_regenerate|i:1516092464;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516087516;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('un15ffrp3665ph6b0m8697c3rgulke1c', '198.38.82.161', '1515747982', '__ci_last_regenerate|i:1515747982;');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('uns1brejapknb6io04jv32mfcdj433jt', '171.49.194.36', '1516087101', '__ci_last_regenerate|i:1516086810;requested_page|s:5:\"admin\";identity|s:5:\"owner\";username|s:5:\"owner\";email|s:16:\"owner@cignes.com\";user_id|s:1:\"1\";old_last_login|s:10:\"1515747337\";last_ip|s:13:\"171.49.194.36\";avatar|N;gender|s:4:\"male\";group_id|s:1:\"1\";warehouse_id|N;view_right|s:1:\"0\";edit_right|s:1:\"0\";allow_discount|s:1:\"0\";biller_id|N;company_id|N;show_cost|s:1:\"0\";show_price|s:1:\"0\";last_activity|i:1516087100;register_id|s:1:\"1\";cash_in_hand|s:6:\"7.0000\";register_open_time|s:19:\"2017-12-02 12:53:21\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('uvos504nqmdskmdvojss9fss0ksrim41', '107.170.96.6', '1516090856', '__ci_last_regenerate|i:1516090856;requested_page|s:30:\"admin/system_settings/add_unit\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('v0lvan4ocml8emmuoum173ubn5sbplfg', '107.170.96.6', '1515662072', '__ci_last_regenerate|i:1515662072;requested_page|s:32:\"admin/system_settings/categories\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('v21fas446djfeqtvupb227g701c6u6ce', '159.203.42.143', '1516076350', '__ci_last_regenerate|i:1516076350;requested_page|s:34:\"admin/system_settings/add_category\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('v7cghipfu4pl84as9kdc4rghdas3smji', '107.170.96.6', '1516093009', '__ci_last_regenerate|i:1516093009;requested_page|s:29:\"admin/system_settings/backups\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('valtitik5j8vphluvquolh01al8st6kb', '159.203.196.79', '1516084327', '__ci_last_regenerate|i:1516084327;requested_page|s:12:\"admin/quotes\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('vb4bngu7e9u4kna3pjn912m4kg15jhq1', '138.197.202.197', '1516090859', '__ci_last_regenerate|i:1516090859;requested_page|s:35:\"admin/system_settings/delete_unit/5\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('vc0hf6q5brobuh7qcq5b9d42gd4m5n70', '107.170.96.6', '1516084452', '__ci_last_regenerate|i:1516084386;requested_page|s:19:\"admin/notifications\";');
INSERT INTO `sma_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('vsu6qskjpefgi6704vkkq5u6crrj8co7', '107.170.96.6', '1516085967', '__ci_last_regenerate|i:1516085967;requested_page|s:29:\"admin/reports/getQuotesReport\";');


#
# TABLE STRUCTURE FOR: sma_settings
#

DROP TABLE IF EXISTS `sma_settings`;

CREATE TABLE `sma_settings` (
  `setting_id` int(1) NOT NULL,
  `logo` varchar(255) NOT NULL,
  `logo2` varchar(255) NOT NULL,
  `site_name` varchar(55) NOT NULL,
  `language` varchar(20) NOT NULL,
  `default_warehouse` int(2) NOT NULL,
  `accounting_method` tinyint(4) NOT NULL DEFAULT '0',
  `default_currency` varchar(3) NOT NULL,
  `default_tax_rate` int(2) NOT NULL,
  `rows_per_page` int(2) NOT NULL,
  `version` varchar(10) NOT NULL DEFAULT '1.0',
  `default_tax_rate2` int(11) NOT NULL DEFAULT '0',
  `dateformat` int(11) NOT NULL,
  `sales_prefix` varchar(20) DEFAULT NULL,
  `quote_prefix` varchar(20) DEFAULT NULL,
  `purchase_prefix` varchar(20) DEFAULT NULL,
  `transfer_prefix` varchar(20) DEFAULT NULL,
  `delivery_prefix` varchar(20) DEFAULT NULL,
  `payment_prefix` varchar(20) DEFAULT NULL,
  `return_prefix` varchar(20) DEFAULT NULL,
  `returnp_prefix` varchar(20) DEFAULT NULL,
  `expense_prefix` varchar(20) DEFAULT NULL,
  `item_addition` tinyint(1) NOT NULL DEFAULT '0',
  `theme` varchar(20) NOT NULL,
  `product_serial` tinyint(4) NOT NULL,
  `default_discount` int(11) NOT NULL,
  `product_discount` tinyint(1) NOT NULL DEFAULT '0',
  `discount_method` tinyint(4) NOT NULL,
  `tax1` tinyint(4) NOT NULL,
  `tax2` tinyint(4) NOT NULL,
  `overselling` tinyint(1) NOT NULL DEFAULT '0',
  `restrict_user` tinyint(4) NOT NULL DEFAULT '0',
  `restrict_calendar` tinyint(4) NOT NULL DEFAULT '0',
  `timezone` varchar(100) DEFAULT NULL,
  `iwidth` int(11) NOT NULL DEFAULT '0',
  `iheight` int(11) NOT NULL,
  `twidth` int(11) NOT NULL,
  `theight` int(11) NOT NULL,
  `watermark` tinyint(1) DEFAULT NULL,
  `reg_ver` tinyint(1) DEFAULT NULL,
  `allow_reg` tinyint(1) DEFAULT NULL,
  `reg_notification` tinyint(1) DEFAULT NULL,
  `auto_reg` tinyint(1) DEFAULT NULL,
  `protocol` varchar(20) NOT NULL DEFAULT 'mail',
  `mailpath` varchar(55) DEFAULT '/usr/sbin/sendmail',
  `smtp_host` varchar(100) DEFAULT NULL,
  `smtp_user` varchar(100) DEFAULT NULL,
  `smtp_pass` varchar(255) DEFAULT NULL,
  `smtp_port` varchar(10) DEFAULT '25',
  `smtp_crypto` varchar(10) DEFAULT NULL,
  `corn` datetime DEFAULT NULL,
  `customer_group` int(11) NOT NULL,
  `default_email` varchar(100) NOT NULL,
  `mmode` tinyint(1) NOT NULL,
  `bc_fix` tinyint(4) NOT NULL DEFAULT '0',
  `auto_detect_barcode` tinyint(1) NOT NULL DEFAULT '0',
  `captcha` tinyint(1) NOT NULL DEFAULT '1',
  `reference_format` tinyint(1) NOT NULL DEFAULT '1',
  `racks` tinyint(1) DEFAULT '0',
  `attributes` tinyint(1) NOT NULL DEFAULT '0',
  `product_expiry` tinyint(1) NOT NULL DEFAULT '0',
  `decimals` tinyint(2) NOT NULL DEFAULT '2',
  `qty_decimals` tinyint(2) NOT NULL DEFAULT '2',
  `decimals_sep` varchar(2) NOT NULL DEFAULT '.',
  `thousands_sep` varchar(2) NOT NULL DEFAULT ',',
  `invoice_view` tinyint(1) DEFAULT '0',
  `default_biller` int(11) DEFAULT NULL,
  `envato_username` varchar(50) DEFAULT NULL,
  `purchase_code` varchar(100) DEFAULT NULL,
  `rtl` tinyint(1) DEFAULT '0',
  `each_spent` decimal(15,4) DEFAULT NULL,
  `ca_point` tinyint(4) DEFAULT NULL,
  `each_sale` decimal(15,4) DEFAULT NULL,
  `sa_point` tinyint(4) DEFAULT NULL,
  `update` tinyint(1) DEFAULT '0',
  `sac` tinyint(1) DEFAULT '0',
  `display_all_products` tinyint(1) DEFAULT '0',
  `display_symbol` tinyint(1) DEFAULT NULL,
  `symbol` varchar(50) DEFAULT NULL,
  `remove_expired` tinyint(1) DEFAULT '0',
  `barcode_separator` varchar(2) NOT NULL DEFAULT '_',
  `set_focus` tinyint(1) NOT NULL DEFAULT '0',
  `price_group` int(11) DEFAULT NULL,
  `barcode_img` tinyint(1) NOT NULL DEFAULT '1',
  `ppayment_prefix` varchar(20) DEFAULT 'POP',
  `disable_editing` smallint(6) DEFAULT '90',
  `qa_prefix` varchar(55) DEFAULT NULL,
  `update_cost` tinyint(1) DEFAULT NULL,
  `apis` tinyint(1) NOT NULL DEFAULT '0',
  `state` varchar(100) DEFAULT NULL,
  `pdf_lib` varchar(20) DEFAULT 'dompdf',
  PRIMARY KEY (`setting_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `sma_settings` (`setting_id`, `logo`, `logo2`, `site_name`, `language`, `default_warehouse`, `accounting_method`, `default_currency`, `default_tax_rate`, `rows_per_page`, `version`, `default_tax_rate2`, `dateformat`, `sales_prefix`, `quote_prefix`, `purchase_prefix`, `transfer_prefix`, `delivery_prefix`, `payment_prefix`, `return_prefix`, `returnp_prefix`, `expense_prefix`, `item_addition`, `theme`, `product_serial`, `default_discount`, `product_discount`, `discount_method`, `tax1`, `tax2`, `overselling`, `restrict_user`, `restrict_calendar`, `timezone`, `iwidth`, `iheight`, `twidth`, `theight`, `watermark`, `reg_ver`, `allow_reg`, `reg_notification`, `auto_reg`, `protocol`, `mailpath`, `smtp_host`, `smtp_user`, `smtp_pass`, `smtp_port`, `smtp_crypto`, `corn`, `customer_group`, `default_email`, `mmode`, `bc_fix`, `auto_detect_barcode`, `captcha`, `reference_format`, `racks`, `attributes`, `product_expiry`, `decimals`, `qty_decimals`, `decimals_sep`, `thousands_sep`, `invoice_view`, `default_biller`, `envato_username`, `purchase_code`, `rtl`, `each_spent`, `ca_point`, `each_sale`, `sa_point`, `update`, `sac`, `display_all_products`, `display_symbol`, `symbol`, `remove_expired`, `barcode_separator`, `set_focus`, `price_group`, `barcode_img`, `ppayment_prefix`, `disable_editing`, `qa_prefix`, `update_cost`, `apis`, `state`, `pdf_lib`) VALUES ('1', 'logo2.png', 'logo3.png', 'Cignes Stock Manager Pro', 'english', '1', '0', 'IN', '1', '10', '3.2.12', '0', '5', 'SALE', 'QUOTE', 'PO', 'TR', 'DO', 'IPAY', 'SR', 'PR', '', '1', 'default', '1', '1', '1', '1', '1', '0', '0', '1', '0', 'Asia/Kolkata', '800', '800', '150', '150', '0', '0', '0', '0', NULL, 'mail', '/usr/sbin/sendmail', 'pop.gmail.com', 'contact@sma.tecdiary.org', 'jEFTM4T63AiQ9dsidxhPKt9CIg4HQjCN58n/RW9vmdC/UDXCzRLR469ziZ0jjpFlbOg43LyoSmpJLBkcAHh0Yw==', '25', NULL, NULL, '1', 'cignes@gmail.com', '0', '4', '1', '0', '2', '1', '1', '0', '2', '2', '.', ',', '2', '22', 'thoufeeq', 'e18b2b93-f44b-4062-855e-96fc2cc2904a', '0', NULL, NULL, NULL, NULL, '0', '1', '0', '1', '₹', '0', '_', '0', '1', '1', 'POP', '90', '', '0', '0', 'KL', 'dompdf');


#
# TABLE STRUCTURE FOR: sma_skrill
#

DROP TABLE IF EXISTS `sma_skrill`;

CREATE TABLE `sma_skrill` (
  `id` int(11) NOT NULL,
  `active` tinyint(4) NOT NULL,
  `account_email` varchar(255) NOT NULL DEFAULT 'testaccount2@moneybookers.com',
  `secret_word` varchar(20) NOT NULL DEFAULT 'mbtest',
  `skrill_currency` varchar(3) NOT NULL DEFAULT 'USD',
  `fixed_charges` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `extra_charges_my` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `extra_charges_other` decimal(25,4) NOT NULL DEFAULT '0.0000',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

INSERT INTO `sma_skrill` (`id`, `active`, `account_email`, `secret_word`, `skrill_currency`, `fixed_charges`, `extra_charges_my`, `extra_charges_other`) VALUES ('1', '1', 'testaccount2@moneybookers.com', 'mbtest', 'USD', '0.0000', '0.0000', '0.0000');


#
# TABLE STRUCTURE FOR: sma_stock_count_items
#

DROP TABLE IF EXISTS `sma_stock_count_items`;

CREATE TABLE `sma_stock_count_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `stock_count_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `product_code` varchar(50) DEFAULT NULL,
  `product_name` varchar(255) DEFAULT NULL,
  `product_variant` varchar(55) DEFAULT NULL,
  `product_variant_id` int(11) DEFAULT NULL,
  `expected` decimal(15,4) NOT NULL,
  `counted` decimal(15,4) NOT NULL,
  `cost` decimal(25,4) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `stock_count_id` (`stock_count_id`),
  KEY `product_id` (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_stock_counts
#

DROP TABLE IF EXISTS `sma_stock_counts`;

CREATE TABLE `sma_stock_counts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `reference_no` varchar(55) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `type` varchar(10) NOT NULL,
  `initial_file` varchar(50) NOT NULL,
  `final_file` varchar(50) DEFAULT NULL,
  `brands` varchar(50) DEFAULT NULL,
  `brand_names` varchar(100) DEFAULT NULL,
  `categories` varchar(50) DEFAULT NULL,
  `category_names` varchar(100) DEFAULT NULL,
  `note` text,
  `products` int(11) DEFAULT NULL,
  `rows` int(11) DEFAULT NULL,
  `differences` int(11) DEFAULT NULL,
  `matches` int(11) DEFAULT NULL,
  `missing` int(11) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `updated_by` int(11) DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `finalized` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `warehouse_id` (`warehouse_id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

INSERT INTO `sma_stock_counts` (`id`, `date`, `reference_no`, `warehouse_id`, `type`, `initial_file`, `final_file`, `brands`, `brand_names`, `categories`, `category_names`, `note`, `products`, `rows`, `differences`, `matches`, `missing`, `created_by`, `updated_by`, `updated_at`, `finalized`) VALUES ('1', '2017-12-04 17:25:00', '', '1', 'full', '0252ebf15d4d82ba043c0d08dcde719a.csv', NULL, '', '', '', '', NULL, '2', '2', NULL, NULL, NULL, '1', NULL, NULL, NULL);
INSERT INTO `sma_stock_counts` (`id`, `date`, `reference_no`, `warehouse_id`, `type`, `initial_file`, `final_file`, `brands`, `brand_names`, `categories`, `category_names`, `note`, `products`, `rows`, `differences`, `matches`, `missing`, `created_by`, `updated_by`, `updated_at`, `finalized`) VALUES ('2', '2017-12-04 17:25:00', '', '1', 'full', '9a876a0b3c263ca92b71df9f0d5c436e.csv', NULL, '', '', '', '', NULL, '2', '2', NULL, NULL, NULL, '1', NULL, NULL, NULL);
INSERT INTO `sma_stock_counts` (`id`, `date`, `reference_no`, `warehouse_id`, `type`, `initial_file`, `final_file`, `brands`, `brand_names`, `categories`, `category_names`, `note`, `products`, `rows`, `differences`, `matches`, `missing`, `created_by`, `updated_by`, `updated_at`, `finalized`) VALUES ('3', '2017-12-04 17:37:00', '', '1', 'full', '8f1b44e0a4873b100c79db2d5bae1543.csv', NULL, '', '', '', '', NULL, '3', '3', NULL, NULL, NULL, '1', NULL, NULL, NULL);
INSERT INTO `sma_stock_counts` (`id`, `date`, `reference_no`, `warehouse_id`, `type`, `initial_file`, `final_file`, `brands`, `brand_names`, `categories`, `category_names`, `note`, `products`, `rows`, `differences`, `matches`, `missing`, `created_by`, `updated_by`, `updated_at`, `finalized`) VALUES ('4', '2018-01-08 14:57:00', '', '1', 'full', '5c0fb71b27a764aeed9896f10f8ca986.csv', NULL, '', '', '', '', NULL, '3', '3', NULL, NULL, NULL, '1', NULL, NULL, NULL);
INSERT INTO `sma_stock_counts` (`id`, `date`, `reference_no`, `warehouse_id`, `type`, `initial_file`, `final_file`, `brands`, `brand_names`, `categories`, `category_names`, `note`, `products`, `rows`, `differences`, `matches`, `missing`, `created_by`, `updated_by`, `updated_at`, `finalized`) VALUES ('5', '2018-01-16 10:03:00', '', '1', 'full', 'ae3d8dd2acefda2c66c6e1fbc1d91b3e.csv', NULL, '', '', '', '', NULL, '5', '5', NULL, NULL, NULL, '1', NULL, NULL, NULL);


#
# TABLE STRUCTURE FOR: sma_suspended_bills
#

DROP TABLE IF EXISTS `sma_suspended_bills`;

CREATE TABLE `sma_suspended_bills` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `customer_id` int(11) NOT NULL,
  `customer` varchar(55) DEFAULT NULL,
  `count` int(11) NOT NULL,
  `order_discount_id` varchar(20) DEFAULT NULL,
  `order_tax_id` int(11) DEFAULT NULL,
  `total` decimal(25,4) NOT NULL,
  `biller_id` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `created_by` int(11) NOT NULL,
  `suspend_note` varchar(255) DEFAULT NULL,
  `shipping` decimal(15,4) DEFAULT '0.0000',
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_suspended_bills` (`id`, `date`, `customer_id`, `customer`, `count`, `order_discount_id`, `order_tax_id`, `total`, `biller_id`, `warehouse_id`, `created_by`, `suspend_note`, `shipping`, `cgst`, `sgst`, `igst`) VALUES ('1', '2017-12-24 15:38:14', '18', '234', '9', '', '3', '990.0000', '3', '1', '1', 'dsfgsdfg', '0.0000', NULL, NULL, NULL);


#
# TABLE STRUCTURE FOR: sma_suspended_items
#

DROP TABLE IF EXISTS `sma_suspended_items`;

CREATE TABLE `sma_suspended_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `suspend_id` int(11) unsigned NOT NULL,
  `product_id` int(11) unsigned NOT NULL,
  `product_code` varchar(55) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `net_unit_price` decimal(25,4) NOT NULL,
  `unit_price` decimal(25,4) NOT NULL,
  `quantity` decimal(15,4) DEFAULT '0.0000',
  `warehouse_id` int(11) DEFAULT NULL,
  `item_tax` decimal(25,4) DEFAULT NULL,
  `tax_rate_id` int(11) DEFAULT NULL,
  `tax` varchar(55) DEFAULT NULL,
  `discount` varchar(55) DEFAULT NULL,
  `item_discount` decimal(25,4) DEFAULT NULL,
  `subtotal` decimal(25,4) NOT NULL,
  `serial_no` varchar(255) DEFAULT NULL,
  `option_id` int(11) DEFAULT NULL,
  `product_type` varchar(20) DEFAULT NULL,
  `real_unit_price` decimal(25,4) DEFAULT NULL,
  `product_unit_id` int(11) DEFAULT NULL,
  `product_unit_code` varchar(10) DEFAULT NULL,
  `unit_quantity` decimal(15,4) NOT NULL,
  `comment` varchar(255) DEFAULT NULL,
  `gst` varchar(20) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_suspended_items` (`id`, `suspend_id`, `product_id`, `product_code`, `product_name`, `net_unit_price`, `unit_price`, `quantity`, `warehouse_id`, `item_tax`, `tax_rate_id`, `tax`, `discount`, `item_discount`, `subtotal`, `serial_no`, `option_id`, `product_type`, `real_unit_price`, `product_unit_id`, `product_unit_code`, `unit_quantity`, `comment`, `gst`, `cgst`, `sgst`, `igst`) VALUES ('1', '1', '6', 'PRD1', 'Product1', '104.7619', '110.0000', '9.0000', '1', '47.1429', '2', '5%', '0', '0.0000', '990.0000', '', NULL, 'standard', '110.0000', '2', 'Pcs', '9.0000', '', '5%', '0.0000', '0.0000', '47.1429');


#
# TABLE STRUCTURE FOR: sma_tax_rates
#

DROP TABLE IF EXISTS `sma_tax_rates`;

CREATE TABLE `sma_tax_rates` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(55) NOT NULL,
  `code` varchar(10) DEFAULT NULL,
  `rate` decimal(12,4) NOT NULL,
  `type` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

INSERT INTO `sma_tax_rates` (`id`, `name`, `code`, `rate`, `type`) VALUES ('1', 'No Tax', 'NT', '0.0000', '2');
INSERT INTO `sma_tax_rates` (`id`, `name`, `code`, `rate`, `type`) VALUES ('2', 'VAT @5%', 'VAT5', '5.0000', '1');


#
# TABLE STRUCTURE FOR: sma_transfer_items
#

DROP TABLE IF EXISTS `sma_transfer_items`;

CREATE TABLE `sma_transfer_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `transfer_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `product_code` varchar(55) NOT NULL,
  `product_name` varchar(255) NOT NULL,
  `option_id` int(11) DEFAULT NULL,
  `expiry` date DEFAULT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `tax_rate_id` int(11) DEFAULT NULL,
  `tax` varchar(55) DEFAULT NULL,
  `item_tax` decimal(25,4) DEFAULT NULL,
  `net_unit_cost` decimal(25,4) DEFAULT NULL,
  `subtotal` decimal(25,4) DEFAULT NULL,
  `quantity_balance` decimal(15,4) NOT NULL,
  `unit_cost` decimal(25,4) DEFAULT NULL,
  `real_unit_cost` decimal(25,4) DEFAULT NULL,
  `date` date DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `product_unit_id` int(11) DEFAULT NULL,
  `product_unit_code` varchar(10) DEFAULT NULL,
  `unit_quantity` decimal(15,4) NOT NULL,
  `gst` varchar(20) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `transfer_id` (`transfer_id`),
  KEY `product_id` (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_transfers
#

DROP TABLE IF EXISTS `sma_transfers`;

CREATE TABLE `sma_transfers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `transfer_no` varchar(55) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `from_warehouse_id` int(11) NOT NULL,
  `from_warehouse_code` varchar(55) NOT NULL,
  `from_warehouse_name` varchar(55) NOT NULL,
  `to_warehouse_id` int(11) NOT NULL,
  `to_warehouse_code` varchar(55) NOT NULL,
  `to_warehouse_name` varchar(55) NOT NULL,
  `note` varchar(1000) DEFAULT NULL,
  `total` decimal(25,4) DEFAULT NULL,
  `total_tax` decimal(25,4) DEFAULT NULL,
  `grand_total` decimal(25,4) DEFAULT NULL,
  `created_by` varchar(255) DEFAULT NULL,
  `status` varchar(55) NOT NULL DEFAULT 'pending',
  `shipping` decimal(25,4) NOT NULL DEFAULT '0.0000',
  `attachment` varchar(55) DEFAULT NULL,
  `cgst` decimal(25,4) DEFAULT NULL,
  `sgst` decimal(25,4) DEFAULT NULL,
  `igst` decimal(25,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

#
# TABLE STRUCTURE FOR: sma_units
#

DROP TABLE IF EXISTS `sma_units`;

CREATE TABLE `sma_units` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(10) NOT NULL,
  `name` varchar(55) NOT NULL,
  `base_unit` int(11) DEFAULT NULL,
  `operator` varchar(1) DEFAULT NULL,
  `unit_value` varchar(55) DEFAULT NULL,
  `operation_value` varchar(55) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `base_unit` (`base_unit`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;

INSERT INTO `sma_units` (`id`, `code`, `name`, `base_unit`, `operator`, `unit_value`, `operation_value`) VALUES ('2', 'Pcs', 'Piece', NULL, NULL, NULL, NULL);
INSERT INTO `sma_units` (`id`, `code`, `name`, `base_unit`, `operator`, `unit_value`, `operation_value`) VALUES ('3', 'Sqft', 'Square Feet', NULL, NULL, NULL, NULL);
INSERT INTO `sma_units` (`id`, `code`, `name`, `base_unit`, `operator`, `unit_value`, `operation_value`) VALUES ('4', 'Box', 'Box', NULL, NULL, NULL, NULL);
INSERT INTO `sma_units` (`id`, `code`, `name`, `base_unit`, `operator`, `unit_value`, `operation_value`) VALUES ('6', 'LgBx', 'Large Box', '4', '*', NULL, '10');


#
# TABLE STRUCTURE FOR: sma_user_logins
#

DROP TABLE IF EXISTS `sma_user_logins`;

CREATE TABLE `sma_user_logins` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `company_id` int(11) DEFAULT NULL,
  `ip_address` varbinary(16) NOT NULL,
  `login` varchar(100) NOT NULL,
  `time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=75 DEFAULT CHARSET=utf8;

INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('1', '1', NULL, '171.49.166.27', 'owner@tecdiary.com', '2017-12-02 01:27:33');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('2', '1', NULL, '171.49.166.27', 'owner@tecdiary.com', '2017-12-02 01:28:46');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('3', '1', NULL, '171.49.166.27', 'owner@tecdiary.com', '2017-12-02 01:50:29');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('4', '1', NULL, '171.49.166.27', 'owner@tecdiary.com', '2017-12-02 03:18:44');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('5', '1', NULL, '171.49.166.27', 'owner@tecdiary.com', '2017-12-02 07:25:54');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('6', '1', NULL, '49.15.217.131', 'owner@tecdiary.com', '2017-12-03 03:54:12');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('7', '1', NULL, '171.49.166.27', 'owner@tecdiary.com', '2017-12-03 22:50:36');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('8', '1', NULL, '171.49.166.27', 'owner@tecdiary.com', '2017-12-03 23:46:39');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('9', '1', NULL, '171.49.166.27', 'owner@tecdiary.com', '2017-12-04 01:37:45');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('10', '2', NULL, '171.49.166.27', 'aslam', '2017-12-04 01:42:35');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('11', '1', NULL, '171.49.166.27', 'owner@tecdiary.com', '2017-12-04 03:25:35');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('12', '1', NULL, '171.49.166.27', 'owner@tecdiary.com', '2017-12-04 07:20:32');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('13', '1', NULL, '171.49.166.27', 'owner@tecdiary.com', '2017-12-04 07:24:03');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('14', '2', NULL, '171.49.166.27', 'aslam', '2017-12-04 07:25:11');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('15', '1', NULL, '171.49.166.27', 'owner@tecdiary.com', '2017-12-04 22:35:52');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('16', '1', NULL, '171.49.166.27', 'owner@tecdiary.com', '2017-12-05 01:41:52');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('17', '1', NULL, '171.49.166.27', 'owner@cignes.com', '2017-12-05 01:43:34');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('18', '1', NULL, '171.49.166.27', 'owner@cignes.com', '2017-12-05 04:29:55');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('19', '3', NULL, '171.49.166.27', 'Sarjeez', '2017-12-05 04:32:17');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('20', '1', NULL, '171.49.166.27', 'owner@cignes.com', '2017-12-05 04:40:33');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('21', '3', NULL, '171.49.166.27', 'Sarjeez', '2017-12-05 04:41:15');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('22', '1', NULL, '171.49.166.27', 'owner@cignes.com', '2017-12-05 04:42:29');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('23', '1', NULL, '171.49.166.27', 'owner@cignes.com', '2017-12-05 05:23:11');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('24', '1', NULL, '171.49.166.27', 'owner@cignes.com', '2017-12-05 05:29:56');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('25', '3', NULL, '171.49.166.27', 'Sarjeez', '2017-12-05 05:51:30');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('26', '1', NULL, '171.49.166.27', 'owner@cignes.com', '2017-12-05 05:54:13');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('27', '2', NULL, '171.49.166.27', 'aslam', '2017-12-05 05:54:56');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('28', '1', NULL, '171.49.166.27', 'owner@cignes.com', '2017-12-05 06:01:33');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('29', '3', NULL, '171.49.166.27', 'Sarjeez@gmail.com', '2017-12-05 07:16:53');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('30', '1', NULL, '171.49.166.27', 'owner', '2017-12-05 07:18:24');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('31', '1', NULL, '27.97.163.167', 'owner', '2017-12-05 10:18:54');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('32', '1', NULL, '176.17.10.4', 'owner', '2017-12-05 12:16:49');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('33', '3', NULL, '176.17.10.4', 'sarjeez', '2017-12-05 12:26:09');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('34', '3', NULL, '176.17.10.4', 'sarjeez', '2017-12-05 12:27:46');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('35', '1', NULL, '122.164.85.8', 'owner', '2017-12-06 01:05:56');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('36', '1', NULL, '95.219.156.192', 'owner', '2017-12-06 03:59:46');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('37', '1', NULL, '122.164.85.8', 'owner', '2017-12-07 01:05:36');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('38', '1', NULL, '171.49.198.231', 'owner', '2017-12-11 05:40:19');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('39', '3', NULL, '171.49.198.231', 'sale', '2017-12-11 05:44:23');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('40', '1', NULL, '84.22.254.27', 'owner', '2017-12-11 06:07:36');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('41', '1', NULL, '171.49.198.231', 'owner', '2017-12-11 06:10:34');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('42', '1', NULL, '188.117.92.245', 'owner', '2017-12-11 06:21:16');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('43', '3', NULL, '171.49.198.231', 'sale', '2017-12-11 06:43:04');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('44', '1', NULL, '37.106.68.2', 'owner', '2017-12-11 09:10:06');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('45', '1', NULL, '171.49.198.231', 'owner', '2017-12-12 06:47:07');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('46', '1', NULL, '122.174.113.205', 'owner@cignes.com', '2017-12-15 23:10:49');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('47', '1', NULL, '51.223.31.158', 'owner', '2017-12-16 04:17:48');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('48', '1', NULL, '95.219.179.19', 'owner', '2017-12-17 09:45:32');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('49', '1', NULL, '188.117.92.245', 'owner', '2017-12-20 06:23:26');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('50', '1', NULL, '188.117.92.245', 'owner', '2017-12-20 06:32:32');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('51', '1', NULL, '188.132.80.226', 'owner', '2017-12-20 12:09:11');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('52', '1', NULL, '84.22.254.27', 'owner', '2017-12-21 02:33:57');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('53', '1', NULL, '122.174.115.196', 'owner', '2017-12-21 02:42:49');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('54', '1', NULL, '84.22.254.27', 'owner', '2017-12-21 05:02:02');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('55', '1', NULL, '122.174.115.196', 'owner', '2017-12-21 07:06:05');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('56', '1', NULL, '2.90.119.230', 'owner', '2017-12-24 02:22:50');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('57', '1', NULL, '188.117.92.245', 'owner', '2017-12-24 02:27:34');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('58', '1', NULL, '188.117.92.245', 'owner', '2017-12-24 02:34:07');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('59', '1', NULL, '51.36.196.177', 'Owner', '2017-12-24 16:09:00');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('60', '1', NULL, '78.95.212.44', 'owner', '2017-12-25 12:27:28');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('61', '1', NULL, '188.117.92.245', 'owner', '2017-12-27 04:53:12');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('62', '1', NULL, '42.109.133.89', 'owner', '2017-12-28 12:10:32');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('63', '1', NULL, '122.174.126.189', 'owner@cignes.com', '2018-01-01 06:08:19');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('64', '1', NULL, '188.117.92.245', 'owner', '2018-01-04 00:26:15');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('65', '1', NULL, '37.217.0.232', 'owner', '2018-01-06 04:49:40');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('66', '4', NULL, '37.217.0.232', 'sales', '2018-01-06 04:53:28');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('67', '1', NULL, '84.22.254.28', 'owner', '2018-01-08 01:25:33');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('68', '1', NULL, '84.22.254.29', 'owner', '2018-01-08 01:25:51');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('69', '1', NULL, '122.174.233.232', 'owner', '2018-01-08 04:11:37');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('70', '1', NULL, '84.22.254.28', 'owner', '2018-01-09 02:01:05');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('71', '1', NULL, '171.49.194.36', 'owner', '2018-01-11 03:38:04');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('72', '1', NULL, '171.49.194.36', 'owner', '2018-01-11 03:47:54');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('73', '1', NULL, '171.49.194.36', 'owner', '2018-01-12 03:53:47');
INSERT INTO `sma_user_logins` (`id`, `user_id`, `company_id`, `ip_address`, `login`, `time`) VALUES ('74', '1', NULL, '171.49.194.36', 'owner', '2018-01-15 22:57:50');


#
# TABLE STRUCTURE FOR: sma_users
#

DROP TABLE IF EXISTS `sma_users`;

CREATE TABLE `sma_users` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `last_ip_address` varbinary(45) DEFAULT NULL,
  `ip_address` varbinary(45) NOT NULL,
  `username` varchar(100) NOT NULL,
  `password` varchar(40) NOT NULL,
  `salt` varchar(40) DEFAULT NULL,
  `email` varchar(100) NOT NULL,
  `activation_code` varchar(40) DEFAULT NULL,
  `forgotten_password_code` varchar(40) DEFAULT NULL,
  `forgotten_password_time` int(11) unsigned DEFAULT NULL,
  `remember_code` varchar(40) DEFAULT NULL,
  `created_on` int(11) unsigned NOT NULL,
  `last_login` int(11) unsigned DEFAULT NULL,
  `active` tinyint(1) unsigned DEFAULT NULL,
  `first_name` varchar(50) DEFAULT NULL,
  `last_name` varchar(50) DEFAULT NULL,
  `company` varchar(100) DEFAULT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `avatar` varchar(55) DEFAULT NULL,
  `gender` varchar(20) DEFAULT NULL,
  `group_id` int(10) unsigned NOT NULL,
  `warehouse_id` int(10) unsigned DEFAULT NULL,
  `biller_id` int(10) unsigned DEFAULT NULL,
  `company_id` int(11) DEFAULT NULL,
  `show_cost` tinyint(1) DEFAULT '0',
  `show_price` tinyint(1) DEFAULT '0',
  `award_points` int(11) DEFAULT '0',
  `view_right` tinyint(1) NOT NULL DEFAULT '0',
  `edit_right` tinyint(1) NOT NULL DEFAULT '0',
  `allow_discount` tinyint(1) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `group_id` (`group_id`,`warehouse_id`,`biller_id`),
  KEY `group_id_2` (`group_id`,`company_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

INSERT INTO `sma_users` (`id`, `last_ip_address`, `ip_address`, `username`, `password`, `salt`, `email`, `activation_code`, `forgotten_password_code`, `forgotten_password_time`, `remember_code`, `created_on`, `last_login`, `active`, `first_name`, `last_name`, `company`, `phone`, `avatar`, `gender`, `group_id`, `warehouse_id`, `biller_id`, `company_id`, `show_cost`, `show_price`, `award_points`, `view_right`, `edit_right`, `allow_discount`) VALUES ('1', '171.49.194.36', '\0\0', 'owner', '2c8ab736b2ccab4f50e72d5fd7d21020cbb77ae7', NULL, 'owner@cignes.com', NULL, NULL, NULL, '6e5e2f4c47ba10736e92891840965955f42f6f45', '1351661704', '1516075180', '1', 'Cignes', 'Business', 'Stock Manager', '0495 408 58050', NULL, 'male', '1', NULL, NULL, NULL, '0', '0', '0', '0', '0', '0');
INSERT INTO `sma_users` (`id`, `last_ip_address`, `ip_address`, `username`, `password`, `salt`, `email`, `activation_code`, `forgotten_password_code`, `forgotten_password_time`, `remember_code`, `created_on`, `last_login`, `active`, `first_name`, `last_name`, `company`, `phone`, `avatar`, `gender`, `group_id`, `warehouse_id`, `biller_id`, `company_id`, `show_cost`, `show_price`, `award_points`, `view_right`, `edit_right`, `allow_discount`) VALUES ('3', '171.49.198.231', '171.49.166.27', 'sale', 'b5dd033c7924fac80a05542114e6f9776dcb2fe1', NULL, 'sarjeez@gmail.com', NULL, NULL, NULL, NULL, '1512466422', '1512992696', '1', 'Sarjeez', 'P.V', 'Boofiya', '9048123456', NULL, 'male', '5', '1', '6', NULL, '0', '0', '0', '1', '1', '1');
INSERT INTO `sma_users` (`id`, `last_ip_address`, `ip_address`, `username`, `password`, `salt`, `email`, `activation_code`, `forgotten_password_code`, `forgotten_password_time`, `remember_code`, `created_on`, `last_login`, `active`, `first_name`, `last_name`, `company`, `phone`, `avatar`, `gender`, `group_id`, `warehouse_id`, `biller_id`, `company_id`, `show_cost`, `show_price`, `award_points`, `view_right`, `edit_right`, `allow_discount`) VALUES ('4', '37.217.0.232', '37.217.0.232', 'sales', 'd43a1b26f86eb69f19902beb0c174ceacca21be6', NULL, 'sdf@gmail.com', NULL, NULL, NULL, '180626f03eab9a9cf7171fa1d9127312b6a9dbc6', '1515232488', '1515232518', '1', 'Moideen', 'pv', 'test', 'sadf', NULL, 'male', '5', '0', '0', NULL, '0', '0', '0', '1', '0', '0');


#
# TABLE STRUCTURE FOR: sma_variants
#

DROP TABLE IF EXISTS `sma_variants`;

CREATE TABLE `sma_variants` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(55) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

INSERT INTO `sma_variants` (`id`, `name`) VALUES ('1', 'test varient');


#
# TABLE STRUCTURE FOR: sma_warehouses
#

DROP TABLE IF EXISTS `sma_warehouses`;

CREATE TABLE `sma_warehouses` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(50) NOT NULL,
  `name` varchar(255) NOT NULL,
  `address` varchar(255) NOT NULL,
  `map` varchar(255) DEFAULT NULL,
  `phone` varchar(55) DEFAULT NULL,
  `email` varchar(55) DEFAULT NULL,
  `price_group_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

INSERT INTO `sma_warehouses` (`id`, `code`, `name`, `address`, `map`, `phone`, `email`, `price_group_id`) VALUES ('1', 'WHI', 'Warehouse 1', '<p>Address, City</p>', NULL, '012345678', 'warehouse1@gmail.com', '0');
INSERT INTO `sma_warehouses` (`id`, `code`, `name`, `address`, `map`, `phone`, `email`, `price_group_id`) VALUES ('2', 'WHII', 'Warehouse 2', '<p>Warehouse 2, Jalan Sultan Ismail, 54000, Kuala Lumpur</p>', NULL, '0105292122', 'whii@tecdiary.com', '0');


#
# TABLE STRUCTURE FOR: sma_warehouses_products
#

DROP TABLE IF EXISTS `sma_warehouses_products`;

CREATE TABLE `sma_warehouses_products` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `rack` varchar(55) DEFAULT NULL,
  `avg_cost` decimal(25,4) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `product_id` (`product_id`),
  KEY `warehouse_id` (`warehouse_id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8;

INSERT INTO `sma_warehouses_products` (`id`, `product_id`, `warehouse_id`, `quantity`, `rack`, `avg_cost`) VALUES ('6', '3', '1', '0.0000', NULL, '120.0000');
INSERT INTO `sma_warehouses_products` (`id`, `product_id`, `warehouse_id`, `quantity`, `rack`, `avg_cost`) VALUES ('7', '2', '1', '97.0000', NULL, '82.0000');
INSERT INTO `sma_warehouses_products` (`id`, `product_id`, `warehouse_id`, `quantity`, `rack`, `avg_cost`) VALUES ('11', '5', '1', '0.0000', NULL, '100.0000');
INSERT INTO `sma_warehouses_products` (`id`, `product_id`, `warehouse_id`, `quantity`, `rack`, `avg_cost`) VALUES ('12', '6', '1', '25.0000', NULL, '100.0000');
INSERT INTO `sma_warehouses_products` (`id`, `product_id`, `warehouse_id`, `quantity`, `rack`, `avg_cost`) VALUES ('13', '7', '1', '52.0000', '2', '520.0000');
INSERT INTO `sma_warehouses_products` (`id`, `product_id`, `warehouse_id`, `quantity`, `rack`, `avg_cost`) VALUES ('14', '7', '2', '89.0000', '3', '520.0000');
INSERT INTO `sma_warehouses_products` (`id`, `product_id`, `warehouse_id`, `quantity`, `rack`, `avg_cost`) VALUES ('15', '10', '1', '50.0000', '1', '15.0000');
INSERT INTO `sma_warehouses_products` (`id`, `product_id`, `warehouse_id`, `quantity`, `rack`, `avg_cost`) VALUES ('16', '10', '2', '100.0000', '4', '15.0000');
INSERT INTO `sma_warehouses_products` (`id`, `product_id`, `warehouse_id`, `quantity`, `rack`, `avg_cost`) VALUES ('17', '9', '1', '100.0000', NULL, '65.0000');
INSERT INTO `sma_warehouses_products` (`id`, `product_id`, `warehouse_id`, `quantity`, `rack`, `avg_cost`) VALUES ('18', '9', '2', '0.0000', NULL, '65.0000');
INSERT INTO `sma_warehouses_products` (`id`, `product_id`, `warehouse_id`, `quantity`, `rack`, `avg_cost`) VALUES ('19', '6', '2', '0.0000', NULL, '100.0000');
INSERT INTO `sma_warehouses_products` (`id`, `product_id`, `warehouse_id`, `quantity`, `rack`, `avg_cost`) VALUES ('20', '11', '1', '500.0000', NULL, '16990.0000');


#
# TABLE STRUCTURE FOR: sma_warehouses_products_variants
#

DROP TABLE IF EXISTS `sma_warehouses_products_variants`;

CREATE TABLE `sma_warehouses_products_variants` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `option_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `warehouse_id` int(11) NOT NULL,
  `quantity` decimal(15,4) NOT NULL,
  `rack` varchar(55) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `option_id` (`option_id`),
  KEY `product_id` (`product_id`),
  KEY `warehouse_id` (`warehouse_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

