File: //var/www/html/punjabcabs/PunjabMotors.sql
-- phpMyAdmin SQL Dump
-- version 4.4.15.10
-- https://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 06, 2019 at 06:35 AM
-- Server version: 5.6.45
-- PHP Version: 5.6.40
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `PunjabMotors`
--
DELIMITER $$
--
-- Functions
--
CREATE DEFINER=`PunjabMotors`@`localhost` FUNCTION `check_service_notification`(`p_shift_id` INT(11) UNSIGNED, `p_payin_id` INT(11) UNSIGNED) RETURNS int(11)
BEGIN
declare v_notification_km decimal(10,2) default 0.00;
declare v_last_service_notification_km decimal(10,2) default 0.00;
declare v_total_km_end decimal(10,2) default 0.00;
declare v_service_cnt int(11) default 0;
declare v_last_insert_id int(11) default 0;
declare v_car_id int(11);
SELECT r.car_id INTO v_car_id
FROM driver_shift_details dsd
INNER JOIN roster_driver_maping rdm ON rdm.roster_driver_id=dsd.roster_driver_id
INNER JOIN roster r ON r.roster_id=rdm.roster_id
WHERE dsd.shift_id=p_shift_id;
SELECT service_notification_km INTO v_notification_km FROM master_car WHERE car_id=v_car_id;
SELECT total_km_end INTO v_total_km_end FROM payin where payin_id=p_payin_id;
SELECT COUNT(service_notification_id),last_service_notification_km
INTO v_last_service_notification_km,v_service_cnt FROM service_notification
WHERE car_id=v_car_id ORDER BY service_notification_id DESC LIMIT 1;
IF ifnull(v_notification_km,0) > 0 THEN
IF v_service_cnt > 0 THEN
IF (v_total_km_end - v_last_service_notification_km) >= v_notification_km THEN
INSERT INTO service_notification(car_id,payin_id,last_service_notification_km)
VALUES(v_car_id,p_payin_id,v_total_km_end);
END IF;
ELSE
IF v_total_km_end >= v_notification_km THEN
INSERT INTO service_notification(car_id,payin_id,last_service_notification_km)
VALUES(v_car_id,p_payin_id,v_total_km_end);
END IF;
END IF;
END IF;
SET v_last_insert_id = last_insert_id();
IF v_last_insert_id > 0 THEN
INSERT INTO notification(notification_type,notification_title,notification_description,notification_link,referrence_id,created_on) VALUES('service_due_notification','Service Data Notification','Service Data Notification','admin/report/service_notification',v_last_insert_id,NOW());
END IF;
RETURN v_last_insert_id;
END$$
CREATE DEFINER=`PunjabMotors`@`localhost` FUNCTION `get_full_address`(`p_user_id` INT(11) UNSIGNED) RETURNS text CHARSET latin1
BEGIN
DECLARE v_full_address TEXT DEFAULT '';
SELECT CONCAT_WS(',',
CASE WHEN trim(ifnull(up.flat_no,'')) ='' THEN NULL ELSE CONCAT('Unit: ',up.flat_no) END,
CASE WHEN trim(ifnull(up.street_no,'')) ='' THEN NULL ELSE CONCAT('Street No: ',up.street_no) END,
CASE WHEN trim(ifnull(up.street_name,'')) ='' THEN NULL ELSE up.street_name END,
CASE WHEN trim(ifnull(up.suburb,'')) ='' THEN NULL ELSE up.suburb END,
CASE WHEN trim(ifnull(up.pin,'')) ='' THEN NULL ELSE CONCAT('Pin-',up.pin) END
) INTO v_full_address
FROM user_profile up WHERE up.user_id = p_user_id;
RETURN v_full_address;
END$$
CREATE DEFINER=`PunjabMotors`@`localhost` FUNCTION `get_full_address_company`(`p_company_id` INT(11) UNSIGNED) RETURNS text CHARSET latin1
BEGIN
DECLARE v_full_address TEXT DEFAULT '';
SELECT CONCAT_WS(',',
CASE WHEN trim(ifnull(mc.flat_no,'')) ='' THEN NULL ELSE CONCAT('Unit: ',mc.flat_no) END,
CASE WHEN trim(ifnull(mc.street_no,'')) ='' THEN NULL ELSE CONCAT('Street No: ',mc.street_no) END,
CASE WHEN trim(ifnull(mc.street_name,'')) ='' THEN NULL ELSE mc.street_name END,
CASE WHEN trim(ifnull(mc.suburb,'')) ='' THEN NULL ELSE mc.suburb END,
CASE WHEN trim(ifnull(mc.pin,'')) ='' THEN NULL ELSE CONCAT('Pin-',mc.pin) END
) INTO v_full_address
FROM master_company mc WHERE mc.company_id = p_company_id;
RETURN v_full_address;
END$$
CREATE DEFINER=`PunjabMotors`@`localhost` FUNCTION `get_full_address_customer`(`p_customer_id` INT(11) UNSIGNED) RETURNS text CHARSET latin1
BEGIN
DECLARE v_full_address TEXT DEFAULT '';
SELECT CONCAT_WS(',',
CASE WHEN trim(ifnull(mc.flat_no,'')) ='' THEN NULL ELSE CONCAT('Unit: ',mc.flat_no) END,
CASE WHEN trim(ifnull(mc.street_no,'')) ='' THEN NULL ELSE CONCAT('Street No: ',mc.street_no) END,
CASE WHEN trim(ifnull(mc.street_name,'')) ='' THEN NULL ELSE mc.street_name END,
CASE WHEN trim(ifnull(mc.suburb,'')) ='' THEN NULL ELSE mc.suburb END,
CASE WHEN trim(ifnull(mc.pin,'')) ='' THEN NULL ELSE CONCAT('Pin-',mc.pin) END
) INTO v_full_address
FROM master_customer mc WHERE mc.customer_id = p_customer_id;
RETURN v_full_address;
END$$
CREATE DEFINER=`PunjabMotors`@`localhost` FUNCTION `get_settlement_due_count`(`p_payin_id` TEXT) RETURNS text CHARSET latin1
BEGIN
declare v_last_week_start_date date;
declare v_last_week_end_date date;
declare v_2nd_last_week_start_date date;
declare v_2nd_last_week_end_date date;
declare v_3rd_last_week_start_date date;
declare v_3rd_last_week_end_date date;
declare v_4th_last_week_start_date date;
declare v_4th_last_week_end_date date;
declare v_last_week_settlement_flag TEXT default '';
declare v_2nd_last_week_settlement_flag TEXT default '';
declare v_3rd_last_week_settlement_flag TEXT default '';
declare v_4th_last_week_settlement_flag TEXT default '';
DECLARE v_weekly_settlement_flag TEXT default '';
SET v_last_week_start_date = curdate() - INTERVAL DAYOFWEEK(curdate())+6 DAY;
SET v_last_week_end_date = curdate() - INTERVAL DAYOFWEEK(curdate()) DAY;
SET v_2nd_last_week_end_date = v_last_week_start_date - INTERVAL 1 DAY;
SET v_2nd_last_week_start_date = v_2nd_last_week_end_date - INTERVAL 6 DAY;
SET v_3rd_last_week_end_date = v_2nd_last_week_start_date - INTERVAL 1 DAY;
SET v_3rd_last_week_start_date = v_3rd_last_week_end_date - INTERVAL 6 DAY;
SET v_4th_last_week_end_date = v_3rd_last_week_start_date - INTERVAL 1 DAY;
SET v_4th_last_week_start_date = v_4th_last_week_end_date - INTERVAL 6 DAY;
SELECT ifnull(CONCAT(sum(case when p.driver_settlement_flag = 1 then 1 else 0 end),'|@|',sum(case when p. driver_settlement_flag = 0 then 1 else 0 end)),'') INTO v_last_week_settlement_flag
FROM payin p
where FIND_IN_SET(p.payin_id,p_payin_id) AND str_to_date(p.created_ts,'%Y-%m-%d') BETWEEN
v_last_week_start_date AND v_last_week_end_date AND
NOT EXISTS(SELECT 1 FROM driver_settlement ds WHERE ds.payin_id=p.payin_id);
SELECT ifnull(CONCAT(sum(case when p.driver_settlement_flag = 1 then 1 else 0 end),'|@|',sum(case when p. driver_settlement_flag = 0 then 1 else 0 end)),'') INTO v_2nd_last_week_settlement_flag
FROM payin p
where FIND_IN_SET(p.payin_id,p_payin_id) AND str_to_date(p.created_ts,'%Y-%m-%d') BETWEEN
v_2nd_last_week_start_date AND v_2nd_last_week_end_date
AND NOT EXISTS(SELECT 1 FROM driver_settlement ds WHERE ds.payin_id=p.payin_id);
SELECT ifnull(CONCAT(sum(case when p.driver_settlement_flag = 1 then 1 else 0 end),'|@|',sum(case when p. driver_settlement_flag = 0 then 1 else 0 end)),'') INTO v_3rd_last_week_settlement_flag
FROM payin p
where FIND_IN_SET(p.payin_id,p_payin_id) AND str_to_date(p.created_ts,'%Y-%m-%d') BETWEEN
v_3rd_last_week_start_date AND v_3rd_last_week_end_date
AND NOT EXISTS(SELECT 1 FROM driver_settlement ds WHERE ds.payin_id=p.payin_id);
SELECT ifnull(CONCAT(sum(case when p.driver_settlement_flag = 1 then 1 else 0 end),'|@|',sum(case when p. driver_settlement_flag = 0 then 1 else 0 end)),'') INTO v_4th_last_week_settlement_flag
FROM payin p
where FIND_IN_SET(p.payin_id,p_payin_id) AND str_to_date(p.created_ts,'%Y-%m-%d') BETWEEN
v_4th_last_week_start_date AND v_4th_last_week_end_date
AND NOT EXISTS(SELECT 1 FROM driver_settlement ds WHERE ds.payin_id=p.payin_id);
SET v_weekly_settlement_flag = CONCAT(v_last_week_settlement_flag,'|#|',v_2nd_last_week_settlement_flag,'|#|',v_3rd_last_week_settlement_flag,'|#|',v_4th_last_week_settlement_flag);
RETURN v_weekly_settlement_flag;
/* whole procedure ends with the custom delimiter */
END$$
CREATE DEFINER=`PunjabMotors`@`localhost` FUNCTION `get_settlement_due_status`(`p_payin_id` TEXT) RETURNS text CHARSET latin1
BEGIN
declare v_last_week_start_date date;
declare v_last_week_end_date date;
declare v_2nd_last_week_start_date date;
declare v_2nd_last_week_end_date date;
declare v_3rd_last_week_start_date date;
declare v_3rd_last_week_end_date date;
declare v_4th_last_week_start_date date;
declare v_4th_last_week_end_date date;
declare v_last_week_settlement_flag TEXT default '';
declare v_2nd_last_week_settlement_flag TEXT default '';
declare v_3rd_last_week_settlement_flag TEXT default '';
declare v_4th_last_week_settlement_flag TEXT default '';
DECLARE v_weekly_settlement_flag TEXT default '';
SET v_last_week_start_date = curdate() - INTERVAL DAYOFWEEK(curdate())+6 DAY;
SET v_last_week_end_date = curdate() - INTERVAL DAYOFWEEK(curdate()) DAY;
SET v_2nd_last_week_end_date = v_last_week_start_date - INTERVAL 1 DAY;
SET v_2nd_last_week_start_date = v_2nd_last_week_end_date - INTERVAL 6 DAY;
SET v_3rd_last_week_end_date = v_2nd_last_week_start_date - INTERVAL 1 DAY;
SET v_3rd_last_week_start_date = v_3rd_last_week_end_date - INTERVAL 6 DAY;
SET v_4th_last_week_end_date = v_3rd_last_week_start_date - INTERVAL 1 DAY;
SET v_4th_last_week_start_date = v_4th_last_week_end_date - INTERVAL 6 DAY;
SELECT ifnull(GROUP_CONCAT(p.driver_settlement_flag),'') INTO v_last_week_settlement_flag
FROM payin p
where FIND_IN_SET(p.payin_id,p_payin_id) AND str_to_date(p.created_ts,'%Y-%m-%d') BETWEEN
v_last_week_start_date AND v_last_week_end_date AND
NOT EXISTS(SELECT 1 FROM driver_settlement ds WHERE ds.payin_id=p.payin_id);
SELECT ifnull(GROUP_CONCAT(p.driver_settlement_flag),'') INTO v_2nd_last_week_settlement_flag
FROM payin p
where FIND_IN_SET(p.payin_id,p_payin_id) AND str_to_date(p.created_ts,'%Y-%m-%d') BETWEEN
v_2nd_last_week_start_date AND v_2nd_last_week_end_date
AND NOT EXISTS(SELECT 1 FROM driver_settlement ds WHERE ds.payin_id=p.payin_id);
SELECT ifnull(GROUP_CONCAT(p.driver_settlement_flag),'') INTO v_3rd_last_week_settlement_flag
FROM payin p
where FIND_IN_SET(p.payin_id,p_payin_id) AND str_to_date(p.created_ts,'%Y-%m-%d') BETWEEN
v_3rd_last_week_start_date AND v_3rd_last_week_end_date
AND NOT EXISTS(SELECT 1 FROM driver_settlement ds WHERE ds.payin_id=p.payin_id);
SELECT ifnull(GROUP_CONCAT(p.driver_settlement_flag),'') INTO v_4th_last_week_settlement_flag
FROM payin p
where FIND_IN_SET(p.payin_id,p_payin_id) AND str_to_date(p.created_ts,'%Y-%m-%d') BETWEEN
v_4th_last_week_start_date AND v_4th_last_week_end_date
AND NOT EXISTS(SELECT 1 FROM driver_settlement ds WHERE ds.payin_id=p.payin_id);
SET v_weekly_settlement_flag = CONCAT(v_last_week_settlement_flag,'|#|',v_2nd_last_week_settlement_flag,'|#|',v_3rd_last_week_settlement_flag,'|#|',v_4th_last_week_settlement_flag);
RETURN v_weekly_settlement_flag;
END$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `accident_charge`
--
CREATE TABLE IF NOT EXISTS `accident_charge` (
`charge_id` int(250) NOT NULL,
`accident_id` int(250) NOT NULL,
`total_amt` float NOT NULL,
`amt_pai` float NOT NULL,
`amt_due` float NOT NULL,
`shift_amt` float NOT NULL,
`settlement_amount` decimal(10,2) DEFAULT NULL,
`created_by` int(11) NOT NULL,
`created_ts` datetime NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `accident_charge`
--
INSERT INTO `accident_charge` (`charge_id`, `accident_id`, `total_amt`, `amt_pai`, `amt_due`, `shift_amt`, `settlement_amount`, `created_by`, `created_ts`) VALUES
(1, 1, 600, 200, 400, 10, NULL, 1, '2019-12-01 07:06:01');
--
-- Triggers `accident_charge`
--
DELIMITER $$
CREATE TRIGGER `AFTER_ACCIDENT_SETUP_CHARGE_UPDATE` AFTER UPDATE ON `accident_charge`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('update','','<i class="fa fa-plus-pencile" aria-hidden="true"></i>','Accident charge details updated',CONCAT('Accident charge details of the accident referrence - ',New.accident_id,' is updated'),'admin/settings/accident_charge')
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `after_accident_charge_added` AFTER INSERT ON `accident_charge`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('add',New.created_by,'<i class="fa fa-plus-square" aria-hidden="true"></i>','New accident charge setup',CONCAT('Accident charge setup of the accident referrence - ',New.accident_id,' is setup'),'admin/settings/accident_charge')
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `accident_involved_car`
--
CREATE TABLE IF NOT EXISTS `accident_involved_car` (
`involved_car_id` int(11) NOT NULL,
`accident_id` int(11) NOT NULL,
`make` varchar(100) DEFAULT NULL,
`rego` varchar(100) DEFAULT NULL,
`is_insured` tinyint(1) NOT NULL COMMENT '1=>Insured,2=>Not Insured',
`insurance_company` varchar(100) DEFAULT NULL,
`owner_driver_flag` tinyint(1) DEFAULT NULL COMMENT '1=>Owner Driver,2=>Driver',
`owner_name` varchar(100) DEFAULT NULL,
`owner_address` varchar(100) DEFAULT NULL,
`owner_contact_no` varchar(50) DEFAULT NULL,
`owner_email` varchar(100) DEFAULT NULL,
`driver_name` varchar(100) DEFAULT NULL,
`driver_address` varchar(100) DEFAULT NULL,
`driver_contact_no` varchar(50) DEFAULT NULL,
`driver_email` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `accident_media`
--
CREATE TABLE IF NOT EXISTS `accident_media` (
`accident_media_id` int(11) NOT NULL,
`accident_id` int(11) NOT NULL,
`media_link` text,
`type` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `accident_witness`
--
CREATE TABLE IF NOT EXISTS `accident_witness` (
`witness_id` int(11) NOT NULL,
`accident_id` int(11) NOT NULL,
`witness_name` varchar(255) NOT NULL,
`witness_address` varchar(255) NOT NULL,
`witness_mobile` varchar(50) DEFAULT NULL,
`is_police_attended` tinyint(1) NOT NULL COMMENT '1=>Attended,2=>Not Attended',
`officer_name` varchar(255) NOT NULL,
`police_station` varchar(255) NOT NULL,
`officer_phone_no` varchar(50) DEFAULT NULL,
`officer_reference_no` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `api_token`
--
CREATE TABLE IF NOT EXISTS `api_token` (
`token_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`device_type` int(11) NOT NULL COMMENT '1=>ios,2=>android',
`token_key` varchar(255) NOT NULL,
`date_of_creation` datetime NOT NULL,
`session_start_time` varchar(255) NOT NULL,
`session_end_time` varchar(255) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `api_token`
--
INSERT INTO `api_token` (`token_id`, `user_id`, `device_type`, `token_key`, `date_of_creation`, `session_start_time`, `session_end_time`) VALUES
(1, 2, 1, 'e16cd87398bcbc54366443e4fa80bf6d', '2019-12-03 16:02:03', '2019-12-03 16:02:03', ''),
(2, 4, 1, '11ec357566e4dea9e02ca1a4e1a32efa', '2019-12-03 16:15:33', '2019-12-03 16:15:33', ''),
(3, 3, 1, '12764b1e3fab362b254644602b32c74d', '2019-12-03 16:30:49', '2019-12-03 16:30:49', ''),
(4, 5, 1, 'd3f2a53f529461dc2b86d7138e84a627', '2019-12-03 17:57:03', '2019-12-03 17:57:03', ''),
(5, 7, 1, '8a859e2e39b201b5972aa712d392bd5b', '2019-12-03 18:52:53', '2019-12-03 18:52:53', ''),
(6, 8, 1, 'e681c918d21210a863cf337279fdc7aa', '2019-12-04 08:51:27', '2019-12-04 08:51:27', ''),
(7, 9, 2, '34eea3f81a4739bd5bb8e9ebe8e3153f', '2019-12-05 19:56:19', '2019-12-05 19:56:19', '');
-- --------------------------------------------------------
--
-- Table structure for table `cms`
--
CREATE TABLE IF NOT EXISTS `cms` (
`cms_id` int(11) NOT NULL,
`page_name` varchar(255) NOT NULL,
`cms_slug` varchar(255) NOT NULL,
`description` text NOT NULL,
`status` int(11) NOT NULL,
`date_of_creation` varchar(20) NOT NULL,
`date_of_update` varchar(20) NOT NULL,
`short_desc` text NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `cms`
--
INSERT INTO `cms` (`cms_id`, `page_name`, `cms_slug`, `description`, `status`, `date_of_creation`, `date_of_update`, `short_desc`) VALUES
(1, 'Company Details', 'company-details', '<p><em>Lorem ipsum</em>, or <em>lipsum</em> as it is sometimes known, is dummy text used in laying out print, graphic or web designs. The passage is attributed to an unknown typesetter in the 15th century who is thought to have scrambled parts of Cicero's De Finibus Bonorum et Malorum for use in a type specimen book.</p>\r\n', 1, '2019-09-30 15:24:12', '2019-10-16 13:41:35', 'Details description of company'),
(2, 'Terms & Cond', 'terms-condition', '<p><em>Lorem ipsum</em>, or <em>lipsum</em> as it is sometimes known, is dummy text used in laying out print, graphic or web designs. The passage is attributed to an unknown typesetter in the 15th century who is thought to have scrambled parts of Cicero's De Finibus Bonorum et Malorum for use in a type specimen book.</p>\r\n', 0, '2019-10-01 07:29:23', '2019-12-06 11:31:03', 'terms and condition'),
(3, 'PMW Privacy Policy', 'company-cars', '<p><strong>PMW Privacy Policy</strong></p>\r\n\r\n<p><strong>1. Respecting your privacy</strong></p>\r\n\r\n<p>Khangura Corporation Pty Ltd trading as Punjab motor works ( PMW ) is committed to compliance with privacy laws which apply to its businesses and which set out standards for the management of personal information, including the Privacy Act 1998 (Cth) and the Australian Privacy Principles.<br />\r\nThis policy outlines our personal information management practices for all aspects of our business in Australia including from our relationships with customers, drivers, operators, users of our services and others who may contact us or about whom we may be provided with personal information.</p>\r\n\r\n<p><strong>2. What kinds of personal information do we collect and hold?</strong></p>\r\n\r\n<p>The personal information we collect and hold is what is reasonably necessary for our business functions and activities. When we collect and hold personal information, it is of the following kinds:</p>\r\n\r\n<ol>\r\n <li>your personal details such as your name (including account username), addresses (including email addresses and website addresses), telephone numbers, account login details and passwords, age and gender, and certain personal details of your emergency contacts;</li>\r\n <li>the reference number you provide or which we allocate to you when engaged in services which we provide or services procured through us.</li>\r\n <li>what, how, when and where you have engaged in services which we provide or services procured or booked using our services;</li>\r\n <li>details about your stated or likely preferences and your experiences with services which we provide or services procured or booked using our services;</li>\r\n <li>whether you have a connection with others whose personal information we may collect or hold, for example family members;</li>\r\n <li>if you use social media or a mobile device to interact with us, any information that you allow the social media site or device to share with us; and</li>\r\n <li>depending on the nature of your dealings with us or the services which we provide to you or which you may obtain or make available to others using our services, other types of personal information. Examples are:\r\n <ul style="list-style-type:circle">\r\n <li>where you are involved in providing transport-related services, identification, taxation, government or regulatory identifier (such as drivers licence details), and vehicle and insurance details;</li>\r\n <li>personal information relating to any complaints you make or are made about you, including recording of any calls in that regard;</li>\r\n <li>personal information collected and held via financial or payment systems about the payment mechanism or method that you might use (including credit card details) and the payments you may make for our services or any services procured or booked using our services; and</li>\r\n <li>personal information which is accessible from your use of online sites or applications in which we have an interest or provide (such as messages for the purposes of issuing and receiving one time passwords and other device verification) and devicerelated or device-generated personal information. The latter might include your device details, device IDs, your location, network connections, network access and communication and session data.</li>\r\n </ul>\r\n </li>\r\n</ol>\r\n\r\n<p><strong>3. How do we collect and hold personal information?</strong></p>\r\n\r\n<p>When we collect personal information about you, we do so by making a record of it. We do this when:</p>\r\n\r\n<ul style="list-style-type:circle">\r\n <li>you register with us, for example when you create an account for any of our products and services;</li>\r\n <li>you communicate with us online;</li>\r\n <li>you take part in our promotions, competitions, testimonials, surveys and focus groups; and</li>\r\n <li>you deal with us in other ways involving a need for personal information to be provided such as when you contact one of our call centres, fill in a form, log into our website or application or make a complaint. We may record all calls and so collect any personal information provided during such calls.</li>\r\n</ul>\r\n\r\n<p>We may also collect personal information about you by accessing data from other sources and then analyzing that data together with the information we already hold about you in order to learn more about your likely preferences and interests.</p>\r\n\r\n<p>When you visit our electronic sites, such as websites or applications, we may also collect information about you using technology which is not apparent to you, for example using “cookies” and other similar technologies. There is a lot of information available about how cookies work and how to change your browser’s cookie preferences. For example, see<br />\r\nhttps://www.staysmartonline.gov.au/alert-service/all-aboutcookies-and-your-privacy-sso-alertpriority-low.</p>\r\n\r\n<p>Most of the personal information we collect and hold about you is from your direct dealings with us, for example information you tell us or information we learn directly from your dealing with us or our partners, e.g. through “cookies”.</p>\r\n\r\n<p>We may sometimes collect your personal information other than from you directly. For example,</p>\r\n\r\n<ul style="list-style-type:circle">\r\n <li>from other suppliers who, in common with us, have a relationship with you or have information about you;</li>\r\n <li>from those to whom we have given access to our online sites (such as through application programming interfaces);</li>\r\n <li>from those we regard as our business partners, our other customers or our driver partners;</li>\r\n <li>from publicly available information and from third party ratings and feedback.</li>\r\n</ul>\r\n\r\n<p>Our contractors and service providers who perform services for us, such as payment processing, fraud management, marketing, data analytics and identity verification and background checks may also provide us information about you.</p>\r\n\r\n<p>Personal information we hold is generally stored in servers and other computer systems. These may be operated by us or by our service providers. In all cases, we have rigorous information security requirements aimed at minimising risks of unauthorised access to, and loss, misuse or wrongful alteration of, personal information.</p>\r\n\r\n<p><strong>4. Why do we collect, hold, use and disclose personal information?</strong></p>\r\n\r\n<p>When we collect, hold, use and disclose your personal information, we do so primarily in connection with the provision, sale and promotion of goods and services which we provide or are provided or procured using our services and to improve on and enhance the range of those services and offerings.</p>\r\n\r\n<p>For example, we collect, hold, use and disclose your personal information:</p>\r\n\r\n<ul style="list-style-type:circle">\r\n <li>in connection with transport-related services by:\r\n <ol>\r\n <li>providing driver’s personal information (including current location, photograph and vehicle information) to each other in connection with the arrangement of specific transport-related services and to facilitate communications between drivers;</li>\r\n <li>using your location data to record and verify trip and payment information if you provide or procure transport-related services using our services or are logged onto our website or application; and</li>\r\n <li>facilitating the search of any missing property which may have been left behind by a customer in a driver partner’s vehicle or assisting with any police or regulatory enquiries;</li>\r\n </ol>\r\n </li>\r\n <li>to process and facilitate your payment for goods and services, including as required by law;</li>\r\n <li>for direct marketing ;</li>\r\n <li>for verification of your identity;</li>\r\n <li>to develop insights about you or to personalise your offerings or experience in using our services or services of our third party business partners, including drivers or to assist our service providers and third parties to conduct data analytics;</li>\r\n <li>for research and development or to improve goods and services, for example in connection with safety and security and preventing fraud;</li>\r\n <li>where you are involved in providing transport-related services, for criminal history and background checks (including verification of health information) and other manual processing checks regarding the verification of drivers and vehicles;</li>\r\n <li>to assist in dispute resolution, investigating complaints and in enquiries and support;</li>\r\n <li>for incidental or other purposes related to the provision of goods and services to you or the purposes referred to above.</li>\r\n <li>as required or permitted by law, court order and any government, law enforcement or other regulatory body.</li>\r\n</ul>\r\n\r\n<p>We may collect, hold, use and disclose your personal information for other purposes which are within reasonable expectations (these may relate, for example to acting on your requests; our involvement in relationships between customers, drivers and third party suppliers of goods or services to you) or legal reasons (for example where permitted by law).</p>\r\n\r\n<p>In addition, we may anonymise, de-identify or aggregate your personal information in circumstances where it is appropriate to do so. We may share this anonymised, de-identified or aggregated data with third parties to assist them in conducting analytics and marketing of products and services to you that are likely to be relevant to your interests and preferences. It is not practicable to outline the details of all third parties to whom your personal information is disclosed, however, in addition to those contemplated above, we may disclose your personal information to:</p>\r\n\r\n<ul style="list-style-type:circle">\r\n <li>members of the PMW, which may include, for example, disclosure to and use of information by FITSER Private Ltd (registered and located in India) for the purposes of information and software development;</li>\r\n <li>our service providers and their contractors and parties who we regard as business partners of us or the PMW, including payment processors, fraud and security providers, those providing technology services and support, loyalty schemes and services, contact centre services, analytics or business services, marketing, promotions and advertising services, financial services, insurance services or professional or legal services;</li>\r\n <li>your family members or emergency contacts in the event of an incident or emergency;</li>\r\n <li>comply with our and the PMW legal, compliance, regulatory and operational purposes; and</li>\r\n <li>third parties to whom you offer to provide goods or services or from whom you procure goods or services (including any preliminary requests or communications regarding such goods and services) using our services. For example, this would include sharing information between drivers and customers of transport-related services arranged or facilitated using our services.</li>\r\n</ul>\r\n\r\n<p><strong>5. Direct marketing</strong></p>\r\n\r\n<p>We may also collect, use and disclose your personal information to supply, advertise and promote goods and services which may be of interest to you, including through email, SMS, post, phone and also targeted and online marketing and advertising. This includes the products and services of our suppliers and other third parties who offer products and services that may be of interest to you.</p>\r\n\r\n<p>We may disclose your personal information to these third parties and their and our marketing, promotions and advertising service providers for this purpose and you consent to receiving these types of direct marketing and commercial electronic messages. You may opt out of our direct marketing to you (and our direct marketing materials will tell you how to do this).</p>\r\n\r\n<p><strong>6. How can you enquire about, access and correct your personal information?</strong></p>\r\n\r\n<p>We will provide you with access to any of your personal information we hold (except in limited circumstances permitted by law). If you wish to access your personal information or have an enquiry about your privacy, please contact us at info@pmw24.com.au. You can address your queries to the Manager. Before we provide you with access to your personal information we may require some proof of identity. We may charge a reasonable fee for giving access to your personal information if your request requires substantial effort on our part. If you need to correct your personal information, please contact us using one of the above means of contact.</p>\r\n\r\n<p><strong>7. How can you complain about our management of personal information?</strong></p>\r\n\r\n<p>If you wish to complain about a breach of the privacy rules that bind us, you may contact us using one of the means of contact specified in clause 6 above. We may ask you to put your complaint in writing and to provide details about it. We may discuss your complaint with our personnel and our service providers and others as appropriate. We will investigate the matter and attempt to resolve it in a timely way. We will inform you in writing about the outcome of the investigation. If we do not resolve your complaint to your satisfaction and no other complaint resolution procedures are agreed or required by law, we will inform you that your complaint may be referred to the Office of the Australian Information Commissioner for further investigation and will provide you with the Office of the Australian Information Commissioner’s contact details.</p>\r\n\r\n<p><strong>8. Security</strong></p>\r\n\r\n<p>The security of your personal information is important to us. We take reasonable steps to prevent the personal information we hold about you from misuse, interference or loss, and from unauthorised access, modification or disclosure. This includes the use of technologies and processes such as access control procedures, network firewalls, encryption and physical security to protect the privacy of your personal information. However, to the maximum extent permitted by law, we exclude and limit our liability to you in respect of any breach of security or misuse, interference or loss, and from unauthorised access, modification or disclosure of your personal information.</p>\r\n\r\n<p><strong>9. Our disclosure of your personal information overseas</strong></p>\r\n\r\n<p>It is our policy to require all of our overseas use or disclosure of personal information to be done in a way which requires observance of privacy and security standards, both during transit and at rest at any overseas storage location. We may allow your personal information to be used or disclosed to our personnel, PMW and third party service providers who are in countries outside of Australia.</p>\r\n\r\n<p>We do this:</p>\r\n\r\n<ul style="list-style-type:circle">\r\n <li>where we have made a business decision to store or process data with a trusted service provider (and their contractors) or business partner. Examples are those who store and process our email and mobile application data, provide payment processing services or contact centre services, or conduct verification activities. These services commonly involve diverse geographic locations which change from time to time for reasons which include data protection and processing efficiency. Where these services are used by us, it is not practical for us to notify you of which country your personal information may be located in (however note that it includes, without limitation, the United States of America and India);</li>\r\n <li>when our business which collected your personal information is in a different country to your location, for example where you are registered for our service Australia, but use our service in a different country; and</li>\r\n <li>where you are involved with liability or other issues concerning goods or services which we provide or are provided or procured using our services. In such cases we may disclose your personal information to any overseas supplier of such goods or services in the course of managing those issues.</li>\r\n</ul>\r\n\r\n<p>Where we disclose any of your personal information outside of Australia to any third party ,we take reasonable steps to ensure that such third party protects your personal information and complies with our privacy obligations under the APPs.</p>\r\n\r\n<p><strong>10. Updates</strong></p>\r\n\r\n<p>This privacy policy is current at the date below. We may change it periodically at our sole discretion. If we propose to change this policy, we will inform you of the change by such means as it appears to us appropriate in the circumstances. Your continued use of our services will be deemed acceptance of the changes made.</p>\r\n\r\n<p><strong>11. Other privacy terms and limits of this policy</strong></p>\r\n\r\n<p>This is a policy. There may be additional privacy notices and terms relevant to you depending on the nature of your dealings with us and on our particular businesses. In particular, there are additional privacy terms in our terms concerning our online sites and applications and account registration processes. We have separate charters concerning our employees – this policy does not apply to the personal information of our employees in their capacity as such. This policy also does not apply to information which may be collected from an individual by a driver of a vehicle which is not provided by us. This policy does not include that of any third parties whose promotions we may facilitate or whose online locations may be accessible via links from our online locations.</p>\r\n\r\n<p><strong>12. More information</strong></p>\r\n\r\n<p>More information about privacy law and privacy principles is available from the Privacy Commissioner. The Privacy Commissioner may be contacted at www.oaic.gov.au (or by email at <a href="mailto:enquiries@oaic.gov.au">enquiries@oaic.gov.au</a>).</p>\r\n\r\n<p>EFFECTIVE FROM :: 1 JANUARY 2020<br />\r\n </p>\r\n', 1, '2019-10-01 07:31:28', '2019-12-06 11:29:36', 'PMW Privacy Policy'),
(4, 'APP Description', 'test', '<p>PMW DRIVER APP is a tool to manage taxi drivers daily pay-ins , roster , vehicle inspections , road accident details and anything to do with the taxi driver duties and responsibilities as part of their day to day business as a taxi driver .</p>\r\n\r\n<p>Each module in the app is used to capture data as described by the header .for eg ::</p>\r\n\r\n<p> </p>\r\n\r\n<ul style="list-style-type:circle">\r\n <li>Dashboard :: this page give the driver his shift details , any due amount information and bond held at any given time by the depo for the driver.</li>\r\n <li>Pay-in page :: captures the taxi meter readings as input by the driver and part of the information is then used to calculate his takings for the shift allocated .</li>\r\n <li>Roster page :: displays his rostered shifts for the week</li>\r\n <li>Daily inspections :: this page is used to check and monitor taxi condition . mandatory inspections are conducted through this page on weekly basis.</li>\r\n <li>Accident form :: this form is used to capture motor vehicle accident details . all the necessary information required by law is captured here incase of any accident or incident during a drivers shift.</li>\r\n <li>Profile page :: this page is used to capture driver details and his identification papers . these details can be updated from time to time by the driver at any given time .</li>\r\n <li>Levy report page :: this displays the levy collected by PMW on behalf of the driver as per the SRO guidelines . this report shows quarterly data.</li>\r\n <li>Start shift page :: lets a driver to start or end a particular shift .</li>\r\n <li>Breakdown alert :: the page lets a driver to contact or notify base incase of any emergency or breakdown .</li>\r\n <li>Change password page:: this page lets driver to change his or her current password to new password if required by driver or management.</li>\r\n</ul>\r\n', 1, '2019-10-16 12:18:19', '2019-12-06 12:03:46', 'APP Description');
-- --------------------------------------------------------
--
-- Table structure for table `daily_transactions`
--
CREATE TABLE IF NOT EXISTS `daily_transactions` (
`transaction_id` int(11) NOT NULL,
`transaction_date` date NOT NULL,
`payin_id` int(11) DEFAULT NULL,
`customer_id` int(11) DEFAULT NULL,
`transaction_type` int(11) NOT NULL COMMENT '1=> IN,2=>Out',
`5c_coins_qty` int(11) DEFAULT NULL,
`5c_coins_amt` decimal(10,2) DEFAULT NULL,
`10c_coins_qty` int(11) DEFAULT NULL,
`10c_coins_amt` decimal(10,2) DEFAULT NULL,
`20c_coins_qty` int(11) DEFAULT NULL,
`20c_coins_amt` decimal(10,2) DEFAULT NULL,
`50c_coins_qty` int(11) DEFAULT NULL,
`50c_coins_amt` decimal(10,2) DEFAULT NULL,
`1d_coins_qty` int(11) DEFAULT NULL,
`1d_coins_amt` decimal(10,2) DEFAULT NULL,
`2d_coins_qty` int(11) DEFAULT NULL,
`2d_coins_amt` decimal(10,2) DEFAULT NULL,
`5d_notes_qty` int(11) DEFAULT NULL,
`5d_notes_amt` decimal(10,2) DEFAULT NULL,
`10d_notes_qty` int(11) DEFAULT NULL,
`10d_notes_amt` decimal(10,2) DEFAULT NULL,
`20d_notes_qty` int(11) DEFAULT NULL,
`20d_notes_amt` decimal(10,2) DEFAULT NULL,
`50d_notes_qty` int(11) DEFAULT NULL,
`50d_notes_amt` decimal(10,2) DEFAULT NULL,
`100d_notes_qty` int(11) DEFAULT NULL,
`100d_notes_amt` decimal(10,2) DEFAULT NULL,
`total_amount` decimal(10,2) DEFAULT NULL,
`created_by` int(11) NOT NULL,
`created_ts` timestamp NULL DEFAULT NULL,
`updated_by` int(11) DEFAULT NULL,
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `daily_transactions`
--
INSERT INTO `daily_transactions` (`transaction_id`, `transaction_date`, `payin_id`, `customer_id`, `transaction_type`, `5c_coins_qty`, `5c_coins_amt`, `10c_coins_qty`, `10c_coins_amt`, `20c_coins_qty`, `20c_coins_amt`, `50c_coins_qty`, `50c_coins_amt`, `1d_coins_qty`, `1d_coins_amt`, `2d_coins_qty`, `2d_coins_amt`, `5d_notes_qty`, `5d_notes_amt`, `10d_notes_qty`, `10d_notes_amt`, `20d_notes_qty`, `20d_notes_amt`, `50d_notes_qty`, `50d_notes_amt`, `100d_notes_qty`, `100d_notes_amt`, `total_amount`, `created_by`, `created_ts`, `updated_by`, `updated_ts`) VALUES
(1, '2019-12-04', NULL, 1, 1, 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 1, '50.00', 1, '100.00', '150.00', 1, '2019-12-05 12:52:54', NULL, '2019-12-05 12:53:19'),
(2, '2019-12-04', NULL, 1, 2, 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 1, '20.00', 0, '0.00', 0, '0.00', '20.00', 1, '2019-12-05 12:53:47', NULL, '2019-12-05 12:54:01'),
(3, '2019-12-05', 12, NULL, 1, 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 10, '10.00', 0, '0.00', 0, '0.00', 0, '0.00', 2, '40.00', 0, '0.00', 0, '0.00', '50.00', 1, '2019-12-05 14:48:01', NULL, NULL),
(4, '2019-12-06', NULL, 2, 1, 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 1000, '5000.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', '5000.00', 1, '2019-12-06 00:31:23', NULL, NULL),
(5, '2019-12-06', NULL, 2, 1, 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 1000, '5000.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', '5000.00', 1, '2019-12-06 00:31:38', NULL, NULL),
(6, '2019-12-06', NULL, 4, 1, 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 10, '500.00', 0, '0.00', '500.00', 1, '2019-12-06 00:35:40', NULL, NULL),
(7, '2019-12-06', 13, NULL, 1, 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 1, '10.00', 0, '0.00', 0, '0.00', 1, '100.00', '110.00', 1, '2019-12-06 01:10:07', NULL, NULL),
(8, '2019-12-06', 2, NULL, 1, 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 3, '60.00', 0, '0.00', 0, '0.00', '60.00', 1, '2019-12-06 01:27:26', NULL, NULL),
(9, '2019-12-06', 9, NULL, 1, 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 3, '300.00', '300.00', 1, '2019-12-06 01:41:31', NULL, NULL),
(10, '2019-12-06', 12, NULL, 1, 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 2, '40.00', 0, '0.00', 0, '0.00', '40.00', 1, '2019-12-06 06:34:20', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `daily_transactions_settle`
--
CREATE TABLE IF NOT EXISTS `daily_transactions_settle` (
`transaction_settle_id` int(11) NOT NULL,
`transaction_date` date NOT NULL,
`5c_coins_qty` int(11) DEFAULT NULL,
`5c_coins_amt` decimal(10,2) DEFAULT NULL,
`10c_coins_qty` int(11) DEFAULT NULL,
`10c_coins_amt` decimal(10,2) DEFAULT NULL,
`20c_coins_qty` int(11) DEFAULT NULL,
`20c_coins_amt` decimal(10,2) DEFAULT NULL,
`50c_coins_qty` int(11) DEFAULT NULL,
`50c_coins_amt` decimal(10,2) DEFAULT NULL,
`1d_coins_qty` int(11) DEFAULT NULL,
`1d_coins_amt` decimal(10,2) DEFAULT NULL,
`2d_coins_qty` int(11) DEFAULT NULL,
`2d_coins_amt` decimal(10,2) DEFAULT NULL,
`5d_notes_qty` int(11) DEFAULT NULL,
`5d_notes_amt` decimal(10,2) DEFAULT NULL,
`10d_notes_qty` int(11) DEFAULT NULL,
`10d_notes_amt` decimal(10,2) DEFAULT NULL,
`20d_notes_qty` int(11) DEFAULT NULL,
`20d_notes_amt` decimal(10,2) DEFAULT NULL,
`50d_notes_qty` int(11) DEFAULT NULL,
`50d_notes_amt` decimal(10,2) DEFAULT NULL,
`100d_notes_qty` int(11) DEFAULT NULL,
`100d_notes_amt` decimal(10,2) DEFAULT NULL,
`total_amount` decimal(10,2) DEFAULT NULL,
`created_by` int(11) NOT NULL,
`created_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_by` int(11) DEFAULT NULL,
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`remarks` text
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `daily_transactions_settle`
--
INSERT INTO `daily_transactions_settle` (`transaction_settle_id`, `transaction_date`, `5c_coins_qty`, `5c_coins_amt`, `10c_coins_qty`, `10c_coins_amt`, `20c_coins_qty`, `20c_coins_amt`, `50c_coins_qty`, `50c_coins_amt`, `1d_coins_qty`, `1d_coins_amt`, `2d_coins_qty`, `2d_coins_amt`, `5d_notes_qty`, `5d_notes_amt`, `10d_notes_qty`, `10d_notes_amt`, `20d_notes_qty`, `20d_notes_amt`, `50d_notes_qty`, `50d_notes_amt`, `100d_notes_qty`, `100d_notes_amt`, `total_amount`, `created_by`, `created_ts`, `updated_by`, `updated_ts`, `remarks`) VALUES
(1, '2019-12-04', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', -1, '-20.00', 1, '50.00', 1, '100.00', '130.00', 1, '2019-12-05 12:59:04', NULL, NULL, ''),
(2, '2019-12-05', 0, '0.00', 0, '0.00', 0, '0.00', 0, '0.00', 10, '10.00', 0, '0.00', 0, '0.00', 0, '0.00', 2, '40.00', 0, '0.00', 0, '0.00', '50.00', 1, '2019-12-06 00:20:41', NULL, NULL, '');
-- --------------------------------------------------------
--
-- Table structure for table `driver_refund_settlement`
--
CREATE TABLE IF NOT EXISTS `driver_refund_settlement` (
`dr_refund_settlement_id` int(11) NOT NULL,
`driver_id` int(11) NOT NULL,
`bond_id` int(11) NOT NULL,
`bond_accumulated_amt` float(10,2) NOT NULL,
`refund_type` varchar(255) NOT NULL,
`refund_amt` float(10,2) NOT NULL,
`notice_dt` varchar(200) NOT NULL,
`bond_refund_due_dt` varchar(200) NOT NULL,
`refund_settlement_flag` int(11) NOT NULL,
`payment_method_id` int(11) NOT NULL,
`created_on` date NOT NULL,
`updated_on` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Triggers `driver_refund_settlement`
--
DELIMITER $$
CREATE TRIGGER `after_driver_refund_settlement` AFTER INSERT ON `driver_refund_settlement`
FOR EACH ROW BEGIN
DECLARE FULLNAME VARCHAR(255);
DECLARE DCNO Integer(11);
SELECT CONCAT(user_profile.first_name,' ',ifnull(user_profile.middle_name,''),' ',user_profile.last_name) INTO FULLNAME FROM user_profile WHERE user_profile.user_id = New.driver_id;
SELECT dc_no INTO DCNO FROM master_user WHERE master_user.user_id = New.driver_id;
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('refund_settlement','1','<i class="fa fa-id-card" aria-hidden="true"></i>','Driver Refund Settlement',CONCAT('Driver ',FULLNAME,' - ',DCNO,' bond refund gets settled'),'admin/driver-refund-settlementrefund ');
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `driver_settlement`
--
CREATE TABLE IF NOT EXISTS `driver_settlement` (
`dr_settlement_id` int(11) NOT NULL,
`driver_id` int(11) NOT NULL,
`shift_id` int(11) NOT NULL,
`payin_id` int(11) NOT NULL,
`total_extra_start` float(10,2) NOT NULL,
`total_extra_end` float(10,2) NOT NULL,
`paid_km_start` float(10,2) NOT NULL,
`paid_km_end` float(10,2) NOT NULL,
`total_km_start` float(10,2) NOT NULL,
`total_km_end` float(10,2) NOT NULL,
`no_of_hiring_start` int(11) NOT NULL,
`no_of_hiring_end` int(11) NOT NULL,
`extra_start` float(10,2) NOT NULL,
`extra_end` float(10,2) NOT NULL,
`speedo_reading_start` float(10,2) NOT NULL,
`speedo_reading_end` float(10,2) NOT NULL,
`total_docket` float(10,2) NOT NULL,
`total_expense` float(10,2) NOT NULL,
`accident_installment` float(10,2) NOT NULL,
`bond_installment` float(10,2) NOT NULL,
`other` float(10,2) NOT NULL,
`shift_levy` float(10,2) NOT NULL,
`no_of_whl` float(10,2) NOT NULL,
`amount_due` float(10,2) NOT NULL,
`discount` float(10,2) NOT NULL,
`credit_card_amt` float(10,2) NOT NULL,
`bank_transfer_amt` float(10,2) NOT NULL,
`cash_amt` float(10,2) NOT NULL,
`final_settlement_amt` float(10,2) NOT NULL,
`final_due_amt` decimal(10,2) DEFAULT NULL,
`created_on` date NOT NULL,
`created_by` tinyint(4) NOT NULL,
`updated_on` date NOT NULL,
`updated_by` tinyint(4) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `driver_settlement`
--
INSERT INTO `driver_settlement` (`dr_settlement_id`, `driver_id`, `shift_id`, `payin_id`, `total_extra_start`, `total_extra_end`, `paid_km_start`, `paid_km_end`, `total_km_start`, `total_km_end`, `no_of_hiring_start`, `no_of_hiring_end`, `extra_start`, `extra_end`, `speedo_reading_start`, `speedo_reading_end`, `total_docket`, `total_expense`, `accident_installment`, `bond_installment`, `other`, `shift_levy`, `no_of_whl`, `amount_due`, `discount`, `credit_card_amt`, `bank_transfer_amt`, `cash_amt`, `final_settlement_amt`, `final_due_amt`, `created_on`, `created_by`, `updated_on`, `updated_by`) VALUES
(1, 9, 13, 12, 0.00, 200.00, 0.00, 200.00, 0.00, 200.00, 0, 10, 0.00, 5.00, 0.00, 500.00, 58.00, 50.00, 0.00, 100.00, 0.00, 0.00, 13.60, 40.00, -7.40, 0.00, 3.00, 290.00, 293.00, '0.00', '2019-12-05', 1, '2019-12-06', 1),
(2, 4, 14, 13, 1000.00, 1300.00, 1000.00, 1300.00, 1000.00, 1300.00, 100, 130, 80.00, 100.00, 1200.00, 1550.00, 0.00, 0.00, 0.00, 10.00, 0.00, 0.00, 0.00, 110.00, 20.00, 0.00, 0.00, 110.00, 110.00, '0.00', '2019-12-06', 1, '0000-00-00', 0),
(3, 4, 11, 10, 200.00, 300.00, 200.00, 300.00, 400.00, 400.00, 20, 40, 25.00, 40.00, 520.00, 950.00, 0.00, 0.00, 0.00, 10.00, 0.00, 0.00, 0.00, 110.00, -60.00, 0.00, 110.00, 0.00, 110.00, '0.00', '2019-12-06', 1, '0000-00-00', 0),
(4, 4, 8, 7, 99.00, 200.00, 99.00, 200.00, 200.00, 400.00, 11, 20, 20.00, 25.00, 250.00, 520.00, 40.00, 0.00, 0.00, 10.00, 0.00, 0.00, 0.00, 40.00, -59.60, 0.00, 70.00, 40.00, 110.00, '0.00', '2019-12-06', 1, '2019-12-06', 1),
(5, 4, 2, 2, 0.00, 100.00, 0.00, 100.00, 0.00, 100.00, 0, 10, 0.00, 20.00, 0.00, 2003.00, 50.00, 50.00, 0.00, 10.00, 0.00, 0.00, 0.00, 60.00, -110.00, 0.00, 0.00, 60.00, 60.00, '0.00', '2019-12-06', 1, '0000-00-00', 0),
(6, 8, 15, 14, 300.00, 600.00, 300.00, 600.00, 400.00, 700.00, 40, 60, 40.00, 50.00, 950.00, 1300.00, 0.00, 0.00, 0.00, 10.00, 0.00, 0.00, 0.00, 510.00, -380.00, 0.00, 250.00, 0.00, 250.00, '260.00', '2019-12-06', 1, '2019-12-06', 1),
(7, 8, 10, 9, 600.00, 1000.00, 600.00, 1000.00, 600.00, 1000.00, 60, 100, 60.00, 80.00, 700.00, 1200.00, 0.00, 0.00, 0.00, 10.00, 0.00, 0.00, 0.00, 510.00, -340.00, 0.00, 0.00, 300.00, 300.00, '210.00', '2019-12-06', 1, '0000-00-00', 0),
(8, 8, 6, 5, 200.00, 400.00, 200.00, 400.00, 200.00, 400.00, 20, 40, 20.00, 40.00, 250.00, 450.00, 45.00, 30.00, 0.00, 10.00, 0.00, 0.00, 0.00, 465.00, -450.00, 0.00, 465.00, 0.00, 465.00, '0.00', '2019-12-06', 1, '0000-00-00', 0);
--
-- Triggers `driver_settlement`
--
DELIMITER $$
CREATE TRIGGER `after_driver_settlement` AFTER INSERT ON `driver_settlement`
FOR EACH ROW BEGIN
DECLARE FULLNAME VARCHAR(255);
DECLARE DCNO Integer(11);
DECLARE shiftNO VARCHAR(255);
SELECT CONCAT(user_profile.first_name,' ',ifnull(user_profile.middle_name,''),' ',user_profile.last_name) INTO FULLNAME FROM user_profile WHERE user_profile.user_id = New.driver_id;
SELECT dc_no INTO DCNO FROM master_user WHERE master_user.user_id = New.driver_id;
SELECT shift_no INTO shiftNO FROM driver_shift_details WHERE shift_id = New.shift_id;
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('driver_settlement','1','<i class="fa fa-id-card-o" aria-hidden="true"></i>','Driver settlement',CONCAT('Driver ',FULLNAME,' - ',DCNO,' shift gets settled'),'admin/driver-settlement/list');
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `driver_settlement_history`
--
CREATE TABLE IF NOT EXISTS `driver_settlement_history` (
`dr_settlement_history_id` int(11) NOT NULL,
`dr_settlement_id` int(11) NOT NULL,
`driver_id` int(11) NOT NULL,
`shift_id` int(11) NOT NULL,
`payin_id` int(11) NOT NULL,
`accident_installment` float(10,2) NOT NULL,
`bond_installment` float(10,2) NOT NULL,
`other` float(10,2) NOT NULL,
`amount_due` float(10,2) NOT NULL,
`discount` float(10,2) NOT NULL,
`credit_card_amt` float(10,2) NOT NULL,
`bank_transfer_amt` float(10,2) NOT NULL,
`cash_amt` float(10,2) NOT NULL,
`final_settlement_amt` float(10,2) NOT NULL,
`final_due_amt` decimal(10,2) DEFAULT NULL,
`created_on` date NOT NULL,
`created_by` tinyint(4) NOT NULL,
`updated_on` date NOT NULL,
`updated_by` tinyint(4) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `driver_settlement_history`
--
INSERT INTO `driver_settlement_history` (`dr_settlement_history_id`, `dr_settlement_id`, `driver_id`, `shift_id`, `payin_id`, `accident_installment`, `bond_installment`, `other`, `amount_due`, `discount`, `credit_card_amt`, `bank_transfer_amt`, `cash_amt`, `final_settlement_amt`, `final_due_amt`, `created_on`, `created_by`, `updated_on`, `updated_by`) VALUES
(1, 1, 9, 13, 12, 0.00, 100.00, 0.00, 40.00, -7.40, 0.00, 0.00, 40.00, 40.00, NULL, '2019-12-06', 1, '0000-00-00', 0);
-- --------------------------------------------------------
--
-- Table structure for table `driver_shift_details`
--
CREATE TABLE IF NOT EXISTS `driver_shift_details` (
`shift_id` int(11) NOT NULL,
`roster_driver_id` int(11) NOT NULL,
`shift_no` varchar(255) NOT NULL,
`shift_start_time` timestamp NULL DEFAULT NULL,
`shift_end_time` timestamp NULL DEFAULT NULL,
`shift_status` int(11) DEFAULT NULL COMMENT '1=>shift Started,2=>shift Ended',
`created_by` int(11) DEFAULT NULL,
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `driver_shift_details`
--
INSERT INTO `driver_shift_details` (`shift_id`, `roster_driver_id`, `shift_no`, `shift_start_time`, `shift_end_time`, `shift_status`, `created_by`, `created_ts`, `updated_by`, `updated_ts`) VALUES
(1, 1, 'HUNGRY/03122019/4356M/123456', '2019-12-03 10:32:29', '2019-12-03 10:36:48', 2, NULL, '2019-12-03 16:02:29', NULL, '2019-12-03 10:36:48'),
(2, 3, 'HUNGRY/03122019/M1385/522549', '2019-12-03 10:45:34', '2019-12-03 10:46:56', 2, NULL, '2019-12-03 16:15:34', NULL, '2019-12-03 10:46:56'),
(3, 2, 'HUNGRY/03122019/M0001/55555', '2019-12-03 11:00:51', '2019-12-03 11:03:30', 2, NULL, '2019-12-03 16:30:51', NULL, '2019-12-03 11:03:30'),
(4, 5, 'HUNGRY/03122019/M3293/522500', '2019-12-03 12:27:38', '2019-12-03 12:29:49', 2, NULL, '2019-12-03 17:57:38', NULL, '2019-12-03 12:29:49'),
(5, 6, 'HUNGRY/03122019/M6293/556677', '2019-12-03 13:26:16', '2019-12-05 06:49:58', 2, NULL, '2019-12-03 18:56:16', NULL, '2019-12-05 06:49:58'),
(6, 7, 'NIGHT/04122019/4356M/522511', '2019-12-04 03:23:50', '2019-12-04 03:26:16', 2, NULL, '2019-12-04 08:53:50', NULL, '2019-12-04 03:26:16'),
(7, 11, 'DAY/04122019/4356M/55555', '2019-12-04 03:47:39', '2019-12-04 03:49:15', 2, NULL, '2019-12-04 09:17:39', NULL, '2019-12-04 03:49:15'),
(8, 8, 'NIGHT/04122019/M0001/522549', '2019-12-04 04:05:48', '2019-12-04 04:07:59', 2, NULL, '2019-12-04 09:35:48', NULL, '2019-12-04 04:07:59'),
(9, 9, 'NIGHT/04122019/M1385/123456', '2019-12-04 04:31:59', '2019-12-04 04:50:52', 2, NULL, '2019-12-04 10:01:59', NULL, '2019-12-04 04:50:52'),
(10, 10, 'HUNGRY/05122019/4356M/522511', '2019-12-05 00:19:24', '2019-12-05 00:20:12', 2, NULL, '2019-12-05 05:49:24', NULL, '2019-12-05 00:20:12'),
(11, 12, 'DAY/05122019/M0001/522549', '2019-12-05 00:35:59', '2019-12-05 00:36:54', 2, NULL, '2019-12-05 06:05:59', NULL, '2019-12-05 00:36:54'),
(12, 14, 'DAY/05122019/M1457/123456', '2019-12-05 10:41:53', '2019-12-06 01:46:35', 2, NULL, '2019-12-05 16:11:53', NULL, '2019-12-06 01:46:35'),
(13, 18, 'HUNGRY/05122019/M9058/112233', '2019-12-05 14:26:55', '2019-12-05 14:38:41', 2, NULL, '2019-12-05 19:56:55', NULL, '2019-12-05 14:38:41'),
(14, 19, 'DAY/06122019/4356M/522549', '2019-12-06 00:52:32', '2019-12-06 01:01:39', 2, NULL, '2019-12-06 06:22:32', NULL, '2019-12-06 01:01:39'),
(15, 20, 'DAY/06122019/M0001/522511', '2019-12-06 01:32:49', '2019-12-06 01:33:48', 2, NULL, '2019-12-06 07:02:49', NULL, '2019-12-06 01:33:48'),
(16, 21, 'DAY/06122019/M9058/112233', '2019-12-06 06:09:58', NULL, 1, NULL, '2019-12-06 11:39:58', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `driver_shift_payin`
--
CREATE TABLE IF NOT EXISTS `driver_shift_payin` (
`shift_payin_id` int(11) NOT NULL,
`shift_id` int(11) NOT NULL,
`roster_driver_id` int(11) NOT NULL,
`created_by` int(11) DEFAULT NULL,
`created_ts` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `driver_shift_payin`
--
INSERT INTO `driver_shift_payin` (`shift_payin_id`, `shift_id`, `roster_driver_id`, `created_by`, `created_ts`) VALUES
(1, 1, 1, 2, '2019-12-03 16:06:48'),
(2, 2, 3, 4, '2019-12-03 16:16:56'),
(3, 3, 2, 3, '2019-12-03 16:33:30'),
(4, 4, 5, 5, '2019-12-03 17:59:49'),
(5, 6, 7, 8, '2019-12-04 08:56:16'),
(6, 7, 11, 3, '2019-12-04 09:19:15'),
(7, 8, 8, 4, '2019-12-04 09:37:59'),
(8, 9, 9, 2, '2019-12-04 10:20:52'),
(9, 10, 10, 8, '2019-12-05 05:50:12'),
(10, 11, 12, 4, '2019-12-05 06:06:54'),
(11, 5, 6, 7, '2019-12-05 12:19:58'),
(12, 5, 13, 7, '2019-12-05 12:19:58'),
(14, 13, 18, 9, '2019-12-05 20:08:41'),
(15, 14, 19, 4, '2019-12-06 06:31:39'),
(16, 15, 20, 8, '2019-12-06 07:03:48'),
(17, 12, 14, 2, '2019-12-06 07:16:35'),
(18, 12, 15, 2, '2019-12-06 07:16:35');
-- --------------------------------------------------------
--
-- Table structure for table `driver_tracking`
--
CREATE TABLE IF NOT EXISTS `driver_tracking` (
`driver_tracking_id` int(11) NOT NULL,
`shift_id` int(11) NOT NULL,
`car_id` int(11) NOT NULL,
`last_lat` decimal(10,8) NOT NULL,
`last_lon` decimal(11,8) NOT NULL,
`created_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_ts` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `driver_tracking`
--
INSERT INTO `driver_tracking` (`driver_tracking_id`, `shift_id`, `car_id`, `last_lat`, `last_lon`, `created_ts`, `updated_ts`) VALUES
(1, 5, 9, '22.58634606', '88.49050203', '2019-12-05 06:49:42', '2019-12-05 06:49:42'),
(2, 14, 13, '-37.95272359', '145.13575262', '2019-12-06 01:00:33', '2019-12-06 01:00:33'),
(3, 8, 8, '-37.95274555', '145.13567912', '2019-12-04 14:07:38', '2019-12-04 14:07:38'),
(4, 9, 12, '-37.94885052', '145.15079881', '2019-12-04 04:50:00', '2019-12-04 04:50:00'),
(5, 12, 11, '37.78583400', '-122.40641700', '2019-12-05 14:02:07', '2019-12-05 14:02:07'),
(6, 16, 5, '0.00000000', '0.00000000', '2019-12-06 06:32:02', '2019-12-06 06:32:02');
-- --------------------------------------------------------
--
-- Table structure for table `dr_company_agreement_mapping`
--
CREATE TABLE IF NOT EXISTS `dr_company_agreement_mapping` (
`company_agrr_mapping_id` int(11) NOT NULL,
`driver_id` int(11) NOT NULL,
`company_id` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `dr_company_agreement_mapping`
--
INSERT INTO `dr_company_agreement_mapping` (`company_agrr_mapping_id`, `driver_id`, `company_id`) VALUES
(1, 2, 1),
(2, 3, 1),
(3, 4, 2),
(4, 5, 2),
(5, 6, 2),
(6, 7, 2),
(7, 8, 3),
(8, 9, 1);
-- --------------------------------------------------------
--
-- Table structure for table `dr_settlement_docket`
--
CREATE TABLE IF NOT EXISTS `dr_settlement_docket` (
`dr_settlement_docket_id` int(11) NOT NULL,
`dr_settlement_id` int(11) NOT NULL,
`payin_docket_id` int(11) NOT NULL,
`docket_settlement_amt` float(10,2) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `dr_settlement_docket`
--
INSERT INTO `dr_settlement_docket` (`dr_settlement_docket_id`, `dr_settlement_id`, `payin_docket_id`, `docket_settlement_amt`) VALUES
(1, 1, 11, 58.00),
(2, 4, 9, 40.00),
(3, 5, 2, 50.00),
(4, 8, 5, 15.00),
(5, 8, 6, 30.00);
-- --------------------------------------------------------
--
-- Table structure for table `dr_settlement_expense`
--
CREATE TABLE IF NOT EXISTS `dr_settlement_expense` (
`dr_settlement_expense_id` int(11) NOT NULL,
`dr_settlement_id` int(11) NOT NULL,
`payin_expense_id` int(11) NOT NULL,
`expense_settlement_amt` float(10,2) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `dr_settlement_expense`
--
INSERT INTO `dr_settlement_expense` (`dr_settlement_expense_id`, `dr_settlement_id`, `payin_expense_id`, `expense_settlement_amt`) VALUES
(1, 1, 8, 50.00),
(2, 5, 2, 50.00),
(3, 8, 5, 10.00),
(4, 8, 6, 20.00);
-- --------------------------------------------------------
--
-- Table structure for table `inspection`
--
CREATE TABLE IF NOT EXISTS `inspection` (
`inspection_id` int(11) NOT NULL,
`driver_id` int(11) NOT NULL,
`shift_id` int(11) DEFAULT NULL,
`car_id` int(11) NOT NULL,
`inspection_date` date NOT NULL,
`created_ts` datetime NOT NULL,
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `inspection`
--
INSERT INTO `inspection` (`inspection_id`, `driver_id`, `shift_id`, `car_id`, `inspection_date`, `created_ts`, `updated_ts`) VALUES
(1, 2, 1, 13, '2019-12-03', '2019-12-03 16:02:55', NULL),
(2, 4, 2, 12, '2019-12-03', '2019-12-03 16:15:53', NULL),
(3, 3, 3, 8, '2019-12-03', '2019-12-03 16:31:18', NULL),
(4, 5, 4, 10, '2019-12-03', '2019-12-03 17:58:06', NULL),
(5, 7, 5, 9, '2019-12-03', '2019-12-03 18:56:34', NULL),
(6, 2, 9, 12, '2019-12-04', '2019-12-04 10:03:25', NULL),
(7, 2, 12, 11, '2019-12-05', '2019-12-05 16:12:32', NULL),
(8, 9, 13, 5, '2019-12-05', '2019-12-05 20:04:08', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `inspection_answer`
--
CREATE TABLE IF NOT EXISTS `inspection_answer` (
`inspection_answer_id` int(11) NOT NULL,
`inspection_id` int(11) NOT NULL,
`question_id` int(11) NOT NULL,
`answer` int(4) NOT NULL COMMENT '1=YES,0=NO'
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `inspection_answer`
--
INSERT INTO `inspection_answer` (`inspection_answer_id`, `inspection_id`, `question_id`, `answer`) VALUES
(1, 1, 4, 1),
(2, 1, 2, 0),
(3, 2, 2, 0),
(4, 2, 4, 1),
(5, 3, 2, 1),
(6, 3, 4, 1),
(7, 4, 2, 1),
(8, 4, 4, 0),
(9, 5, 2, 1),
(10, 5, 4, 1),
(11, 6, 4, 0),
(12, 6, 2, 1),
(13, 7, 4, 0),
(14, 7, 2, 1),
(15, 8, 4, 1),
(16, 8, 2, 0);
-- --------------------------------------------------------
--
-- Table structure for table `inspection_answer_image`
--
CREATE TABLE IF NOT EXISTS `inspection_answer_image` (
`inspection_answer_image_id` int(11) NOT NULL,
`inspection_answer_id` int(11) NOT NULL,
`image` varchar(100) NOT NULL,
`created_ts` datetime NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `inspection_answer_image`
--
INSERT INTO `inspection_answer_image` (`inspection_answer_image_id`, `inspection_answer_id`, `image`, `created_ts`) VALUES
(1, 1, 'inspection_answer_1575369175_1_0_1575369106.jpeg', '2019-12-03 16:02:55'),
(2, 2, 'inspection_answer_1575369176_2_0_1575369092.jpeg', '2019-12-03 16:02:56'),
(3, 3, 'inspection_answer_1575369953_3_0_1575369876.jpeg', '2019-12-03 16:15:53'),
(4, 4, 'inspection_answer_1575369953_4_0_1575369883.jpeg', '2019-12-03 16:15:53'),
(5, 5, 'inspection_answer_1575370878_5_0_1575370800.jpeg', '2019-12-03 16:31:18'),
(6, 6, 'inspection_answer_1575370878_6_0_1575370808.jpeg', '2019-12-03 16:31:18'),
(7, 7, 'inspection_answer_1575376086_7_0_1575376005.jpeg', '2019-12-03 17:58:06'),
(8, 8, 'inspection_answer_1575376086_8_0_1575376016.jpeg', '2019-12-03 17:58:06'),
(9, 9, 'inspection_answer_1575379594_9_0_1575379518.jpeg', '2019-12-03 18:56:34'),
(10, 10, 'inspection_answer_1575379594_10_0_1575379525.jpeg', '2019-12-03 18:56:35'),
(11, 11, 'inspection_answer_1575434005_11_0_1575433903.jpeg', '2019-12-04 10:03:25'),
(12, 12, 'inspection_answer_1575434006_12_0_1575433893.jpeg', '2019-12-04 10:03:26'),
(13, 13, 'inspection_answer_1575542552_13_0_1575542480.jpeg', '2019-12-05 16:12:32'),
(14, 14, 'inspection_answer_1575542552_14_0_1575542470.jpeg', '2019-12-05 16:12:32'),
(15, 15, 'inspection_answer_1575556448_15_0_1575556377.jpeg', '2019-12-05 20:04:08'),
(16, 16, 'inspection_answer_1575556448_16_0_1575556370.jpeg', '2019-12-05 20:04:08');
-- --------------------------------------------------------
--
-- Table structure for table `lookup_table`
--
CREATE TABLE IF NOT EXISTS `lookup_table` (
`lookup_id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`description` varchar(255) NOT NULL,
`value` decimal(10,2) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `lookup_table`
--
INSERT INTO `lookup_table` (`lookup_id`, `title`, `description`, `value`) VALUES
(1, 'LEVY_GST', 'GST percentage for levy ', '10.00');
-- --------------------------------------------------------
--
-- Table structure for table `master_accident`
--
CREATE TABLE IF NOT EXISTS `master_accident` (
`accident_id` int(11) NOT NULL,
`driver_id` int(11) NOT NULL,
`shift_id` int(11) DEFAULT NULL,
`car_id` int(11) NOT NULL,
`no_of_car` int(11) NOT NULL,
`fault_type` enum('fault','not fault') NOT NULL,
`accident_datetime` datetime NOT NULL,
`place` varchar(255) DEFAULT NULL,
`description` text,
`lat` float(10,6) DEFAULT NULL,
`lon` float(10,6) DEFAULT NULL,
`created_ts` datetime NOT NULL,
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`created_by` int(11) DEFAULT NULL,
`updated_by` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Triggers `master_accident`
--
DELIMITER $$
CREATE TRIGGER `after_accident_add` AFTER INSERT ON `master_accident`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('add',New.created_by,'<i class="fa fa-plus-square" aria-hidden="true"></i>','New details added','New accident details added','admin/settings/manageaccident')
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `after_accident_update` AFTER UPDATE ON `master_accident`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('updated',New.updated_by,'<i class="fa fa-pencil-square" aria-hidden="true"></i>','Details update','Accident details update','admin/settings/manageaccident')
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `master_agreement`
--
CREATE TABLE IF NOT EXISTS `master_agreement` (
`agreement_id` int(11) NOT NULL,
`driver_id` int(11) NOT NULL,
`agreement_time` varchar(200) NOT NULL,
`agreement_place` varchar(255) NOT NULL,
`drv_payment_method` varchar(255) NOT NULL,
`agreement_start_dt` date NOT NULL,
`agreement_end_dt` date DEFAULT NULL,
`garage_address` varchar(255) NOT NULL,
`garage_suburb` varchar(255) NOT NULL,
`garage_pincode` varchar(255) NOT NULL,
`drv_insurer` varchar(255) NOT NULL,
`drv_insurance_type` varchar(255) NOT NULL,
`drv_insurance_number` varchar(255) NOT NULL,
`drv_insurance_expiry_date` date DEFAULT NULL,
`additional_terms` longtext NOT NULL,
`created_on` date NOT NULL,
`updated_on` date NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `master_agreement`
--
INSERT INTO `master_agreement` (`agreement_id`, `driver_id`, `agreement_time`, `agreement_place`, `drv_payment_method`, `agreement_start_dt`, `agreement_end_dt`, `garage_address`, `garage_suburb`, `garage_pincode`, `drv_insurer`, `drv_insurance_type`, `drv_insurance_number`, `drv_insurance_expiry_date`, `additional_terms`, `created_on`, `updated_on`) VALUES
(1, 2, '4:00 PM', '24 Graham Rd Clayton South , VIC-3169 Australia', 'Cash,EFTPOS', '1970-01-01', '1970-01-01', '24 Graham Rd Clayton South , VIC-3169 Australia', 'Clayton South', '3169', 'QOA PTY LTD', '3rd party', '', '1970-01-01', '', '2019-11-29', '0000-00-00'),
(2, 3, '4:00 PM', '24 Graham Rd Clayton South , VIC-3169 Australia', 'Cash,EFTPOS', '1970-01-01', '1970-01-01', '24 Graham Rd Clayton South , VIC-3169 Australia', 'Clayton South', '3169', 'QOA PTY LTD', '3rd party', '', '1970-01-01', '', '2019-11-29', '0000-00-00'),
(3, 4, '4:00 PM', '24 Graham Rd Clayton South , VIC-3169 Australia', 'CASH / NET BANKING / EFTPOS', '1970-01-01', '1970-01-01', '24 Graham Rd Clayton South , VIC-3169 Australia', 'Clayton South', '3169', 'QOA PTY LTD', '3rd party', '', '1970-01-01', '', '2019-11-30', '0000-00-00'),
(4, 5, '4:00 PM', '24 Graham Rd Clayton South , VIC-3169 Australia', 'Cash,EFTPOS', '1970-01-01', '1970-01-01', '24 Graham Rd Clayton South , VIC-3169 Australia', 'Clayton South', '3169', 'QOA PTY LTD', '3rd party', '', '1970-01-01', '', '2019-11-30', '2019-11-30'),
(5, 6, '4:00 PM', '24 Graham Rd Clayton South , VIC-3169 Australia', 'Cash,EFTPOS', '2019-03-12', '1970-01-01', '24 Graham Rd Clayton South , VIC-3169 Australia', 'Clayton South', '3169', 'QOA PTY LTD', '3rd party', '', '1970-01-01', '', '2019-12-03', '0000-00-00'),
(6, 7, '4:00 PM', '24 Graham Rd Clayton South , VIC-3169 Australia', 'Cash,EFTPOS', '2019-03-12', '1970-01-01', '24 Graham Rd Clayton South , VIC-3169 Australia', 'Clayton South', '3169', 'QOA PTY LTD', '3rd party', '', '1970-01-01', '', '2019-12-03', '0000-00-00'),
(7, 8, '4:00 PM', '24 Graham Rd Clayton South , VIC-3169 Australia', 'Cash,EFTPOS', '2019-04-12', '1970-01-01', '24 Graham Rd Clayton South , VIC-3169 Australia', 'Clayton South', '3169', 'QOA PTY LTD', '3rd party', '', '1970-01-01', '', '2019-12-04', '0000-00-00'),
(8, 9, '4:00 PM', '24 Graham Rd Clayton South , VIC-3169 Australia', 'Cash,EFTPOS', '2019-12-05', '0000-00-00', '24 Graham Rd Clayton South , VIC-3169 Australia', 'Clayton South', '3169', 'QOA PTY LTD', '3rd party', '', '0000-00-00', '', '2019-12-05', '0000-00-00');
--
-- Triggers `master_agreement`
--
DELIMITER $$
CREATE TRIGGER `driver_agreement_generated` AFTER INSERT ON `master_agreement`
FOR EACH ROW BEGIN
DECLARE FULLNAME VARCHAR(255);
DECLARE DCNO Integer(11);
SELECT CONCAT(user_profile.first_name,' ',ifnull(user_profile.middle_name,''),' ',user_profile.last_name) INTO FULLNAME FROM user_profile WHERE user_profile.user_id = New.driver_id;
SELECT dc_no INTO DCNO FROM master_user WHERE master_user.user_id = New.driver_id;
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`,`log_title`,`log_description`,`log_link`) VALUES ('agreement_generated', '1','<i class="fa fa-file-text" aria-hidden="true"></i>','Driver Agreement Generated',CONCAT('Driver ',FULLNAME,' - ',DCNO,' agreement gets generated'),'admin/driver/driver_master_list');
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `master_bond`
--
CREATE TABLE IF NOT EXISTS `master_bond` (
`bond_id` int(11) NOT NULL,
`driver_id` int(11) NOT NULL,
`bond_amt` float(10,2) NOT NULL,
`initial_amt_paid` float(10,2) NOT NULL,
`installment_shift` float(10,2) NOT NULL,
`installment_amt_paid` float(10,2) NOT NULL,
`bond_settlement_flag` int(11) NOT NULL COMMENT '0=>pendding,1=>full_bond_amt_deposit,2=>full_bond_amt_refund',
`created_by` int(11) NOT NULL,
`created_on` date NOT NULL,
`updated_by` int(11) NOT NULL,
`updated_on` date NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `master_bond`
--
INSERT INTO `master_bond` (`bond_id`, `driver_id`, `bond_amt`, `initial_amt_paid`, `installment_shift`, `installment_amt_paid`, `bond_settlement_flag`, `created_by`, `created_on`, `updated_by`, `updated_on`) VALUES
(1, 2, 1000.00, 100.00, 50.00, 1000.00, 0, 1, '2019-11-29', 1, '2019-12-05'),
(2, 3, 500.00, 50.00, 50.00, 250.00, 0, 1, '2019-11-29', 1, '2019-12-04'),
(3, 4, 1000.00, 500.00, 10.00, 90.00, 0, 1, '2019-11-30', 1, '2019-12-06'),
(4, 5, 1000.00, 100.00, 10.00, 30.00, 0, 1, '2019-11-30', 1, '2019-12-03'),
(5, 6, 1000.00, 100.00, 10.00, 10.00, 0, 1, '2019-12-03', 1, '2019-12-03'),
(6, 7, 1200.00, 200.00, 100.00, 500.00, 0, 1, '2019-12-03', 1, '2019-12-05'),
(7, 8, 1000.00, 300.00, 10.00, 60.00, 0, 1, '2019-12-04', 1, '2019-12-06'),
(8, 9, 1000.00, 100.00, 100.00, 200.00, 0, 1, '2019-12-05', 1, '2019-12-06');
-- --------------------------------------------------------
--
-- Table structure for table `master_breakdown_alert`
--
CREATE TABLE IF NOT EXISTS `master_breakdown_alert` (
`breakdown_alert_id` int(11) NOT NULL,
`breakdown_alert_sms_no` varchar(50) NOT NULL,
`breakdown_alert_whatsapp_no` varchar(200) NOT NULL,
`breakdown_alert_contact_no` varchar(200) NOT NULL,
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of master_user',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of master_user',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Triggers `master_breakdown_alert`
--
DELIMITER $$
CREATE TRIGGER `after_breakdown_alert_update` AFTER UPDATE ON `master_breakdown_alert`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('update',New.updated_by,'<i class="fa fa-plus-pencile" aria-hidden="true"></i>','Breakdown_alert details updated','Breakdown_alert details updated','admin/settings/breakdown_alert')
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `master_car`
--
CREATE TABLE IF NOT EXISTS `master_car` (
`car_id` int(11) NOT NULL,
`company_id` int(11) NOT NULL,
`network_id` int(11) NOT NULL,
`car_model_id` int(11) NOT NULL,
`fuel_id` int(11) NOT NULL,
`registration_no` varchar(100) NOT NULL,
`make` varchar(100) DEFAULT NULL,
`body` varchar(100) DEFAULT NULL,
`vin` varchar(100) NOT NULL,
`engine_no` varchar(100) NOT NULL,
`colour` varchar(100) DEFAULT NULL,
`service_notification_km` int(11) NOT NULL,
`full_shift_amount` decimal(6,2) DEFAULT NULL,
`half_shift_amount` decimal(6,2) DEFAULT NULL,
`compliance_date` date DEFAULT NULL,
`registration_exp_date` date DEFAULT NULL,
`rwc_due_month` date DEFAULT NULL,
`levy_applicable` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1=Yes,0=No',
`lifting_fees_applicable` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1=Yes,0=No',
`silver_service` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1=Yes,0=No',
`status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1=ative,0=inactive',
`remarks` text,
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of master_user',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of master_user',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`accident_status` tinyint(4) NOT NULL DEFAULT '0',
`accident_review` varchar(255) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `master_car`
--
INSERT INTO `master_car` (`car_id`, `company_id`, `network_id`, `car_model_id`, `fuel_id`, `registration_no`, `make`, `body`, `vin`, `engine_no`, `colour`, `service_notification_km`, `full_shift_amount`, `half_shift_amount`, `compliance_date`, `registration_exp_date`, `rwc_due_month`, `levy_applicable`, `lifting_fees_applicable`, `silver_service`, `status`, `remarks`, `created_by`, `created_ts`, `updated_by`, `updated_ts`, `accident_status`, `accident_review`) VALUES
(1, 1, 0, 1, 0, 'M1507', 'Et enim iste suscipi', 'Doloremque voluptas ', 'Dolor ad nisi praese', 'Aliquip veniam est ', '#098df0', 50, '0.00', NULL, '0000-00-00', '0000-00-00', '0000-00-00', 1, 1, 1, 0, 'Reiciendis rerum sit', NULL, '2019-09-06 18:07:51', 1, '2019-11-29 11:14:00', 0, NULL),
(2, 1, 0, 2, 1, 'PS1847', 'Cillum perferendis u', 'Velit Nam sed magna ', 'Consequatur proiden', 'Dolor aut et reprehe', '#7e3869', 60, '0.00', NULL, '0000-00-00', '0000-00-00', '0000-00-00', 1, 1, 1, 1, 'Numquam provident o', NULL, '2019-09-06 18:24:19', 1, '2019-11-29 11:14:20', 0, NULL),
(3, 1, 13, 1, 2, 'FB23CA', 'Ea qui aut aliquam p', 'Reprehenderit asper', 'Voluptatum aliquid a', 'Beatae labore vel qu', '#35dd2f', 70, '0.00', NULL, '0000-00-00', '0000-00-00', '0000-00-00', 1, 1, 1, 1, 'Nisi quia eius at ip', NULL, '2019-09-06 18:55:17', 1, '2019-11-29 11:14:05', 0, NULL),
(4, 1, 0, 1, 1, 'WB1234 ', 'Eum odio est nobis d', 'Quia quibusdam reici', 'Nihil voluptates non', 'Ipsum laboris volupt', '#bcc798', 80, '87.00', '29.00', '1970-01-01', '1970-01-01', '1970-01-01', 1, 0, 1, 1, 'Elit incididunt adi', NULL, '2019-09-07 08:21:50', 1, '2019-11-29 11:14:57', 0, NULL),
(5, 1, 2, 1, 1, 'M9058', 'Ducimus dicta offic', 'Autem voluptatem ve', '124AA', 'V10', 'Black', 90, '300.00', '150.00', '2019-04-13', '2019-03-12', '2019-03-12', 0, 1, 0, 1, 'test rev..', NULL, '2019-09-09 10:09:31', 1, '2019-12-03 10:11:03', 0, NULL),
(6, 1, 4, 1, 1, 'AS4321', 'Quis voluptatem aute', 'Veniam id consequat', 'Sit dolor enim eius', 'Non vel earum provid', '#cc810f', 100, '46.00', '49.00', '1970-01-01', '1970-01-01', '1970-01-01', 1, 1, 0, 0, 'Dignissimos quas nis', NULL, '2019-09-09 15:42:54', 1, '2019-11-29 11:14:47', 0, NULL),
(7, 1, 3, 2, 2, 'BQ9988', 'Ad ipsam eligendi al', 'Cumque explicabo Ne', 'Quasi deleniti ut as', 'Quis maiores volupta', '#87a5bc', 110, '12.00', '94.00', '1970-01-01', '1970-01-01', '1970-01-01', 0, 0, 1, 0, 'Incididunt dolores e', NULL, '2019-09-09 15:53:57', 1, '2019-11-29 11:14:42', 0, NULL),
(8, 1, 1, 1, 1, 'M0001', 'Test ', 'test ', 'ISO 3779 ', '7', '#13ecbb', 120, '2.00', '1.00', '1970-01-01', '1970-01-01', '1970-01-01', 0, 1, 1, 1, 'sfdsfdsf hjvv', 1, '2019-10-15 08:56:48', 1, '2019-11-29 11:14:39', 0, NULL),
(9, 1, 2, 1, 1, 'M6293', '', 'gnbgmbm', '435435', '32534534', '#ffffff', 130, '22.00', '22.00', '1970-01-01', '1970-01-01', '1970-01-01', 1, 1, 1, 1, '', 1, '2019-10-24 09:19:44', 1, '2019-11-29 11:14:37', 0, NULL),
(10, 1, 1, 1, 1, 'M3293', 'Test ', 'test ', 'ISO 3779 ', '7', '#000000', 0, '0.01', '0.01', '1970-01-01', '1970-01-01', '1970-01-01', 0, 1, 1, 1, 'jghjhj', 1, '2019-10-25 11:21:55', 1, '2019-12-03 12:27:26', 0, NULL),
(11, 1, 1, 1, 7, 'M1457', 'FORD', 'SEDAN', '6FPAAAJGSW1G456123', 'JGSW1G456123', '#000000', 15000, '500.00', '350.00', '1970-01-01', '1970-01-01', '1970-01-01', 1, 0, 1, 1, '', 1, '2019-11-23 10:51:28', 1, '2019-11-29 11:14:31', 0, NULL),
(12, 1, 1, 1, 6, 'M1385', 'FORD', 'CAMRY', '6T1BD12X123456', '12X123456', 'WHITE', 1000, '1000.00', '500.00', '2014-11-01', '2020-11-12', '2020-11-19', 1, 0, 0, 1, '', 1, '2019-11-28 10:31:54', 1, '2019-11-29 11:14:28', 0, NULL),
(13, 3, 1, 1, 6, '4356M', 'TOYOTA', 'CAMRY HYBRID', '6T1BD12X4566789', '2TR456123', 'WHITE', 150, '500.00', '300.00', '1970-01-01', '1970-01-01', '1970-01-01', 0, 0, 0, 1, '', 1, '2019-12-03 08:12:55', 1, '2019-12-03 09:57:36', 0, NULL);
--
-- Triggers `master_car`
--
DELIMITER $$
CREATE TRIGGER `AFTER_CAR_ADD` AFTER INSERT ON `master_car`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('add',New.created_by,'<i class="fa fa-plus-square" aria-hidden="true"></i>','New car added',CONCAT('New car - ',New.registration_no,' is added'),'admin/car')
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `After_car_update` AFTER UPDATE ON `master_car`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('update',New.updated_by,'<i class="fa fa-pencil-square" aria-hidden="true"></i>','Car details updated',CONCAT('Car - ',New.registration_no,' details gets updated'),'admin/car')
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `master_car_model`
--
CREATE TABLE IF NOT EXISTS `master_car_model` (
`car_model_id` int(11) NOT NULL,
`model_name` varchar(100) NOT NULL,
`is_active` bit(1) NOT NULL DEFAULT b'1' COMMENT '1=ative,0=inactive',
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `master_car_model`
--
INSERT INTO `master_car_model` (`car_model_id`, `model_name`, `is_active`, `created_by`, `created_ts`, `updated_by`, `updated_ts`) VALUES
(1, 'Sedan', b'1', NULL, '0000-00-00 00:00:00', NULL, NULL),
(2, 'SUV', b'1', NULL, '0000-00-00 00:00:00', NULL, NULL),
(5, 'MAXI TAXI', b'1', NULL, '2019-10-24 00:00:00', NULL, NULL),
(6, 'MAXI TAXI + WHEEL CHAIR', b'1', NULL, '2019-10-24 00:00:00', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `master_commission`
--
CREATE TABLE IF NOT EXISTS `master_commission` (
`commission_id` int(11) NOT NULL,
`commission_name` varchar(250) NOT NULL,
`driver_share` decimal(10,2) NOT NULL,
`owner_share` decimal(10,2) NOT NULL,
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of master_user',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of master_user',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`status` int(11) NOT NULL DEFAULT '1' COMMENT '0=Inactive,1=Active'
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `master_commission`
--
INSERT INTO `master_commission` (`commission_id`, `commission_name`, `driver_share`, `owner_share`, `created_by`, `created_ts`, `updated_by`, `updated_ts`, `status`) VALUES
(1, '40-60 Share', '60.00', '40.00', NULL, '2019-10-25 12:39:23', NULL, '2019-10-25 11:39:23', 1),
(2, '45-55 Share', '55.00', '45.00', NULL, '2019-10-03 09:00:50', NULL, NULL, 1);
--
-- Triggers `master_commission`
--
DELIMITER $$
CREATE TRIGGER `AFTER_COMMISSION_UPDATED` AFTER UPDATE ON `master_commission`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('update',New.updated_by,'<i class="fa fa-plus-pencile" aria-hidden="true"></i>','Commission details updated',CONCAT('Commission - ',New.commission_name,' details gets updated'),'admin/settings/commission_list')
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `after_Commission_added` AFTER INSERT ON `master_commission`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('add',New.created_by,'<i class="fa fa-plus-square" aria-hidden="true"></i>','New commission added',CONCAT('New commission - ',New.commission_name,' is added'),'admin/settings/commission_list')
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `master_company`
--
CREATE TABLE IF NOT EXISTS `master_company` (
`company_id` int(11) NOT NULL,
`company_name` varchar(100) NOT NULL,
`business_name` varchar(100) DEFAULT NULL,
`email` varchar(50) NOT NULL,
`mobile` varchar(50) NOT NULL,
`landline_no` varchar(50) DEFAULT NULL,
`abn` varchar(50) DEFAULT NULL,
`acn` varchar(50) DEFAULT NULL,
`operator_acc_no` varchar(50) DEFAULT NULL,
`responsible_person_first_name` varchar(255) NOT NULL,
`responsible_person_middle_name` varchar(255) NOT NULL,
`responsible_person_last_name` varchar(255) NOT NULL,
`signature_file` varchar(255) NOT NULL,
`flat_no` varchar(100) DEFAULT NULL,
`street_no` varchar(100) DEFAULT NULL,
`street_name` varchar(100) DEFAULT NULL,
`suburb` varchar(100) DEFAULT NULL,
`state` varchar(100) DEFAULT NULL,
`pin` int(6) NOT NULL,
`bank_name` varchar(100) DEFAULT NULL,
`bsb` varchar(50) DEFAULT NULL,
`account_no` int(20) DEFAULT NULL,
`company_status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1 = active , 0 = Deactive',
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of master_user',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of master_user',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `master_company`
--
INSERT INTO `master_company` (`company_id`, `company_name`, `business_name`, `email`, `mobile`, `landline_no`, `abn`, `acn`, `operator_acc_no`, `responsible_person_first_name`, `responsible_person_middle_name`, `responsible_person_last_name`, `signature_file`, `flat_no`, `street_no`, `street_name`, `suburb`, `state`, `pin`, `bank_name`, `bsb`, `account_no`, `company_status`, `created_by`, `created_ts`, `updated_by`, `updated_ts`) VALUES
(1, 'PMW', 'Punjab Motor', 'kanak@company.com', '9876543210', '', '22334455661', '123456789', '756765765754', 'Kanak', '', 'Sarkar', '1575025873.png', '24', '24', 'Graham RD', 'Clayton South', 'Victoria', 3169, NULL, NULL, NULL, 1, 1, '2019-11-29 16:41:27', 1, '2019-12-03 09:38:43'),
(2, 'KHANGURA CORPORATION PTY LTD', 'PUNJAB MOTOR WORKS', 'KHANGURACORP@GMAIL.COM', '0431922455', '', '12345678999', '123445883', 'A001092', 'LOVEDEEP', '', 'KHANGURA', '1575080709.png', '1a', '24', 'GRAHAM RD', 'CLAYTON SOUTH', 'VICTORIA', 3169, NULL, NULL, NULL, 1, 1, '2019-11-30 07:58:51', 1, '2019-12-02 10:09:09'),
(3, 'SHYHIGH HOLDINGS AUSTRALIA', '', 'SKH@GMAIL.COM', '0401402766', '0395408998', '18112345612', '112345612', 'A10096', 'lovedeep', '', 'khangura', '1575340512.png', '', '24', 'graham rd', 'clayton south', 'VIC', 3169, NULL, NULL, NULL, 1, 1, '2019-12-03 08:06:20', 1, '2019-12-03 09:38:15');
--
-- Triggers `master_company`
--
DELIMITER $$
CREATE TRIGGER `After_master_company` AFTER INSERT ON `master_company`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('add',New.created_by,'<i class="fa fa-plus-square" aria-hidden="true"></i>','New company added',CONCAT('New company -',New.company_name,' added'),'admin/company')
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `after_company_update` AFTER UPDATE ON `master_company`
FOR EACH ROW BEGIN
IF Old.company_status = New.company_status THEN
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('update',New.updated_by,'<i class="fa fa-pencil-square" aria-hidden="true"></i>','Company details updated',CONCAT('company -',New.company_name,' details update'),'admin/company');
ELSE
IF New.company_status = 0 THEN
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`,`log_title`,`log_description`,`log_link`) VALUES ('inactive',New.updated_by,'<i class="fa fa-thumbs-down" aria-hidden="true"></i>','Company gets inactive',CONCAT('company -',New.company_name,' gets inactive'),'admin/company');
ELSE
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('active',New.updated_by,'<i class="fa fa-thumbs-up" aria-hidden="true"></i>','Company gets active',CONCAT('company -',New.company_name,' gets active'),'admin/company');
END IF;
END IF;
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `master_customer`
--
CREATE TABLE IF NOT EXISTS `master_customer` (
`customer_id` int(11) NOT NULL,
`business_name` varchar(100) DEFAULT NULL,
`first_name` varchar(100) NOT NULL,
`middle_name` varchar(100) DEFAULT NULL,
`last_name` varchar(100) NOT NULL,
`customer_type` char(1) NOT NULL COMMENT 'I=INDIVIDUAL,B=BUSINESS',
`dob` varchar(50) DEFAULT NULL,
`email` varchar(50) NOT NULL,
`mobile` varchar(13) NOT NULL,
`landline_no` varchar(13) DEFAULT NULL,
`abn` varchar(50) DEFAULT NULL,
`flat_no` varchar(100) DEFAULT NULL,
`street_no` varchar(100) DEFAULT NULL,
`street_name` varchar(100) DEFAULT NULL,
`suburb` varchar(100) DEFAULT NULL,
`state` varchar(100) DEFAULT NULL,
`pin` int(6) NOT NULL,
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of master_user',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of master_user',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`customer_status` tinyint(1) NOT NULL DEFAULT '1'
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `master_customer`
--
INSERT INTO `master_customer` (`customer_id`, `business_name`, `first_name`, `middle_name`, `last_name`, `customer_type`, `dob`, `email`, `mobile`, `landline_no`, `abn`, `flat_no`, `street_no`, `street_name`, `suburb`, `state`, `pin`, `created_by`, `created_ts`, `updated_by`, `updated_ts`, `customer_status`) VALUES
(1, NULL, 'Sagew', 'Cruz', 'Wallace', 'I', '26/09/2019', 'ritib@gmail.com', '33434', '26', 'Aliqua Sit fugiat ', '12/98', 'Ut est minus quasi v', 'Odette Booker', 'Aut sint esse laudan', 'Eveniet ullamco duc', 748741, NULL, '0000-00-00 00:00:00', 1, '2019-09-18 08:41:12', 1),
(2, NULL, 'ANZ', '', 'BANK', 'I', '25/10/2019', 'qa@yopmail.com', '9888872222222', '98787922', '70124673212', 'sfdfdf', '789', 'sdds', 'asassacc', 'sfsfs', 700028, 1, '2019-10-15 08:32:32', 1, '2019-11-29 02:58:25', 1),
(3, NULL, 'PETER', '', 'QUIN', 'I', '07/02/2001', 'SMITH@GMAIL.COM', '0401402766', '0395408998', '9814071781', '', '25', 'YIANNIS CRT', 'SPRINGVALE', 'VICTORIA', 3169, 1, '2019-11-23 10:03:24', 1, '2019-11-26 07:00:43', 1),
(4, '', 'NAB', '', 'BANK', 'I', NULL, 'INFO@NAB.COM.AU', '12651616414', '', '12004044937', '', '123 ', 'CLAYTON RD', 'CLAYTON', 'VICTORIA', 3168, 1, '2019-11-29 08:25:13', 1, '2019-11-29 10:00:30', 1),
(5, 'BOM', 'BANK', 'OF', 'MELBOURNE', 'B', NULL, 'BOM@GMAIL.COM', '0431922455', '', '70124369852', '', '123', 'CLAYTON RD', 'CLAYTON', 'VICTORIA', 3168, 1, '2019-11-30 08:51:16', NULL, NULL, 1),
(6, 'AUTO GAS', 'MICHAEL', '', 'ARGO', 'B', NULL, 'FF@HOT.COM', '0401402766', '', '70124637212', '', '12', 'ORCHID', 'OAKLEIGH', 'VIC', 3148, 1, '2019-12-03 08:08:38', 1, '2019-12-03 09:47:44', 1);
--
-- Triggers `master_customer`
--
DELIMITER $$
CREATE TRIGGER `After_master_customer` AFTER INSERT ON `master_customer`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('add',New.created_by,'<i class="fa fa-plus-square" aria-hidden="true"></i>','New customer added',CONCAT('New Customer ',NEW.first_name,' ',ifnull(NEW.middle_name,''),' ',NEW.last_name,' added'),'admin/customer')
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `After_master_customer_update` AFTER UPDATE ON `master_customer`
FOR EACH ROW BEGIN
IF Old.customer_status = New.customer_status THEN
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('update',New. updated_by,'<i class="fa fa-pencil-square" aria-hidden="true"></i>',' Customer details update',CONCAT('Customer ',NEW.first_name,' ',ifnull(NEW.middle_name,''),' ',NEW.last_name,' details updated'),'admin/customer');
ELSE
IF New.customer_status = 0 THEN
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('Inactive',New. updated_by,'<i class="fa fa-thumbs-down" aria-hidden="true"></i>',' Customer gets inactive',CONCAT('Customer ',NEW.first_name,' ',ifnull(NEW.middle_name,''),' ',NEW.last_name,' get inactive'),'admin/customer');
ELSE
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('Active',New. updated_by,'<i class="fa fa-thumbs-up" aria-hidden="true"></i>',' Customer gets active',CONCAT('Customer active',NEW.first_name,' ',ifnull(NEW.middle_name,''),' ',NEW.last_name,' get active'),'admin/customer');
END IF;
END IF;
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `master_docket`
--
CREATE TABLE IF NOT EXISTS `master_docket` (
`docket_id` int(11) NOT NULL,
`docket_name` varchar(100) NOT NULL,
`is_active` bit(1) NOT NULL DEFAULT b'1' COMMENT '1=ative,0=inactive',
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `master_docket`
--
INSERT INTO `master_docket` (`docket_id`, `docket_name`, `is_active`, `created_by`, `created_ts`, `updated_by`, `updated_ts`) VALUES
(1, '13 Cabs', b'1', NULL, '2019-09-10 18:58:24', NULL, '2019-10-03 07:05:37'),
(2, 'CC', b'1', NULL, '2019-09-10 18:58:24', NULL, '2019-10-03 07:05:37'),
(3, 'Silver Top', b'1', NULL, '2019-09-10 18:58:24', NULL, '2019-10-03 07:05:37'),
(4, 'EFTPOS', b'1', NULL, '2019-09-10 18:58:24', NULL, '2019-10-03 07:05:37'),
(8, 'PURPLE DOCKET', b'1', 1, '2019-11-23 11:24:29', NULL, NULL);
--
-- Triggers `master_docket`
--
DELIMITER $$
CREATE TRIGGER `after_docket_add` AFTER INSERT ON `master_docket`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('add',New.created_by,'<i class="fa fa-plus-square" aria-hidden="true"></i>','New docket added',CONCAT('New docket - ',New.docket_name,' is added'),'admin/docket/')
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `after_docket_update` AFTER UPDATE ON `master_docket`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('update',New.updated_by,'<i class="fa fa-plus-pencile" aria-hidden="true"></i>','Docket details updated',CONCAT('Docket - ',New.docket_name,' details gets updated'),'admin/docket/')
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `master_expense`
--
CREATE TABLE IF NOT EXISTS `master_expense` (
`expense_id` int(11) NOT NULL,
`expense_name` varchar(100) NOT NULL,
`is_active` bit(1) NOT NULL DEFAULT b'1' COMMENT '1=ative,0=inactive',
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `master_expense`
--
INSERT INTO `master_expense` (`expense_id`, `expense_name`, `is_active`, `created_by`, `created_ts`, `updated_by`, `updated_ts`) VALUES
(1, 'Fuel', b'1', NULL, '2019-09-17 00:00:00', 1, '2019-11-12 07:41:30'),
(2, 'Breakdown', b'1', NULL, '2019-09-17 00:00:00', NULL, '2019-10-03 07:08:50'),
(3, 'Other', b'1', NULL, '2019-09-17 00:00:00', NULL, '2019-10-03 07:08:55');
--
-- Triggers `master_expense`
--
DELIMITER $$
CREATE TRIGGER `after _expense_updated` AFTER UPDATE ON `master_expense`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('update',New.updated_by,'<i class="fa fa-plus-pencile" aria-hidden="true"></i>','Expense details updated',CONCAT('Expense - ',New.expense_name,' details gets updated'),'admin/expense/')
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `after_expense_add` AFTER INSERT ON `master_expense`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('add',New.created_by,'<i class="fa fa-plus-square" aria-hidden="true"></i>','New expense added',concat('New expense',' - ',New.expense_name,' ', 'added'),'admin/expense')
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `master_fuel`
--
CREATE TABLE IF NOT EXISTS `master_fuel` (
`fuel_id` int(11) NOT NULL,
`fuel_name` varchar(100) NOT NULL,
`is_active` bit(1) NOT NULL DEFAULT b'1' COMMENT '1=ative,0=inactive',
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `master_fuel`
--
INSERT INTO `master_fuel` (`fuel_id`, `fuel_name`, `is_active`, `created_by`, `created_ts`, `updated_by`, `updated_ts`) VALUES
(1, 'Petrol', b'1', NULL, '0000-00-00 00:00:00', NULL, NULL),
(2, 'Diesel', b'1', NULL, '0000-00-00 00:00:00', NULL, '2019-10-24 08:36:54'),
(5, 'Hybrid + Petrol + Gas', b'1', NULL, '2019-10-24 00:00:00', NULL, '2019-10-24 08:37:21'),
(6, 'Hybrid + Petrol', b'1', NULL, '2019-10-24 00:00:00', NULL, NULL),
(7, 'LPG', b'1', NULL, '2019-10-24 00:00:00', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `master_levy`
--
CREATE TABLE IF NOT EXISTS `master_levy` (
`levy_id` int(11) NOT NULL,
`levy_rate` decimal(10,2) NOT NULL,
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of master_user',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of master_user',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `master_levy`
--
INSERT INTO `master_levy` (`levy_id`, `levy_rate`, `created_by`, `created_ts`, `updated_by`, `updated_ts`) VALUES
(1, '1.10', NULL, '2019-09-17 15:46:06', 1, '2019-11-14 07:24:16');
--
-- Triggers `master_levy`
--
DELIMITER $$
CREATE TRIGGER `AFTER_levy_UPDATED` AFTER UPDATE ON `master_levy`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('update',New.updated_by,'<i class="fa fa-plus-pencile" aria-hidden="true"></i>','Levy details updated','Levy details updated ','admin/settings/manage_levy')
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `master_lifting_fee`
--
CREATE TABLE IF NOT EXISTS `master_lifting_fee` (
`lifting_fee_id` int(11) NOT NULL,
`lifting_fee` decimal(10,2) NOT NULL,
`gtn_share` decimal(10,2) NOT NULL,
`driver_share` decimal(10,2) NOT NULL,
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of master_user',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of master_user',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `master_lifting_fee`
--
INSERT INTO `master_lifting_fee` (`lifting_fee_id`, `lifting_fee`, `gtn_share`, `driver_share`, `created_by`, `created_ts`, `updated_by`, `updated_ts`) VALUES
(1, '20.40', '6.80', '13.60', NULL, '2019-09-10 18:55:17', 1, '2019-11-12 08:05:14');
--
-- Triggers `master_lifting_fee`
--
DELIMITER $$
CREATE TRIGGER `after_lifting_fee_update` AFTER UPDATE ON `master_lifting_fee`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('update',New.updated_by,'<i class="fa fa-plus-pencile" aria-hidden="true"></i>','Lifting fee details updated','Lifting fee details updated','admin/settings/lifting')
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `master_log`
--
CREATE TABLE IF NOT EXISTS `master_log` (
`log_id` int(11) NOT NULL,
`action_type` varchar(255) NOT NULL,
`action_done_by` varchar(255) NOT NULL,
`icon` text NOT NULL,
`log_title` longtext NOT NULL,
`log_description` longtext NOT NULL,
`log_link` varchar(255) NOT NULL,
`log_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=289 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `master_log`
--
INSERT INTO `master_log` (`log_id`, `action_type`, `action_done_by`, `icon`, `log_title`, `log_description`, `log_link`, `log_dt`) VALUES
(1, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-03 16:02:03'),
(2, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver Kanak Sarkar - 123456 for shift: HUNGRYon 2019-12-03[Tuesday] with car - 4356M is set.', 'admin/roster', '2019-12-03 16:02:20'),
(3, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver Arindam Biswas - 55555 for shift: HUNGRYon 2019-12-03[Tuesday] with car - M0001 is set.', 'admin/roster', '2019-12-03 16:02:20'),
(4, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver lovedeep singh khangura - 522549 for shift: HUNGRYon 2019-12-03[Tuesday] with car - M1385 is set.', 'admin/roster', '2019-12-03 16:02:20'),
(5, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver Paramveer singh Dhaliwal - 500000 for shift: HUNGRYon 2019-12-03[Tuesday] with car - M1457 is set.', 'admin/roster', '2019-12-03 16:02:20'),
(6, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver james wood - 522500 for shift: HUNGRYon 2019-12-03[Tuesday] with car - M3293 is set.', 'admin/roster', '2019-12-03 16:02:21'),
(7, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver lovedeep singh khangura - 522549 details updated', 'admin/driver/driver_master_list', '2019-12-03 16:15:33'),
(8, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Kanak Sarkar - 123456 shift gets settled', 'admin/driver-settlement/list', '2019-12-03 16:18:10'),
(9, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver lovedeep singh khangura - 522549 shift gets settled', 'admin/driver-settlement/list', '2019-12-03 16:22:17'),
(10, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Arindam Biswas - 55555 details updated', 'admin/driver/driver_master_list', '2019-12-03 16:30:49'),
(11, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Arindam Biswas - 55555 details updated', 'admin/driver/driver_master_list', '2019-12-03 16:33:36'),
(12, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Arindam Biswas - 55555 shift gets settled', 'admin/driver-settlement/list', '2019-12-03 16:39:23'),
(13, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Arindam Biswas - 55555 details updated', 'admin/driver/driver_master_list', '2019-12-03 17:26:40'),
(14, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-03 17:27:29'),
(15, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-03 17:56:21'),
(16, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver james wood - 522500 details updated', 'admin/driver/driver_master_list', '2019-12-03 17:57:03'),
(17, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Car details updated', 'Car - M3293 details gets updated', 'admin/car', '2019-12-03 17:57:26'),
(18, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver james wood - 522500 details updated', 'admin/driver/driver_master_list', '2019-12-03 17:59:53'),
(19, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver james wood - 522500 details updated', 'admin/driver/driver_master_list', '2019-12-03 18:05:56'),
(20, 'agreement_generated', '1', '<i class="fa fa-file-text" aria-hidden="true"></i>', 'Driver Agreement Generated', 'Driver Adrian Danials - 556677 agreement gets generated', 'admin/driver/driver_master_list', '2019-12-03 18:11:36'),
(21, 'active', '1', '<i class="fa fa-thumbs-up" aria-hidden="true"></i>', 'Driver get active', 'Driver Adrian Danials - 556677 get active', 'admin/driver/driver_master_list', '2019-12-03 18:11:36'),
(22, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Adrian Danials - 556677 details updated', 'admin/driver/driver_master_list', '2019-12-03 18:52:53'),
(23, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Arindam Biswas - 55555 details updated', 'admin/driver/driver_master_list', '2019-12-03 18:55:26'),
(24, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: HUNGRY on 2019-12-03[Tuesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-03 18:56:10'),
(25, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Arindam Biswas - 55555 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-03 18:56:10'),
(26, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-03 18:56:10'),
(27, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Paramveer singh Dhaliwal - 500000 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1457 details get updated ', 'admin/roster', '2019-12-03 18:56:10'),
(28, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver james wood - 522500 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M3293 details get updated ', 'admin/roster', '2019-12-03 18:56:10'),
(29, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver Adrian Danials - 556677 for shift: HUNGRYon 2019-12-03[Tuesday] with car - M6293 is set.', 'admin/roster', '2019-12-03 18:56:10'),
(30, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Arindam Biswas - 55555 details updated', 'admin/driver/driver_master_list', '2019-12-03 18:56:54'),
(31, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Adrian Danials - 556677 details updated', 'admin/driver/driver_master_list', '2019-12-03 18:57:21'),
(32, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Adrian Danials - 556677 details updated', 'admin/driver/driver_master_list', '2019-12-03 18:57:37'),
(33, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Arindam Biswas - 55555 details updated', 'admin/driver/driver_master_list', '2019-12-03 19:02:30'),
(34, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Arindam Biswas - 55555 details updated', 'admin/driver/driver_master_list', '2019-12-03 19:02:37'),
(35, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Adrian Danials - 556677 details updated', 'admin/driver/driver_master_list', '2019-12-03 19:02:48'),
(36, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver james wood - 522500 details updated', 'admin/driver/driver_master_list', '2019-12-03 19:06:22'),
(37, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Adrian Danials - 556677 details updated', 'admin/driver/driver_master_list', '2019-12-03 19:07:55'),
(38, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Adrian Danials - 556677 details updated', 'admin/driver/driver_master_list', '2019-12-03 19:19:58'),
(39, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Adrian Danials - 556677 details updated', 'admin/driver/driver_master_list', '2019-12-03 19:22:10'),
(40, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Adrian Danials - 556677 details updated', 'admin/driver/driver_master_list', '2019-12-03 19:26:42'),
(41, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver james wood - 522500 details updated', 'admin/driver/driver_master_list', '2019-12-03 20:26:48'),
(42, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Adrian Danials - 556677 details updated', 'admin/driver/driver_master_list', '2019-12-03 20:26:51'),
(43, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver james wood - 522500 details updated', 'admin/driver/driver_master_list', '2019-12-03 20:32:54'),
(44, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver james wood - 522500 shift gets settled', 'admin/driver-settlement/list', '2019-12-03 20:38:07'),
(45, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver lovedeep singh khangura - 522549 details updated', 'admin/driver/driver_master_list', '2019-12-04 02:33:01'),
(46, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver lovedeep singh khangura - 522549 details updated', 'admin/driver/driver_master_list', '2019-12-04 08:35:05'),
(47, 'add', '8', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Driver add', 'A New driver matt foxwell - 522511 added', 'admin/driver', '2019-12-04 08:43:21'),
(48, 'agreement_generated', '1', '<i class="fa fa-file-text" aria-hidden="true"></i>', 'Driver Agreement Generated', 'Driver matt foxwell - 522511 agreement gets generated', 'admin/driver/driver_master_list', '2019-12-04 08:46:35'),
(49, 'active', '1', '<i class="fa fa-thumbs-up" aria-hidden="true"></i>', 'Driver get active', 'Driver matt foxwell - 522511 get active', 'admin/driver/driver_master_list', '2019-12-04 08:46:35'),
(50, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver matt foxwell - 522511 details updated', 'admin/driver/driver_master_list', '2019-12-04 08:51:27'),
(51, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver matt foxwell - 522511 details updated', 'admin/driver/driver_master_list', '2019-12-04 08:51:57'),
(52, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: HUNGRY on 2019-12-03[Tuesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-04 08:53:01'),
(53, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver matt foxwell - 522511 for shift: NIGHTon 2019-12-04[Wednesday] with car - 4356M is set.', 'admin/roster', '2019-12-04 08:53:01'),
(54, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Arindam Biswas - 55555 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-04 08:53:02'),
(55, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver lovedeep singh khangura - 522549 for shift: NIGHTon 2019-12-04[Wednesday] with car - M0001 is set.', 'admin/roster', '2019-12-04 08:53:02'),
(56, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-04 08:53:02'),
(57, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver Kanak Sarkar - 123456 for shift: NIGHTon 2019-12-04[Wednesday] with car - M1385 is set.', 'admin/roster', '2019-12-04 08:53:02'),
(58, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Paramveer singh Dhaliwal - 500000 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1457 details get updated ', 'admin/roster', '2019-12-04 08:53:02'),
(59, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver james wood - 522500 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M3293 details get updated ', 'admin/roster', '2019-12-04 08:53:02'),
(60, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Adrian Danials - 556677 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M6293 details get updated ', 'admin/roster', '2019-12-04 08:53:02'),
(61, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver matt foxwell - 522511 details updated', 'admin/driver/driver_master_list', '2019-12-04 08:56:28'),
(62, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver matt foxwell - 522511 shift gets settled', 'admin/driver-settlement/list', '2019-12-04 09:04:38'),
(63, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: HUNGRY on 2019-12-03[Tuesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-04 09:11:43'),
(64, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver matt foxwell - 522511 for shift: NIGHT on 2019-12-04[Wednesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-04 09:11:43'),
(65, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver matt foxwell - 522511 for shift: HUNGRYon 2019-12-05[Thursday] with car - 4356M is set.', 'admin/roster', '2019-12-04 09:11:43'),
(66, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Arindam Biswas - 55555 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-04 09:11:43'),
(67, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: NIGHT on 2019-12-04[Wednesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-04 09:11:43'),
(68, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-04 09:11:44'),
(69, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: NIGHT on 2019-12-04[Wednesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-04 09:11:44'),
(70, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Paramveer singh Dhaliwal - 500000 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1457 details get updated ', 'admin/roster', '2019-12-04 09:11:44'),
(71, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver james wood - 522500 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M3293 details get updated ', 'admin/roster', '2019-12-04 09:11:44'),
(72, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Adrian Danials - 556677 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M6293 details get updated ', 'admin/roster', '2019-12-04 09:11:44'),
(73, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver matt foxwell - 522511 details updated', 'admin/driver/driver_master_list', '2019-12-04 09:15:40'),
(74, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver matt foxwell - 522511 details updated', 'admin/driver/driver_master_list', '2019-12-04 09:15:43'),
(75, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver matt foxwell - 522511 details updated', 'admin/driver/driver_master_list', '2019-12-04 09:16:14'),
(76, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: HUNGRY on 2019-12-03[Tuesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-04 09:16:38'),
(77, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver Arindam Biswas - 55555 for shift: DAYon 2019-12-04[Wednesday] with car - 4356M is set.', 'admin/roster', '2019-12-04 09:16:38'),
(78, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver matt foxwell - 522511 for shift: NIGHT on 2019-12-04[Wednesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-04 09:16:38'),
(79, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver matt foxwell - 522511 for shift: HUNGRY on 2019-12-05[Thursday] with car - 4356M details get updated ', 'admin/roster', '2019-12-04 09:16:38'),
(80, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Arindam Biswas - 55555 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-04 09:16:38'),
(81, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: NIGHT on 2019-12-04[Wednesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-04 09:16:38'),
(82, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-04 09:16:38'),
(83, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: NIGHT on 2019-12-04[Wednesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-04 09:16:38'),
(84, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Paramveer singh Dhaliwal - 500000 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1457 details get updated ', 'admin/roster', '2019-12-04 09:16:39'),
(85, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver james wood - 522500 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M3293 details get updated ', 'admin/roster', '2019-12-04 09:16:39'),
(86, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Adrian Danials - 556677 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M6293 details get updated ', 'admin/roster', '2019-12-04 09:16:39'),
(87, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Arindam Biswas - 55555 details updated', 'admin/driver/driver_master_list', '2019-12-04 09:17:33'),
(88, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Arindam Biswas - 55555 details updated', 'admin/driver/driver_master_list', '2019-12-04 09:25:12'),
(89, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Arindam Biswas - 55555 shift gets settled', 'admin/driver-settlement/list', '2019-12-04 09:28:57'),
(90, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Arindam Biswas - 55555 details updated', 'admin/driver/driver_master_list', '2019-12-04 09:35:29'),
(91, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver lovedeep singh khangura - 522549 details updated', 'admin/driver/driver_master_list', '2019-12-04 09:35:44'),
(92, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver lovedeep singh khangura - 522549 shift gets settled', 'admin/driver-settlement/list', '2019-12-04 09:42:09'),
(93, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-04 10:01:57'),
(94, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-04 10:20:55'),
(95, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-04 14:59:23'),
(96, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-04 15:48:26'),
(97, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Kanak Sarkar - 123456 shift gets settled', 'admin/driver-settlement/list', '2019-12-04 17:35:06'),
(98, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Kanak Sarkar - 123456 shift gets settled', 'admin/driver-settlement/list', '2019-12-04 19:21:21'),
(99, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Kanak Sarkar - 123456 shift gets settled', 'admin/driver-settlement/list', '2019-12-05 05:42:55'),
(100, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Kanak Sarkar - 123456 shift gets settled', 'admin/driver-settlement/list', '2019-12-05 05:44:40'),
(101, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-05 05:49:02'),
(102, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver matt foxwell - 522511 details updated', 'admin/driver/driver_master_list', '2019-12-05 05:49:21'),
(103, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver matt foxwell - 522511 shift gets settled', 'admin/driver-settlement/list', '2019-12-05 05:58:00'),
(104, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver lovedeep singh khangura - 522549 details updated', 'admin/driver/driver_master_list', '2019-12-05 06:04:36'),
(105, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: HUNGRY on 2019-12-03[Tuesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 06:05:28'),
(106, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Arindam Biswas - 55555 for shift: DAY on 2019-12-04[Wednesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 06:05:28'),
(107, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver matt foxwell - 522511 for shift: NIGHT on 2019-12-04[Wednesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 06:05:28'),
(108, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver matt foxwell - 522511 for shift: HUNGRY on 2019-12-05[Thursday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 06:05:28'),
(109, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Arindam Biswas - 55555 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-05 06:05:28'),
(110, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: NIGHT on 2019-12-04[Wednesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-05 06:05:28'),
(111, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver lovedeep singh khangura - 522549 for shift: DAYon 2019-12-05[Thursday] with car - M0001 is set.', 'admin/roster', '2019-12-05 06:05:28'),
(112, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-05 06:05:28'),
(113, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: NIGHT on 2019-12-04[Wednesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-05 06:05:28'),
(114, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Paramveer singh Dhaliwal - 500000 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1457 details get updated ', 'admin/roster', '2019-12-05 06:05:28'),
(115, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver james wood - 522500 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M3293 details get updated ', 'admin/roster', '2019-12-05 06:05:28'),
(116, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Adrian Danials - 556677 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M6293 details get updated ', 'admin/roster', '2019-12-05 06:05:29'),
(117, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver lovedeep singh khangura - 522549 details updated', 'admin/driver/driver_master_list', '2019-12-05 06:05:57'),
(118, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Adrian Danials - 556677 details updated', 'admin/driver/driver_master_list', '2019-12-05 11:58:00'),
(119, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: HUNGRY on 2019-12-03[Tuesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 11:59:52'),
(120, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Arindam Biswas - 55555 for shift: DAY on 2019-12-04[Wednesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 11:59:52'),
(121, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver matt foxwell - 522511 for shift: NIGHT on 2019-12-04[Wednesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 11:59:52'),
(122, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver matt foxwell - 522511 for shift: HUNGRY on 2019-12-05[Thursday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 11:59:52'),
(123, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Arindam Biswas - 55555 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-05 11:59:52'),
(124, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: NIGHT on 2019-12-04[Wednesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-05 11:59:52'),
(125, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: DAY on 2019-12-05[Thursday] with car - M0001 details get updated ', 'admin/roster', '2019-12-05 11:59:52'),
(126, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-05 11:59:52'),
(127, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: NIGHT on 2019-12-04[Wednesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-05 11:59:53'),
(128, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver Adrian Danials - 556677 for shift: DAYon 2019-12-05[Thursday] with car - M1385 is set.', 'admin/roster', '2019-12-05 11:59:53'),
(129, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Paramveer singh Dhaliwal - 500000 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1457 details get updated ', 'admin/roster', '2019-12-05 11:59:53'),
(130, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver james wood - 522500 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M3293 details get updated ', 'admin/roster', '2019-12-05 11:59:53'),
(131, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Adrian Danials - 556677 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M6293 details get updated ', 'admin/roster', '2019-12-05 11:59:53'),
(132, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver matt foxwell - 522511 shift gets settled', 'admin/driver-settlement/list', '2019-12-05 12:02:05'),
(133, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Kanak Sarkar - 123456 shift gets settled', 'admin/driver-settlement/list', '2019-12-05 12:12:19'),
(134, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Kanak Sarkar - 123456 shift gets settled', 'admin/driver-settlement/list', '2019-12-05 12:16:31'),
(135, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Adrian Danials - 556677 details updated', 'admin/driver/driver_master_list', '2019-12-05 12:20:04'),
(136, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Adrian Danials - 556677 shift gets settled', 'admin/driver-settlement/list', '2019-12-05 12:25:39'),
(137, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Adrian Danials - 556677 shift gets settled', 'admin/driver-settlement/list', '2019-12-05 12:55:18'),
(138, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Adrian Danials - 556677 shift gets settled', 'admin/driver-settlement/list', '2019-12-05 12:55:39'),
(139, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Adrian Danials - 556677 shift gets settled', 'admin/driver-settlement/list', '2019-12-05 12:56:07'),
(140, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Adrian Danials - 556677 shift gets settled', 'admin/driver-settlement/list', '2019-12-05 13:15:17'),
(141, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Kanak Sarkar - 123456 shift gets settled', 'admin/driver-settlement/list', '2019-12-05 15:41:40'),
(142, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Kanak Sarkar - 123456 shift gets settled', 'admin/driver-settlement/list', '2019-12-05 15:47:03'),
(143, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Kanak Sarkar - 123456 shift gets settled', 'admin/driver-settlement/list', '2019-12-05 16:03:50'),
(144, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Adrian Danials - 556677 details updated', 'admin/driver/driver_master_list', '2019-12-05 16:06:11'),
(145, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-05 16:09:03'),
(146, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: HUNGRY on 2019-12-03[Tuesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 16:11:04'),
(147, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Arindam Biswas - 55555 for shift: DAY on 2019-12-04[Wednesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 16:11:04'),
(148, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver matt foxwell - 522511 for shift: NIGHT on 2019-12-04[Wednesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 16:11:04'),
(149, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver matt foxwell - 522511 for shift: HUNGRY on 2019-12-05[Thursday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 16:11:04'),
(150, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Arindam Biswas - 55555 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-05 16:11:04'),
(151, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: NIGHT on 2019-12-04[Wednesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-05 16:11:04'),
(152, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: DAY on 2019-12-05[Thursday] with car - M0001 details get updated ', 'admin/roster', '2019-12-05 16:11:04'),
(153, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-05 16:11:04'),
(154, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: NIGHT on 2019-12-04[Wednesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-05 16:11:04'),
(155, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Adrian Danials - 556677 for shift: DAY on 2019-12-05[Thursday] with car - M1385 details get updated ', 'admin/roster', '2019-12-05 16:11:04'),
(156, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Paramveer singh Dhaliwal - 500000 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1457 details get updated ', 'admin/roster', '2019-12-05 16:11:04'),
(157, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver Kanak Sarkar - 123456 for shift: DAYon 2019-12-05[Thursday] with car - M1457 is set.', 'admin/roster', '2019-12-05 16:11:05'),
(158, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver james wood - 522500 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M3293 details get updated ', 'admin/roster', '2019-12-05 16:11:05'),
(159, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Adrian Danials - 556677 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M6293 details get updated ', 'admin/roster', '2019-12-05 16:11:05'),
(160, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: HUNGRY on 2019-12-03[Tuesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 16:17:51'),
(161, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Arindam Biswas - 55555 for shift: DAY on 2019-12-04[Wednesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 16:17:51'),
(162, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver matt foxwell - 522511 for shift: NIGHT on 2019-12-04[Wednesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 16:17:51'),
(163, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver matt foxwell - 522511 for shift: HUNGRY on 2019-12-05[Thursday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 16:17:51'),
(164, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Arindam Biswas - 55555 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-05 16:17:51'),
(165, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: NIGHT on 2019-12-04[Wednesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-05 16:17:51'),
(166, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: DAY on 2019-12-05[Thursday] with car - M0001 details get updated ', 'admin/roster', '2019-12-05 16:17:51'),
(167, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-05 16:17:51'),
(168, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: NIGHT on 2019-12-04[Wednesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-05 16:17:51'),
(169, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Adrian Danials - 556677 for shift: DAY on 2019-12-05[Thursday] with car - M1385 details get updated ', 'admin/roster', '2019-12-05 16:17:51'),
(170, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Paramveer singh Dhaliwal - 500000 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1457 details get updated ', 'admin/roster', '2019-12-05 16:17:51'),
(171, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: DAY on 2019-12-05[Thursday] with car - M1457 details get updated ', 'admin/roster', '2019-12-05 16:17:51'),
(172, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver Kanak Sarkar - 123456 for shift: DAYon 2019-12-06[Friday] with car - M1457 is set.', 'admin/roster', '2019-12-05 16:17:51'),
(173, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver Kanak Sarkar - 123456 for shift: DAYon 2019-12-07[Saturday] with car - M1457 is set.', 'admin/roster', '2019-12-05 16:17:51'),
(174, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver Kanak Sarkar - 123456 for shift: DAYon 2019-12-08[Sunday] with car - M1457 is set.', 'admin/roster', '2019-12-05 16:17:51'),
(175, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver james wood - 522500 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M3293 details get updated ', 'admin/roster', '2019-12-05 16:17:51'),
(176, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Adrian Danials - 556677 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M6293 details get updated ', 'admin/roster', '2019-12-05 16:17:51'),
(177, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Kanak Sarkar - 123456 shift gets settled', 'admin/driver-settlement/list', '2019-12-05 16:27:23'),
(178, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Kanak Sarkar - 123456 shift gets settled', 'admin/driver-settlement/list', '2019-12-05 18:03:46'),
(179, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Kanak Sarkar - 123456 shift gets settled', 'admin/driver-settlement/list', '2019-12-05 18:14:52'),
(180, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-05 18:53:22'),
(181, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-05 19:05:29'),
(182, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-05 19:22:01'),
(183, 'add', '9', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Driver add', 'A New driver Bishal Shaw - 112233 added', 'admin/driver', '2019-12-05 19:35:49'),
(184, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Bishal Shaw - 112233 details updated', 'admin/driver', '2019-12-05 19:37:38'),
(185, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-05 19:38:23'),
(186, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Bishal Shaw - 112233 details updated', 'admin/driver', '2019-12-05 19:39:38'),
(187, 'agreement_generated', '1', '<i class="fa fa-file-text" aria-hidden="true"></i>', 'Driver Agreement Generated', 'Driver Bishal Shaw - 112233 agreement gets generated', 'admin/driver/driver_master_list', '2019-12-05 19:52:13'),
(188, 'active', '1', '<i class="fa fa-thumbs-up" aria-hidden="true"></i>', 'Driver get active', 'Driver Bishal Shaw - 112233 get active', 'admin/driver/driver_master_list', '2019-12-05 19:52:13'),
(189, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Bishal Shaw - 112233 details updated', 'admin/driver/driver_master_list', '2019-12-05 19:56:19'),
(190, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: HUNGRY on 2019-12-03[Tuesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 19:56:42'),
(191, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Arindam Biswas - 55555 for shift: DAY on 2019-12-04[Wednesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 19:56:42'),
(192, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver matt foxwell - 522511 for shift: NIGHT on 2019-12-04[Wednesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 19:56:42'),
(193, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver matt foxwell - 522511 for shift: HUNGRY on 2019-12-05[Thursday] with car - 4356M details get updated ', 'admin/roster', '2019-12-05 19:56:42'),
(194, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Arindam Biswas - 55555 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-05 19:56:42'),
(195, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: NIGHT on 2019-12-04[Wednesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-05 19:56:42'),
(196, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: DAY on 2019-12-05[Thursday] with car - M0001 details get updated ', 'admin/roster', '2019-12-05 19:56:42'),
(197, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-05 19:56:42'),
(198, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: NIGHT on 2019-12-04[Wednesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-05 19:56:42'),
(199, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Adrian Danials - 556677 for shift: DAY on 2019-12-05[Thursday] with car - M1385 details get updated ', 'admin/roster', '2019-12-05 19:56:42'),
(200, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Paramveer singh Dhaliwal - 500000 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1457 details get updated ', 'admin/roster', '2019-12-05 19:56:42'),
(201, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: DAY on 2019-12-05[Thursday] with car - M1457 details get updated ', 'admin/roster', '2019-12-05 19:56:42'),
(202, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: DAY on 2019-12-06[Friday] with car - M1457 details get updated ', 'admin/roster', '2019-12-05 19:56:42'),
(203, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: DAY on 2019-12-07[Saturday] with car - M1457 details get updated ', 'admin/roster', '2019-12-05 19:56:42'),
(204, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: DAY on 2019-12-08[Sunday] with car - M1457 details get updated ', 'admin/roster', '2019-12-05 19:56:42'),
(205, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver james wood - 522500 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M3293 details get updated ', 'admin/roster', '2019-12-05 19:56:42'),
(206, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Adrian Danials - 556677 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M6293 details get updated ', 'admin/roster', '2019-12-05 19:56:43'),
(207, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver Bishal Shaw - 112233 for shift: HUNGRYon 2019-12-05[Thursday] with car - M9058 is set.', 'admin/roster', '2019-12-05 19:56:43'),
(208, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Bishal Shaw - 112233 details updated', 'admin/driver/driver_master_list', '2019-12-05 20:00:56');
INSERT INTO `master_log` (`log_id`, `action_type`, `action_done_by`, `icon`, `log_title`, `log_description`, `log_link`, `log_dt`) VALUES
(209, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Bishal Shaw - 112233 details updated', 'admin/driver/driver_master_list', '2019-12-05 20:01:17'),
(210, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Bishal Shaw - 112233 details updated', 'admin/driver/driver_master_list', '2019-12-05 20:03:43'),
(211, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Bishal Shaw - 112233 details updated', 'admin/driver/driver_master_list', '2019-12-05 20:05:27'),
(212, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Bishal Shaw - 112233 details updated', 'admin/driver/driver_master_list', '2019-12-05 20:07:08'),
(213, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Bishal Shaw - 112233 details updated', 'admin/driver/driver_master_list', '2019-12-05 20:07:32'),
(214, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Bishal Shaw - 112233 details updated', 'admin/driver/driver_master_list', '2019-12-05 20:07:36'),
(215, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Bishal Shaw - 112233 details updated', 'admin/driver/driver_master_list', '2019-12-05 20:16:40'),
(216, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver Bishal Shaw - 112233 shift gets settled', 'admin/driver-settlement/list', '2019-12-05 20:18:01'),
(217, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Bishal Shaw - 112233 details updated', 'admin/driver/driver_master_list', '2019-12-06 06:11:48'),
(218, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: HUNGRY on 2019-12-03[Tuesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-06 06:21:52'),
(219, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Arindam Biswas - 55555 for shift: DAY on 2019-12-04[Wednesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-06 06:21:52'),
(220, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver matt foxwell - 522511 for shift: NIGHT on 2019-12-04[Wednesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-06 06:21:52'),
(221, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver matt foxwell - 522511 for shift: HUNGRY on 2019-12-05[Thursday] with car - 4356M details get updated ', 'admin/roster', '2019-12-06 06:21:52'),
(222, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver lovedeep singh khangura - 522549 for shift: DAYon 2019-12-06[Friday] with car - 4356M is set.', 'admin/roster', '2019-12-06 06:21:52'),
(223, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Arindam Biswas - 55555 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-06 06:21:52'),
(224, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: NIGHT on 2019-12-04[Wednesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-06 06:21:52'),
(225, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: DAY on 2019-12-05[Thursday] with car - M0001 details get updated ', 'admin/roster', '2019-12-06 06:21:52'),
(226, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver matt foxwell - 522511 for shift: DAYon 2019-12-06[Friday] with car - M0001 is set.', 'admin/roster', '2019-12-06 06:21:52'),
(227, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-06 06:21:53'),
(228, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: NIGHT on 2019-12-04[Wednesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-06 06:21:53'),
(229, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Adrian Danials - 556677 for shift: DAY on 2019-12-05[Thursday] with car - M1385 details get updated ', 'admin/roster', '2019-12-06 06:21:53'),
(230, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Paramveer singh Dhaliwal - 500000 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1457 details get updated ', 'admin/roster', '2019-12-06 06:21:53'),
(231, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: DAY on 2019-12-05[Thursday] with car - M1457 details get updated ', 'admin/roster', '2019-12-06 06:21:53'),
(232, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: DAY on 2019-12-06[Friday] with car - M1457 details get updated ', 'admin/roster', '2019-12-06 06:21:53'),
(233, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: DAY on 2019-12-07[Saturday] with car - M1457 details get updated ', 'admin/roster', '2019-12-06 06:21:53'),
(234, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: DAY on 2019-12-08[Sunday] with car - M1457 details get updated ', 'admin/roster', '2019-12-06 06:21:53'),
(235, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver james wood - 522500 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M3293 details get updated ', 'admin/roster', '2019-12-06 06:21:53'),
(236, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Adrian Danials - 556677 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M6293 details get updated ', 'admin/roster', '2019-12-06 06:21:53'),
(237, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Bishal Shaw - 112233 for shift: HUNGRY on 2019-12-05[Thursday] with car - M9058 details get updated ', 'admin/roster', '2019-12-06 06:21:53'),
(238, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Bishal Shaw - 112233 details updated', 'admin/driver/driver_master_list', '2019-12-06 06:22:13'),
(239, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver lovedeep singh khangura - 522549 details updated', 'admin/driver/driver_master_list', '2019-12-06 06:22:29'),
(240, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver lovedeep singh khangura - 522549 details updated', 'admin/driver/driver_master_list', '2019-12-06 06:31:46'),
(241, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver lovedeep singh khangura - 522549 shift gets settled', 'admin/driver-settlement/list', '2019-12-06 06:40:07'),
(242, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver lovedeep singh khangura - 522549 shift gets settled', 'admin/driver-settlement/list', '2019-12-06 06:42:51'),
(243, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver lovedeep singh khangura - 522549 shift gets settled', 'admin/driver-settlement/list', '2019-12-06 06:44:11'),
(244, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver lovedeep singh khangura - 522549 shift gets settled', 'admin/driver-settlement/list', '2019-12-06 06:57:26'),
(245, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver lovedeep singh khangura - 522549 details updated', 'admin/driver/driver_master_list', '2019-12-06 06:59:26'),
(246, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver matt foxwell - 522511 details updated', 'admin/driver/driver_master_list', '2019-12-06 07:02:44'),
(247, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver matt foxwell - 522511 shift gets settled', 'admin/driver-settlement/list', '2019-12-06 07:08:23'),
(248, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver matt foxwell - 522511 shift gets settled', 'admin/driver-settlement/list', '2019-12-06 07:11:31'),
(249, 'driver_settlement', '1', '<i class="fa fa-id-card-o" aria-hidden="true"></i>', 'Driver settlement', 'Driver matt foxwell - 522511 shift gets settled', 'admin/driver-settlement/list', '2019-12-06 07:12:46'),
(250, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-06 07:15:43'),
(251, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-06 07:17:17'),
(252, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-06 08:15:47'),
(253, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-06 08:15:50'),
(254, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-06 08:17:05'),
(255, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-06 08:17:08'),
(256, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-06 08:20:43'),
(257, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-06 08:20:46'),
(258, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-06 08:48:06'),
(259, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-06 09:52:18'),
(260, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-06 09:53:09'),
(261, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-06 09:53:26'),
(262, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-06 10:18:39'),
(263, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-06 10:22:44'),
(264, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Bishal Shaw - 112233 details updated', 'admin/driver/driver_master_list', '2019-12-06 11:29:24'),
(265, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Kanak Sarkar - 123456 details updated', 'admin/driver/driver_master_list', '2019-12-06 11:30:39'),
(266, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: HUNGRY on 2019-12-03[Tuesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-06 11:32:02'),
(267, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Arindam Biswas - 55555 for shift: DAY on 2019-12-04[Wednesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-06 11:32:02'),
(268, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver matt foxwell - 522511 for shift: NIGHT on 2019-12-04[Wednesday] with car - 4356M details get updated ', 'admin/roster', '2019-12-06 11:32:02'),
(269, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver matt foxwell - 522511 for shift: HUNGRY on 2019-12-05[Thursday] with car - 4356M details get updated ', 'admin/roster', '2019-12-06 11:32:02'),
(270, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: DAY on 2019-12-06[Friday] with car - 4356M details get updated ', 'admin/roster', '2019-12-06 11:32:02'),
(271, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Arindam Biswas - 55555 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-06 11:32:02'),
(272, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: NIGHT on 2019-12-04[Wednesday] with car - M0001 details get updated ', 'admin/roster', '2019-12-06 11:32:02'),
(273, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: DAY on 2019-12-05[Thursday] with car - M0001 details get updated ', 'admin/roster', '2019-12-06 11:32:02'),
(274, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver matt foxwell - 522511 for shift: DAY on 2019-12-06[Friday] with car - M0001 details get updated ', 'admin/roster', '2019-12-06 11:32:02'),
(275, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver lovedeep singh khangura - 522549 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-06 11:32:02'),
(276, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: NIGHT on 2019-12-04[Wednesday] with car - M1385 details get updated ', 'admin/roster', '2019-12-06 11:32:02'),
(277, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Adrian Danials - 556677 for shift: DAY on 2019-12-05[Thursday] with car - M1385 details get updated ', 'admin/roster', '2019-12-06 11:32:02'),
(278, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Paramveer singh Dhaliwal - 500000 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M1457 details get updated ', 'admin/roster', '2019-12-06 11:32:02'),
(279, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: DAY on 2019-12-05[Thursday] with car - M1457 details get updated ', 'admin/roster', '2019-12-06 11:32:03'),
(280, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: DAY on 2019-12-06[Friday] with car - M1457 details get updated ', 'admin/roster', '2019-12-06 11:32:03'),
(281, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: DAY on 2019-12-07[Saturday] with car - M1457 details get updated ', 'admin/roster', '2019-12-06 11:32:03'),
(282, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Kanak Sarkar - 123456 for shift: DAY on 2019-12-08[Sunday] with car - M1457 details get updated ', 'admin/roster', '2019-12-06 11:32:03'),
(283, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver james wood - 522500 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M3293 details get updated ', 'admin/roster', '2019-12-06 11:32:03'),
(284, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Adrian Danials - 556677 for shift: HUNGRY on 2019-12-03[Tuesday] with car - M6293 details get updated ', 'admin/roster', '2019-12-06 11:32:03'),
(285, 'update', '1', '<i class="fa fa-plus-pencil" aria-hidden="true"></i>', 'Roster details updated', 'Roster for driver Bishal Shaw - 112233 for shift: HUNGRY on 2019-12-05[Thursday] with car - M9058 details get updated ', 'admin/roster', '2019-12-06 11:32:03'),
(286, 'add', '1', '<i class="fa fa-plus-square" aria-hidden="true"></i>', 'Roster add', 'A new roster for driver Bishal Shaw - 112233 for shift: DAYon 2019-12-06[Friday] with car - M9058 is set.', 'admin/roster', '2019-12-06 11:32:03'),
(287, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Bishal Shaw - 112233 details updated', 'admin/driver/driver_master_list', '2019-12-06 11:39:28'),
(288, 'update', '1', '<i class="fa fa-pencil-square" aria-hidden="true"></i>', 'Driver details updated', 'Driver Bishal Shaw - 112233 details updated', 'admin/driver/driver_master_list', '2019-12-06 11:39:53');
-- --------------------------------------------------------
--
-- Table structure for table `master_menu`
--
CREATE TABLE IF NOT EXISTS `master_menu` (
`menu_id` int(11) NOT NULL,
`parent_id` int(11) DEFAULT NULL,
`menu_name` varchar(100) DEFAULT NULL,
`menu_link` varchar(500) DEFAULT NULL,
`menu_rank` decimal(6,2) DEFAULT NULL,
`action` varchar(100) DEFAULT NULL,
`menu_icon` varchar(255) DEFAULT NULL,
`is_active` bit(1) NOT NULL DEFAULT b'1' COMMENT '1 = active , inactive = 0'
) ENGINE=InnoDB AUTO_INCREMENT=68 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `master_menu`
--
INSERT INTO `master_menu` (`menu_id`, `parent_id`, `menu_name`, `menu_link`, `menu_rank`, `action`, `menu_icon`, `is_active`) VALUES
(1, 0, 'Driver', NULL, '2.00', 'driver', '<i class="fa fa-user" aria-hidden="true"></i>', b'1'),
(2, 1, 'New Registration', 'admin/driver', '2.10', 'driver', NULL, b'1'),
(3, 1, 'Manage Driver', 'admin/driver/driver_master_list', '2.20', 'driver_master_list', '', b'1'),
(4, 0, 'Company', NULL, '3.10', 'company', '<i class="fa fa-building-o" aria-hidden="true"></i>', b'1'),
(5, 4, 'Company Master', 'admin/company/addcompany', '3.20', NULL, NULL, b'1'),
(6, 4, 'Company Master List', 'admin/company', '3.10', NULL, NULL, b'1'),
(7, 0, 'Customer', NULL, '4.00', NULL, '<i class="fa fa-user-plus" aria-hidden="true"></i>', b'1'),
(8, 7, 'Customer Master', 'admin/customer/addcustomer', '4.10', NULL, NULL, b'1'),
(9, 7, 'Customer List', 'admin/customer', '4.20', NULL, NULL, b'1'),
(10, 0, 'Question', NULL, '5.00', NULL, '<i class="fa fa-question" aria-hidden="true"></i>', b'1'),
(11, 10, 'Add Question', 'admin/settings/addquestion', '5.10', NULL, '', b'1'),
(12, 10, 'Question List', 'admin/settings/question', '5.20', NULL, NULL, b'1'),
(13, 0, 'Car Master', NULL, '6.00', NULL, '<i class="fa fa-car" aria-hidden="true"></i>', b'1'),
(14, 13, 'Car Master', 'admin/car/addcar', '6.10', NULL, NULL, b'1'),
(15, 13, 'Car Master List', 'admin/car', '6.20', NULL, NULL, b'1'),
(16, 0, 'Manage Role', NULL, '7.00', NULL, '<i class="fa fa-book" aria-hidden="true"></i>', b'1'),
(17, 0, 'Dashboard', 'admin/dashboard', '1.00', NULL, '<i class="icon-home"></i>', b'1'),
(18, 16, 'Role Master', 'admin/role/addrole', '7.10', NULL, NULL, b'1'),
(19, 16, 'Role Master List', 'admin/role', '7.20', NULL, NULL, b'1'),
(20, 0, 'User Permission', 'admin/user-permission', '9.00', NULL, '<i class="fa fa-check-circle-o" aria-hidden="true"></i>', b'0'),
(21, 0, 'Manage Docket', NULL, '10.00', NULL, '<i class="fa fa-file-text" aria-hidden="true"></i>', b'1'),
(22, 21, 'Docket Master', 'admin/docket/adddocket', '10.10', NULL, NULL, b'1'),
(23, 21, 'Docket Master List', 'admin/docket/', '10.20', 'docket', NULL, b'1'),
(24, 0, 'Manage Expense', NULL, '11.00', NULL, '<i class="fa fa-file-text" aria-hidden="true"></i>', b'1'),
(25, 24, 'Expense List', 'admin/expense', '11.10', NULL, NULL, b'1'),
(26, 0, 'Report', NULL, '12.00', NULL, '<i class="fa fa-list-alt" aria-hidden="true"></i>', b'1'),
(27, 26, 'Levy Report', 'admin/report/levy', '12.10', NULL, NULL, b'1'),
(28, 26, 'Meter Reading', 'admin/report/meter_reading', '12.20', NULL, NULL, b'1'),
(29, 26, 'Income Report', 'admin/report/income_report', '12.30', NULL, NULL, b'1'),
(30, 26, 'Driver Income', 'admin/report/driver_income_report', '12.40', NULL, NULL, b'1'),
(31, 26, 'Bond Report', 'admin/bond-report', '12.50', NULL, NULL, b'1'),
(32, 26, 'Settlement Due Report', 'admin/report/settlement_due', '12.60', NULL, NULL, b'1'),
(33, 26, 'Docket Report', 'admin/docket-report', '12.70', NULL, NULL, b'1'),
(34, 26, 'Service Notification', 'admin/report/service_notification', '12.80', NULL, NULL, b'1'),
(35, 26, 'Accident Report', 'admin/accident-report', '12.90', NULL, NULL, b'1'),
(36, 0, 'Settings', NULL, '13.00', NULL, '<i class="fa fa-cog" aria-hidden="true"></i>', b'1'),
(37, 36, 'Manage Lifting Fees', 'admin/settings/lifting', '13.10', NULL, NULL, b'1'),
(38, 36, 'Manage Levy Rate', 'admin/settings/manage_levy', '13.20', NULL, NULL, b'1'),
(39, 36, 'Commission Setup', 'admin/settings/commission_list', '13.30', NULL, NULL, b'1'),
(40, 36, 'Accident Charge Setup', 'admin/settings/accident_charge', '13.40', NULL, NULL, b'1'),
(41, 36, 'Breakdown Alert Number', 'admin/settings/breakdown_alert', '13.50', NULL, NULL, b'1'),
(43, 0, 'Track Driver', 'admin/track_driver', '14.00', NULL, '<i class="fa fa-map-marker" aria-hidden="true"></i>', b'1'),
(45, 58, 'Driver Settlement', 'admin/driver-settlement', '15.00', NULL, '', b'1'),
(46, 0, 'Manage Inspection', 'admin/settings/isnspection', '16.00', NULL, '<i class="fa fa-search" aria-hidden="true"></i>', b'1'),
(47, 0, 'Manage Accident', 'admin/settings/manageaccident', '17.00', NULL, '<i class="fa fa-history" aria-hidden="true"></i>', b'1'),
(48, 0, 'Bond Refund Procedure', 'admin/driver-refund-settlement', '18.00', NULL, '<i class="fa fa-th-list" aria-hidden="true"></i>', b'1'),
(50, 0, 'Daily Settlement', 'admin/dailysettlement', '19.00', NULL, '<i class="fa fa-table" aria-hidden="true"></i>', b'1'),
(51, 0, 'Manage User ', NULL, '8.00', NULL, '<i class="fa fa-users" aria-hidden="true"></i>', b'1'),
(52, 51, 'Staff Sub Admin', 'admin/user/addsubadmin', '8.10', NULL, NULL, b'1'),
(53, 51, 'Staff Sub Admin List', 'admin/user', '8.20', NULL, NULL, b'1'),
(54, 0, 'Manage CMS', NULL, '20.00', NULL, '<i class="fa fa-file-text" aria-hidden="true"></i>', b'1'),
(55, 54, 'Page List', 'admin/cms', '20.10', NULL, '', b'1'),
(56, 0, 'Manage Roster', NULL, '21.00', NULL, '<i class="fa fa-file-text" aria-hidden="true"></i>', b'1'),
(57, 56, 'Set Roster ', 'admin/roster', '21.10', NULL, '', b'1'),
(58, 0, 'Driver Settlement', NULL, '15.00', NULL, '<i class="fa fa-id-card" aria-hidden="true"></i>', b'1'),
(59, 58, 'Driver Settlement List', 'admin/driver-settlement/list', '15.20', NULL, NULL, b'1'),
(60, 56, 'View Roster ', 'admin/roster/view_roster', '21.20', NULL, '', b'1'),
(62, 0, 'Activity Log', 'admin/log', '22.00', NULL, '<i class="fa fa-list" aria-hidden="true"></i>', b'1'),
(64, 0, 'Notification list', 'admin/notification', '23.00', NULL, '<i class="fa fa-flag" aria-hidden="true"></i>', b'1'),
(65, 26, 'Customer Report', 'admin/report/customer_statement', '12.91', NULL, NULL, b'1'),
(66, 0, 'Bank transfer', 'admin/report/bank_transfer', '24.00', NULL, '<i class="fa fa-cc-mastercard" aria-hidden="true"></i>\r\n', b'1'),
(67, 36, 'Bond Setup', 'admin/settings/bond_setup', '13.60', NULL, NULL, b'1');
-- --------------------------------------------------------
--
-- Table structure for table `master_misc_setup`
--
CREATE TABLE IF NOT EXISTS `master_misc_setup` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL COMMENT 'driver_id',
`charges` varchar(255) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL COMMENT '0->Other Charges,1->Docket Return',
`setup_date` varchar(255) NOT NULL,
`remarks` varchar(255) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
`status` int(11) NOT NULL DEFAULT '1' COMMENT '0->inactive,1->active',
`is_delete` int(11) NOT NULL DEFAULT '0',
`created_on` date NOT NULL,
`updated_on` date NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `master_misc_setup`
--
INSERT INTO `master_misc_setup` (`id`, `user_id`, `charges`, `setup_date`, `remarks`, `status`, `is_delete`, `created_on`, `updated_on`) VALUES
(1, 16, '0', '16/09/2019', 'test', 1, 0, '2019-09-13', '0000-00-00');
-- --------------------------------------------------------
--
-- Table structure for table `master_network`
--
CREATE TABLE IF NOT EXISTS `master_network` (
`network_id` int(11) NOT NULL,
`network_name` varchar(100) NOT NULL,
`is_active` bit(1) NOT NULL DEFAULT b'1' COMMENT '1=ative,0=inactive',
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `master_network`
--
INSERT INTO `master_network` (`network_id`, `network_name`, `is_active`, `created_by`, `created_ts`, `updated_by`, `updated_ts`) VALUES
(1, '13 CABS', b'1', NULL, '0000-00-00 00:00:00', NULL, NULL),
(2, 'SILVERTOP', b'1', NULL, '0000-00-00 00:00:00', NULL, NULL),
(3, 'OTHERS', b'1', NULL, '0000-00-00 00:00:00', NULL, NULL),
(4, 'PUNJAB CABS', b'1', NULL, '0000-00-00 00:00:00', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `master_payment_method`
--
CREATE TABLE IF NOT EXISTS `master_payment_method` (
`payment_method_id` int(11) NOT NULL,
`payment_method` varchar(255) NOT NULL,
`created_on` date NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `master_payment_method`
--
INSERT INTO `master_payment_method` (`payment_method_id`, `payment_method`, `created_on`) VALUES
(1, 'Credit card', '2019-10-03'),
(2, 'Bank Transfer', '2019-10-03'),
(3, 'Cash', '2019-10-03');
-- --------------------------------------------------------
--
-- Table structure for table `master_question`
--
CREATE TABLE IF NOT EXISTS `master_question` (
`question_id` int(11) NOT NULL,
`question` varchar(255) NOT NULL,
`is_active` bit(1) NOT NULL DEFAULT b'1' COMMENT '1=ative,0=inactive',
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `master_question`
--
INSERT INTO `master_question` (`question_id`, `question`, `is_active`, `created_by`, `created_ts`, `updated_by`, `updated_ts`) VALUES
(1, 'LHF TYRE is Ok?', b'0', NULL, '2019-09-11 17:05:49', NULL, '2019-11-23 04:50:48'),
(2, 'RHF TYRE is ok?', b'1', NULL, '2019-09-17 07:43:26', NULL, '2019-10-02 09:58:37'),
(3, 'If you''re approaching an unmanned railway crossing, what should you do?Cross or Not? ', b'0', NULL, '2019-10-10 08:46:20', NULL, '2019-11-09 01:22:48'),
(4, 'LH REAR TYRE - IS IT OK', b'1', NULL, '2019-10-10 08:48:24', NULL, '2019-11-09 01:23:19');
-- --------------------------------------------------------
--
-- Table structure for table `master_role`
--
CREATE TABLE IF NOT EXISTS `master_role` (
`role_id` int(11) NOT NULL,
`role_name` varchar(100) NOT NULL,
`is_active` bit(1) NOT NULL DEFAULT b'1' COMMENT '1=ative,0=inactive',
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `master_role`
--
INSERT INTO `master_role` (`role_id`, `role_name`, `is_active`, `created_by`, `created_ts`, `updated_by`, `updated_ts`) VALUES
(1, 'Admin', b'1', 1, '2019-09-09 15:24:52', 1, '2019-11-27 07:03:10'),
(2, 'Driver', b'1', 1, '2019-09-09 15:41:56', 1, '2019-11-29 11:02:42'),
(3, 'SENIOR RECEPTIONIST', b'1', 1, '2019-09-18 10:33:08', 1, '2019-11-29 11:02:49'),
(4, 'Analyst', b'0', 1, '2019-09-26 06:59:24', 1, '2019-11-27 07:02:57'),
(5, 'Accountant', b'0', 1, '2019-10-15 10:42:16', 1, '2019-11-25 09:20:45'),
(6, 'MANAGER', b'1', 1, '2019-10-25 03:27:11', 1, '2019-11-29 11:03:00');
--
-- Triggers `master_role`
--
DELIMITER $$
CREATE TRIGGER `AFTER_role_ADD` AFTER INSERT ON `master_role`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('add',New.created_by,'<i class="fa fa-plus-square" aria-hidden="true"></i>','New role added',CONCAT('New role - ',New.role_name,' is added'),'admin/role')
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `after_role_updated` AFTER UPDATE ON `master_role`
FOR EACH ROW INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('update',New.created_by,'<i class="fa fa-plus-pencile" aria-hidden="true"></i>','Role gets updated',CONCAT('role - ',New.role_name,' details gets updated'),'admin/role')
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `master_user`
--
CREATE TABLE IF NOT EXISTS `master_user` (
`user_id` int(11) NOT NULL,
`role_id` int(11) NOT NULL,
`dc_no` varchar(10) DEFAULT NULL,
`is_admin` tinyint(4) NOT NULL DEFAULT '0',
`email` varchar(50) NOT NULL,
`password` varchar(100) NOT NULL,
`org_password` varchar(100) DEFAULT NULL,
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of master_user',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of master_user',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`status` int(11) DEFAULT NULL COMMENT 'Driver Status => 0 - Pending,1 - Aggrement Generated \\\\\\\\nUser Status => ',
`is_active` tinyint(1) DEFAULT '0' COMMENT '0 => Inactive,1 => Active',
`is_delete` int(11) NOT NULL DEFAULT '0',
`recovery_key` text,
`login_status` tinyint(1) DEFAULT '0',
`date_of_last_logged_in` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `master_user`
--
INSERT INTO `master_user` (`user_id`, `role_id`, `dc_no`, `is_admin`, `email`, `password`, `org_password`, `created_by`, `created_ts`, `updated_by`, `updated_ts`, `status`, `is_active`, `is_delete`, `recovery_key`, `login_status`, `date_of_last_logged_in`) VALUES
(1, 1, '', 1, 'test.demomet@gmail.com', '25d55ad283aa400af464c76d713c07ad', '12345678', 1, '2019-09-06 04:21:50', 1, '2019-11-29 12:00:24', NULL, NULL, 0, 'MTc0NTM1MDE4MQ==', 0, NULL),
(2, 2, '123456', 0, 'kanak.sarkar@fitser.com', '364aecc97b094dc8df9c2918c7a1a3bc', 'Janina@123', 0, '2019-11-29 17:16:42', 1, '2019-12-06 06:00:39', 1, 1, 0, NULL, 1, '2019-12-06 06:00:39'),
(3, 2, '55555', 0, 'arindam.biswas@met-technologies.com', '25d55ad283aa400af464c76d713c07ad', '12345678', 0, '2019-11-29 17:36:35', 1, '2019-12-04 04:05:29', 1, 1, 0, NULL, 0, '2019-12-04 03:55:12'),
(4, 2, '522549', 0, 'lovedeep79@hotmail.com', '25f9e794323b453885f5181f1b624d0b', '123456789', 0, '2019-11-30 07:40:54', 1, '2019-12-06 01:29:26', 1, 1, 0, NULL, 0, '2019-12-06 01:01:46'),
(5, 2, '522500', 0, 'lovedeepkhangura@gmail.com', '7f19e81cf158f7c65e1bedf8e9d661ae', 'XN1icj67', 0, '2019-11-30 12:54:57', 1, '2019-12-03 03:02:54', 1, 1, 0, NULL, 0, '2019-12-03 12:29:53'),
(6, 2, '500000', 0, 'll@gmai.com', 'e10adc3949ba59abbe56e057f20f883e', 'Za9wnxaI', 0, '2019-12-03 06:40:13', 1, '2019-12-02 19:33:45', 1, 1, 0, NULL, 0, '2019-12-03 03:00:43'),
(7, 2, '556677', 0, 'adrian.daniels@met-technologies.com', 'e10adc3949ba59abbe56e057f20f883e', '123456', 0, '2019-12-03 13:29:42', 1, '2019-12-05 10:36:11', 1, 1, 0, NULL, 0, '2019-12-05 06:50:04'),
(8, 2, '522511', 0, 'pmw0044@gmail.com', '81dc9bdb52d04dc20036dbd8313ed055', '1234', 0, '2019-12-04 08:43:20', 1, '2019-12-06 01:32:44', 1, 1, 0, NULL, 1, '2019-12-06 01:32:44'),
(9, 2, '112233', 0, 'biswas.arindam167@gmail.com', 'e10adc3949ba59abbe56e057f20f883e', '123456', 0, '2019-12-05 19:35:49', 1, '2019-12-06 06:09:53', 1, 1, 0, NULL, 1, '2019-12-06 06:09:53');
--
-- Triggers `master_user`
--
DELIMITER $$
CREATE TRIGGER `after_user_update` AFTER UPDATE ON `master_user`
FOR EACH ROW BEGIN
DECLARE FULLNAME VARCHAR(255);
SELECT CONCAT(user_profile.first_name,' ',ifnull(user_profile.middle_name,''),' ',user_profile.last_name) as full_name INTO FULLNAME FROM master_user inner join user_profile on master_user.user_id = user_profile.user_id WHERE master_user.user_id = New.user_id;
IF New.role_id = '2' && New.status ='1' THEN
IF OLD.is_active = New.is_active THEN
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('update',New.updated_by,'<i class="fa fa-pencil-square" aria-hidden="true"></i>','Driver details updated',CONCAT('Driver ',FULLNAME,' - ',New.dc_no,' details updated'),'admin/driver/driver_master_list');
ELSE
IF New.is_active ='0' THEN
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('inactive',New.updated_by,'<i class="fa fa-thumbs-down" aria-hidden="true"></i>','Driver get inactive',CONCAT('Driver ',FULLNAME,' - ',New.dc_no,' get inactive'),'admin/driver/driver_master_list');
ELSE
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('active',New.updated_by,'<i class="fa fa-thumbs-up" aria-hidden="true"></i>','Driver get active',CONCAT('Driver ',FULLNAME,' - ',New.dc_no,' get active'),'admin/driver/driver_master_list');
END IF;
END IF;
ELSEIF New.role_id = '2' && New.status ='0' THEN
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`,`log_title`,`log_description`,`log_link`) VALUES ('update',New.updated_by,'<i class="fa fa-pencil-square" aria-hidden="true"></i>','Driver details updated',CONCAT('Driver ',FULLNAME,' - ',New.dc_no,' details updated'),'admin/driver');
ELSEIF New.role_id = '3' && New.status ='1' THEN
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`,`log_title`,`log_description`,`log_link`) VALUES ('update', New.updated_by,'<i class="fa fa-pencil-square" aria-hidden="true"></i>','Subadmin details updated',CONCAT('Subadmin ',FULLNAME,' details updated'),'admin/user');
END IF;
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `master_week`
--
CREATE TABLE IF NOT EXISTS `master_week` (
`week_id` int(11) NOT NULL,
`week_name` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `master_week`
--
INSERT INTO `master_week` (`week_id`, `week_name`) VALUES
(1, 1),
(2, 2),
(3, 3),
(4, 4),
(5, 5),
(6, 6),
(7, 7),
(8, 8),
(9, 9),
(10, 10),
(11, 11),
(12, 12),
(13, 13),
(14, 14),
(15, 15),
(16, 16),
(17, 17),
(18, 18),
(19, 19),
(20, 20),
(21, 21),
(22, 22),
(23, 23),
(24, 24),
(25, 25),
(26, 26),
(27, 27),
(28, 28),
(29, 29),
(30, 30),
(31, 31),
(32, 32),
(33, 33),
(34, 34),
(35, 35),
(36, 36),
(37, 37),
(38, 38),
(39, 39),
(40, 40),
(41, 41),
(42, 42),
(43, 43),
(44, 44),
(45, 45),
(46, 46),
(47, 47),
(48, 48),
(49, 49),
(50, 50),
(51, 51),
(52, 52),
(53, 53);
-- --------------------------------------------------------
--
-- Table structure for table `notification`
--
CREATE TABLE IF NOT EXISTS `notification` (
`notification_id` int(11) NOT NULL,
`notification_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0=>''unread'',''1''=>read',
`notification_type` varchar(255) NOT NULL,
`notification_title` varchar(255) NOT NULL,
`notification_description` longtext NOT NULL,
`notification_link` varchar(255) NOT NULL,
`referrence_id` int(11) NOT NULL COMMENT 'service_notification_id,inspection,bond_refund_id',
`created_on` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`update_on` date DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `notification`
--
INSERT INTO `notification` (`notification_id`, `notification_flag`, `notification_type`, `notification_title`, `notification_description`, `notification_link`, `referrence_id`, `created_on`, `update_on`) VALUES
(1, 1, 'inspection', 'Inspection Data Notification', 'Inspection Data Notification for car -4356M', 'admin/inspection-details/1', 1, '2019-12-03 10:32:56', NULL),
(2, 0, 'service_due_notification', 'Service Data Notification', 'Service Data Notification', 'admin/report/service_notification', 1, '2019-12-03 10:36:48', NULL),
(3, 1, 'inspection', 'Inspection Data Notification', 'Inspection Data Notification for car -M1385', 'admin/inspection-details/2', 2, '2019-12-03 10:45:53', NULL),
(4, 1, 'service_due_notification', 'Service Data Notification', 'Service Data Notification', 'admin/report/service_notification', 2, '2019-12-03 10:46:56', NULL),
(5, 0, 'service_due_notification', 'Service Data Notification', 'Service Data Notification', 'admin/report/service_notification', 2, '2019-12-03 11:03:30', NULL),
(6, 1, 'inspection', 'Inspection Data Notification', 'Inspection Data Notification for car -M3293', 'admin/inspection-details/4', 4, '2019-12-03 12:28:06', NULL),
(7, 0, 'service_due_notification', 'Service Data Notification', 'Service Data Notification', 'admin/report/service_notification', 4, '2019-12-03 12:29:49', NULL),
(8, 0, 'service_due_notification', 'Service Data Notification', 'Service Data Notification', 'admin/report/service_notification', 3, '2019-12-04 03:26:16', NULL),
(9, 1, 'service_due_notification', 'Service Data Notification', 'Service Data Notification', 'admin/report/service_notification', 4, '2019-12-04 03:49:15', NULL),
(10, 0, 'service_due_notification', 'Service Data Notification', 'Service Data Notification', 'admin/report/service_notification', 5, '2019-12-04 04:07:59', NULL),
(11, 0, 'inspection', 'Inspection Data Notification', 'Inspection Data Notification for car -M1385', 'admin/inspection-details/6', 6, '2019-12-04 04:33:26', NULL),
(12, 1, 'service_due_notification', 'Service Data Notification', 'Service Data Notification', 'admin/report/service_notification', 8, '2019-12-04 04:50:52', NULL),
(13, 0, 'service_due_notification', 'Service Data Notification', 'Service Data Notification', 'admin/report/service_notification', 6, '2019-12-05 00:20:12', NULL),
(14, 0, 'service_due_notification', 'Service Data Notification', 'Service Data Notification', 'admin/report/service_notification', 7, '2019-12-05 00:36:54', NULL),
(15, 0, 'service_due_notification', 'Service Data Notification', 'Service Data Notification', 'admin/report/service_notification', 8, '2019-12-05 06:49:58', NULL),
(16, 1, 'inspection', 'Inspection Data Notification', 'Inspection Data Notification for car -M1457', 'admin/inspection-details/7', 7, '2019-12-05 10:42:32', NULL),
(17, 1, 'inspection', 'Inspection Data Notification', 'Inspection Data Notification for car -M9058', 'admin/inspection-details/8', 8, '2019-12-05 14:34:08', NULL),
(18, 0, 'service_due_notification', 'Service Data Notification', 'Service Data Notification', 'admin/report/service_notification', 9, '2019-12-05 14:38:41', NULL),
(19, 1, 'service_due_notification', 'Service Data Notification', 'Service Data Notification', 'admin/report/service_notification', 10, '2019-12-06 01:01:39', NULL),
(20, 1, 'service_due_notification', 'Service Data Notification', 'Service Data Notification', 'admin/report/service_notification', 11, '2019-12-06 01:33:48', NULL),
(21, 1, 'service_due_notification', 'Service Data Notification', 'Service Data Notification', 'admin/report/service_notification', 17, '2019-12-06 01:46:35', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `payin`
--
CREATE TABLE IF NOT EXISTS `payin` (
`payin_id` int(11) NOT NULL,
`driver_id` int(11) NOT NULL,
`shift_id` int(11) NOT NULL,
`total_extra_start` decimal(10,2) NOT NULL,
`total_extra_end` decimal(10,2) NOT NULL,
`paid_km_start` int(11) NOT NULL,
`paid_km_end` int(11) NOT NULL,
`total_km_start` int(11) NOT NULL,
`total_km_end` int(11) NOT NULL,
`no_of_hiring_start` int(11) NOT NULL,
`no_of_hiring_end` int(11) NOT NULL,
`extra_start` int(11) NOT NULL,
`extra_end` int(11) NOT NULL,
`speedo_reading_start` int(11) NOT NULL,
`speedo_reading_end` int(11) NOT NULL,
`km_traveled` decimal(10,2) NOT NULL,
`metered_fares` decimal(10,2) NOT NULL,
`bond_charges` decimal(10,2) NOT NULL,
`subtotal` decimal(10,2) DEFAULT NULL,
`levy` decimal(10,2) NOT NULL,
`no_of_whl` int(11) NOT NULL,
`total_payin_payout` decimal(10,2) NOT NULL,
`driver_settlement_flag` int(11) NOT NULL DEFAULT '0' COMMENT '0=Not Settled,1=Settled,2=Partially Settled',
`bank_payment_flag` tinyint(4) NOT NULL DEFAULT '0',
`created_ts` datetime NOT NULL,
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`created_by` int(11) DEFAULT NULL,
`updated_by` int(11) DEFAULT NULL,
`levy_settled_flag` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0=Not Settled,1=Settled',
`payin_reference_doc` varchar(255) DEFAULT NULL,
`final_due_amt` decimal(10,2) DEFAULT NULL,
`rental_commission_flag` char(1) DEFAULT NULL COMMENT 'R=Rental,C=Commission',
`settlement_amt` decimal(10,2) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `payin`
--
INSERT INTO `payin` (`payin_id`, `driver_id`, `shift_id`, `total_extra_start`, `total_extra_end`, `paid_km_start`, `paid_km_end`, `total_km_start`, `total_km_end`, `no_of_hiring_start`, `no_of_hiring_end`, `extra_start`, `extra_end`, `speedo_reading_start`, `speedo_reading_end`, `km_traveled`, `metered_fares`, `bond_charges`, `subtotal`, `levy`, `no_of_whl`, `total_payin_payout`, `driver_settlement_flag`, `bank_payment_flag`, `created_ts`, `updated_ts`, `created_by`, `updated_by`, `levy_settled_flag`, `payin_reference_doc`, `final_due_amt`, `rental_commission_flag`, `settlement_amt`) VALUES
(1, 2, 1, '0.00', '200.00', 0, 200, 0, 200, 0, 20, 0, 20, 0, 250, '250.00', '200.00', '50.00', '152.80', '22.00', 6, '127.80', 0, 1, '2019-12-03 16:06:48', '2019-12-06 01:59:17', 2, 1, 1, 'payin_reference_doc_1575369408_1575369264.jpeg', NULL, NULL, NULL),
(2, 4, 2, '0.00', '100.00', 0, 100, 0, 100, 0, 10, 0, 20, 0, 2003, '2003.00', '100.00', '10.00', '11.00', '11.00', 0, '-39.00', 1, 0, '2019-12-03 16:16:56', '2019-12-06 01:27:26', 4, NULL, 0, 'payin_reference_doc_1575370016_1575369911.jpeg', '0.00', 'R', '60.00'),
(3, 3, 3, '0.00', '99.00', 0, 99, 0, 200, 0, 11, 0, 20, 0, 250, '250.00', '99.00', '50.00', '1.70', '12.10', 0, '-48.30', 0, 1, '2019-12-03 16:33:30', '2019-12-05 12:49:11', 3, 1, 0, 'payin_reference_doc_1575371010_1575370882.jpeg', NULL, NULL, NULL),
(4, 5, 4, '0.00', '100.00', 0, 100, 0, 200, 0, 20, 0, 50, 0, 500, '500.00', '100.00', '10.00', '54.40', '0.00', 8, '-25.60', 0, 1, '2019-12-03 17:59:49', '2019-12-05 12:49:09', 5, 1, 0, 'payin_reference_doc_1575376189_1575376061.jpeg', NULL, NULL, NULL),
(5, 8, 6, '200.00', '400.00', 200, 400, 200, 400, 20, 40, 20, 40, 250, 450, '200.00', '200.00', '10.00', '45.00', '0.00', 0, '15.00', 1, 0, '2019-12-04 08:56:16', '2019-12-06 01:42:46', 8, 1, 0, 'payin_reference_doc_1575429976_1575429806.jpeg', '0.00', 'R', '465.00'),
(6, 3, 7, '400.00', '600.00', 400, 600, 400, 600, 40, 60, 40, 60, 450, 700, '250.00', '200.00', '50.00', '-70.00', '0.00', 0, '-70.00', 0, 1, '2019-12-04 09:19:15', '2019-12-05 12:49:06', 3, 1, 0, 'payin_reference_doc_1575431355_1575431225.jpeg', NULL, NULL, NULL),
(7, 4, 8, '99.00', '200.00', 99, 200, 200, 400, 11, 20, 20, 25, 250, 520, '270.00', '101.00', '10.00', '10.40', '0.00', 0, '10.40', 2, 0, '2019-12-04 09:37:59', '2019-12-06 01:14:11', 4, 1, 0, 'payin_reference_doc_1575432479_1575432313.jpeg', '40.00', 'R', '70.00'),
(8, 2, 9, '100.00', '200.00', 100, 200, 100, 200, 10, 20, 20, 40, 2003, 2400, '397.00', '100.00', '50.00', '119.60', '11.00', 2, '119.60', 0, 0, '2019-12-04 10:20:52', '2019-12-06 01:59:17', 2, 1, 1, 'payin_reference_doc_1575435052_1575434957.jpeg', NULL, NULL, NULL),
(9, 8, 10, '600.00', '1000.00', 600, 1000, 600, 1000, 60, 100, 60, 80, 700, 1200, '500.00', '400.00', '10.00', '170.00', '0.00', 0, '170.00', 2, 0, '2019-12-05 05:50:12', '2019-12-06 01:41:31', 8, 1, 0, 'payin_reference_doc_1575505212_1575505120.jpeg', '210.00', 'R', '510.00'),
(10, 4, 11, '200.00', '300.00', 200, 300, 400, 400, 20, 40, 25, 40, 520, 950, '430.00', '200.00', '10.00', '90.00', '0.00', 0, '90.00', 1, 0, '2019-12-05 06:06:54', '2019-12-06 01:12:51', 4, 1, 0, 'payin_reference_doc_1575506214_1575506134.jpeg', '0.00', 'R', '110.00'),
(11, 7, 5, '0.00', '200.00', 0, 200, 0, 200, 0, 50, 0, 20, 0, 250, '250.00', '200.00', '100.00', '195.00', '55.00', 0, '115.00', 0, 0, '2019-12-05 12:19:58', '2019-12-05 12:48:58', 7, NULL, 0, 'payin_reference_doc_1575528598_1575528430.jpeg', NULL, NULL, NULL),
(12, 9, 13, '0.00', '200.00', 0, 200, 0, 200, 0, 10, 0, 5, 0, 500, '500.00', '200.00', '100.00', '135.60', '0.00', 2, '85.60', 1, 1, '2019-12-05 20:08:41', '2019-12-06 06:34:20', 9, 1, 0, 'payin_reference_doc_1575556721_1575556609.jpeg', '0.00', 'R', '93.00'),
(13, 4, 14, '1000.00', '1300.00', 1000, 1300, 1000, 1300, 100, 130, 80, 100, 1200, 1550, '350.00', '300.00', '10.00', '130.00', '0.00', 0, '130.00', 1, 0, '2019-12-06 06:31:39', '2019-12-06 01:10:07', 4, NULL, 0, 'payin_reference_doc_1575594099_1575593982.jpeg', '0.00', 'R', '110.00'),
(14, 8, 15, '300.00', '600.00', 300, 600, 400, 700, 40, 60, 40, 50, 950, 1300, '350.00', '300.00', '10.00', '130.00', '0.00', 0, '130.00', 2, 0, '2019-12-06 07:03:48', '2019-12-06 01:38:23', 8, NULL, 0, 'payin_reference_doc_1575596028_1575595937.jpeg', '510.00', 'R', '510.00'),
(15, 2, 12, '0.00', '1000.00', 0, 1000, 0, 1000, 0, 100, 0, 60, 0, 1200, '1200.00', '1000.00', '50.00', '610.00', '110.00', 0, '610.00', 0, 0, '2019-12-06 07:16:34', '2019-12-06 01:59:17', 2, NULL, 1, 'payin_reference_doc_1575596794_1575596710.jpeg', NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `payin_dockets`
--
CREATE TABLE IF NOT EXISTS `payin_dockets` (
`payin_dockets_id` int(11) NOT NULL,
`payin_id` int(11) NOT NULL,
`docket_id` int(11) NOT NULL,
`value` decimal(10,2) NOT NULL,
`doc_link` varchar(255) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `payin_dockets`
--
INSERT INTO `payin_dockets` (`payin_dockets_id`, `payin_id`, `docket_id`, `value`, `doc_link`) VALUES
(1, 1, 3, '50.00', 'docket_images_3_1575369307201_1575369408_1575369307201.jpg'),
(2, 2, 2, '50.00', 'docket_images_2_1575369932867_1575370016_1575369932867.jpg'),
(3, 3, 8, '100.00', 'docket_images_8_1575370923025_1575371010_1575370923025.jpg'),
(4, 4, 4, '50.00', 'docket_images_4_1575376102639_1575376189_1575376102639.jpg'),
(5, 5, 1, '15.00', 'docket_images_1_1575429843786_1575429976_1575429843786.jpg'),
(6, 5, 1, '30.00', 'docket_images_1_1575429857060_1575429976_1575429857060.jpg'),
(7, 6, 4, '100.00', 'docket_images_4_1575431249690_1575431355_1575431249690.jpg'),
(8, 6, 8, '100.00', 'docket_images_8_1575431272522_1575431355_1575431272522.jpg'),
(9, 7, 4, '40.00', 'docket_images_4_1575432402523_1575432479_1575432402523.jpg'),
(10, 11, 3, '50.00', 'docket_images_3_1575528445931_1575528598_1575528445931.jpg'),
(11, 12, 1, '58.00', 'docket_images_1_1575556636707_1575556721_1575556636707.jpg');
-- --------------------------------------------------------
--
-- Table structure for table `payin_expenses`
--
CREATE TABLE IF NOT EXISTS `payin_expenses` (
`payin_expense_id` int(11) NOT NULL,
`payin_id` int(11) NOT NULL,
`expense_id` int(11) NOT NULL,
`value` decimal(10,2) NOT NULL,
`doc_link` varchar(255) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `payin_expenses`
--
INSERT INTO `payin_expenses` (`payin_expense_id`, `payin_id`, `expense_id`, `value`, `doc_link`) VALUES
(1, 1, 1, '25.00', 'expense_images_1_1575369322121_1575369408_1575369322121.jpg'),
(2, 2, 1, '50.00', 'expense_images_1_1575369946265_1575370016_1575369946265.jpg'),
(3, 3, 1, '50.00', 'expense_images_1_1575370940845_1575371010_1575370940845.jpg'),
(4, 4, 2, '80.00', 'expense_images_2_1575376120106_1575376189_1575376120106.jpg'),
(5, 5, 1, '10.00', 'expense_images_1_1575429875150_1575429976_1575429875150.jpg'),
(6, 5, 1, '20.00', 'expense_images_1_1575429892239_1575429976_1575429892239.jpg'),
(7, 11, 1, '80.00', 'expense_images_1_1575528463982_1575528598_1575528463982.jpg'),
(8, 12, 1, '50.00', 'expense_images_1_1575556649074_1575556721_1575556649074.jpg');
-- --------------------------------------------------------
--
-- Table structure for table `roster`
--
CREATE TABLE IF NOT EXISTS `roster` (
`roster_id` int(11) NOT NULL,
`car_id` int(11) NOT NULL,
`week_no` int(5) NOT NULL,
`dayname` varchar(100) NOT NULL,
`day_date` date NOT NULL,
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`breakdown` int(4) DEFAULT '0',
`breakdown_reason` text
) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `roster`
--
INSERT INTO `roster` (`roster_id`, `car_id`, `week_no`, `dayname`, `day_date`, `created_by`, `created_ts`, `updated_by`, `updated_ts`, `breakdown`, `breakdown_reason`) VALUES
(1, 13, 49, 'Monday', '2019-12-02', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(2, 13, 49, 'Tuesday', '2019-12-03', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(3, 13, 49, 'Wednesday', '2019-12-04', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(4, 13, 49, 'Thursday', '2019-12-05', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(5, 13, 49, 'Friday', '2019-12-06', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(6, 13, 49, 'Saturday', '2019-12-07', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(7, 13, 49, 'Sunday', '2019-12-08', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(8, 8, 49, 'Monday', '2019-12-02', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(9, 8, 49, 'Tuesday', '2019-12-03', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(10, 8, 49, 'Wednesday', '2019-12-04', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(11, 8, 49, 'Thursday', '2019-12-05', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(12, 8, 49, 'Friday', '2019-12-06', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(13, 8, 49, 'Saturday', '2019-12-07', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(14, 8, 49, 'Sunday', '2019-12-08', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(15, 12, 49, 'Monday', '2019-12-02', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(16, 12, 49, 'Tuesday', '2019-12-03', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(17, 12, 49, 'Wednesday', '2019-12-04', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(18, 12, 49, 'Thursday', '2019-12-05', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(19, 12, 49, 'Friday', '2019-12-06', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(20, 12, 49, 'Saturday', '2019-12-07', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(21, 12, 49, 'Sunday', '2019-12-08', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(22, 11, 49, 'Monday', '2019-12-02', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(23, 11, 49, 'Tuesday', '2019-12-03', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(24, 11, 49, 'Wednesday', '2019-12-04', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02', 0, ''),
(25, 11, 49, 'Thursday', '2019-12-05', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:03', 0, ''),
(26, 11, 49, 'Friday', '2019-12-06', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:03', 0, ''),
(27, 11, 49, 'Saturday', '2019-12-07', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:03', 0, ''),
(28, 11, 49, 'Sunday', '2019-12-08', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(29, 10, 49, 'Monday', '2019-12-02', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(30, 10, 49, 'Tuesday', '2019-12-03', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(31, 10, 49, 'Wednesday', '2019-12-04', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(32, 10, 49, 'Thursday', '2019-12-05', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(33, 10, 49, 'Friday', '2019-12-06', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(34, 10, 49, 'Saturday', '2019-12-07', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(35, 10, 49, 'Sunday', '2019-12-08', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(36, 9, 49, 'Monday', '2019-12-02', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(37, 9, 49, 'Tuesday', '2019-12-03', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(38, 9, 49, 'Wednesday', '2019-12-04', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(39, 9, 49, 'Thursday', '2019-12-05', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(40, 9, 49, 'Friday', '2019-12-06', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(41, 9, 49, 'Saturday', '2019-12-07', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(42, 9, 49, 'Sunday', '2019-12-08', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(43, 5, 49, 'Monday', '2019-12-02', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(44, 5, 49, 'Tuesday', '2019-12-03', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(45, 5, 49, 'Wednesday', '2019-12-04', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(46, 5, 49, 'Thursday', '2019-12-05', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(47, 5, 49, 'Friday', '2019-12-06', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(48, 5, 49, 'Saturday', '2019-12-07', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, ''),
(49, 5, 49, 'Sunday', '2019-12-08', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03', 0, '');
-- --------------------------------------------------------
--
-- Table structure for table `roster_driver_maping`
--
CREATE TABLE IF NOT EXISTS `roster_driver_maping` (
`roster_driver_id` int(11) NOT NULL,
`roster_id` int(11) NOT NULL,
`roster_shift_id` int(11) NOT NULL,
`driver_id` int(100) NOT NULL,
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `roster_driver_maping`
--
INSERT INTO `roster_driver_maping` (`roster_driver_id`, `roster_id`, `roster_shift_id`, `driver_id`, `created_by`, `created_ts`, `updated_by`, `updated_ts`) VALUES
(1, 2, 1, 2, 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02'),
(2, 9, 2, 3, 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02'),
(3, 16, 3, 4, 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02'),
(4, 23, 4, 6, 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02'),
(5, 30, 5, 5, 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03'),
(6, 37, 6, 7, 1, '2019-12-03 18:56:10', 1, '2019-12-06 06:02:03'),
(7, 3, 7, 8, 1, '2019-12-04 08:53:01', 1, '2019-12-06 06:02:02'),
(8, 10, 8, 4, 1, '2019-12-04 08:53:02', 1, '2019-12-06 06:02:02'),
(9, 17, 9, 2, 1, '2019-12-04 08:53:02', 1, '2019-12-06 06:02:02'),
(10, 4, 10, 8, 1, '2019-12-04 09:11:43', 1, '2019-12-06 06:02:02'),
(11, 3, 11, 3, 1, '2019-12-04 09:16:38', 1, '2019-12-06 06:02:02'),
(12, 11, 12, 4, 1, '2019-12-05 06:05:28', 1, '2019-12-06 06:02:02'),
(13, 18, 13, 7, 1, '2019-12-05 11:59:53', 1, '2019-12-06 06:02:02'),
(14, 25, 14, 2, 1, '2019-12-05 16:11:05', 1, '2019-12-06 06:02:03'),
(15, 26, 15, 2, 1, '2019-12-05 16:17:51', 1, '2019-12-06 06:02:03'),
(16, 27, 16, 2, 1, '2019-12-05 16:17:51', 1, '2019-12-06 06:02:03'),
(17, 28, 17, 2, 1, '2019-12-05 16:17:51', 1, '2019-12-06 06:02:03'),
(18, 46, 18, 9, 1, '2019-12-05 19:56:43', 1, '2019-12-06 06:02:03'),
(19, 5, 19, 4, 1, '2019-12-06 06:21:52', 1, '2019-12-06 06:02:02'),
(20, 12, 20, 8, 1, '2019-12-06 06:21:52', 1, '2019-12-06 06:02:02'),
(21, 47, 21, 9, 1, '2019-12-06 11:32:03', NULL, NULL);
--
-- Triggers `roster_driver_maping`
--
DELIMITER $$
CREATE TRIGGER `AFTER_ROSERT_SET` BEFORE INSERT ON `roster_driver_maping`
FOR EACH ROW BEGIN
DECLARE FULLNAME VARCHAR(255);
DECLARE DCNO Integer(11);
DECLARE ShiftName VARCHAR(255) default '';
DECLARE v_shift_name VARCHAR(255) default '';
DECLARE day_Name VARCHAR(255);
DECLARE rosterdate VARCHAR(255);
DECLARE carNO VARCHAR(255);
SELECT CONCAT(user_profile.first_name,' ',ifnull(user_profile.middle_name,''),' ',user_profile.last_name) as full_name INTO FULLNAME FROM master_user inner join user_profile on master_user.user_id = user_profile.user_id WHERE master_user.user_id = New.driver_id;
SELECT dc_no INTO DCNO FROM master_user WHERE user_id = New.driver_id;
SELECT CASE WHEN rsm.shift_name = 'H' THEN 'HUNGRY' WHEN rsm.shift_name = 'D' THEN 'DAY' ELSE 'NIGHT' END INTO v_shift_name FROM roster_shift_maping rsm WHERE rsm.roster_shift_id = New.roster_shift_id;
SELECT registration_no INTO carNO FROM roster INNER JOIN master_car ON roster.car_id = master_car.car_id WHERE roster_id = New.roster_id;
SELECT dayname INTO day_Name FROM roster WHERE roster_id = New.roster_id;
SELECT day_date INTO rosterdate FROM roster WHERE roster_id = New.roster_id;
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('add',New.created_by,'<i class="fa fa-plus-square" aria-hidden="true"></i>','Roster add',CONCAT('A new roster for driver ',FULLNAME,' - ',DCNO,' ','for shift: ',v_shift_name,'on ',rosterdate,'[',day_Name,']',' with car - ',carNO,' is set.'),'admin/roster');
END
$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER `ROSTER_DRIVER_MAPING_UPDATE` AFTER UPDATE ON `roster_driver_maping`
FOR EACH ROW BEGIN
DECLARE FULLNAME VARCHAR(255);
DECLARE DCNO Integer(11);
DECLARE v_shift_name VARCHAR(255) DEFAULT '';
DECLARE day_Name VARCHAR(255);
DECLARE rosterdate VARCHAR(255);
DECLARE carNO VARCHAR(255);
SELECT CONCAT(user_profile.first_name,' ',ifnull(user_profile.middle_name,''),' ',user_profile.last_name),dc_no INTO FULLNAME,DCNO FROM master_user inner join user_profile on master_user.user_id = user_profile.user_id WHERE master_user.user_id = New.driver_id;
SELECT CASE WHEN rsm.shift_name = 'H' THEN 'HUNGRY' WHEN rsm.shift_name = 'D' THEN 'DAY' ELSE 'NIGHT' END INTO v_shift_name FROM roster_shift_maping rsm WHERE rsm.roster_shift_id = New.roster_shift_id;
SELECT registration_no INTO carNO FROM roster INNER JOIN master_car ON roster.car_id = master_car.car_id WHERE roster_id = New.roster_id;
SELECT dayname INTO day_Name FROM roster WHERE roster_id = New.roster_id;
SELECT day_date INTO rosterdate FROM roster WHERE roster_id = New.roster_id;
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('update',New.updated_by,'<i class="fa fa-plus-pencil" aria-hidden="true"></i>','Roster details updated',CONCAT('Roster for driver ',FULLNAME,' - ',DCNO,' ','for shift: ',v_shift_name,' on ',rosterdate,'[',day_Name,']',' with car - ',carNO,' details get updated '),'admin/roster');
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `roster_shift_maping`
--
CREATE TABLE IF NOT EXISTS `roster_shift_maping` (
`roster_shift_id` int(11) NOT NULL,
`roster_id` int(11) NOT NULL,
`shift_name` varchar(100) NOT NULL COMMENT 'H = hungry, D = Day , N = Night',
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `roster_shift_maping`
--
INSERT INTO `roster_shift_maping` (`roster_shift_id`, `roster_id`, `shift_name`, `created_by`, `created_ts`, `updated_by`, `updated_ts`) VALUES
(1, 2, 'H', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02'),
(2, 9, 'H', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02'),
(3, 16, 'H', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02'),
(4, 23, 'H', 1, '2019-12-03 16:02:20', 1, '2019-12-06 06:02:02'),
(5, 30, 'H', 1, '2019-12-03 16:02:21', 1, '2019-12-06 06:02:03'),
(6, 37, 'H', 1, '2019-12-03 18:56:10', 1, '2019-12-06 06:02:03'),
(7, 3, 'N', 1, '2019-12-04 08:53:01', 1, '2019-12-06 06:02:02'),
(8, 10, 'N', 1, '2019-12-04 08:53:02', 1, '2019-12-06 06:02:02'),
(9, 17, 'N', 1, '2019-12-04 08:53:02', 1, '2019-12-06 06:02:02'),
(10, 4, 'H', 1, '2019-12-04 09:11:43', 1, '2019-12-06 06:02:02'),
(11, 3, 'D', 1, '2019-12-04 09:16:38', 1, '2019-12-06 06:02:02'),
(12, 11, 'D', 1, '2019-12-05 06:05:28', 1, '2019-12-06 06:02:02'),
(13, 18, 'D', 1, '2019-12-05 11:59:53', 1, '2019-12-06 06:02:02'),
(14, 25, 'D', 1, '2019-12-05 16:11:05', 1, '2019-12-06 06:02:03'),
(15, 26, 'D', 1, '2019-12-05 16:17:51', 1, '2019-12-06 06:02:03'),
(16, 27, 'D', 1, '2019-12-05 16:17:51', 1, '2019-12-06 06:02:03'),
(17, 28, 'D', 1, '2019-12-05 16:17:51', 1, '2019-12-06 06:02:03'),
(18, 46, 'H', 1, '2019-12-05 19:56:43', 1, '2019-12-06 06:02:03'),
(19, 5, 'D', 1, '2019-12-06 06:21:52', 1, '2019-12-06 06:02:02'),
(20, 12, 'D', 1, '2019-12-06 06:21:52', 1, '2019-12-06 06:02:02'),
(21, 47, 'D', 1, '2019-12-06 11:32:03', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `service_notification`
--
CREATE TABLE IF NOT EXISTS `service_notification` (
`service_notification_id` int(11) NOT NULL,
`car_id` int(11) NOT NULL,
`payin_id` int(11) NOT NULL,
`last_service_notification_km` decimal(10,2) NOT NULL,
`service_status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=>Pending,1=>service Booked',
`created_ts` timestamp NULL DEFAULT NULL,
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `service_notification`
--
INSERT INTO `service_notification` (`service_notification_id`, `car_id`, `payin_id`, `last_service_notification_km`, `service_status`, `created_ts`, `updated_ts`) VALUES
(1, 13, 1, '200.00', 1, NULL, '2019-12-06 02:06:45'),
(2, 8, 3, '200.00', 1, NULL, '2019-12-04 04:01:11'),
(3, 13, 5, '400.00', 1, NULL, '2019-12-04 04:01:16'),
(4, 13, 6, '600.00', 1, NULL, '2019-12-04 04:01:14'),
(5, 8, 7, '400.00', 0, NULL, NULL),
(6, 13, 9, '1000.00', 0, NULL, NULL),
(7, 8, 10, '400.00', 0, NULL, NULL),
(8, 9, 11, '200.00', 0, NULL, NULL),
(9, 5, 12, '200.00', 0, NULL, NULL),
(10, 13, 13, '1300.00', 0, NULL, NULL),
(11, 8, 14, '700.00', 0, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `user_docs`
--
CREATE TABLE IF NOT EXISTS `user_docs` (
`driver_docs_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`document_type` varchar(50) NOT NULL COMMENT 'driver_certificate,driving_license,login_card,paper_dc,signature',
`document_path` varchar(100) NOT NULL,
`created_ts` datetime NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=120 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `user_docs`
--
INSERT INTO `user_docs` (`driver_docs_id`, `user_id`, `document_type`, `document_path`, `created_ts`) VALUES
(87, 4, 'driver_certificate', 'driver_certificate_1575079854_0_1575079478.jpeg', '2019-11-30 07:40:54'),
(88, 4, 'driving_license', 'driving_license_1575079854_0_1575079496.jpeg', '2019-11-30 07:40:54'),
(89, 4, 'login_card', 'login_card_1575079854_0_1575079508.jpeg', '2019-11-30 07:40:54'),
(90, 4, 'paper_dc', 'paper_dc_1575079854_0_1575079524.jpeg', '2019-11-30 07:40:54'),
(91, 4, 'signature', 'signature_1575079854_0_1575079545.jpeg', '2019-11-30 07:40:54'),
(92, 5, 'driver_certificate', 'driver_certificate_1575098697_0_1575098538_tmp.jpg', '2019-11-30 12:54:57'),
(93, 5, 'driving_license', 'driving_license_1575098697_0_1575098558_tmp.jpg', '2019-11-30 12:54:57'),
(94, 5, 'login_card', 'login_card_1575098697_0_1575098572_tmp.jpg', '2019-11-30 12:54:57'),
(95, 5, 'paper_dc', 'paper_dc_1575098697_0_1575098587_tmp.jpg', '2019-11-30 12:54:57'),
(96, 5, 'signature', 'crop_1575098891.jpeg', '2019-11-30 12:54:57'),
(97, 3, 'driver_certificate', 'driver_certificate_1575268257_0_profile_photo_1569983970_1569983821.jpeg', '2019-12-02 12:00:57'),
(98, 3, 'driver_certificate', 'driver_certificate_1575268257_1_time_after_11_am.PNG', '2019-12-02 12:00:57'),
(99, 6, 'driver_certificate', 'driver_certificate_1575335413_0_1575335265.jpeg', '2019-12-03 06:40:13'),
(100, 6, 'driving_license', 'driving_license_1575335413_0_1575335278.jpeg', '2019-12-03 06:40:13'),
(101, 6, 'login_card', 'login_card_1575335413_0_1575335289.jpeg', '2019-12-03 06:40:13'),
(102, 6, 'paper_dc', 'paper_dc_1575335413_0_1575335297.jpeg', '2019-12-03 06:40:13'),
(103, 6, 'signature', 'signature_1575335413_0_1575335333.jpeg', '2019-12-03 06:40:13'),
(104, 7, 'driver_certificate', 'driver_certificate_1575359982_0_1575359832.jpeg', '2019-12-03 13:29:42'),
(105, 7, 'driving_license', 'driving_license_1575359982_0_1575359839.jpeg', '2019-12-03 13:29:42'),
(106, 7, 'login_card', 'login_card_1575359982_0_1575359846.jpeg', '2019-12-03 13:29:42'),
(107, 7, 'paper_dc', 'paper_dc_1575359982_0_1575359852.jpeg', '2019-12-03 13:29:42'),
(109, 7, 'signature', 'crop_1575376879.png', '2019-12-03 14:23:16'),
(110, 8, 'driver_certificate', 'driver_certificate_1575429201_0_1575429054.jpeg', '2019-12-04 08:43:21'),
(111, 8, 'driving_license', 'driving_license_1575429201_0_1575429064.jpeg', '2019-12-04 08:43:21'),
(112, 8, 'login_card', 'login_card_1575429201_0_1575429071.jpeg', '2019-12-04 08:43:21'),
(113, 8, 'paper_dc', 'paper_dc_1575429201_0_1575429079.jpeg', '2019-12-04 08:43:21'),
(114, 8, 'signature', 'signature_1575429201_0_1575429116.jpeg', '2019-12-04 08:43:21'),
(115, 9, 'driver_certificate', 'driver_certificate_1575554749_0_1575554603_tmp.jpg', '2019-12-05 19:35:49'),
(116, 9, 'driving_license', 'driving_license_1575554749_0_1575554612_tmp.jpg', '2019-12-05 19:35:49'),
(117, 9, 'login_card', 'login_card_1575554749_0_1575554621_tmp.jpg', '2019-12-05 19:35:49'),
(118, 9, 'paper_dc', 'paper_dc_1575554749_0_1575554630_tmp.jpg', '2019-12-05 19:35:49'),
(119, 9, 'signature', 'crop_1575555113.jpeg', '2019-12-05 19:35:49');
-- --------------------------------------------------------
--
-- Table structure for table `user_permission`
--
CREATE TABLE IF NOT EXISTS `user_permission` (
`permission_id` int(11) NOT NULL,
`user_id` int(11) DEFAULT NULL,
`role_id` int(11) DEFAULT NULL,
`menu_id` int(11) DEFAULT NULL,
`menu_name` varchar(100) DEFAULT NULL,
`add_flag` tinyint(1) DEFAULT '0',
`edit_flag` tinyint(1) DEFAULT '0',
`delete_flag` tinyint(1) DEFAULT '0',
`download_flag` tinyint(1) DEFAULT '0',
`is_active` bit(1) NOT NULL DEFAULT b'1' COMMENT '1 = active , inactive = 0',
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of user_master',
`updated_ts` datetime DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=161 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `user_permission`
--
INSERT INTO `user_permission` (`permission_id`, `user_id`, `role_id`, `menu_id`, `menu_name`, `add_flag`, `edit_flag`, `delete_flag`, `download_flag`, `is_active`, `created_by`, `created_ts`, `updated_by`, `updated_ts`) VALUES
(1, 0, 4, 17, 'Dashboard', 0, 1, 0, 0, b'1', 1, '2019-09-27 08:12:08', 1, '2019-10-03 08:55:53'),
(2, 0, 4, 2, 'New Registration', 1, 1, 1, 1, b'1', 1, '2019-09-27 08:12:08', 1, '2019-10-03 08:55:53'),
(3, 0, 4, 1, 'Driver', 1, 0, 0, 0, b'1', 1, '2019-09-27 08:12:08', NULL, NULL),
(4, 0, 4, 3, 'Manage Driver', 1, 1, 1, 1, b'1', 1, '2019-09-27 08:12:08', 1, '2019-10-03 08:55:53'),
(5, 0, 4, 6, 'Company Master List', 1, 0, 0, 0, b'1', 1, '2019-09-27 08:12:08', 1, '2019-10-03 08:55:53'),
(6, 0, 4, 4, 'Company', 1, 0, 0, 0, b'1', 1, '2019-09-27 08:12:08', NULL, NULL),
(7, 0, 4, 5, 'Company Master', 1, 0, 0, 0, b'1', 1, '2019-09-27 08:12:08', 1, '2019-10-03 08:55:53'),
(8, 0, 4, 8, 'Customer Master', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:09', 1, '2019-10-03 08:55:53'),
(9, 0, 4, 7, 'Customer', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:09', NULL, NULL),
(10, 0, 4, 9, 'Customer List', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:09', 1, '2019-10-03 08:55:53'),
(11, 0, 4, 11, 'Add Question', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:09', 1, '2019-10-03 08:55:53'),
(12, 0, 4, 10, 'Question', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:09', NULL, NULL),
(13, 0, 4, 12, 'Question List', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:09', 1, '2019-10-03 08:55:53'),
(14, 0, 4, 14, 'Car Master', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:09', 1, '2019-10-03 08:55:53'),
(15, 0, 4, 13, 'Car Master', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:09', NULL, NULL),
(16, 0, 4, 15, 'Car Master List', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:10', 1, '2019-10-03 08:55:53'),
(17, 0, 4, 18, 'Role Master', 1, 0, 0, 0, b'1', 1, '2019-09-27 08:12:10', 1, '2019-10-03 08:55:53'),
(18, 0, 4, 16, 'Manage Role', 1, 0, 0, 0, b'1', 1, '2019-09-27 08:12:10', NULL, NULL),
(19, 0, 4, 19, 'Role Master List', 1, 0, 0, 0, b'1', 1, '2019-09-27 08:12:10', 1, '2019-10-03 08:55:53'),
(20, 0, 4, 52, 'Staff Sub Admin', 1, 0, 0, 0, b'1', 1, '2019-09-27 08:12:10', 1, '2019-10-03 08:55:53'),
(21, 0, 4, 51, 'Manage User ', 1, 0, 0, 0, b'1', 1, '2019-09-27 08:12:10', NULL, NULL),
(22, 0, 4, 53, 'Staff Sub Admin List', 1, 0, 0, 0, b'1', 1, '2019-09-27 08:12:10', 1, '2019-10-03 08:55:53'),
(23, 0, 4, 20, 'User Permission', 1, 0, 0, 0, b'1', 1, '2019-09-27 08:12:11', 1, '2019-10-03 08:55:53'),
(24, 0, 4, 22, 'Docket Master', 1, 0, 0, 0, b'1', 1, '2019-09-27 08:12:11', 1, '2019-10-03 08:55:53'),
(25, 0, 4, 21, 'Manage Docket', 1, 0, 0, 0, b'1', 1, '2019-09-27 08:12:11', NULL, NULL),
(26, 0, 4, 23, 'Docket Master List', 1, 0, 0, 0, b'1', 1, '2019-09-27 08:12:11', 1, '2019-10-03 08:55:53'),
(27, 0, 4, 25, 'Expense List', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:11', 1, '2019-10-03 08:55:53'),
(28, 0, 4, 24, 'Manage Expense', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:11', NULL, NULL),
(29, 0, 4, 37, 'Manage Lifting Fees', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:11', 1, '2019-10-03 08:55:53'),
(30, 0, 4, 36, 'Settings', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:11', NULL, NULL),
(31, 0, 4, 38, 'Manage Levy Rate', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:11', 1, '2019-10-03 08:55:53'),
(32, 0, 4, 39, 'Commission Setup', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:12', 1, '2019-10-03 08:55:53'),
(33, 0, 4, 40, 'Accident Charge Setup', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:12', 1, '2019-10-03 08:55:53'),
(34, 0, 4, 41, 'Breakdown Alert Number', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:12', 1, '2019-10-03 08:55:53'),
(35, 0, 4, 42, 'Bond Setup', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:12', 1, '2019-10-03 08:55:53'),
(36, 0, 4, 46, 'Manage Inspection', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:12', 1, '2019-10-03 08:55:53'),
(37, 0, 4, 47, 'Manage Accident', 0, 0, 0, 0, b'1', 1, '2019-09-27 08:12:12', 1, '2019-10-03 08:55:53'),
(38, 0, 4, 55, 'Page List', 0, 0, 0, 0, b'1', 1, '2019-10-03 08:55:53', NULL, NULL),
(39, 0, 4, 54, 'Manage CMS', 0, 0, 0, 0, b'1', 1, '2019-10-03 08:55:53', NULL, NULL),
(40, 0, 2, 17, 'Dashboard', 1, 0, 0, 1, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(41, 0, 2, 2, 'New Registration', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(42, 0, 2, 1, 'Driver', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', NULL, NULL),
(43, 0, 2, 3, 'Manage Driver', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(44, 0, 2, 6, 'Company Master List', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(45, 0, 2, 4, 'Company', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', NULL, NULL),
(46, 0, 2, 5, 'Company Master', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(47, 0, 2, 8, 'Customer Master', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(48, 0, 2, 7, 'Customer', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', NULL, NULL),
(49, 0, 2, 9, 'Customer List', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(50, 0, 2, 11, 'Add Question', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(51, 0, 2, 10, 'Question', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', NULL, NULL),
(52, 0, 2, 12, 'Question List', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(53, 0, 2, 14, 'Car Master', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(54, 0, 2, 13, 'Car Master', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', NULL, NULL),
(55, 0, 2, 15, 'Car Master List', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(56, 0, 2, 18, 'Role Master', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(57, 0, 2, 16, 'Manage Role', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', NULL, NULL),
(58, 0, 2, 19, 'Role Master List', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(59, 0, 2, 52, 'Staff Sub Admin', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(60, 0, 2, 51, 'Manage User ', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', NULL, NULL),
(61, 0, 2, 53, 'Staff Sub Admin List', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(62, 0, 2, 20, 'User Permission', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(63, 0, 2, 22, 'Docket Master', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(64, 0, 2, 21, 'Manage Docket', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', NULL, NULL),
(65, 0, 2, 23, 'Docket Master List', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(66, 0, 2, 25, 'Expense List', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(67, 0, 2, 24, 'Manage Expense', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', NULL, NULL),
(68, 0, 2, 27, 'Levy Report', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(69, 0, 2, 26, 'Report', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', NULL, NULL),
(70, 0, 2, 28, 'Meter Reading', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(71, 0, 2, 29, 'Income Report', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(72, 0, 2, 37, 'Manage Lifting Fees', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(73, 0, 2, 36, 'Settings', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', NULL, NULL),
(74, 0, 2, 38, 'Manage Levy Rate', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(75, 0, 2, 39, 'Commission Setup', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(76, 0, 2, 40, 'Accident Charge Setup', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(77, 0, 2, 41, 'Breakdown Alert Number', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(78, 0, 2, 42, 'Bond Setup', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 54, '2019-10-16 01:43:24'),
(79, 0, 2, 45, 'Driver Settlement', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(80, 0, 2, 58, 'Driver Settlement', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', NULL, NULL),
(81, 0, 2, 59, 'Driver Settlement List', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(82, 0, 2, 46, 'Manage Inspection', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(83, 0, 2, 47, 'Manage Accident', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(84, 0, 2, 55, 'Page List', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(85, 0, 2, 54, 'Manage CMS', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', NULL, NULL),
(86, 0, 2, 57, 'Set Roster ', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', 1, '2019-11-08 03:10:32'),
(87, 0, 2, 56, 'Manage Roster', 1, 0, 0, 0, b'1', 1, '2019-10-16 01:40:35', NULL, NULL),
(88, 0, 2, 30, 'Driver Income', 0, 0, 0, 0, b'1', 1, '2019-11-08 03:09:43', 1, '2019-11-08 03:10:32'),
(89, 0, 2, 31, 'Bond Report', 0, 0, 0, 0, b'1', 1, '2019-11-08 03:09:43', 1, '2019-11-08 03:10:32'),
(90, 0, 2, 32, 'Settlement Due Report', 0, 0, 0, 0, b'1', 1, '2019-11-08 03:09:43', 1, '2019-11-08 03:10:32'),
(91, 0, 2, 33, 'Docket Report', 0, 0, 0, 0, b'1', 1, '2019-11-08 03:09:43', 1, '2019-11-08 03:10:32'),
(92, 0, 2, 34, 'Service Notification', 0, 0, 0, 0, b'1', 1, '2019-11-08 03:09:43', 1, '2019-11-08 03:10:32'),
(93, 0, 2, 35, 'Accident Report', 0, 0, 0, 0, b'1', 1, '2019-11-08 03:09:43', 1, '2019-11-08 03:10:32'),
(94, 0, 2, 43, 'Track Driver', 0, 0, 0, 0, b'1', 1, '2019-11-08 03:09:43', 1, '2019-11-08 03:10:32'),
(95, 0, 2, 48, 'Bond Refund Procedure', 0, 0, 0, 0, b'1', 1, '2019-11-08 03:09:43', 1, '2019-11-08 03:10:32'),
(96, 0, 2, 50, 'Daily Settlement', 0, 0, 0, 0, b'1', 1, '2019-11-08 03:09:43', 1, '2019-11-08 03:10:32'),
(97, 0, 2, 60, 'View Roster ', 0, 0, 0, 0, b'1', 1, '2019-11-08 03:09:43', 1, '2019-11-08 03:10:33'),
(98, 0, 2, 62, 'Activity Log', 0, 0, 0, 0, b'1', 1, '2019-11-08 03:09:43', 1, '2019-11-08 03:10:33'),
(99, 0, 2, 64, 'Notification list', 0, 0, 0, 0, b'1', 1, '2019-11-08 03:09:43', 1, '2019-11-08 03:10:33'),
(100, 0, 6, 17, 'Dashboard', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:44', NULL, NULL),
(101, 0, 6, 2, 'New Registration', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:44', NULL, NULL),
(102, 0, 6, 1, 'Driver', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:44', NULL, NULL),
(103, 0, 6, 3, 'Manage Driver', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:44', NULL, NULL),
(104, 0, 6, 6, 'Company Master List', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:44', NULL, NULL),
(105, 0, 6, 4, 'Company', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(106, 0, 6, 5, 'Company Master', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(107, 0, 6, 8, 'Customer Master', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(108, 0, 6, 7, 'Customer', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(109, 0, 6, 9, 'Customer List', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(110, 0, 6, 11, 'Add Question', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(111, 0, 6, 10, 'Question', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(112, 0, 6, 12, 'Question List', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(113, 0, 6, 14, 'Car Master', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(114, 0, 6, 13, 'Car Master', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(115, 0, 6, 15, 'Car Master List', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(116, 0, 6, 18, 'Role Master', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(117, 0, 6, 16, 'Manage Role', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(118, 0, 6, 19, 'Role Master List', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(119, 0, 6, 52, 'Staff Sub Admin', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(120, 0, 6, 51, 'Manage User ', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(121, 0, 6, 53, 'Staff Sub Admin List', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(122, 0, 6, 20, 'User Permission', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(123, 0, 6, 22, 'Docket Master', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(124, 0, 6, 21, 'Manage Docket', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(125, 0, 6, 23, 'Docket Master List', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(126, 0, 6, 25, 'Expense List', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(127, 0, 6, 24, 'Manage Expense', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(128, 0, 6, 27, 'Levy Report', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(129, 0, 6, 26, 'Report', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(130, 0, 6, 28, 'Meter Reading', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(131, 0, 6, 29, 'Income Report', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(132, 0, 6, 30, 'Driver Income', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(133, 0, 6, 31, 'Bond Report', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(134, 0, 6, 32, 'Settlement Due Report', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(135, 0, 6, 33, 'Docket Report', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(136, 0, 6, 34, 'Service Notification', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(137, 0, 6, 35, 'Accident Report', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(138, 0, 6, 65, 'Customer Report', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(139, 0, 6, 37, 'Manage Lifting Fees', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(140, 0, 6, 36, 'Settings', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(141, 0, 6, 38, 'Manage Levy Rate', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(142, 0, 6, 39, 'Commission Setup', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(143, 0, 6, 40, 'Accident Charge Setup', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(144, 0, 6, 41, 'Breakdown Alert Number', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(145, 0, 6, 43, 'Track Driver', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(146, 0, 6, 45, 'Driver Settlement', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(147, 0, 6, 58, 'Driver Settlement', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(148, 0, 6, 59, 'Driver Settlement List', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(149, 0, 6, 46, 'Manage Inspection', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(150, 0, 6, 47, 'Manage Accident', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(151, 0, 6, 48, 'Bond Refund Procedure', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(152, 0, 6, 50, 'Daily Settlement', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(153, 0, 6, 55, 'Page List', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(154, 0, 6, 54, 'Manage CMS', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(155, 0, 6, 57, 'Set Roster ', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(156, 0, 6, 56, 'Manage Roster', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(157, 0, 6, 60, 'View Roster ', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(158, 0, 6, 62, 'Activity Log', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(159, 0, 6, 64, 'Notification list', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL),
(160, 0, 6, 66, 'Bank transfer', 1, 1, 1, 1, b'1', 1, '2019-11-23 11:54:45', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `user_profile`
--
CREATE TABLE IF NOT EXISTS `user_profile` (
`profile_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`first_name` varchar(100) NOT NULL,
`middle_name` varchar(100) DEFAULT NULL,
`last_name` varchar(100) NOT NULL,
`dob` varchar(50) NOT NULL,
`mobile` varchar(50) NOT NULL,
`emergency_contact` varchar(200) NOT NULL,
`landline_no` varchar(50) DEFAULT NULL,
`abn` varchar(50) DEFAULT NULL,
`flat_no` varchar(100) DEFAULT NULL,
`street_no` varchar(100) DEFAULT NULL,
`street_name` varchar(100) DEFAULT NULL,
`suburb` varchar(100) DEFAULT NULL,
`state` varchar(100) DEFAULT NULL,
`pin` int(6) NOT NULL,
`bank_name` varchar(100) DEFAULT NULL,
`bsb` varchar(50) DEFAULT NULL,
`account_no` bigint(20) DEFAULT NULL,
`profile_photo` varchar(255) DEFAULT NULL,
`dr_driver_type` int(3) NOT NULL COMMENT '1=Sedan,2=Maxi',
`dr_licence_no` varchar(100) DEFAULT NULL,
`dr_licence_expiry` date DEFAULT NULL,
`dr_dc_expiry` date DEFAULT NULL,
`dr_rental` int(11) DEFAULT NULL,
`tfn` varchar(200) NOT NULL,
`created_by` int(11) DEFAULT NULL COMMENT 'user_id of master_user',
`created_ts` datetime NOT NULL,
`updated_by` int(11) DEFAULT NULL COMMENT 'user_id of master_user',
`updated_ts` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`dr_commission_id` int(11) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `user_profile`
--
INSERT INTO `user_profile` (`profile_id`, `user_id`, `first_name`, `middle_name`, `last_name`, `dob`, `mobile`, `emergency_contact`, `landline_no`, `abn`, `flat_no`, `street_no`, `street_name`, `suburb`, `state`, `pin`, `bank_name`, `bsb`, `account_no`, `profile_photo`, `dr_driver_type`, `dr_licence_no`, `dr_licence_expiry`, `dr_dc_expiry`, `dr_rental`, `tfn`, `created_by`, `created_ts`, `updated_by`, `updated_ts`, `dr_commission_id`) VALUES
(23, 1, 'Super', '', 'Admin', '16/07/1975', '9876543210', '', '12345678902', '12345678901', '', '1a', 'gagan sarkar road', 'Kolkata', 'West Bengal', 1234, 'HDFC', '121812', 2147483647, 'profile_photo_1574839906_1574839839.jpeg', 2, '1234abcd', '2020-11-25', '2020-11-25', 23, '', 1, '2019-11-27 05:26:48', 1, '2019-11-26 23:56:48', 2),
(24, 2, 'Kanak', '', 'Sarkar', '10/02/1991', '8336974981', '', '03366998855', '98765432112', '24', '204', 'Graham RD', 'Clayton South', 'Victoria', 3169, 'SBI', '098765', 25888255888, 'profile_photo_1575028002_FAA0EBC6-D6B7-444C-B401-F031C0C58033.jpeg', 2, '234566777', '2029-11-29', '2029-11-29', 50, '', 1, '2019-12-04 03:48:26', 1, '2019-12-03 22:18:26', 2),
(25, 3, 'Arindam', '', 'Biswas', '16/07/1996', '7407872825', '', '', '12345678797', '1', '1', '1a', 'south', 'Victoria', 1234, 'HDFC', '012345', 123454878787, 'profile_photo_1575029195_1575028912_tmp.jpg', 1, '123456777756', '2020-06-18', '2020-05-22', 30, '', 1, '2019-12-02 03:01:54', 1, '2019-12-01 21:31:54', 1),
(26, 4, 'lovedeep', 'singh', 'khangura', '08/11/1982', '0401402766', '', '', '70124673212', '', '24', 'graham rd', 'Clayton south', 'Victoria', 3169, 'Anz', '063121', 25361478, 'profile_photo_1575079854_1575079461.jpeg', 1, '082071781', '2022-11-30', '2025-11-30', 100, '', 1, '2019-12-05 06:04:36', 1, '2019-12-05 00:34:36', 1),
(27, 5, 'james', '', 'wood', '04/09/1985', '0401402766', '', '', '70124673212', '12', '44', 'dowing st', 'clayton', 'Victoria', 3168, 'NAB', '083222', 88225566, 'profile_photo_1575098697_1575098518_tmp.jpg', 2, '082071751', '2020-06-18', '2021-11-17', 100, '', 1, '2019-12-03 08:32:54', 1, '2019-12-03 03:02:54', 1),
(28, 6, 'Paramveer', 'singh', 'Dhaliwal', '03/12/1983', '0401402766', '', '0395408998', '70124673212', '12', '18', 'glow st', 'wheelers hill', 'Victoria', 3150, 'Westpac', '067888', 124578, 'profile_photo_1575335413_1575335254.jpeg', 1, '8000000', '2021-12-03', '2021-12-03', 0, '', 1, '2019-12-03 01:03:45', 1, '2019-12-02 19:33:45', 1),
(29, 7, 'Adrian', '', 'Danials', '03/12/1995', '9632580741', '', '9874563210', '98881234567', '105', '204', 'Street 204', 'South', 'Victoria', 3691, 'HDFC', '098766', 96325807415, 'profile_photo_1575359982_1575359824.jpeg', 1, '9828288282', '2021-12-03', '2023-12-03', 500, '', 1, '2019-12-05 11:58:00', 1, '2019-12-05 06:28:00', 2),
(30, 8, 'matt', '', 'foxwell', '04/12/1977', '0401402766', '', '', '70124673212', '24', '144', 'William st', 'mount Waverley ', 'Victoria', 3149, 'NAB', '063121', 23541245, 'profile_photo_1575429200_1575429045.jpeg', 1, '08', '2020-12-04', '2021-12-04', 500, '', 8, '2019-12-04 08:43:20', NULL, '2019-12-04 03:16:35', 1),
(31, 9, 'Bishal', '', 'Shaw', '22/12/1996', '9876543210', '', '9630852147', '36985214700', '105', '369', 'Amar Street', 'South', 'Victoria', 3691, 'HDFC', '369852', 36985214785, 'profile_photo_1575554749_1575554593_tmp.jpg', 2, '7283848383', '2023-12-29', '2022-12-30', 51, '', 1, '2019-12-05 08:16:40', 1, '2019-12-05 02:46:40', 1);
--
-- Triggers `user_profile`
--
DELIMITER $$
CREATE TRIGGER `after_driver_add` AFTER INSERT ON `user_profile`
FOR EACH ROW BEGIN
DECLARE DCNO Integer(11) DEFAULT 0;
DECLARE roleId Integer(11) DEFAULT 0;
DECLARE createdBY Integer(11) DEFAULT 0;
SELECT role_id INTO roleId FROM master_user WHERE user_id = New.user_id;
IF roleId = '2' THEN
SELECT ifnull(dc_no,0) INTO DCNO FROM master_user WHERE user_id = New.user_id;
IF New.created_by = '0' THEN
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('add',New.user_id,'<i class="fa fa-plus-square" aria-hidden="true"></i>','Driver add',CONCAT('A New driver ',NEW.first_name,' ',ifnull(NEW.middle_name,''),' ',NEW.last_name,' - ',DCNO,' added'),'admin/driver');
ELSE
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('add',New.created_by,'<i class="fa fa-plus-square" aria-hidden="true"></i>','Driver add',CONCAT('A New driver ',NEW.first_name,' ',ifnull(NEW.middle_name,''),' ',NEW.last_name,' - ',DCNO,' added'),'admin/driver');
END IF;
ELSE
IF New.created_by = '0' THEN
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('add', New.user_id,'<i class="fa fa-plus-square" aria-hidden="true"></i>','Subadmin add',CONCAT('New Subadmin ',NEW.first_name,' ',ifnull(NEW.middle_name,''),' ',NEW.last_name,' added'),'admin/user');
ELSE
INSERT INTO `master_log`(`action_type`, `action_done_by`, `icon`, `log_title`,`log_description`,`log_link`) VALUES ('add', New.created_by,'<i class="fa fa-plus-square" aria-hidden="true"></i>','Subadmin add',CONCAT('New Subadmin ',NEW.first_name,' ',ifnull(NEW.middle_name,''),' ',NEW.last_name,' added'),'admin/user');
END IF;
END IF;
END
$$
DELIMITER ;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `accident_charge`
--
ALTER TABLE `accident_charge`
ADD PRIMARY KEY (`charge_id`);
--
-- Indexes for table `accident_involved_car`
--
ALTER TABLE `accident_involved_car`
ADD PRIMARY KEY (`involved_car_id`);
--
-- Indexes for table `accident_media`
--
ALTER TABLE `accident_media`
ADD PRIMARY KEY (`accident_media_id`);
--
-- Indexes for table `accident_witness`
--
ALTER TABLE `accident_witness`
ADD PRIMARY KEY (`witness_id`);
--
-- Indexes for table `api_token`
--
ALTER TABLE `api_token`
ADD PRIMARY KEY (`token_id`);
--
-- Indexes for table `cms`
--
ALTER TABLE `cms`
ADD PRIMARY KEY (`cms_id`);
--
-- Indexes for table `daily_transactions`
--
ALTER TABLE `daily_transactions`
ADD PRIMARY KEY (`transaction_id`);
--
-- Indexes for table `daily_transactions_settle`
--
ALTER TABLE `daily_transactions_settle`
ADD PRIMARY KEY (`transaction_settle_id`);
--
-- Indexes for table `driver_refund_settlement`
--
ALTER TABLE `driver_refund_settlement`
ADD PRIMARY KEY (`dr_refund_settlement_id`);
--
-- Indexes for table `driver_settlement`
--
ALTER TABLE `driver_settlement`
ADD PRIMARY KEY (`dr_settlement_id`);
--
-- Indexes for table `driver_settlement_history`
--
ALTER TABLE `driver_settlement_history`
ADD PRIMARY KEY (`dr_settlement_history_id`);
--
-- Indexes for table `driver_shift_details`
--
ALTER TABLE `driver_shift_details`
ADD PRIMARY KEY (`shift_id`);
--
-- Indexes for table `driver_shift_payin`
--
ALTER TABLE `driver_shift_payin`
ADD PRIMARY KEY (`shift_payin_id`);
--
-- Indexes for table `driver_tracking`
--
ALTER TABLE `driver_tracking`
ADD PRIMARY KEY (`driver_tracking_id`);
--
-- Indexes for table `dr_company_agreement_mapping`
--
ALTER TABLE `dr_company_agreement_mapping`
ADD PRIMARY KEY (`company_agrr_mapping_id`);
--
-- Indexes for table `dr_settlement_docket`
--
ALTER TABLE `dr_settlement_docket`
ADD PRIMARY KEY (`dr_settlement_docket_id`);
--
-- Indexes for table `dr_settlement_expense`
--
ALTER TABLE `dr_settlement_expense`
ADD PRIMARY KEY (`dr_settlement_expense_id`);
--
-- Indexes for table `inspection`
--
ALTER TABLE `inspection`
ADD PRIMARY KEY (`inspection_id`);
--
-- Indexes for table `inspection_answer`
--
ALTER TABLE `inspection_answer`
ADD PRIMARY KEY (`inspection_answer_id`);
--
-- Indexes for table `inspection_answer_image`
--
ALTER TABLE `inspection_answer_image`
ADD PRIMARY KEY (`inspection_answer_image_id`);
--
-- Indexes for table `lookup_table`
--
ALTER TABLE `lookup_table`
ADD PRIMARY KEY (`lookup_id`),
ADD UNIQUE KEY `title` (`title`);
--
-- Indexes for table `master_accident`
--
ALTER TABLE `master_accident`
ADD PRIMARY KEY (`accident_id`);
--
-- Indexes for table `master_agreement`
--
ALTER TABLE `master_agreement`
ADD PRIMARY KEY (`agreement_id`);
--
-- Indexes for table `master_bond`
--
ALTER TABLE `master_bond`
ADD PRIMARY KEY (`bond_id`);
--
-- Indexes for table `master_breakdown_alert`
--
ALTER TABLE `master_breakdown_alert`
ADD PRIMARY KEY (`breakdown_alert_id`);
--
-- Indexes for table `master_car`
--
ALTER TABLE `master_car`
ADD PRIMARY KEY (`car_id`);
--
-- Indexes for table `master_car_model`
--
ALTER TABLE `master_car_model`
ADD PRIMARY KEY (`car_model_id`);
--
-- Indexes for table `master_commission`
--
ALTER TABLE `master_commission`
ADD PRIMARY KEY (`commission_id`);
--
-- Indexes for table `master_company`
--
ALTER TABLE `master_company`
ADD PRIMARY KEY (`company_id`);
--
-- Indexes for table `master_customer`
--
ALTER TABLE `master_customer`
ADD PRIMARY KEY (`customer_id`);
--
-- Indexes for table `master_docket`
--
ALTER TABLE `master_docket`
ADD PRIMARY KEY (`docket_id`);
--
-- Indexes for table `master_expense`
--
ALTER TABLE `master_expense`
ADD PRIMARY KEY (`expense_id`);
--
-- Indexes for table `master_fuel`
--
ALTER TABLE `master_fuel`
ADD PRIMARY KEY (`fuel_id`);
--
-- Indexes for table `master_levy`
--
ALTER TABLE `master_levy`
ADD PRIMARY KEY (`levy_id`);
--
-- Indexes for table `master_lifting_fee`
--
ALTER TABLE `master_lifting_fee`
ADD PRIMARY KEY (`lifting_fee_id`);
--
-- Indexes for table `master_log`
--
ALTER TABLE `master_log`
ADD PRIMARY KEY (`log_id`);
--
-- Indexes for table `master_menu`
--
ALTER TABLE `master_menu`
ADD PRIMARY KEY (`menu_id`);
--
-- Indexes for table `master_misc_setup`
--
ALTER TABLE `master_misc_setup`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `master_network`
--
ALTER TABLE `master_network`
ADD PRIMARY KEY (`network_id`);
--
-- Indexes for table `master_payment_method`
--
ALTER TABLE `master_payment_method`
ADD PRIMARY KEY (`payment_method_id`);
--
-- Indexes for table `master_question`
--
ALTER TABLE `master_question`
ADD PRIMARY KEY (`question_id`);
--
-- Indexes for table `master_role`
--
ALTER TABLE `master_role`
ADD PRIMARY KEY (`role_id`);
--
-- Indexes for table `master_user`
--
ALTER TABLE `master_user`
ADD PRIMARY KEY (`user_id`);
--
-- Indexes for table `notification`
--
ALTER TABLE `notification`
ADD PRIMARY KEY (`notification_id`);
--
-- Indexes for table `payin`
--
ALTER TABLE `payin`
ADD PRIMARY KEY (`payin_id`);
--
-- Indexes for table `payin_dockets`
--
ALTER TABLE `payin_dockets`
ADD PRIMARY KEY (`payin_dockets_id`);
--
-- Indexes for table `payin_expenses`
--
ALTER TABLE `payin_expenses`
ADD PRIMARY KEY (`payin_expense_id`);
--
-- Indexes for table `roster`
--
ALTER TABLE `roster`
ADD PRIMARY KEY (`roster_id`);
--
-- Indexes for table `roster_driver_maping`
--
ALTER TABLE `roster_driver_maping`
ADD PRIMARY KEY (`roster_driver_id`);
--
-- Indexes for table `roster_shift_maping`
--
ALTER TABLE `roster_shift_maping`
ADD PRIMARY KEY (`roster_shift_id`);
--
-- Indexes for table `service_notification`
--
ALTER TABLE `service_notification`
ADD PRIMARY KEY (`service_notification_id`);
--
-- Indexes for table `user_docs`
--
ALTER TABLE `user_docs`
ADD PRIMARY KEY (`driver_docs_id`);
--
-- Indexes for table `user_permission`
--
ALTER TABLE `user_permission`
ADD PRIMARY KEY (`permission_id`);
--
-- Indexes for table `user_profile`
--
ALTER TABLE `user_profile`
ADD PRIMARY KEY (`profile_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `accident_charge`
--
ALTER TABLE `accident_charge`
MODIFY `charge_id` int(250) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `accident_involved_car`
--
ALTER TABLE `accident_involved_car`
MODIFY `involved_car_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `accident_media`
--
ALTER TABLE `accident_media`
MODIFY `accident_media_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `accident_witness`
--
ALTER TABLE `accident_witness`
MODIFY `witness_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `api_token`
--
ALTER TABLE `api_token`
MODIFY `token_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `cms`
--
ALTER TABLE `cms`
MODIFY `cms_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `daily_transactions`
--
ALTER TABLE `daily_transactions`
MODIFY `transaction_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `daily_transactions_settle`
--
ALTER TABLE `daily_transactions_settle`
MODIFY `transaction_settle_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `driver_refund_settlement`
--
ALTER TABLE `driver_refund_settlement`
MODIFY `dr_refund_settlement_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `driver_settlement`
--
ALTER TABLE `driver_settlement`
MODIFY `dr_settlement_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `driver_settlement_history`
--
ALTER TABLE `driver_settlement_history`
MODIFY `dr_settlement_history_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `driver_shift_details`
--
ALTER TABLE `driver_shift_details`
MODIFY `shift_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `driver_shift_payin`
--
ALTER TABLE `driver_shift_payin`
MODIFY `shift_payin_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT for table `driver_tracking`
--
ALTER TABLE `driver_tracking`
MODIFY `driver_tracking_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `dr_company_agreement_mapping`
--
ALTER TABLE `dr_company_agreement_mapping`
MODIFY `company_agrr_mapping_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `dr_settlement_docket`
--
ALTER TABLE `dr_settlement_docket`
MODIFY `dr_settlement_docket_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `dr_settlement_expense`
--
ALTER TABLE `dr_settlement_expense`
MODIFY `dr_settlement_expense_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `inspection`
--
ALTER TABLE `inspection`
MODIFY `inspection_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `inspection_answer`
--
ALTER TABLE `inspection_answer`
MODIFY `inspection_answer_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `inspection_answer_image`
--
ALTER TABLE `inspection_answer_image`
MODIFY `inspection_answer_image_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `lookup_table`
--
ALTER TABLE `lookup_table`
MODIFY `lookup_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `master_accident`
--
ALTER TABLE `master_accident`
MODIFY `accident_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `master_agreement`
--
ALTER TABLE `master_agreement`
MODIFY `agreement_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `master_bond`
--
ALTER TABLE `master_bond`
MODIFY `bond_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `master_breakdown_alert`
--
ALTER TABLE `master_breakdown_alert`
MODIFY `breakdown_alert_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `master_car`
--
ALTER TABLE `master_car`
MODIFY `car_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `master_car_model`
--
ALTER TABLE `master_car_model`
MODIFY `car_model_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `master_commission`
--
ALTER TABLE `master_commission`
MODIFY `commission_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `master_company`
--
ALTER TABLE `master_company`
MODIFY `company_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `master_customer`
--
ALTER TABLE `master_customer`
MODIFY `customer_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `master_docket`
--
ALTER TABLE `master_docket`
MODIFY `docket_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `master_expense`
--
ALTER TABLE `master_expense`
MODIFY `expense_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `master_fuel`
--
ALTER TABLE `master_fuel`
MODIFY `fuel_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `master_levy`
--
ALTER TABLE `master_levy`
MODIFY `levy_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `master_lifting_fee`
--
ALTER TABLE `master_lifting_fee`
MODIFY `lifting_fee_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `master_log`
--
ALTER TABLE `master_log`
MODIFY `log_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=289;
--
-- AUTO_INCREMENT for table `master_menu`
--
ALTER TABLE `master_menu`
MODIFY `menu_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=68;
--
-- AUTO_INCREMENT for table `master_misc_setup`
--
ALTER TABLE `master_misc_setup`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `master_network`
--
ALTER TABLE `master_network`
MODIFY `network_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `master_payment_method`
--
ALTER TABLE `master_payment_method`
MODIFY `payment_method_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `master_question`
--
ALTER TABLE `master_question`
MODIFY `question_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `master_role`
--
ALTER TABLE `master_role`
MODIFY `role_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `master_user`
--
ALTER TABLE `master_user`
MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `notification`
--
ALTER TABLE `notification`
MODIFY `notification_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=22;
--
-- AUTO_INCREMENT for table `payin`
--
ALTER TABLE `payin`
MODIFY `payin_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `payin_dockets`
--
ALTER TABLE `payin_dockets`
MODIFY `payin_dockets_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `payin_expenses`
--
ALTER TABLE `payin_expenses`
MODIFY `payin_expense_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `roster`
--
ALTER TABLE `roster`
MODIFY `roster_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=50;
--
-- AUTO_INCREMENT for table `roster_driver_maping`
--
ALTER TABLE `roster_driver_maping`
MODIFY `roster_driver_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=22;
--
-- AUTO_INCREMENT for table `roster_shift_maping`
--
ALTER TABLE `roster_shift_maping`
MODIFY `roster_shift_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=22;
--
-- AUTO_INCREMENT for table `service_notification`
--
ALTER TABLE `service_notification`
MODIFY `service_notification_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `user_docs`
--
ALTER TABLE `user_docs`
MODIFY `driver_docs_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=120;
--
-- AUTO_INCREMENT for table `user_permission`
--
ALTER TABLE `user_permission`
MODIFY `permission_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=161;
--
-- AUTO_INCREMENT for table `user_profile`
--
ALTER TABLE `user_profile`
MODIFY `profile_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=32;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;