-- Table structure for table `employees`
--

CREATE TABLE `employees` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `title` varchar(4) DEFAULT NULL,
  `firstname` varchar(50) DEFAULT NULL,
  `middlename` varchar(50) DEFAULT NULL,
  `lastname` varchar(50) DEFAULT NULL,
  `gender` varchar(20) NOT NULL,
  `email` varchar(50) DEFAULT NULL,
  `countryphonecode` varchar(50) DEFAULT NULL,
  `contactno` varchar(20) DEFAULT NULL,
  `currentaddress1` text,
  `currentaddress2` text,
  `currentcity_id` int(11) DEFAULT NULL,
  `currentpincode` int(11) DEFAULT NULL,
  `currentstate_id` int(11) DEFAULT NULL,
  `currentcountry_id` int(11) DEFAULT NULL,
  `permanentaddress1` text,
  `permanentaddress2` text,
  `permanentcity_id` int(11) DEFAULT NULL,
  `permanentstate_id` int(11) DEFAULT NULL,
  `permanentcountry_id` int(11) DEFAULT NULL,
  `permanentpincode` int(11) DEFAULT NULL,
  `maritalstatus` varchar(50) DEFAULT NULL,
  `fathersorspousename` varchar(50) DEFAULT NULL,
  `emergencycontactname` varchar(50) DEFAULT NULL,
  `emergencycontactmobile` varchar(20) DEFAULT NULL,
  `relationshipwithemergencycontact` varchar(255) DEFAULT NULL,
  `education` varchar(255) DEFAULT NULL,
  `pastexperience` varchar(255) DEFAULT NULL,
  `pastorganization` varchar(255) DEFAULT NULL,
  `pastemployercontactno` varchar(255) DEFAULT NULL,
  `pastsalary` decimal(18,2) DEFAULT NULL,
  `birthmark` varchar(255) DEFAULT NULL,
  `dateofbirth` datetime DEFAULT NULL,
  `bloodgroup_id` int(11) DEFAULT NULL,
  `boilersuitsize_id` int(11) DEFAULT NULL,
  `safetyshoessize_id` int(11) DEFAULT NULL,
  `orientationduedate` datetime DEFAULT NULL,
  `orientationstatus_id` int(11) DEFAULT NULL,
  `profilepicture` varchar(255) DEFAULT NULL,
  `deliverability` varchar(100) DEFAULT NULL,
  `qualityscore` decimal(18,2) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `employees`
--

INSERT INTO `employees` (`id`, `business_id`, `title`, `firstname`, `middlename`, `lastname`, `gender`, `email`, `countryphonecode`, `contactno`, `currentaddress1`, `currentaddress2`, `currentcity_id`, `currentpincode`, `currentstate_id`, `currentcountry_id`, `permanentaddress1`, `permanentaddress2`, `permanentcity_id`, `permanentstate_id`, `permanentcountry_id`, `permanentpincode`, `maritalstatus`, `fathersorspousename`, `emergencycontactname`, `emergencycontactmobile`, `relationshipwithemergencycontact`, `education`, `pastexperience`, `pastorganization`, `pastemployercontactno`, `pastsalary`, `birthmark`, `dateofbirth`, `bloodgroup_id`, `boilersuitsize_id`, `safetyshoessize_id`, `orientationduedate`, `orientationstatus_id`, `profilepicture`, `deliverability`, `qualityscore`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 1, 'Mr.', 'Staff1', '', 'Punathil', '', '', NULL, '', 'Ahemdabaad', '', 1, 380001, 24, 1, '', '', NULL, 24, NULL, 0, '', NULL, '', '', '', '', '', '', '', '0.00', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '0.00', 1, 0, '2022-09-13 16:36:50', 0, '2022-09-13 16:36:50', NULL, NULL),
(2, 1, 'Mr.', 'Staff2', '', 'Punathil', '', '', NULL, '', 'Ahemdabaad', '', 1, 380001, 24, 1, '', '', 1, 24, NULL, 0, '', NULL, '', '', '', '', '', '', '', '0.00', '', NULL, NULL, NULL, NULL, NULL, NULL, '', '', '0.00', 1, 0, '2022-09-13 16:42:10', 0, '2022-09-13 16:42:10', NULL, NULL);

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

--
-- Table structure for table `employeetrainings`
--

CREATE TABLE `employeetrainings` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `training_id` int(11) DEFAULT NULL,
  `user_id` int(11) DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `trackingimplementation` varchar(255) DEFAULT NULL,
  `problemsolved` varchar(255) DEFAULT NULL,
  `comment` text,
  `completiondate` datetime DEFAULT NULL,
  `duedate` datetime DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `employeetypes`
--

CREATE TABLE `employeetypes` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `employeetypes`
--

INSERT INTO `employeetypes` (`id`, `name`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Contractual', 1, -1, '2020-10-01 08:54:27', -1, '2020-10-01 08:54:27', NULL, NULL),
(2, 'Permanent', 1, -1, '2020-10-01 08:54:27', -1, '2020-10-01 08:54:27', NULL, NULL);

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

--
-- Table structure for table `employer`
--

CREATE TABLE `employer` (
  `id` int(11) NOT NULL,
  `nameoforganization` varchar(50) DEFAULT NULL,
  `image` varchar(200) DEFAULT NULL,
  `watermarklogo` varchar(200) DEFAULT NULL,
  `gstnumber` varchar(20) DEFAULT NULL,
  `saccode` varchar(20) DEFAULT NULL,
  `digitalsignature` varchar(200) DEFAULT NULL,
  `companystamp` varchar(200) DEFAULT NULL,
  `companyshortname` varchar(50) DEFAULT NULL,
  `employercode` varchar(20) DEFAULT NULL,
  `email` varchar(100) DEFAULT NULL,
  `director` varchar(255) DEFAULT NULL,
  `address1` varchar(200) DEFAULT NULL,
  `address2` varchar(200) DEFAULT NULL,
  `city_id` int(11) DEFAULT NULL,
  `state_id` int(11) DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  `pincode` int(11) DEFAULT NULL,
  `telephone` varchar(20) DEFAULT NULL,
  `mobilenoofowner` varchar(20) DEFAULT NULL,
  `mobile2` varchar(20) DEFAULT NULL,
  `registration` varchar(255) DEFAULT NULL,
  `tan` varchar(20) DEFAULT NULL,
  `pan` varchar(20) DEFAULT NULL,
  `incometaxid` varchar(20) DEFAULT NULL,
  `bankname` varchar(20) DEFAULT NULL,
  `ifsc` varchar(20) DEFAULT NULL,
  `bankaccountno` varchar(20) DEFAULT NULL,
  `bankaccountname` varchar(50) DEFAULT NULL,
  `bankbranchname` varchar(100) DEFAULT NULL,
  `bankaddress1` text,
  `bankaddress2` text,
  `bankaddress3` text,
  `bankcity_id` int(11) DEFAULT NULL,
  `bankstate_id` int(11) DEFAULT NULL,
  `bankcountry_id` int(11) DEFAULT NULL,
  `bankpincode` varchar(20) DEFAULT NULL,
  `active` tinyint(10) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `employer`
--

INSERT INTO `employer` (`id`, `nameoforganization`, `image`, `watermarklogo`, `gstnumber`, `saccode`, `digitalsignature`, `companystamp`, `companyshortname`, `employercode`, `email`, `director`, `address1`, `address2`, `city_id`, `state_id`, `country_id`, `pincode`, `telephone`, `mobilenoofowner`, `mobile2`, `registration`, `tan`, `pan`, `incometaxid`, `bankname`, `ifsc`, `bankaccountno`, `bankaccountname`, `bankbranchname`, `bankaddress1`, `bankaddress2`, `bankaddress3`, `bankcity_id`, `bankstate_id`, `bankcountry_id`, `bankpincode`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'FruiezVentures', NULL, NULL, NULL, NULL, NULL, NULL, 'FV', 'FZVENTURES', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '123567890', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, -1, '2022-09-13 05:13:50', -1, '2022-09-13 05:13:50', NULL, NULL);

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

--
-- Table structure for table `employerconfigurations`
--

CREATE TABLE `employerconfigurations` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `pensioncontribution` decimal(18,2) DEFAULT NULL,
  `epfadmincharges` decimal(18,2) DEFAULT NULL,
  `edli` decimal(18,2) DEFAULT NULL,
  `esic` decimal(18,2) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `enquiries`
--

CREATE TABLE `enquiries` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `leadsource_id` int(11) DEFAULT NULL,
  `enquirytype_id` int(11) DEFAULT NULL,
  `enquirystatus_id` int(11) DEFAULT NULL,
  `customertype_id` int(11) DEFAULT NULL,
  `client_id` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `city_id` int(11) DEFAULT NULL,
  `address_id` int(11) DEFAULT NULL,
  `state_id` int(11) DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  `month_id` int(11) DEFAULT NULL,
  `year_id` int(11) DEFAULT NULL,
  `date` date DEFAULT NULL,
  `rownumber` varchar(100) DEFAULT NULL,
  `enquirynumber` varchar(50) DEFAULT NULL,
  `referencenumber` varchar(50) DEFAULT NULL,
  `referredby` varchar(50) DEFAULT NULL,
  `project` varchar(50) DEFAULT NULL,
  `qty` int(11) DEFAULT NULL,
  `contactperson` varchar(50) DEFAULT NULL,
  `contactnumber` varchar(20) DEFAULT NULL,
  `email` varchar(50) DEFAULT NULL,
  `businessphone` varchar(20) DEFAULT NULL,
  `mobilephone` varchar(20) DEFAULT NULL,
  `homephone` varchar(20) DEFAULT NULL,
  `fax` varchar(20) DEFAULT NULL,
  `postcode` varchar(20) DEFAULT 'NULL',
  `street1` text,
  `street2` text,
  `street3` text,
  `note` text,
  `quotationnumber` varchar(255) DEFAULT NULL,
  `offervalue` decimal(18,2) DEFAULT NULL,
  `target` decimal(18,2) DEFAULT NULL,
  `forecastnote` text,
  `possibility` decimal(18,2) DEFAULT NULL,
  `active` int(11) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `enquiryassignmenthistory`
--

CREATE TABLE `enquiryassignmenthistory` (
  `id` int(11) NOT NULL,
  `enquiry_id` int(11) DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `jobtitle_id` int(11) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `enquirycommunicationhistory`
--

CREATE TABLE `enquirycommunicationhistory` (
  `id` int(11) NOT NULL,
  `enquiry_id` int(11) DEFAULT NULL,
  `communicationtype_id` int(11) DEFAULT NULL,
  `followupdate` datetime DEFAULT NULL,
  `comment` text,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `enquirydetails`
--

CREATE TABLE `enquirydetails` (
  `id` int(11) NOT NULL,
  `enquiry_id` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `qty` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `enquirydocuments`
--

CREATE TABLE `enquirydocuments` (
  `id` int(11) NOT NULL,
  `enquiry_id` int(11) DEFAULT NULL,
  `documentpath` varchar(255) DEFAULT NULL,
  `documenttype_id` int(11) DEFAULT NULL,
  `otherdocumenttype` varchar(50) DEFAULT NULL,
  `originalfilename` varchar(100) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '1',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default by -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value-1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `enquirysources`
--

CREATE TABLE `enquirysources` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `enquirysources`
--

INSERT INTO `enquirysources` (`id`, `name`, `code`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Enquiry', 'ENQUIRY', 1, -1, '2020-09-30 01:28:06', -1, '2020-09-30 01:28:06', NULL, NULL),
(2, 'Tender', 'TENDER', 1, -1, '2020-09-30 01:28:06', -1, '2020-09-30 01:28:06', NULL, NULL);

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

--
-- Table structure for table `enquirystatus`
--

CREATE TABLE `enquirystatus` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `enquirystatus`
--

INSERT INTO `enquirystatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'In Process', 'INPROCESS', 1, 1, -1, '2021-07-19 20:14:49', -1, '2021-07-19 20:16:10', NULL, NULL),
(2, 'B - In Process', 'BINPROCESS', 2, 1, -1, '2021-07-19 20:14:49', -1, '2021-07-19 20:16:10', NULL, NULL),
(3, 'Lost', 'LOST', 3, 1, -1, '2021-07-19 20:14:49', -1, '2021-07-19 20:16:10', NULL, NULL),
(4, 'B - Lost', 'BLOST', 4, 1, -1, '2021-07-19 20:14:49', -1, '2021-07-19 20:16:10', NULL, NULL),
(5, 'Won', 'WON', 5, 1, -1, '2021-07-19 20:14:49', -1, '2021-07-19 20:16:10', NULL, NULL),
(6, 'B - Won', 'BWON', 6, 1, -1, '2021-07-19 20:14:49', -1, '2021-07-19 20:16:10', NULL, NULL),
(7, 'Dead', 'DEAD', 7, 1, -1, '2021-07-19 20:14:49', -1, '2021-07-19 20:16:10', NULL, NULL);

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

--
-- Table structure for table `enquirytypes`
--

CREATE TABLE `enquirytypes` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(100) DEFAULT NULL,
  `displayorder` int(10) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `enquirytypes`
--

INSERT INTO `enquirytypes` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Firm', 'FIRM', 1, 1, -1, '2021-07-19 20:14:34', -1, '2021-07-19 20:15:28', NULL, NULL),
(2, 'Budgetary', 'BUDGETARY', 2, 1, -1, '2021-07-19 20:14:34', -1, '2021-07-19 20:15:28', NULL, NULL);

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

--
-- Table structure for table `eventtypes`
--

CREATE TABLE `eventtypes` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `code` varchar(50) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1\r\nif for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1\r\nif for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `ewaybill`
--

CREATE TABLE `ewaybill` (
  `id` int(11) NOT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `transactionsubtype_id` int(11) DEFAULT NULL,
  `transporter` varchar(200) DEFAULT NULL,
  `distance` varchar(200) DEFAULT NULL,
  `transportationtype_id` int(11) DEFAULT NULL,
  `vehicletype_id` int(11) DEFAULT NULL,
  `vehiclenumber` varchar(200) DEFAULT NULL,
  `transporterdocumentnumber` varchar(200) DEFAULT NULL,
  `transporterdate` date DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `expenses`
--

CREATE TABLE `expenses` (
  `id` int(11) NOT NULL,
  `paymentdate` datetime DEFAULT NULL,
  `gstno` varchar(25) DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `referenceno` varchar(20) DEFAULT NULL,
  `billno` varchar(20) DEFAULT NULL,
  `billdate` datetime DEFAULT NULL,
  `paymentmode_id` int(11) DEFAULT NULL,
  `amount` decimal(18,2) DEFAULT NULL,
  `cgstamount` decimal(18,2) DEFAULT NULL,
  `sgstamount` decimal(18,2) DEFAULT NULL,
  `igstamount` decimal(18,2) DEFAULT NULL,
  `totalamount` decimal(18,2) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` datetime DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `expensestypes`
--

CREATE TABLE `expensestypes` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT '	Default value -1 for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `exporttypes`
--

CREATE TABLE `exporttypes` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(100) DEFAULT NULL,
  `displayorder` int(10) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `exporttypes`
--

INSERT INTO `exporttypes` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'CSV', 'CSV', 1, 1, -1, '2021-01-19 15:13:10', -1, '2021-01-19 15:13:10', NULL, NULL),
(2, 'XLSX', 'XLSX', 2, 1, -1, '2021-01-19 15:13:10', -1, '2021-01-19 15:13:10', NULL, NULL),
(3, 'PDF', 'PDF', 3, 1, -1, '2021-01-19 15:13:10', -1, '2021-01-19 15:13:10', NULL, NULL),
(4, 'TXT', 'TXT', 4, 1, -1, '2021-07-21 06:19:22', -1, '2021-07-21 06:19:22', NULL, NULL),
(5, 'JSON', 'JSON', 5, 1, -1, '2021-10-23 02:31:36', -1, '2021-10-23 02:31:36', NULL, NULL);

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

--
-- Table structure for table `feedbackanswers`
--

CREATE TABLE `feedbackanswers` (
  `id` int(11) NOT NULL,
  `question_id` int(11) DEFAULT NULL,
  `answer` varchar(20) DEFAULT NULL,
  `score` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1\r\nif for admin',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1\r\nif for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `feedbackquestions`
--

CREATE TABLE `feedbackquestions` (
  `id` int(11) NOT NULL,
  `question` text,
  `controltype_id` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `feedbackweightages`
--

CREATE TABLE `feedbackweightages` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `weightage` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `feedbackweightages`
--

INSERT INTO `feedbackweightages` (`id`, `name`, `weightage`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Excellent', 3, 1, -1, '2020-08-07 12:10:30', -1, '2020-08-07 12:10:30', NULL, NULL),
(2, 'Good', 2, 1, -1, '2020-08-07 12:10:59', -1, '2020-08-07 12:10:59', NULL, NULL),
(3, 'Ok', 1, 1, -1, '2020-08-07 12:11:21', -1, '2020-08-07 12:11:21', NULL, NULL),
(4, 'Bad', -1, 1, -1, '2020-08-07 12:13:35', -1, '2020-08-07 12:13:35', NULL, NULL);

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

--
-- Table structure for table `financialyears`
--

CREATE TABLE `financialyears` (
  `id` int(11) NOT NULL,
  `year` varchar(100) DEFAULT NULL,
  `startdate` date DEFAULT NULL,
  `enddate` date DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `financialyears`
--

INSERT INTO `financialyears` (`id`, `year`, `startdate`, `enddate`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, '2020-2021', '2020-04-01', '2021-03-31', 1, -1, '2021-04-07 16:23:34', -1, '2021-04-07 16:23:34', NULL, NULL),
(2, '2021-2022', '2021-04-01', '2022-03-31', 1, -1, '2021-04-07 16:23:34', -1, '2021-04-07 16:23:34', NULL, NULL),
(3, '2022-2023', '2022-04-01', '2023-03-31', 1, -1, '2021-04-07 16:25:18', -1, '2021-04-07 16:25:18', NULL, NULL),
(4, '2023-2024', '2023-04-01', '2024-03-31', 1, -1, '2021-04-07 16:25:18', -1, '2021-04-07 16:25:18', NULL, NULL),
(5, '2024-2025', '2024-04-01', '2025-03-31', 1, -1, '2021-04-07 16:26:20', -1, '2021-04-07 16:26:20', NULL, NULL),
(6, '2025-2026', '2025-04-01', '2026-03-31', 1, -1, '2021-04-07 16:26:20', -1, '2021-04-07 16:26:20', NULL, NULL),
(7, '2026-2027', '2026-04-01', '2027-03-31', 1, -1, '2021-04-07 16:27:18', -1, '2021-04-07 16:27:18', NULL, NULL),
(8, '2027-2028', '2027-04-01', '2028-03-31', 1, -1, '2021-04-07 16:27:18', -1, '2021-04-07 16:27:18', NULL, NULL),
(9, '2028-2029', '2028-04-01', '2029-03-31', 1, -1, '2021-04-07 16:28:04', -1, '2021-04-07 16:28:04', NULL, NULL),
(10, '2029-2030', '2029-04-01', '2030-03-31', 1, -1, '2021-04-07 16:28:04', -1, '2021-04-07 16:28:04', NULL, NULL);

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

--
-- Table structure for table `foodallowances`
--

CREATE TABLE `foodallowances` (
  `id` int(11) NOT NULL,
  `worksite_id` int(11) DEFAULT NULL,
  `skillcategory_id` int(11) DEFAULT NULL,
  `amount` decimal(18,2) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `generalsettings`
--

CREATE TABLE `generalsettings` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `image` varchar(200) DEFAULT NULL,
  `address` text,
  `contactno` varchar(50) DEFAULT NULL,
  `gstno` varchar(20) DEFAULT NULL,
  `email` varchar(50) DEFAULT NULL,
  `street1` text,
  `street2` text,
  `street3` text,
  `postcode` varchar(20) NOT NULL,
  `city_id` int(11) DEFAULT NULL,
  `state_id` int(11) DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `terms` text,
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `goals`
--

CREATE TABLE `goals` (
  `id` int(11) NOT NULL,
  `department_id` int(11) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default by -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default by -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_at` int(11) DEFAULT NULL,
  `deleted_by` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `goalscores`
--

CREATE TABLE `goalscores` (
  `id` int(11) NOT NULL,
  `kpi_id` int(11) DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `startdate` datetime DEFAULT NULL,
  `enddate` datetime DEFAULT NULL,
  `gapscore` decimal(18,2) DEFAULT NULL,
  `targetpending` text,
  `reasonforissue` text,
  `solutionapplied` text,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `gstslabs`
--

CREATE TABLE `gstslabs` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `gstslabs`
--

INSERT INTO `gstslabs` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, '5', 'FIVE', 1, 1, -1, '2021-10-27 15:26:51', -1, '2021-10-27 15:26:51', NULL, NULL),
(2, '12', 'TWELVE', 2, 1, -1, '2021-10-27 15:26:51', -1, '2021-10-27 15:26:51', NULL, NULL),
(3, '18', 'EIGHTEEN', 3, 1, -1, '2021-10-27 15:26:51', -1, '2021-10-27 15:26:51', NULL, NULL),
(4, '28', 'TWENTYEIGHT', 4, 1, -1, '2021-10-27 15:26:51', -1, '2021-10-27 15:26:51', NULL, NULL);

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

--
-- Table structure for table `importlogs`
--

CREATE TABLE `importlogs` (
  `id` int(11) NOT NULL,
  `area_id` int(11) DEFAULT NULL,
  `logstatus_id` int(11) DEFAULT NULL,
  `rundate` datetime DEFAULT NULL,
  `logmessage` text,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `importsamples`
--

CREATE TABLE `importsamples` (
  `id` int(11) NOT NULL,
  `module_id` int(11) DEFAULT NULL,
  `name` varchar(200) DEFAULT NULL,
  `documentpath` varchar(255) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `importsamples`
--

INSERT INTO `importsamples` (`id`, `module_id`, `name`, `documentpath`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 8, 'Monthly Timesheet', '/importsamples/import-timesheet-monthly.xlsx', 1, -1, '2022-09-13 05:13:30', -1, '2022-09-13 05:13:30', NULL, NULL),
(2, 2, 'Customer', '/importsamples/import-customer.xls', 1, -1, '2022-09-13 05:13:30', -1, '2022-09-13 05:13:30', NULL, NULL),
(3, 2, 'Lead', '/importsamples/import-leads.xls', 1, -1, '2022-09-13 05:13:30', -1, '2022-09-13 05:13:30', NULL, NULL),
(4, 2, 'Contact', '/importsamples/import-contact.csv', 1, -1, '2022-09-13 05:13:30', -1, '2022-09-13 05:13:30', NULL, NULL),
(5, 2, 'Payment', '/importsamples/import-payment.xlsx', 1, -1, '2022-09-13 05:13:30', -1, '2022-09-13 05:13:30', NULL, NULL),
(6, 3, 'AMC', '/importsamples/import-amc.xlsx', 1, -1, '2022-09-13 05:13:30', -1, '2022-09-13 05:13:30', NULL, NULL),
(7, 7, 'Employees', '/importsamples/import-employees.xlsx', 1, -1, '2022-09-13 05:13:30', -1, '2022-09-13 05:13:30', NULL, NULL),
(8, 7, 'Candidates', '/importsamples/import-candidate.csv', 1, -1, '2022-09-13 05:13:30', -1, '2022-09-13 05:13:30', NULL, NULL),
(9, 11, 'Partners', '/importsamples/import-partnrer.csv', 1, -1, '2022-09-13 05:13:30', -1, '2022-09-13 05:13:30', NULL, NULL),
(10, 13, 'Products', '/importsamples/import-product.xls', 1, -1, '2022-09-13 05:13:30', -1, '2022-09-13 05:13:30', NULL, NULL),
(11, 13, 'RateCard', '/importsamples/import-ratecard.xlsx', 1, -1, '2022-09-13 05:13:30', -1, '2022-09-13 05:13:30', NULL, NULL),
(12, 5, 'Supplier', '/importsamples/import-supplier.xlsx', 1, -1, '2022-09-13 05:13:30', -1, '2022-09-13 05:13:30', NULL, NULL),
(13, 5, 'Vendor', '/importsamples/import-vendor.xlsx', 1, -1, '2022-09-13 05:13:30', -1, '2022-09-13 05:13:30', NULL, NULL),
(14, 8, 'Timesheet', '/importsamples/import-timesheet.xlsx', 1, -1, '2022-09-13 05:13:30', -1, '2022-09-13 05:13:30', NULL, NULL),
(15, 13, 'Raw Material', '/importsamples/import-rawmaterial.xls', 1, -1, '2022-09-13 05:13:30', -1, '2022-09-13 05:13:30', NULL, NULL);

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

--
-- Table structure for table `incentives`
--

CREATE TABLE `incentives` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `month_id` int(11) DEFAULT NULL,
  `year_id` int(11) DEFAULT NULL,
  `incentivestatus_id` int(11) DEFAULT NULL,
  `amount` decimal(18,2) DEFAULT NULL,
  `paiddate` datetime DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT NULL,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `incentivestatus`
--

CREATE TABLE `incentivestatus` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `incentivestatus`
--

INSERT INTO `incentivestatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Unpaid', 'UNPAID', 1, 1, -1, '2021-07-10 16:40:06', -1, '2021-07-10 16:40:06', NULL, NULL),
(2, 'Paid', 'PAID', 2, 1, -1, '2021-07-10 16:41:18', -1, '2021-07-10 16:41:18', NULL, NULL);

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

--
-- Table structure for table `incidents`
--

CREATE TABLE `incidents` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `reported_by` varchar(20) DEFAULT NULL,
  `reportdate` datetime DEFAULT NULL,
  `title` varchar(20) DEFAULT NULL,
  `incidentimage` varchar(255) DEFAULT NULL,
  `incidentno` varchar(11) DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `incidentdate` datetime DEFAULT NULL,
  `location` varchar(255) DEFAULT NULL,
  `worksite_id` int(11) DEFAULT NULL,
  `witness` varchar(20) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `actiontaken` varchar(255) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `industries`
--

CREATE TABLE `industries` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `installationproviders`
--

CREATE TABLE `installationproviders` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `installationproviders`
--

INSERT INTO `installationproviders` (`id`, `name`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Other', 1, -1, '2020-11-03 06:34:40', -1, '2020-11-03 06:34:40', NULL, NULL);

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

--
-- Table structure for table `interviewtypes`
--

CREATE TABLE `interviewtypes` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `interviewtypes`
--

INSERT INTO `interviewtypes` (`id`, `name`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Face To Face', 1, -1, '2021-05-28 16:29:09', -1, '2021-05-28 16:29:09', NULL, NULL),
(2, 'Video Call', 1, -1, '2021-05-28 16:29:09', -1, '2021-05-28 16:29:09', NULL, NULL);

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

--
-- Table structure for table `inventorystatus`
--

CREATE TABLE `inventorystatus` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `inventorystatus`
--

INSERT INTO `inventorystatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Available', 'AVAILABLE', 1, 1, -1, '2022-02-16 10:53:51', -1, '2022-02-16 10:54:10', NULL, NULL),
(2, 'Unavailable', 'UNAVAILABLE', 2, 1, -1, '2022-02-16 10:53:51', -1, '2022-02-16 10:54:10', NULL, NULL),
(3, 'Damaged', 'DAMAGED', 3, 1, -1, '2022-02-16 10:53:51', -1, '2022-02-16 10:54:10', NULL, NULL);

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

--
-- Table structure for table `invoiceadditionalcharges`
--

CREATE TABLE `invoiceadditionalcharges` (
  `id` int(11) NOT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `chargetype_id` int(11) DEFAULT NULL,
  `charge` decimal(18,2) DEFAULT NULL,
  `mrpwithgst` int(11) DEFAULT NULL,
  `gstslab_id` int(11) DEFAULT NULL,
  `cgst` decimal(18,2) DEFAULT NULL,
  `cgstamount` decimal(18,2) DEFAULT NULL,
  `sgst` decimal(18,2) DEFAULT NULL,
  `sgstamount` decimal(18,2) DEFAULT NULL,
  `igst` decimal(18,2) DEFAULT NULL,
  `igstamount` decimal(18,2) DEFAULT NULL,
  `chargewithgst` decimal(18,2) DEFAULT NULL,
  `chargewithoutgst` decimal(18,2) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `invoiceconfigurations`
--

CREATE TABLE `invoiceconfigurations` (
  `id` int(11) NOT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `showterms` tinyint(4) DEFAULT '0',
  `showpaymentdetails` tinyint(4) DEFAULT '1',
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `invoicedetails`
--

CREATE TABLE `invoicedetails` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `serialnumber` varchar(50) DEFAULT NULL,
  `specification` text,
  `warranty` text,
  `area` text,
  `unit` text,
  `size` varchar(50) DEFAULT NULL,
  `qty` int(11) DEFAULT NULL,
  `subpartserialno` varchar(100) DEFAULT NULL,
  `measurement` varchar(150) DEFAULT NULL,
  `measurementtype` varchar(50) DEFAULT NULL,
  `measureqty` decimal(18,2) DEFAULT NULL,
  `measureamount` decimal(18,2) DEFAULT NULL,
  `price` decimal(18,2) DEFAULT NULL,
  `pricewithgst` decimal(18,2) DEFAULT NULL,
  `pricewithoutgst` decimal(18,2) DEFAULT NULL,
  `mrpwithgst` int(11) DEFAULT NULL,
  `dealerdiscounttype` int(11) DEFAULT NULL,
  `dealerdiscount` int(11) DEFAULT NULL,
  `purchaserate` decimal(18,2) DEFAULT NULL,
  `discounttype` int(11) DEFAULT NULL,
  `discount` decimal(18,2) DEFAULT NULL,
  `profitmargintype` int(11) DEFAULT NULL,
  `profitmargin` decimal(18,2) DEFAULT NULL,
  `salesrate` decimal(18,2) DEFAULT NULL,
  `netrateincludinggst` decimal(18,2) DEFAULT NULL,
  `netrateexcludinggst` decimal(18,2) DEFAULT NULL,
  `gstslab_id` int(11) DEFAULT NULL,
  `gst` decimal(18,2) DEFAULT NULL,
  `cgst` decimal(18,2) DEFAULT NULL,
  `cgstamount` decimal(18,2) DEFAULT NULL,
  `sgst` decimal(18,2) DEFAULT NULL,
  `sgstamount` decimal(18,2) DEFAULT NULL,
  `igst` decimal(18,2) DEFAULT NULL,
  `igstamount` decimal(18,2) DEFAULT NULL,
  `amount` decimal(18,2) DEFAULT NULL,
  `totalamountwithgst` decimal(18,2) DEFAULT NULL,
  `totalamountwithoutgst` decimal(18,2) DEFAULT NULL,
  `purchaseprice` decimal(18,2) DEFAULT NULL,
  `purchasetotal` decimal(18,2) DEFAULT NULL,
  `note` text,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `invoicedocuments`
--

CREATE TABLE `invoicedocuments` (
  `id` int(11) NOT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `title` varchar(50) DEFAULT NULL,
  `originalfilename` varchar(100) DEFAULT NULL,
  `documentpath` varchar(255) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '1',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default by -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value-1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `invoicepaymentstatus`
--

CREATE TABLE `invoicepaymentstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `invoicepaymentstatus`
--

INSERT INTO `invoicepaymentstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Unpaid', 'UNPD', 3, 1, -1, '2021-02-13 12:08:26', -1, '2021-02-13 12:08:26', NULL, NULL),
(2, 'Paid', 'PD', 1, 1, -1, '2021-02-13 12:08:26', -1, '2021-02-13 12:08:26', NULL, NULL),
(3, 'Partial Paid', 'PARTIALPAID', 2, 1, -1, '2021-10-01 01:13:26', -1, '2021-10-01 01:13:26', NULL, NULL),
(4, 'Cancelled', 'CANCELLED', 4, 1, -1, '2021-10-01 01:13:26', -1, '2021-10-01 01:13:26', NULL, NULL),
(5, 'Rejected', 'REJECTED', 5, 1, -1, '2021-10-01 01:13:26', -1, '2021-10-01 01:13:26', NULL, NULL),
(6, 'Default', 'DEFAULT', 6, 1, -1, '2022-03-11 03:18:06', -1, '2022-03-11 03:18:06', NULL, NULL);

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

--
-- Table structure for table `invoicereferencetypes`
--

CREATE TABLE `invoicereferencetypes` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `invoicereferencetypes`
--

INSERT INTO `invoicereferencetypes` (`id`, `name`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Quotation', 1, -1, '2021-09-13 11:56:31', -1, '2021-09-13 11:56:31', NULL, NULL),
(2, 'Salesorder', 1, -1, '2021-09-13 11:56:31', -1, '2021-09-13 11:56:31', NULL, NULL),
(3, 'Delivery Challan', 1, -1, '2022-04-15 06:39:49', -1, '2022-04-15 06:39:49', NULL, NULL);

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

--
-- Table structure for table `invoices`
--

CREATE TABLE `invoices` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `salesperson_id` int(11) DEFAULT NULL,
  `sales_id` int(11) DEFAULT NULL,
  `invoicereferencetype_id` int(11) DEFAULT NULL,
  `invoicetype_id` int(11) DEFAULT NULL,
  `invoicepaymentstatus_id` int(11) DEFAULT NULL,
  `invoicestatus_id` int(11) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `title` text,
  `dispatchthrough` varchar(100) DEFAULT NULL,
  `destination` varchar(100) DEFAULT NULL,
  `invoicediscount` decimal(18,2) DEFAULT NULL,
  `purchaseorderno` varchar(50) DEFAULT NULL,
  `invoicenumber` varchar(50) DEFAULT NULL,
  `shippingasbilling` tinyint(4) NOT NULL DEFAULT '0',
  `shippingstreet1` text,
  `shippingstreet2` text,
  `shippinglocation` text,
  `shippingcity_id` int(11) DEFAULT NULL,
  `shippingstate_id` int(11) DEFAULT NULL,
  `shippingcountry_id` int(11) DEFAULT NULL,
  `shippingpostcode` varchar(20) DEFAULT NULL,
  `billingstreet1` text,
  `billingstreet2` text,
  `billinglocation` text,
  `billingcity_id` int(11) DEFAULT NULL,
  `billingstate_id` int(11) DEFAULT NULL,
  `billingcountry_id` int(11) DEFAULT NULL,
  `billingpostcode` varchar(20) DEFAULT NULL,
  `installationcharges` decimal(18,2) DEFAULT NULL,
  `shippingcharges` decimal(18,2) DEFAULT NULL,
  `approvedby_id` int(11) DEFAULT NULL,
  `approveddate` datetime DEFAULT NULL,
  `cancelledby_id` int(11) DEFAULT NULL,
  `cancelleddate` datetime DEFAULT NULL,
  `paymentduedate` datetime DEFAULT NULL,
  `terms` text,
  `state_id` int(11) DEFAULT NULL,
  `note` text,
  `tags` text,
  `active` tinyint(4) DEFAULT '0',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT '-1',
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `invoicestatus`
--

CREATE TABLE `invoicestatus` (
  `id` int(11) NOT NULL,
  `name` varchar(150) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `invoicestatus`
--

INSERT INTO `invoicestatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Open', 'OPEN', 1, 1, -1, '2021-01-19 16:30:55', -1, '2021-01-19 16:30:55', NULL, NULL),
(2, 'Approved', 'APPROVED', 2, 1, -1, '2021-01-19 16:30:55', -1, '2021-01-19 16:30:55', NULL, NULL),
(3, 'In Progress', 'INPROGRESS', 3, 1, -1, '2021-01-19 16:32:27', -1, '2021-01-19 16:32:27', NULL, NULL),
(4, 'Cancelled', 'CANCELLED', 4, 1, -1, '2021-01-19 16:32:27', -1, '2021-01-19 16:32:27', NULL, NULL),
(5, 'Completed', 'COMPLETED', 5, 1, -1, '2021-01-19 16:32:27', -1, '2021-01-19 16:32:27', NULL, NULL);

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

--
-- Table structure for table `invoicetypes`
--

CREATE TABLE `invoicetypes` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `invoicetypes`
--

INSERT INTO `invoicetypes` (`id`, `name`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Product', 1, -1, '2021-01-09 11:56:31', -1, '2021-01-09 11:56:31', NULL, NULL),
(2, 'Service', 1, -1, '2021-01-09 11:57:20', -1, '2021-01-09 11:57:20', NULL, NULL),
(3, 'Service Memo', 1, -1, '2021-02-19 12:52:48', -1, '2021-02-19 12:52:48', NULL, NULL),
(4, 'Complaint', 1, -1, '2021-10-02 01:33:31', -1, '2021-10-02 01:33:31', NULL, NULL),
(5, 'Sales Order', 1, -1, '2022-02-12 03:53:19', -1, '2022-02-12 03:53:19', NULL, NULL),
(6, 'Cashmemo', 1, -1, '2022-07-18 07:06:31', -1, '2022-07-18 07:06:31', NULL, NULL);

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

--
-- Table structure for table `issueassignmenthistory`
--

CREATE TABLE `issueassignmenthistory` (
  `id` int(11) NOT NULL,
  `issue_id` int(11) DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `issues`
--

CREATE TABLE `issues` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `task_id` int(11) DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `issuedate` datetime DEFAULT NULL,
  `duedate` datetime DEFAULT NULL,
  `issuestatus_id` int(11) DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default by -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default by -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `issuestatus`
--

CREATE TABLE `issuestatus` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `issuestatus`
--

INSERT INTO `issuestatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Resolved', 'RESOLVED', 1, 1, -1, '2022-03-16 11:43:44', -1, '2022-03-16 11:43:44', NULL, NULL),
(2, 'Not Resolved', 'NOTRESOLVED', 2, 1, -1, '2022-03-16 11:46:31', -1, '2022-03-16 11:46:31', NULL, NULL);

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

--
-- Table structure for table `jobkpis`
--

CREATE TABLE `jobkpis` (
  `id` int(11) NOT NULL,
  `job_id` int(11) DEFAULT NULL,
  `kpi_id` int(11) DEFAULT NULL,
  `target` varchar(100) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `jobkras`
--

CREATE TABLE `jobkras` (
  `id` int(11) NOT NULL,
  `job_id` int(11) DEFAULT NULL,
  `kra_id` int(11) DEFAULT NULL,
  `target` varchar(100) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `jobopeningassignmenthistory`
--

CREATE TABLE `jobopeningassignmenthistory` (
  `id` int(11) NOT NULL,
  `jobopening_id` int(11) DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `assigneddate` datetime DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `jobopeningcommunicationhistory`
--

CREATE TABLE `jobopeningcommunicationhistory` (
  `id` int(11) NOT NULL,
  `jobopening_id` int(11) DEFAULT NULL,
  `jobopeningcommunicationtype_id` int(11) DEFAULT NULL,
  `followupdate` datetime DEFAULT NULL,
  `comment` text,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `jobopeningcommunicationtype`
--

CREATE TABLE `jobopeningcommunicationtype` (
  `id` int(11) NOT NULL,
  `displayorder` int(11) NOT NULL,
  `name` text,
  `weightage` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `jobopeningcommunicationtype`
--

INSERT INTO `jobopeningcommunicationtype` (`id`, `displayorder`, `name`, `weightage`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 1, 'Introduction Call', 5, 1, -1, '2020-05-14 01:30:08', -1, '2020-05-14 01:30:08', NULL, NULL),
(2, 2, 'Followup Calls', 1, 1, -1, '2019-12-25 11:18:04', -1, '2019-12-25 11:18:04', NULL, NULL),
(3, 3, 'Send Openings', NULL, 1, -1, '2019-12-25 11:18:44', -1, '2019-12-25 11:18:44', NULL, NULL),
(4, 4, 'Other', NULL, 1, -1, '2019-12-25 11:18:44', -1, '2019-12-25 11:18:44', NULL, NULL);

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

--
-- Table structure for table `jobopenings`
--

CREATE TABLE `jobopenings` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `department_id` int(11) DEFAULT NULL,
  `role_id` int(11) DEFAULT NULL,
  `status_id` int(11) DEFAULT NULL,
  `city_id` int(11) DEFAULT NULL,
  `degree_id` int(11) DEFAULT NULL,
  `deadline` datetime DEFAULT NULL,
  `experience` int(11) DEFAULT NULL,
  `jobdescription` varchar(500) DEFAULT NULL,
  `note` varchar(200) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `jobopeningskills`
--

CREATE TABLE `jobopeningskills` (
  `id` int(11) NOT NULL,
  `jobopening_id` int(11) DEFAULT NULL,
  `skill_id` int(11) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `jobplanningdetails`
--

CREATE TABLE `jobplanningdetails` (
  `id` int(11) NOT NULL,
  `jobplanning_id` int(11) DEFAULT NULL,
  `salesorder_id` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `qty` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `jobplannings`
--

CREATE TABLE `jobplannings` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `jobcode` varchar(255) DEFAULT NULL,
  `startdate` datetime DEFAULT NULL,
  `enddate` datetime DEFAULT NULL,
  `jobplanningstatus_id` int(11) DEFAULT NULL,
  `assignedto` int(11) DEFAULT NULL,
  `note` text,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `jobplanningstatus`
--

CREATE TABLE `jobplanningstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `jobplanningstatus`
--

INSERT INTO `jobplanningstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Open', 'OPEN', 1, 1, -1, '2021-05-24 17:09:40', -1, '2021-05-24 17:09:40', NULL, NULL),
(2, 'In Progress', 'INPROGRESS', 2, 1, -1, '2021-05-24 17:10:18', -1, '2021-05-24 17:10:18', NULL, NULL),
(3, 'On Hold', 'ONHOLD', 3, 1, -1, '2021-05-24 17:10:36', -1, '2021-05-24 17:10:36', NULL, NULL),
(4, 'Completed', 'COMPLETED', 4, 1, -1, '2021-05-24 17:10:51', -1, '2021-05-24 17:10:51', NULL, NULL),
(5, 'Cancelled', 'CANCELLED', 5, 1, -1, '2021-05-24 17:11:39', -1, '2021-05-24 17:11:39', NULL, NULL);

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

--
-- Table structure for table `jobplanningworkflow`
--

CREATE TABLE `jobplanningworkflow` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `description` text,
  `displayname` varchar(255) DEFAULT NULL,
  `displayorder` int(11) DEFAULT '0',
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `jobplanningworkflow`
--

INSERT INTO `jobplanningworkflow` (`id`, `name`, `description`, `displayname`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Job Start', 'Job Start', 'Job Start', 1, 1, -1, '2022-08-23 06:29:15', -1, '2022-08-23 06:29:15', NULL, NULL),
(2, 'Manufacturing', 'Manufacturing', 'Manufacturing', 2, 1, -1, '2022-08-23 06:29:15', -1, '2022-08-23 06:29:15', NULL, NULL),
(3, 'Quality Control', 'Quality Control', 'Quality Control', 3, 1, -1, '2022-08-23 06:29:15', -1, '2022-08-23 06:29:15', NULL, NULL),
(4, 'Batch Mapping', 'Batch Mapping', 'Batch Mapping', 4, 1, -1, '2022-08-23 06:29:15', -1, '2022-08-23 06:29:15', NULL, NULL),
(5, 'Job End', 'Job End', 'Job End', 5, 1, -1, '2022-08-23 06:29:15', -1, '2022-08-23 06:29:15', NULL, NULL);

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

--
-- Table structure for table `jobplanningworkflowdetails`
--

CREATE TABLE `jobplanningworkflowdetails` (
  `id` int(11) NOT NULL,
  `jobplanning_id` int(11) DEFAULT NULL,
  `jobplanningworkflow_id` int(11) DEFAULT NULL,
  `startdate` datetime DEFAULT NULL,
  `enddate` datetime DEFAULT NULL,
  `note` text,
  `jobplanningworkflowstatus_id` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `jobplanningworkflowstatus`
--

CREATE TABLE `jobplanningworkflowstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(100) DEFAULT NULL,
  `displayorder` int(10) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin ',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin ',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `jobplanningworkflowstatus`
--

INSERT INTO `jobplanningworkflowstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Start', 'START', 1, 1, -1, '2022-06-17 05:59:39', -1, '2022-06-17 05:59:39', NULL, NULL),
(2, 'Canceled', 'CANCELED', 2, 1, -1, '2022-06-17 05:59:39', -1, '2022-06-17 05:59:39', NULL, NULL),
(3, 'Pause', 'PAUSE', 3, 1, -1, '2022-06-17 05:59:39', -1, '2022-06-17 05:59:39', NULL, NULL),
(4, 'Completed', 'COMPLETED', 4, 1, -1, '2022-06-17 05:59:39', -1, '2022-06-17 05:59:39', NULL, NULL);

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

--
-- Table structure for table `jobstatus`
--

CREATE TABLE `jobstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `jobstatus`
--

INSERT INTO `jobstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Open', 'OPEN', 1, 1, -1, '2020-03-31 16:01:27', -1, '2020-03-31 16:01:27', NULL, NULL),
(2, 'In Progress', 'INPRO', 2, 1, -1, '2020-03-31 16:02:34', -1, '2020-03-31 16:02:34', NULL, NULL),
(3, 'Overdue', 'OVERDUE', 3, 1, -1, '2020-03-31 16:03:25', -1, '2020-03-31 16:03:25', NULL, NULL),
(4, 'Dead', 'DEAD', 4, 1, -1, '2020-03-31 16:06:39', -1, '2020-03-31 16:06:39', NULL, NULL),
(5, 'Closed', 'CLOSED', 5, 1, -1, '2020-03-31 16:07:55', -1, '2020-03-31 16:07:55', NULL, NULL);

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

--
-- Table structure for table `jobtitles`
--

CREATE TABLE `jobtitles` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `skillcategory_id` int(11) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `jobworkassignmenthistory`
--

CREATE TABLE `jobworkassignmenthistory` (
  `id` int(11) NOT NULL,
  `jobwork_id` int(11) DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `assigneedate` datetime DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `jobworkdocuments`
--

CREATE TABLE `jobworkdocuments` (
  `id` int(11) NOT NULL,
  `jobwork_id` int(11) DEFAULT NULL,
  `documentpath` varchar(255) DEFAULT NULL,
  `documenttype_id` int(11) DEFAULT NULL,
  `otherdocumenttype` varchar(50) DEFAULT NULL,
  `originalfilename` varchar(100) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `active` tinyint(4) DEFAULT '1',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default by -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value-1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `jobworkpaymentstatus`
--

CREATE TABLE `jobworkpaymentstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `jobworkpaymentstatus`
--

INSERT INTO `jobworkpaymentstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Paid', 'PAID', 1, 1, -1, '2021-02-13 12:08:26', -1, '2021-02-13 12:08:26', NULL, NULL),
(2, 'Partial Paid', 'PARTIALPAID', 2, 1, -1, '2021-02-13 12:08:26', -1, '2021-02-13 12:08:26', NULL, NULL),
(3, 'Pending', 'PENDING', 3, 1, -1, '2021-02-13 12:08:26', -1, '2021-02-13 12:08:26', NULL, NULL),
(5, 'Amc', 'AMC', 4, 1, -1, '2022-03-29 01:43:42', -1, '2022-03-29 01:43:42', NULL, NULL);

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

--
-- Table structure for table `jobworkresolutionhistory`
--

CREATE TABLE `jobworkresolutionhistory` (
  `id` int(11) NOT NULL,
  `jobwork_id` int(11) DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `resolution` varchar(500) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT ' Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT ' Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `jobworks`
--

CREATE TABLE `jobworks` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `calendar_id` int(11) DEFAULT NULL,
  `servicetype_id` int(11) DEFAULT NULL,
  `reference_id` int(11) DEFAULT NULL,
  `jobworktype_id` int(11) DEFAULT NULL,
  `address_id` int(50) DEFAULT NULL,
  `referencenumber` varchar(50) DEFAULT NULL,
  `title` text,
  `description` varchar(200) DEFAULT NULL,
  `allocation` datetime DEFAULT NULL,
  `jobworkstatus_id` int(11) DEFAULT NULL,
  `jobworkpaymentstatus_id` int(11) DEFAULT NULL,
  `note` text,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `jobworkstatus`
--

CREATE TABLE `jobworkstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `jobworkstatus`
--

INSERT INTO `jobworkstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Open', 'OPEN', 1, 1, -1, '2020-09-04 15:52:13', -1, '2020-09-04 15:52:13', NULL, NULL),
(2, 'In Progress', 'INPRO', 2, 1, -1, '2020-09-04 15:52:41', -1, '2020-09-04 15:52:41', NULL, NULL),
(3, 'Closed', 'CLOSED', 3, 1, -1, '2020-09-04 15:52:54', -1, '2020-09-04 15:52:54', NULL, NULL),
(4, 'On Hold', 'ONHOLD', 4, 1, -1, '2020-09-04 15:53:05', -1, '2020-09-04 15:53:05', NULL, NULL),
(5, 'Unresolved', 'UNRES', 5, 1, -1, '2020-09-20 11:10:22', -1, '2020-09-20 11:10:22', NULL, NULL);

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

--
-- Table structure for table `jobworktypes`
--

CREATE TABLE `jobworktypes` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `jobworktypes`
--

INSERT INTO `jobworktypes` (`id`, `name`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Quotation', 1, -1, '2021-09-13 11:56:31', -1, '2021-09-13 11:56:31', NULL, NULL),
(2, 'AMC', 1, -1, '2021-09-13 11:56:31', -1, '2021-09-13 11:56:31', NULL, NULL);

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

--
-- Table structure for table `jobworkvisits`
--

CREATE TABLE `jobworkvisits` (
  `id` int(11) NOT NULL,
  `jobwork_id` int(11) DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `inlocation` varchar(2000) DEFAULT NULL,
  `outlocation` varchar(2000) DEFAULT NULL,
  `inlatitude` decimal(18,2) DEFAULT NULL,
  `outlatitude` decimal(18,2) DEFAULT NULL,
  `inlongitude` decimal(18,2) DEFAULT NULL,
  `outlongitude` decimal(18,2) DEFAULT NULL,
  `intime` datetime DEFAULT NULL,
  `outtime` datetime DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `kpi`
--

CREATE TABLE `kpi` (
  `id` int(11) NOT NULL,
  `department_id` int(11) DEFAULT NULL,
  `role_id` int(11) DEFAULT NULL,
  `name` text,
  `kpicode` varchar(200) DEFAULT NULL,
  `weightage` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `kra`
--

CREATE TABLE `kra` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `leadqualificationanswers`
--

CREATE TABLE `leadqualificationanswers` (
  `id` int(11) NOT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `questionnaire_id` int(11) DEFAULT NULL,
  `answer_id` int(11) DEFAULT NULL,
  `answer` text,
  `weightage` int(11) DEFAULT NULL,
  `active` int(11) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value  -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value  -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `leadsources`
--

CREATE TABLE `leadsources` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `name` varchar(50) DEFAULT NULL,
  `icon` varchar(255) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `leaveapplication`
--

CREATE TABLE `leaveapplication` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `status_id` int(11) DEFAULT NULL,
  `startdate` datetime DEFAULT NULL,
  `enddate` datetime DEFAULT NULL,
  `noofdays` decimal(18,2) DEFAULT NULL,
  `approvedby_id` int(11) DEFAULT NULL,
  `approveddate` datetime DEFAULT NULL,
  `note` varchar(200) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `leaveapplicationdetails`
--

CREATE TABLE `leaveapplicationdetails` (
  `id` int(11) NOT NULL,
  `leaveapplication_id` int(11) DEFAULT NULL,
  `daytype_id` int(11) DEFAULT NULL,
  `leavetype_id` int(11) DEFAULT NULL,
  `leavedate` datetime DEFAULT NULL,
  `days` decimal(18,2) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `leavetypes`
--

CREATE TABLE `leavetypes` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `leavetypes`
--

INSERT INTO `leavetypes` (`id`, `name`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Paid', 1, -1, '2020-11-27 21:13:27', -1, '2020-11-27 21:13:27', NULL, NULL),
(2, 'Unpaid', 1, -1, '2020-11-27 21:13:51', -1, '2020-11-27 21:13:51', NULL, NULL),
(3, 'Parental', 1, -1, '2020-11-27 21:14:31', -1, '2020-11-27 21:14:31', NULL, NULL),
(4, 'Sick', 1, -1, '2020-12-03 13:05:37', -1, '2020-12-03 13:05:37', NULL, NULL);

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

--
-- Table structure for table `loanrepayments`
--

CREATE TABLE `loanrepayments` (
  `id` int(11) NOT NULL,
  `loan_id` int(11) DEFAULT NULL,
  `paymentdate` datetime DEFAULT NULL,
  `installmentamount` decimal(18,2) DEFAULT NULL,
  `principleamount` decimal(18,2) DEFAULT NULL,
  `interestamount` decimal(18,2) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1\r\nif for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1\r\nif for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `loans`
--

CREATE TABLE `loans` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `paymentcycle_id` int(11) DEFAULT NULL,
  `loanstatus_id` int(11) DEFAULT NULL,
  `loanamount` int(11) DEFAULT NULL,
  `monthlysalary` int(11) DEFAULT NULL,
  `eligibleloanamount` int(11) DEFAULT NULL,
  `eligibility` varchar(20) DEFAULT NULL,
  `managementdecision` varchar(20) DEFAULT NULL,
  `interestrate` decimal(18,2) DEFAULT NULL,
  `loanduration` int(11) DEFAULT NULL,
  `startdate` datetime DEFAULT NULL,
  `enddate` datetime DEFAULT NULL,
  `note` text,
  `active` tinyint(4) DEFAULT '0' COMMENT '	',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `loanschedules`
--

CREATE TABLE `loanschedules` (
  `id` int(11) NOT NULL,
  `loan_id` int(11) DEFAULT NULL,
  `scheduledate` datetime DEFAULT NULL,
  `paymentdate` datetime DEFAULT NULL,
  `principle` decimal(18,2) DEFAULT NULL,
  `interest` decimal(18,2) DEFAULT NULL,
  `installment` decimal(18,2) DEFAULT NULL,
  `loanschedulestatus_id` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `loanschedulestatus`
--

CREATE TABLE `loanschedulestatus` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT '	Default value -1 if for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT '	Default value -1 if for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `loanschedulestatus`
--

INSERT INTO `loanschedulestatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Paid', 'PAID', 1, 1, -1, '2020-12-04 21:21:12', -1, '2020-12-04 21:21:12', NULL, NULL),
(2, 'Unpaid', 'UNPAID', 2, 1, -1, '2020-12-04 21:21:51', -1, '2020-12-04 21:21:51', NULL, NULL);

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

--
-- Table structure for table `loanstatus`
--

CREATE TABLE `loanstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `loanstatus`
--

INSERT INTO `loanstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Approved', 'APPROV', 1, 1, -1, '2020-10-04 05:37:20', -1, '2020-10-04 05:37:20', NULL, NULL),
(2, 'Pending', 'PENDING', 2, 1, -1, '2020-10-04 05:37:20', -1, '2020-10-04 05:37:20', NULL, NULL),
(3, 'Closed', 'CLOSED', 3, 1, -1, '2020-10-04 05:37:20', -1, '2020-10-04 05:37:20', NULL, NULL),
(4, 'Rejected', 'REJECT', 4, 1, -1, '2020-10-04 05:37:20', -1, '2020-10-04 05:37:20', NULL, NULL);

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

--
-- Table structure for table `logisticsdetails`
--

CREATE TABLE `logisticsdetails` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `salesorder_id` int(11) DEFAULT NULL,
  `couriercompany` varchar(100) DEFAULT NULL,
  `courierdescription` text,
  `trackingno` varchar(50) DEFAULT NULL,
  `courierdate` date DEFAULT NULL,
  `paymentstatus_id` int(11) DEFAULT NULL,
  `note` text,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `logisticspaymentstatus`
--

CREATE TABLE `logisticspaymentstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(100) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin ',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin ',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `logisticspaymentstatus`
--

INSERT INTO `logisticspaymentstatus` (`id`, `name`, `code`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Due', 'DUE', 1, -1, '2022-07-18 07:08:32', -1, '2022-07-18 07:08:32', NULL, NULL),
(2, 'Received', 'RECEIVED', 1, -1, '2022-07-18 07:08:32', -1, '2022-07-18 07:08:32', NULL, NULL),
(3, 'Any', 'ANY', 1, -1, '2022-07-18 07:08:32', -1, '2022-07-18 07:08:32', NULL, NULL);

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

--
-- Table structure for table `logstatus`
--

CREATE TABLE `logstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `logstatus`
--

INSERT INTO `logstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Success', 'SUCCESS', 1, 1, -1, '2020-12-30 15:53:22', -1, '2020-12-30 15:53:22', NULL, NULL),
(2, 'Failed', 'FAILED', 2, 1, -1, '2020-12-30 15:53:50', -1, '2020-12-30 15:53:50', NULL, NULL);

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

--
-- Table structure for table `lwfsettings`
--

CREATE TABLE `lwfsettings` (
  `id` int(11) NOT NULL,
  `year_id` int(11) DEFAULT NULL,
  `month_id` int(11) DEFAULT NULL,
  `amount` decimal(18,2) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `marketingcommunicationhistory`
--

CREATE TABLE `marketingcommunicationhistory` (
  `id` int(11) NOT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `template_id` int(11) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `materials`
--

CREATE TABLE `materials` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `active` tinyint(4) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_at` datetime DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `mcqanswers`
--

CREATE TABLE `mcqanswers` (
  `id` int(11) NOT NULL,
  `mcqquestionnaire_id` int(11) DEFAULT NULL,
  `title` text,
  `score` int(11) DEFAULT NULL,
  `active` int(11) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `mcqquestionnaire`
--

CREATE TABLE `mcqquestionnaire` (
  `id` int(11) NOT NULL,
  `title` text,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value  -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value  -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `mcqweightages`
--

CREATE TABLE `mcqweightages` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `weightage` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `mcqweightages`
--

INSERT INTO `mcqweightages` (`id`, `name`, `weightage`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Good', 2, 1, -1, '2020-08-07 12:10:30', -1, '2020-08-07 12:10:30', NULL, NULL),
(2, 'Ok', 1, 1, -1, '2020-08-07 12:10:59', -1, '2020-08-07 12:10:59', NULL, NULL),
(3, 'Bad', -1, 1, -1, '2020-08-07 12:11:21', -1, '2020-08-07 12:11:21', NULL, NULL),
(4, 'Not applicable', 0, 1, -1, '2020-08-07 12:13:35', -1, '2020-08-07 12:13:35', NULL, NULL);

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

--
-- Table structure for table `measurementtypes`
--

CREATE TABLE `measurementtypes` (
  `id` int(11) NOT NULL,
  `name` varchar(20) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `measurementtypes`
--

INSERT INTO `measurementtypes` (`id`, `name`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'FT', 1, -1, '2022-01-20 10:19:25', -1, '2022-01-20 10:19:25', NULL, NULL),
(2, 'NOS', 1, -1, '2022-01-20 10:19:25', -1, '2022-01-20 10:19:25', NULL, NULL),
(3, 'LS', 1, -1, '2022-01-20 10:19:25', -1, '2022-01-20 10:19:25', NULL, NULL),
(4, 'Days', 1, -1, '2022-01-20 10:19:25', -1, '2022-01-20 10:19:25', NULL, NULL),
(5, 'EA', 1, -1, '2022-01-20 10:19:25', -1, '2022-01-20 10:19:25', NULL, NULL),
(6, 'SF', 1, -1, '2022-01-20 10:19:25', -1, '2022-01-20 10:19:25', NULL, NULL),
(7, '8MM', 1, -1, '2022-01-20 10:19:25', -1, '2022-01-20 10:19:25', NULL, NULL),
(8, '10MM', 1, -1, '2022-01-20 10:19:25', -1, '2022-01-20 10:19:25', NULL, NULL),
(9, 'KG', 1, -1, '2022-01-20 10:19:25', -1, '2022-01-20 10:19:25', NULL, NULL),
(10, 'MM', 1, -1, '2022-01-20 10:19:25', -1, '2022-01-20 10:19:25', NULL, NULL);

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

--
-- Table structure for table `moduleareas`
--

CREATE TABLE `moduleareas` (
  `id` int(11) NOT NULL,
  `module_id` int(11) DEFAULT NULL,
  `area_id` int(11) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `moduleareas`
--

INSERT INTO `moduleareas` (`id`, `module_id`, `area_id`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 1, 1, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(2, 1, 2, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(3, 1, 3, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(4, 1, 4, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(5, 2, 1, 0, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(6, 2, 5, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(7, 2, 6, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(8, 2, 8, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(9, 2, 9, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(10, 2, 10, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(11, 2, 11, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(12, 2, 12, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(13, 2, 13, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(14, 2, 14, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(15, 2, 15, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(16, 2, 20, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(17, NULL, 19, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(18, 2, 21, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(19, 2, 22, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(20, 2, 7, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(21, 2, 16, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(22, 2, 23, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(23, 2, 24, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(24, 2, 25, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(25, 2, 26, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(26, 2, 27, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(27, 2, 28, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(28, 2, 29, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(29, 2, 30, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(30, 2, 31, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(31, 2, 32, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(32, 2, 33, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(33, 2, 34, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(34, 2, 35, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(35, 2, 36, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(36, 2, 38, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(37, 2, 39, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(38, 2, 40, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(39, 2, 41, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(40, 2, 44, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(41, 2, 45, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(42, 2, 46, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(43, 2, 47, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(44, 2, 48, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(45, 2, 49, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(46, 2, 50, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(47, 2, 37, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(48, 2, 51, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(49, 2, 52, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(50, 2, 53, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(51, 2, 54, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(52, 2, 42, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(53, 2, 43, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(54, 2, 55, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(55, 2, 56, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(56, 2, 57, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(57, 2, 58, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(58, 2, 17, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(59, 2, 18, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(60, 2, 59, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(61, 2, 60, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(62, 2, 61, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(63, 3, 1, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(64, 3, 62, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(65, 3, 63, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(66, 3, 64, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(67, 3, 65, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(68, 3, 66, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(69, 3, 67, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(70, 3, 68, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(71, 3, 69, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(72, 4, 1, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(73, 4, 70, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(74, 4, 71, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(75, 4, 72, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(76, 4, 74, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(77, 4, 73, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(78, 4, 75, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(79, 4, 76, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(80, 4, 77, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(81, 4, 78, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(82, 5, 1, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(83, 5, 79, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(84, 5, 80, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(85, 5, 86, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(86, 5, 87, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(87, 5, 81, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(88, 5, 83, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(89, 5, 84, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(90, 5, 85, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(91, 5, 88, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(92, 5, 90, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(93, 5, 91, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(94, 5, 89, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(95, 5, 92, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(96, 5, 93, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(97, 5, 94, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(98, 5, 95, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(99, 5, 96, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(100, 5, 97, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(101, 5, 98, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(102, 5, 99, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(103, 5, 100, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(104, 5, 101, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(105, 5, 102, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(106, 5, 103, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(107, 5, 104, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(108, 5, 105, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(109, 5, 106, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(110, 5, 107, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(111, 7, 1, 0, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(112, 7, 108, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(113, 7, 109, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(114, 7, 110, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(115, 7, 111, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(116, 7, 112, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(117, 7, 113, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(118, 7, 114, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(119, 7, 115, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(120, 7, 116, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(121, 7, 117, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(122, 7, 119, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(123, 7, 118, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(124, 7, 120, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(125, 7, 121, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(126, 7, 122, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(127, 7, 123, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(128, 7, 124, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(129, 7, 125, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(130, 7, 126, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(131, 7, 127, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(132, 7, 128, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(133, 7, 129, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(134, 7, 131, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(135, 7, 130, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(136, 8, 1, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(137, 8, 132, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(138, 8, 134, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(139, 8, 133, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(140, 8, 135, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(141, 8, 136, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(142, 8, 138, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(143, 8, 139, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(144, 8, 137, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(145, 8, 140, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(146, 8, 141, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(147, 8, 142, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(148, 8, 143, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(149, 8, 144, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(150, 8, 147, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(151, 8, 148, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(152, 8, NULL, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(153, 8, 145, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(154, 8, 146, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(155, 8, 149, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(156, 8, 151, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(157, 8, 152, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(158, 8, 153, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(159, 8, 154, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(160, 8, 155, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(161, 8, 156, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(162, 8, 157, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(163, 8, 158, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(164, 8, 159, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(165, 8, 150, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(166, 8, 160, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(167, 8, 161, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(168, 8, 162, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(169, 8, 163, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(170, 11, 1, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(171, 11, 166, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(172, 11, 170, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(173, 11, 167, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(174, 11, 168, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(175, 11, 171, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(176, 11, 169, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(177, 11, 172, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(178, 11, 165, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(179, 11, 173, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(180, 11, 174, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(181, 11, 176, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(182, 11, 178, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(183, 11, 177, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(184, 11, 179, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(185, 11, 180, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(186, 11, 181, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(187, 11, 182, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(188, 11, 183, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(189, 11, 184, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(190, 11, 185, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(191, 11, 164, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(192, 14, 186, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(193, 14, 191, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(194, 14, 187, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(195, 14, 188, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(196, 14, 189, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(197, 14, 190, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(198, 14, 194, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(199, 14, 195, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(200, 14, 192, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(201, 14, 193, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(202, 15, NULL, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(203, 13, 196, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(204, 13, 198, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(205, 13, 199, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(206, 13, 200, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(207, 13, 210, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(208, 13, 211, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(209, 13, 201, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(210, 13, 202, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(211, 13, 204, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(212, 13, 209, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(213, 13, 205, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(214, 13, 208, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(215, 13, 206, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(216, 13, 207, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(217, 13, 212, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(218, 13, 197, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(219, 13, 213, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(220, 13, 214, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(221, 13, 215, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(222, 13, 216, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(223, 13, 217, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(224, 13, 218, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(225, 13, 219, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(226, 13, 220, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(227, 13, 221, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(228, 13, 223, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(229, 13, 224, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(230, 13, 225, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(231, 13, 226, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(232, 13, 222, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(233, 13, 227, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(234, 13, 228, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(235, 13, 232, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(236, 13, 229, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(237, 13, 230, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(238, 13, 233, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(239, 13, 234, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(240, 13, 235, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(241, 13, 236, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(242, 13, 237, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(243, 13, 238, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(244, 13, 239, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(245, 13, 242, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(246, 13, 243, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(247, 13, 244, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(248, 13, 245, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(249, 13, 246, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(250, 13, 247, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(251, 13, 250, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(252, 13, 254, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(253, 13, 203, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(254, 13, 240, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(255, 13, 241, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(256, 13, 248, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(257, 13, 252, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(258, 13, 251, 1, -1, '2022-09-13 05:08:54', -1, '2022-09-13 05:08:54', NULL, NULL),
(259, 13, 253, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(260, 13, 249, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(261, 13, 255, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(262, 13, 256, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(263, 16, 257, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(264, 16, 258, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(265, 16, 259, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(266, 16, 260, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(267, 16, 261, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(268, 16, 262, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(269, 10, 1, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(270, 10, 264, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(271, 10, 265, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(272, 10, 263, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(273, 10, 266, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(274, 10, 267, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(275, 9, 1, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(276, 9, 272, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(277, 9, 273, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(278, 9, 274, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(279, 9, 276, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(280, 9, 277, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(281, 9, 270, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(282, 9, 279, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(283, 9, 271, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(284, 9, 268, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(285, 9, 275, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(286, 9, 269, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(287, 9, 278, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(288, 9, 282, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(289, 9, 287, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(290, 9, 283, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(291, 9, 281, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(292, 9, 286, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(293, 9, 284, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(294, 9, 285, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(295, 9, 289, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(296, 9, 291, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(297, 9, 280, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(298, 9, 290, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(299, 9, 288, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(300, 9, 292, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(301, 12, 1, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(302, 12, 293, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(303, 6, 1, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(304, 19, 294, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(305, 19, 295, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(306, 19, 296, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(307, 23, 294, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(308, 23, 297, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(309, 23, 298, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(310, 18, NULL, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(311, 20, NULL, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(312, 21, NULL, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(313, 22, NULL, 1, -1, '2022-09-13 05:08:55', -1, '2022-09-13 05:08:55', NULL, NULL),
(314, 11, 175, 1, -1, '2022-09-13 12:29:42', -1, '2022-09-13 12:29:42', NULL, NULL);

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

--
-- Table structure for table `modules`
--

CREATE TABLE `modules` (
  `id` int(11) NOT NULL,
  `applicationtype_id` int(11) DEFAULT NULL,
  `name` text,
  `code` varchar(100) DEFAULT NULL,
  `displayname` varchar(255) DEFAULT NULL,
  `icon` varchar(255) DEFAULT NULL,
  `routes` varchar(255) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `modules`
--

INSERT INTO `modules` (`id`, `applicationtype_id`, `name`, `code`, `displayname`, `icon`, `routes`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 1, 'Business Goals', 'BG', 'Business Goals', 'assets/menuicon/decisionscience.svg', NULL, 1, 0, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(2, 1, 'Sales', 'SM', 'Sales', 'assets/menuicon/salesandmarketing.svg', NULL, 2, 1, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(3, 1, 'Customer Relations', 'CR', 'Customer Relations', 'assets/menuicon/customerrelation.svg', NULL, 3, 1, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(4, 1, 'Projects', 'PM', 'Projects', 'assets/menuicon/projectmanagement.svg', NULL, 4, 0, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(5, 1, 'Supply Chain', 'SC', 'Supply Chain', 'assets/menuicon/supplychain.svg', NULL, 5, 1, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(6, 1, 'Logistic & Tracking', 'LT', 'Logistic &  Tracking', 'assets/menuicon/decisionscience.svg', NULL, 13, 0, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(7, 1, 'Human Resources', 'HR', 'Human Resources', 'assets/menuicon/humanresource.svg', NULL, 7, 1, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(8, 1, 'Payroll', 'PR', 'Payroll', 'assets/menuicon/payroll.svg', NULL, 8, 1, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(9, 1, 'Business Consulting', 'BC', 'Business Consulting', 'assets/menuicon/projectmanagement.svg', NULL, 9, 0, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(10, 1, 'Franchise', 'FR', 'Franchise', 'assets/menuicon/businessinsight.svg', NULL, 10, 0, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(11, 1, 'Finance', 'FN', 'Finance & Account', 'assets/menuicon/salesandmarketing.svg', NULL, 11, 1, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(12, 1, 'Ecommerce', 'ECM', 'Ecommerce', 'assets/menuicon/businessinsight.svg', NULL, 12, 0, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(13, 1, 'Master Data', 'MD', 'Master Data', 'assets/menuicon/masterdata.svg', NULL, 14, 1, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(14, 1, 'Back Office', 'BO', 'Back Office', 'assets/menuicon/backoffice.svg', NULL, 15, 0, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(15, 1, 'Business Insights', 'BI', 'Business Insights', 'assets/menuicon/businessinsight.svg', '/analytics', 13, 0, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(16, 1, 'Configuration', 'PC', 'Configuration', 'assets/menuicon/platformconfiguration.svg', NULL, 16, 1, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(17, 1, 'Common', 'CO', 'Common', NULL, NULL, 15, 1, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(18, 2, 'Sales', 'SSM', 'Sales', 'assets/menuicon/salesandmarketing.svg', NULL, 2, 0, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(19, 2, 'Customer Relations', 'SCR', 'Customer Relations', 'assets/menuicon/customerrelation.svg', NULL, 3, 0, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(20, 2, 'Project Management', 'SPM', 'Project Management', 'assets/menuicon/projectmanagement.svg', NULL, 4, 0, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(21, 2, 'Supply Chain', 'SSC', 'Supply Chain', 'assets/menuicon/supplychain.svg', NULL, 5, 0, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(22, 2, 'Human Resources', 'SHR', 'Human Resources', 'assets/menuicon/humanresource.svg', NULL, 6, 0, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL),
(23, 2, 'Payroll', 'SPR', 'Payroll', 'assets/menuicon/payroll.svg', NULL, 7, 0, -1, '2022-09-13 05:02:08', -1, '2022-09-13 05:02:08', NULL, NULL);

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

--
-- Table structure for table `months`
--

CREATE TABLE `months` (
  `id` int(11) NOT NULL,
  `month` varchar(20) NOT NULL,
  `active` tinyint(4) NOT NULL,
  `created_by` int(11) NOT NULL DEFAULT '-1',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `months`
--

INSERT INTO `months` (`id`, `month`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'January', 1, -1, '2020-10-02 17:15:13', -1, '2020-10-02 17:15:13', NULL, NULL),
(2, 'February', 1, -1, '2020-10-02 17:15:13', -1, '2020-10-02 17:15:13', NULL, NULL),
(3, 'March', 1, -1, '2020-10-02 17:15:13', -1, '2020-10-02 17:15:13', NULL, NULL),
(4, 'April', 1, -1, '2020-10-02 17:15:13', -1, '2020-10-02 17:15:13', NULL, NULL),
(5, 'May', 1, -1, '2020-10-02 17:15:13', -1, '2020-10-02 17:15:13', NULL, NULL),
(6, 'June', 1, -1, '2020-10-02 17:15:13', -1, '2020-10-02 17:15:13', NULL, NULL),
(7, 'July', 1, -1, '2020-10-02 17:15:13', -1, '2020-10-02 17:15:13', NULL, NULL),
(8, 'August', 1, -1, '2020-10-02 17:15:13', -1, '2020-10-02 17:15:13', NULL, NULL),
(9, 'September', 1, -1, '2020-10-02 17:15:13', -1, '2020-10-02 17:15:13', NULL, NULL),
(10, 'October', 1, -1, '2020-10-02 17:15:13', -1, '2020-10-02 17:15:13', NULL, NULL),
(11, 'November', 1, -1, '2020-10-02 17:16:09', -1, '2020-10-02 17:16:09', NULL, NULL),
(12, 'December', 1, -1, '2020-10-02 17:16:09', -1, '2020-10-02 17:16:09', NULL, NULL);

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

--
-- Table structure for table `notifications`
--

CREATE TABLE `notifications` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `oldvalue` varchar(200) DEFAULT NULL,
  `newvalue` varchar(200) DEFAULT NULL,
  `notes` varchar(200) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `octanicsaccounts`
--

CREATE TABLE `octanicsaccounts` (
  `id` int(11) NOT NULL,
  `customerreference_id` int(11) DEFAULT NULL,
  `firstname` varchar(50) DEFAULT NULL,
  `lastname` varchar(50) DEFAULT NULL,
  `companyname` varchar(100) DEFAULT NULL,
  `address` text,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `orderreferencetypes`
--

CREATE TABLE `orderreferencetypes` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `orderreferencetypes`
--

INSERT INTO `orderreferencetypes` (`id`, `name`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Salesorder', 1, -1, '2022-06-08 17:39:34', -1, '2022-06-08 17:39:34', NULL, NULL),
(2, 'Invoice', 1, -1, '2022-06-08 17:39:34', -1, '2022-06-08 17:39:34', NULL, NULL);

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

--
-- Table structure for table `orderworkflow`
--

CREATE TABLE `orderworkflow` (
  `id` int(11) NOT NULL,
  `name` varchar(30) DEFAULT NULL,
  `description` text,
  `displayname` varchar(30) DEFAULT NULL,
  `displayorder` int(11) DEFAULT '0',
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `orderworkflow`
--

INSERT INTO `orderworkflow` (`id`, `name`, `description`, `displayname`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Order', 'Order', 'Order', 1, 1, -1, '2022-07-26 06:30:33', -1, '2022-07-26 06:30:33', NULL, NULL),
(2, 'Procurement', 'Procurement', 'Procurement', 2, 1, -1, '2022-07-26 06:30:33', -1, '2022-07-26 06:30:33', NULL, NULL),
(3, 'Job Planning', 'Job Planning', 'Job Planning', 3, 1, -1, '2022-07-26 06:30:33', -1, '2022-07-26 06:30:33', NULL, NULL),
(4, 'Quality Control', 'Quality Control', 'Quality Control', 4, 1, -1, '2022-07-26 06:30:33', -1, '2022-07-26 06:30:33', NULL, NULL),
(5, 'Logistic', 'Logistic', 'Logistic', 5, 1, -1, '2022-07-26 06:30:33', -1, '2022-07-26 06:30:33', NULL, NULL),
(6, 'Delivery', 'Delivery', 'Delivery', 6, 1, -1, '2022-07-26 06:30:33', -1, '2022-07-26 06:30:33', NULL, NULL);

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

--
-- Table structure for table `orderworkflowdetails`
--

CREATE TABLE `orderworkflowdetails` (
  `id` int(11) NOT NULL,
  `reference_id` int(11) DEFAULT NULL,
  `orderreferencetype_id` int(11) DEFAULT NULL,
  `orderworkflow_id` int(11) DEFAULT NULL,
  `start_date` datetime DEFAULT CURRENT_TIMESTAMP,
  `end_date` datetime DEFAULT CURRENT_TIMESTAMP,
  `note` text,
  `orderworkflowstatus_id` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `orderworkflowstatus`
--

CREATE TABLE `orderworkflowstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(15) DEFAULT NULL,
  `code` varchar(10) DEFAULT NULL,
  `displayorder` int(11) DEFAULT '0',
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `orderworkflowstatus`
--

INSERT INTO `orderworkflowstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Start', 'START', 1, 1, -1, '2022-05-31 15:43:31', -1, '2022-05-31 15:43:31', NULL, NULL),
(2, 'Pause', 'PAUSE', 2, 1, -1, '2022-05-31 15:46:23', -1, '2022-05-31 15:46:23', NULL, NULL),
(3, 'Canceled', 'CNSL', 3, 1, -1, '2022-05-31 15:47:38', -1, '2022-05-31 15:47:38', NULL, NULL),
(4, 'Completed', 'CMPLT', 4, 1, -1, '2022-05-31 15:47:38', -1, '2022-05-31 15:47:38', NULL, NULL);

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

--
-- Table structure for table `orientation`
--

CREATE TABLE `orientation` (
  `id` int(11) NOT NULL,
  `department_id` int(11) DEFAULT NULL,
  `title` text,
  `document` varchar(200) DEFAULT NULL,
  `video` varchar(200) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `orientationanswers`
--

CREATE TABLE `orientationanswers` (
  `id` int(11) NOT NULL,
  `orientationquestionnaire_id` int(11) DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `correctanswer1` tinyint(1) DEFAULT '0',
  `correctanswer2` tinyint(1) DEFAULT '0',
  `correctanswer3` tinyint(1) DEFAULT '0',
  `correctanswer4` tinyint(1) DEFAULT '0',
  `score` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default by -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default by -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `orientationquestionnaire`
--

CREATE TABLE `orientationquestionnaire` (
  `id` int(11) NOT NULL,
  `orientation_id` int(11) DEFAULT NULL,
  `title` varchar(100) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default by -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default by -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `orientationstatus`
--

CREATE TABLE `orientationstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `orientationstatus`
--

INSERT INTO `orientationstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Re-Do', 'REDO', 1, 1, -1, '2020-07-08 00:05:50', -1, '2020-07-08 00:05:50', NULL, NULL),
(2, 'Completed', 'COMPLETED', 2, 1, -1, '2020-07-08 00:06:00', -1, '2020-07-08 00:06:00', NULL, NULL),
(3, 'Pending', 'PENDING', 3, 0, -1, '2020-07-08 00:06:10', -1, '2020-07-08 00:06:10', NULL, NULL);

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

--
-- Table structure for table `overheadcost`
--

CREATE TABLE `overheadcost` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `amount` decimal(18,2) DEFAULT NULL,
  `startdate` datetime DEFAULT NULL,
  `enddate` datetime DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `parameters`
--

CREATE TABLE `parameters` (
  `id` int(11) NOT NULL,
  `module_id` int(11) DEFAULT NULL,
  `name` varchar(200) DEFAULT NULL,
  `value` varchar(100) DEFAULT NULL,
  `datatype` varchar(20) DEFAULT NULL,
  `code` varchar(50) DEFAULT NULL,
  `note` text,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `parameters`
--

INSERT INTO `parameters` (`id`, `module_id`, `name`, `value`, `datatype`, `code`, `note`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 2, 'Average Profit Margin', '0.50', 'decimal', 'APM', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(2, 2, 'Default Qty', '1', 'integer', 'DFTQTY', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(3, 2, 'Default Warranty', '12', 'int', 'DFTWARRANTY', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(4, 2, 'Quotation PDF Horizontal Total BG Color', 'white', 'varchar', 'DFHTOTALBGCOLOR', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(5, 2, 'Quotation PDF Horizontal Total Font Color', 'black', 'varchar', 'DFHTOTALFONTCOLOR', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(6, 2, 'Quotation PDF Portrait', '0', 'tinyint', 'QPORTRAIT', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(7, 2, 'Quotation PDF Landscape', '1', 'tinyint', 'QLANDSCAPE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(8, 2, 'BOQ PDF Portrait', '1', 'tinyint', 'BOQPORTRAIT', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(9, 2, 'BOQ PDF Landscape', '0', 'tinyint', 'BOQLANDSCAPE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(10, 2, 'Show Quotation Payment Details', '1', 'tinyint', 'SQUOTPAYMENTDETAILS', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(11, 2, 'Customer No Series', '100', 'int', 'CUSTNOSER', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(12, 2, 'Customer No Prefix', 'C', 'varchar', 'CUSTNOPRE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(13, 2, 'Indiamart No Prefix', 'IN', 'varchar', 'INDIAMARTNOPRE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(14, 2, 'Default Quotation Title', NULL, 'varchar', 'DFTQUOTETITLE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(15, 2, 'Quotation Company Stamp & Signature Footer', '0', 'tinyint', 'QUOTECOMPANYSTAMPSIGN', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(16, 2, 'Quotation Terms & Condition Page Break', '1', 'tinyint', 'QUOTETERMSCONDFORPAGEBREAK', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(17, 2, 'Invoice Company Stamp & Signature Footer', '0', 'tinyint', 'INVCOMPANYSTAMPSIGN', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(18, 2, 'Invoice Terms & Condition Page Break', '1', 'tinyint', 'INVTERMSCONDFORPAGEBREAK', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(19, 2, 'Sales Order Company Stamp & Signature Footer', '0', 'tinyint', 'SALESCOMPANYSTAMPSIGN', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(20, 2, 'Sales Order Terms & Condition Page Break', '1', 'tinyint', 'SALESTERMSCONDFORPAGEBREAK', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(21, 2, 'Tredindia No Prefix', 'T', 'varchar', 'TREDINDIANOPRE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(22, 2, 'Quotation Pdf Format', 'General', 'VARCHAR', 'QUOTEPDFPARAMETER', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(23, 2, 'Delivery Challan PDF Portrait', '0', 'tinyint', 'DCPORTRAIT', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(24, 2, 'Delivery Challan PDF Landscape', '1', 'tinyint', 'DCLANDSCAPE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(25, 2, 'Delivery Challan Terms and Condition Page Break', '1', 'tinyint', 'DCTERMSANDCONDITIONPAGEBREAK', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(26, 2, 'Delivery Challan Company Stamp And Sign', '1', 'tinyint', 'DCCOMPANYSTAMPANDSIGN', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(27, 2, 'Invoice Pdf Format', 'Industrial', 'VARCHAR', 'INVOICEPDFPARAMETER', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(28, 2, 'Sales Order Pdf Format', 'Industrial', 'VARCHAR', 'SALEAORDERPDFPARAMETER', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(29, 2, 'Consignment Challan PDF Portrait', '0', 'tinyint', 'CONSIGNPORTRAIT', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(30, 2, 'Consignment Challan PDF Landscape', '1', 'tinyint', 'CONSIGNLANDSCAPE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(31, 2, 'Consignment Challan Terms and Condition Page Break', '1', 'tinyint', 'CONSIGNTERMSANDCONDITIONPAGEBREAK', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(32, 2, 'Consignment Challan Company Stamp And Sign', '1', 'tinyint', 'CONSIGNCOMPANYSTAMPANDSIGN', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(33, 2, 'Quotation Exclusion Page Break', '1', 'tinyint', 'QUOTEEXCLUSIONPAGEBREAK', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(34, 2, 'Quotation Product Import', '1', 'boolean', 'QUOTEPRODIMPORT', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(35, 2, 'Invoice Product Import', '1', 'boolean', 'INVPRODIMPORT', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(36, 2, 'Sales Order Product Import', '1', 'boolean', 'SALESPRODIMPORT', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(37, 2, 'Quotation Company Stamp', '1', 'boolean', 'QUOTECOMPANYSTAMP', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(38, 2, 'Invoice Company Stamp', '1', 'boolean', 'INVCOMPANYSTAMP', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(39, 2, 'Sales Order Company Stamp', '1', 'boolean', 'SALESCOMPANYSTAMP', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(40, 2, 'Bill Of Quantity Company Stamp', '1', 'boolean', 'BOQCOMPANYSTAMP', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(41, 2, 'Delivery Challan Company Stamp', '1', 'boolean', 'DELIVERYCOMPANYSTAMP', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(42, 2, 'Consignment Challan Company Stamp', '1', 'boolean', 'CONSIGNMENTCOMPANYSTAMP', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(43, NULL, 'PDF Page Number', '0', 'tinyint', 'PDFPAGENO', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(44, 2, 'Bold Bank Details Font', '0', 'boolean', 'BOLDBANKDETAILSFONT', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(45, 2, 'Add Invoice Act Description', 'Tax Invoice as per rule 7 and section 31 of GST Act-2017', 'varchar', 'TAXINVOICERULESANDSECTIONGSTACT', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(46, 2, 'Delivery Challan Pdf Format', 'General', 'Varchar', 'DELIVERYCHALLANPDFPARAMETER', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(47, 3, 'Complaint Resolve Days', '2', 'decimal', 'CRD', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(48, 5, 'Order Cycle', '10', 'decimal', 'OC', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(49, 5, 'Raw Material Purchase Order PDF Portrait', '0', 'tinyint', 'RAWPURORDERPORTRAIT', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(50, 5, 'Raw Material Purchase Order PDF Landscape', '1', 'tinyint', 'RAWPURORDERLANDSCAPE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(51, 5, 'Raw Material Purchase Order Terms and Condition Page Break', '1', 'tinyint', 'RAWPURORDERTERMSANDCONDITIONPAGEBREAK', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(52, 5, 'Raw Material Purchase Order Company Stamp And Sign', '1', 'tinyint', 'RAWPURORDERCOMPANYSTAMPANDSIGN', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(53, 5, 'Rawmaterial Purchase Order Company Stamp', '1', 'boolean', 'RAWPURORDERCOMPANYSTAMP', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(54, 5, 'Purchase Order Company Stamp', '1', 'boolean', 'CONSIGNMENTCOMPANYSTAMP', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(55, 7, 'Employee Joining Document', '10', 'decimal', 'EJD', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(56, 7, 'Employee  Number Series', '100', 'decimal', 'ENS', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(57, 7, 'Gap Score', '15', 'decimal', 'GS', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(58, 8, 'LWF Payout Salary', '10', 'decimal', 'PS', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(59, 8, 'Grace Period', '00:20:00', 'time', 'GP', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(60, 8, 'Provident Fund Cap', '1800', 'decimal', 'PFCAP', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(61, 2, 'HCVA', '0.50', 'decimal', 'HCVA', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(62, 2, 'Show Quotation Terms', '1', 'tinyint', 'SQUOTERM', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(63, 2, 'Show Quotation Cover Letter', '1', 'tinyint', 'SQUOCOVERLET', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(64, 2, 'Show Bill Of Quantities Terms', '1', 'tinyint', 'SBILOFQUATERM', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(65, 2, 'Show Bill Of Quantities Cover Letter', '1', 'tinyint', 'SSERQUOCOVERLE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(66, 2, 'Quotation No Series', '100', 'int', 'QUTENOSER', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(67, 2, 'Quotation No Prefix', 'Q', 'varchar', 'QUOTENOPRE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(68, 8, 'Import Type', 'Monthly', 'varchar', 'IMPORTTYPE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(69, NULL, 'No.of rows', '20', 'int', 'NOOFROW', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(70, 8, 'Default Shift Time', '0', 'boolean', 'DFTSHIFTTIME', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(71, 13, 'Auto Email SMS Flag', '0', 'boolean', 'AUTOFLAG', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(72, 8, 'Bonus Type', 'Worksite', 'text', 'BONUSTYPE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(73, NULL, 'Document Size Limit', '10485760', 'varchar', 'DOCSIZELIMIT', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(74, 9, 'Enquiry No Series', '001', 'Varchar', 'ENQNOSER', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(75, 9, 'Tender No Series', '001', 'Varchar', 'TENNOSER', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(76, 3, 'OTP Validity', '10', 'int', 'OTPVALID', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(77, 8, 'Late Hours Threshold', '120', 'int', 'LATEHOURTHRESHOLD', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(78, NULL, 'AutoBots', '0', 'boolean', 'AUTOBOTS', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(79, NULL, 'Market Delta', '0', 'boolean', 'MKTDELTA', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(80, NULL, 'Ria.ai ', '0', 'boolean', 'RIA', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(81, NULL, 'Calendar Address Type', 'Correspondence', 'text', 'CALDRADDTYPE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(82, 3, 'Complaint Appointment Booking', 'COMPASSIGNEDDET', 'varchar', 'COMAPPBOOKING', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(83, 3, 'Jobwork Service Registered', 'JOBWORKASSIGNEDDETAIL', 'varchar', 'JOBWORKSERVICEREGISTERED', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(84, NULL, 'Show Watermark', '1', 'boolean', 'WATERMARK', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(85, 2, 'Delivery Challan No Series', '1379', 'int', 'DELCHNOSER', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(86, 2, 'Delivery Challan No Prefix', 'DCH', 'varchar', 'DELCHNOPRE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(87, 2, 'Consignment Challan No Series', '1379', 'int', 'CONSIGNCHNOSER', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(88, 2, 'Consignment Challan No Prefix', 'CONSIGNCH', 'varchar', 'CONSIGNCHNOPRE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(89, 2, 'Default view', 'Basic', 'varchar', 'DEFAULTVIEW', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(90, 2, 'Invoice PDF Portrait', '0', 'tinyint', 'INVPORTRAIT', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(91, 2, 'Invoice PDF Landscape', '1', 'tinyint', 'INVLANDSCAPE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(92, 2, 'Sales Order PDF Portrait', '0', 'tinyint', 'SALPORTRAIT', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(93, 2, 'Sales Order PDF Landscape', '1', 'tinyint', 'SALLANDSCAPE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(94, 4, 'Advance No.of rows', '50', 'int', 'ADVANCENOOFROWS', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(95, 4, 'Product PDF Portrait', '0', 'tinyint', 'PROJECTPORTRAIT', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(96, 4, 'Product PDF Landscape', '1', 'tinyint', 'PROJECTLANDSCAPE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(97, 4, 'Product Company Stamp And Sign', '1', 'tinyint', 'PROJECTCOMPANYSTAMPANDSIGN', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(98, 11, 'EwayBill PDF Portrait', '0', 'tinyint', 'EPORTRAIT', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(99, 11, 'EwayBill PDF Landscape', '1', 'tinyint', 'ELANDSCAPE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(100, NULL, 'Show Subject', '1', 'boolean', 'SUB', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(101, NULL, 'Debit Note Pdf Format', 'General', 'VARCHAR', 'DBPDFPARAMETER', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(102, NULL, 'Debit Note Company Stamp', '1', 'tinyint', 'DEBITCOMPANYSTAMP', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(103, NULL, 'Debit Note Company Stamp & Signature Footer', '1', 'tinyint', 'DEBITCOMPANYSTAMPSIGN', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(104, NULL, 'Debit Note PDF Portrait', '1', 'tinyint', 'DBPORTRAIT', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(105, NULL, 'Debit Note PDF LandScape', '1', 'tinyint', 'DBLANDSCAPE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(106, NULL, 'Credit Note Pdf Format', 'General', 'VARCHAR', 'CREPDFPARAMETER', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(107, NULL, 'Credit Note Company Stamp & Signature Footer', '1', 'tinyint', 'CREDITCOMPANYSTAMPSIGN', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(108, NULL, 'Credit Note Company Stamp', '1', 'tinyint', 'CREDITCOMPANYSTAMP', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(109, NULL, 'Credit Note PDF Portrait', '1', 'tinyint', 'CREPORTRAIT', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(110, NULL, 'Credit Note PDF LandScape', '1', 'tinyint', 'CRELANDSCAPE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(111, NULL, 'Payment Slip Terms & Condition Page Break', '1', 'tinyint', 'PAYMENTSLIPTERMSCONDITIONPAGEBREAK', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(112, NULL, 'Show Payment Slip Terms', '1', 'tinyint', 'SPAYMENTSLIPTERM', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(113, NULL, 'Show Payment Slip Cover Letter', '1', 'tinyint', 'SPAYMENTSLIPCOVERLET', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(114, NULL, 'Show Payment Slip Payment Details', '1', 'tinyint', 'SPAYMENTSLIPPAYMENTDETAILS', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(115, NULL, 'Show Payment Slip Features', '1', 'tinyint', 'SPAYMENTSLIPFEATURE', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL),
(116, 17, 'Barcode Flag', '1', 'tinyint', 'BARCODEFLAG', NULL, 1, -1, '2022-09-13 05:13:12', -1, '2022-09-13 05:13:12', NULL, NULL);

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

--
-- Table structure for table `partneraddresses`
--

CREATE TABLE `partneraddresses` (
  `id` int(11) NOT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `addresstype_id` int(11) DEFAULT NULL,
  `street1` text,
  `street2` text,
  `location` text,
  `postcode` varchar(20) DEFAULT NULL,
  `city_id` int(11) DEFAULT NULL,
  `state_id` int(11) DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `partneranswers`
--

CREATE TABLE `partneranswers` (
  `id` int(11) NOT NULL,
  `partnerquestionnaire_id` int(11) DEFAULT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `answer` text,
  `active` tinyint(4) DEFAULT '1',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default by -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value-1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `partnerbankdetails`
--

CREATE TABLE `partnerbankdetails` (
  `id` int(11) NOT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `bankaccountno` varchar(50) DEFAULT NULL,
  `bankaccountholder` varchar(100) DEFAULT NULL,
  `bankname` varchar(100) DEFAULT NULL,
  `bankbranchname` varchar(150) DEFAULT NULL,
  `ifsccode` varchar(100) DEFAULT NULL,
  `bankaddress1` text,
  `bankaddress2` text,
  `bankaddress3` text,
  `city_id` int(11) DEFAULT NULL,
  `state_id` int(11) DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  `pincode` varchar(20) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `partnercommunicationhistory`
--

CREATE TABLE `partnercommunicationhistory` (
  `id` int(11) NOT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `partnercommunicationtype_id` int(11) DEFAULT NULL,
  `calendar_id` int(11) DEFAULT NULL,
  `followupdate` datetime DEFAULT NULL,
  `comment` text,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `partnercommunicationtype`
--

CREATE TABLE `partnercommunicationtype` (
  `id` int(11) NOT NULL,
  `displayorder` int(11) NOT NULL,
  `name` text,
  `systemfield` tinyint(4) DEFAULT '0',
  `code` varchar(50) DEFAULT NULL,
  `weightage` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `partnercommunicationtype`
--

INSERT INTO `partnercommunicationtype` (`id`, `displayorder`, `name`, `systemfield`, `code`, `weightage`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 2, 'Followup Calls', 0, 'FOLLOWUPCALLS', 1, 1, -1, '2019-12-25 11:18:04', -1, '2019-12-25 11:18:04', NULL, NULL),
(2, 4, 'Quotation To Be Sent', 0, 'QUOTATIONTOBESENT', NULL, 1, -1, '2019-12-25 11:18:25', -1, '2019-12-25 11:18:25', NULL, NULL),
(3, 5, 'Quotation Sent', 0, 'QUOTATIONSENT', NULL, 1, -1, '2019-12-25 11:18:44', -1, '2019-12-25 11:18:44', NULL, NULL),
(4, 6, 'Sales Order To Be Sent', 0, 'SALESORDERTOBESENT', NULL, 1, -1, '2019-12-25 11:18:55', -1, '2019-12-25 11:18:55', NULL, NULL),
(5, 7, 'Sales Order Sent', 0, 'SALESORDERSENT', NULL, 1, -1, '2019-12-25 11:18:55', -1, '2019-12-25 11:18:55', NULL, NULL),
(6, 8, 'Invoice To Be Sent', 0, 'INVOICETOBESENT', NULL, 1, -1, '2019-12-25 11:18:25', -1, '2019-12-25 11:18:25', NULL, NULL),
(7, 9, 'Invoice Sent', 0, 'INVOICESENT', 25, 1, -1, '2019-12-25 11:18:44', -1, '2019-12-25 11:18:44', NULL, NULL),
(8, 10, 'Other', 0, 'OTHER', NULL, 1, -1, '2019-12-25 11:18:44', -1, '2019-12-25 11:18:44', NULL, NULL),
(9, 1, 'Introduction Meeting', 0, 'INTRODUCTIONMEETING', 5, 1, -1, '2020-05-14 01:30:08', -1, '2020-05-14 01:30:08', NULL, NULL),
(10, 3, 'Followup Meeting', 0, 'FOLLOWUPMEETING', 5, 1, -1, '2020-05-14 01:30:08', -1, '2020-05-14 01:30:08', NULL, NULL);

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

--
-- Table structure for table `partnerdocuments`
--

CREATE TABLE `partnerdocuments` (
  `id` int(11) NOT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `documentpath` varchar(255) DEFAULT NULL,
  `documenttype_id` int(11) DEFAULT NULL,
  `otherdocumenttype` varchar(50) DEFAULT NULL,
  `originalfilename` varchar(100) DEFAULT NULL,
  `verifydocument` tinyint(1) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '1',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default by -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value-1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `partnerquestionnaire`
--

CREATE TABLE `partnerquestionnaire` (
  `id` int(11) NOT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `title` varchar(500) DEFAULT NULL,
  `answerlength` varchar(50) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `partnerreferrals`
--

CREATE TABLE `partnerreferrals` (
  `id` int(11) NOT NULL,
  `partner_id` int(11) DEFAULT NULL,
  `firstname` varchar(100) DEFAULT NULL,
  `lastname` varchar(100) DEFAULT NULL,
  `companyname` varchar(100) DEFAULT NULL,
  `email` varchar(50) DEFAULT NULL,
  `street1` text,
  `street2` text,
  `street3` text,
  `postcode` varchar(20) DEFAULT NULL,
  `city_id` int(11) DEFAULT NULL,
  `state_id` int(11) DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  `website` varchar(50) DEFAULT NULL,
  `mobilephone` varchar(20) DEFAULT NULL,
  `demodate` datetime DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `partners`
--

CREATE TABLE `partners` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `partnertype_id` int(11) DEFAULT NULL,
  `title` varchar(50) DEFAULT NULL,
  `firstname` varchar(50) DEFAULT NULL,
  `lastname` varchar(50) DEFAULT NULL,
  `companyname` varchar(100) DEFAULT NULL,
  `street1` text,
  `street2` text,
  `street3` text,
  `postcode` varchar(20) DEFAULT NULL,
  `city_id` int(11) DEFAULT NULL,
  `state_id` int(11) DEFAULT NULL,
  `country_id` int(11) DEFAULT NULL,
  `businessphone` varchar(20) DEFAULT NULL,
  `countryphonecode` varchar(50) DEFAULT NULL,
  `mobilephone` varchar(20) DEFAULT NULL,
  `homephone` varchar(20) DEFAULT NULL,
  `fax` varchar(20) DEFAULT NULL,
  `email` varchar(50) DEFAULT NULL,
  `website` varchar(100) DEFAULT NULL,
  `occupation` varchar(100) DEFAULT NULL,
  `dateofbirth` datetime DEFAULT NULL,
  `gender` varchar(20) DEFAULT NULL,
  `businessyears` int(11) DEFAULT NULL,
  `organizationage` int(11) DEFAULT NULL,
  `criminalactivity` tinyint(4) NOT NULL DEFAULT '0',
  `date` datetime DEFAULT NULL,
  `gstnumber` varchar(20) DEFAULT NULL,
  `pannumber` varchar(20) DEFAULT NULL,
  `referredby` varchar(50) DEFAULT NULL,
  `referencenumber` varchar(100) DEFAULT NULL,
  `clientservice` text,
  `usefulsoftware` text,
  `partnerstatus_id` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default valuie -1 is for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `partnerstatus`
--

CREATE TABLE `partnerstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value  -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value  -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `partnerstatus`
--

INSERT INTO `partnerstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Prospects', 'PROSPECTS', 1, 1, -1, '2021-05-21 12:10:07', -1, '2021-05-21 12:10:07', NULL, NULL),
(2, 'Registered', 'REGISTERED', 2, 1, -1, '2021-05-21 12:10:07', -1, '2021-05-21 12:10:07', NULL, NULL),
(3, 'Dead', 'DEAD', 3, 1, -1, '2021-05-21 12:10:07', -1, '2021-05-21 12:10:07', NULL, NULL),
(4, 'On Hold', 'ONHOLD', 4, 1, -1, '2021-06-15 05:45:55', -1, '2021-06-15 05:45:55', NULL, NULL),
(5, 'No Show', 'NOSHOW', 5, 1, -1, '2021-06-15 05:45:55', -1, '2021-06-15 05:45:55', NULL, NULL),
(6, 'After 3 Months', 'AFTR3MNTH', 6, 1, -1, '2021-06-15 05:45:55', -1, '2021-06-15 05:45:55', NULL, NULL),
(7, 'Reference', 'REFERENCE', 7, 1, -1, '2021-05-21 12:10:07', -1, '2021-05-21 12:10:07', NULL, NULL);

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

--
-- Table structure for table `partnertypes`
--

CREATE TABLE `partnertypes` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(100) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `partnertypes`
--

INSERT INTO `partnertypes` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Reseller', 'RESELLER', 1, 1, -1, '2021-06-11 19:31:34', -1, '2021-06-11 19:31:34', NULL, NULL),
(2, 'Agents', 'AGENTS', 2, 1, -1, '2021-06-11 19:32:00', -1, '2021-06-11 19:32:00', NULL, NULL);

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

--
-- Table structure for table `paymentcycle`
--

CREATE TABLE `paymentcycle` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `paymentcycle`
--

INSERT INTO `paymentcycle` (`id`, `name`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Monthly', 1, 1, -1, '2020-09-05 15:11:32', -1, '2020-09-05 15:11:32', NULL, NULL),
(2, 'Quarterly', 3, 1, -1, '2020-09-05 15:11:49', -1, '2020-09-05 15:11:49', NULL, NULL),
(3, 'Half Yearly', 4, 1, -1, '2020-09-05 15:12:04', -1, '2020-09-05 15:12:04', NULL, NULL),
(4, 'Yearly', 5, 1, -1, '2020-09-05 15:12:15', -1, '2020-09-05 15:12:15', NULL, NULL),
(5, 'Bi Monthly', 2, 1, -1, '2022-03-11 04:07:23', -1, '2022-03-11 04:07:23', NULL, NULL);

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

--
-- Table structure for table `paymentcycletypes`
--

CREATE TABLE `paymentcycletypes` (
  `id` int(11) NOT NULL,
  `name` text,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `paymentcycletypes`
--

INSERT INTO `paymentcycletypes` (`id`, `name`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Monthly', 1, -1, '2020-09-01 13:57:10', -1, '2020-09-01 13:57:10', NULL, NULL),
(2, 'Quarterly', 1, -1, '2020-09-01 13:57:53', -1, '2020-09-01 13:57:53', NULL, NULL),
(3, 'One time', 1, -1, '2020-09-01 13:58:14', -1, '2020-09-01 13:58:14', NULL, NULL);

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

--
-- Table structure for table `paymentmodes`
--

CREATE TABLE `paymentmodes` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 \r\nif for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 \r\nif for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `paymentmodes`
--

INSERT INTO `paymentmodes` (`id`, `name`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Cheque', 1, -1, '2020-11-09 17:41:54', -1, '2020-11-09 17:41:54', NULL, NULL),
(2, 'Cash', 1, -1, '2020-11-09 17:41:54', -1, '2020-11-09 17:41:54', NULL, NULL),
(3, 'Online', 1, -1, '2020-11-09 17:43:32', -1, '2020-11-09 17:43:32', NULL, NULL),
(4, 'Credit Card', 1, -1, '2020-11-09 17:43:32', -1, '2020-11-09 17:43:32', NULL, NULL),
(5, 'UPI', 1, -1, '2021-11-13 03:09:19', -1, '2021-11-13 03:09:19', NULL, NULL);

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

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `invoice_id` int(11) DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `invoicetype_id` int(11) DEFAULT NULL,
  `includesalesorder` tinyint(1) DEFAULT '0',
  `paymentdate` datetime DEFAULT NULL,
  `amount` decimal(18,2) DEFAULT NULL,
  `tdsamount` decimal(18,2) DEFAULT NULL,
  `paymentmode_id` int(11) DEFAULT NULL,
  `note` text,
  `referencenumber` varchar(20) NOT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `paymentslip`
--

CREATE TABLE `paymentslip` (
  `id` int(11) NOT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `startdate` datetime DEFAULT NULL,
  `enddate` datetime DEFAULT NULL,
  `paymentcycle_id` int(11) DEFAULT NULL,
  `paymentslipstatus_id` int(11) DEFAULT NULL,
  `features` text,
  `terms` text,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `paymentslipconfigurations`
--

CREATE TABLE `paymentslipconfigurations` (
  `id` int(11) NOT NULL,
  `paymentslip_id` int(11) DEFAULT NULL,
  `showcoverletter` tinyint(4) DEFAULT '0',
  `showterms` tinyint(4) DEFAULT '0',
  `showpaymentdetails` tinyint(4) DEFAULT '1',
  `showfeatures` tinyint(4) DEFAULT '1',
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'showpaymentdetails',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 if for admin  ',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `paymentslipdetails`
--

CREATE TABLE `paymentslipdetails` (
  `id` int(11) NOT NULL,
  `paymentslip_id` int(11) DEFAULT NULL,
  `usertype_id` int(11) DEFAULT NULL,
  `noofusers` int(11) DEFAULT NULL,
  `unitprice` decimal(18,2) DEFAULT NULL,
  `amount` decimal(18,2) DEFAULT NULL,
  `gstslabs_id` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'default value-1 for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'default value-1 for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `paymentslipstatus`
--

CREATE TABLE `paymentslipstatus` (
  `id` int(11) NOT NULL,
  `name` text,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `paymentslipstatus`
--

INSERT INTO `paymentslipstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Paid', 'PAID', 1, 1, -1, '2022-02-01 17:14:05', -1, '2022-02-01 17:14:05', NULL, NULL),
(2, 'Partial Paid', 'PARTIALPAID', 2, 1, -1, '2022-02-01 17:19:25', -1, '2022-02-01 17:19:25', NULL, NULL),
(3, 'Unpaid', 'UNPAID', 3, 1, -1, '2022-02-01 17:19:25', -1, '2022-02-01 17:19:25', NULL, NULL),
(4, 'Invalid', 'INVALID', 4, 1, -1, '2022-07-26 06:33:15', -1, '2022-07-26 06:33:15', NULL, NULL);

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

--
-- Table structure for table `paymentstatus`
--

CREATE TABLE `paymentstatus` (
  `id` int(11) NOT NULL,
  `name` text,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `paymentstatus`
--

INSERT INTO `paymentstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Due', 'DUE', 1, 1, -1, '2020-09-01 14:23:36', -1, '2020-09-01 14:23:36', NULL, NULL),
(2, 'Received', 'RECEIVED', 2, 1, -1, '2020-09-01 14:23:55', -1, '2020-09-01 14:23:55', NULL, NULL),
(3, 'Any', 'ANY', 3, 1, -1, '2020-09-01 14:24:29', -1, '2020-09-01 14:24:29', NULL, NULL);

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

--
-- Table structure for table `payouttypes`
--

CREATE TABLE `payouttypes` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1\r\nif for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1\r\nif for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `payouttypes`
--

INSERT INTO `payouttypes` (`id`, `name`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Daily', 1, -1, '2020-10-15 13:45:26', -1, '2020-10-15 13:45:26', NULL, NULL),
(2, 'Monthly', 1, -1, '2020-10-15 13:45:26', -1, '2020-10-15 13:45:26', NULL, NULL);

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

--
-- Table structure for table `payrolllogs`
--

CREATE TABLE `payrolllogs` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `logstatus_id` int(11) DEFAULT NULL,
  `rundate` datetime DEFAULT NULL,
  `logmessage` text,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `payrollstatus`
--

CREATE TABLE `payrollstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1\r\nif for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1\r\nif for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `payrollstatus`
--

INSERT INTO `payrollstatus` (`id`, `name`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Active', 1, -1, '2022-07-18 06:55:13', -1, '2022-07-18 06:55:13', NULL, NULL),
(2, 'Expired', 1, -1, '2022-07-18 06:58:49', -1, '2022-07-18 06:58:49', NULL, NULL);

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

--
-- Table structure for table `payslip`
--

CREATE TABLE `payslip` (
  `id` int(11) NOT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `worksite_id` int(11) DEFAULT NULL,
  `payslipstatus_id` int(11) DEFAULT NULL,
  `pfnumber` int(20) DEFAULT NULL,
  `esic` decimal(18,2) DEFAULT NULL,
  `professionaltax` decimal(18,2) DEFAULT NULL,
  `providentfund` decimal(18,2) DEFAULT NULL,
  `basic` decimal(18,2) DEFAULT NULL,
  `tds` decimal(18,2) DEFAULT NULL,
  `hra` decimal(18,2) DEFAULT NULL,
  `monthlysalary` decimal(18,2) DEFAULT NULL,
  `totaldeductions` decimal(18,2) DEFAULT NULL,
  `grosssalary` decimal(18,2) DEFAULT NULL,
  `netsalary` decimal(18,2) DEFAULT NULL,
  `startdate` datetime DEFAULT NULL,
  `enddate` datetime DEFAULT NULL,
  `payrollrundate` datetime DEFAULT NULL,
  `siteallowance` decimal(18,2) DEFAULT NULL,
  `travelallowance` decimal(18,2) DEFAULT NULL,
  `workeddays` decimal(18,2) DEFAULT NULL,
  `unitworked` decimal(18,2) DEFAULT NULL,
  `dailyrate` decimal(18,2) DEFAULT NULL,
  `lwf` decimal(18,2) DEFAULT NULL,
  `otherallowance` decimal(18,2) DEFAULT NULL,
  `miscdeduction` decimal(18,2) DEFAULT NULL,
  `arrearbasic` decimal(18,2) DEFAULT NULL,
  `misccredit` decimal(18,2) DEFAULT NULL,
  `totaladdition` decimal(18,2) DEFAULT NULL,
  `bonus` decimal(18,2) DEFAULT NULL,
  `travelexpenses` decimal(18,2) DEFAULT NULL,
  `overtime` decimal(18,2) DEFAULT NULL,
  `latehours` decimal(18,2) DEFAULT NULL,
  `conveyance` decimal(18,2) DEFAULT NULL,
  `absence` decimal(18,2) DEFAULT NULL,
  `loan` decimal(18,2) DEFAULT NULL,
  `totallatehours` time DEFAULT NULL,
  `totalovertime` time DEFAULT NULL,
  `incentive` decimal(18,2) DEFAULT NULL,
  `esiwages` decimal(18,2) DEFAULT NULL,
  `epfwages` decimal(18,2) DEFAULT NULL,
  `abrywages` decimal(18,2) DEFAULT NULL,
  `edliwages` decimal(18,2) DEFAULT NULL,
  `epswages` decimal(18,2) DEFAULT NULL,
  `educationallowance` decimal(18,2) DEFAULT NULL,
  `medicalallowance` decimal(18,2) DEFAULT NULL,
  `paidleaves` decimal(18,2) DEFAULT NULL,
  `sickleaves` decimal(18,2) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1\r\nif for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1\r\nif for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `payslipstatus`
--

CREATE TABLE `payslipstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `code` varchar(50) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Default value -1 if for admin',
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `payslipstatus`
--

INSERT INTO `payslipstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'UnPaid', 'UNPAID', 1, 1, -1, '2022-05-13 15:48:42', -1, '2022-05-13 15:48:42', NULL, NULL),
(2, 'Paid', 'PAID', 2, 1, -1, '2022-05-13 15:48:42', -1, '2022-05-13 15:48:42', NULL, NULL),
(3, 'Due', 'DUE', 3, 1, -1, '2022-05-13 15:49:10', -1, '2022-05-13 15:49:10', NULL, NULL);

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

--
-- Table structure for table `performancekpi`
--

CREATE TABLE `performancekpi` (
  `id` int(11) NOT NULL,
  `user_id` int(11) DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `startdate` datetime DEFAULT NULL,
  `enddate` datetime DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `performancekpidetails`
--

CREATE TABLE `performancekpidetails` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `performancekpi_id` int(11) DEFAULT NULL,
  `kpi_id` int(11) DEFAULT NULL,
  `target` int(11) DEFAULT NULL,
  `actual` text,
  `pending` text,
  `score` int(11) DEFAULT NULL,
  `comments` text,
  `active` tinyint(4) DEFAULT '0',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT NULL,
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` datetime DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `permissions`
--

CREATE TABLE `permissions` (
  `id` int(11) NOT NULL,
  `name` text,
  `code` varchar(50) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `permissions`
--

INSERT INTO `permissions` (`id`, `name`, `code`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'View', 'VIEW', 1, -1, '2022-09-13 05:05:45', -1, '2022-09-13 05:05:45', NULL, NULL),
(2, 'Import', 'IMPORT', 1, -1, '2022-09-13 05:05:45', -1, '2022-09-13 05:05:45', NULL, NULL),
(3, 'Export', 'EXPORT', 1, -1, '2022-09-13 05:05:45', -1, '2022-09-13 05:05:45', NULL, NULL),
(4, 'Delete', 'DELETE', 1, -1, '2022-09-13 05:05:45', -1, '2022-09-13 05:05:45', NULL, NULL),
(5, 'Write', 'WRITE', 1, -1, '2022-09-13 05:05:45', -1, '2022-09-13 05:05:45', NULL, NULL),
(6, 'WhatsApp', 'WHATSAPP', 1, -1, '2022-09-13 05:05:45', -1, '2022-09-13 05:05:45', NULL, NULL),
(7, 'SMS', 'SMS', 1, -1, '2022-09-13 05:05:45', -1, '2022-09-13 05:05:45', NULL, NULL),
(8, 'Email', 'EMAIL', 1, -1, '2022-09-13 05:05:45', -1, '2022-09-13 05:05:45', NULL, NULL);

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

--
-- Table structure for table `personalinterviewquestions`
--

CREATE TABLE `personalinterviewquestions` (
  `id` int(11) NOT NULL,
  `name` text,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `platformparameters`
--

CREATE TABLE `platformparameters` (
  `id` int(11) NOT NULL,
  `hcva` decimal(18,2) DEFAULT NULL,
  `joiningdocuments` int(11) DEFAULT NULL,
  `gapscore` int(11) DEFAULT NULL,
  `complaintresolvedays` int(11) DEFAULT NULL,
  `lwfpayoutsalary` decimal(18,2) DEFAULT NULL,
  `graceperiod` time DEFAULT NULL,
  `ordercycle` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `pricecategory`
--

CREATE TABLE `pricecategory` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `active` tinyint(4) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_at` datetime DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `pricecategory`
--

INSERT INTO `pricecategory` (`id`, `name`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Low', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(2, 'Medium', 1, NULL, NULL, NULL, NULL, NULL, NULL),
(3, 'High', 1, NULL, NULL, NULL, NULL, NULL, NULL);

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

--
-- Table structure for table `priority`
--

CREATE TABLE `priority` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `priority`
--

INSERT INTO `priority` (`id`, `name`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Low', 1, -1, '2019-10-01 12:03:28', -1, '2019-10-01 12:03:28', NULL, NULL),
(2, 'Medium', 1, -1, '2019-10-01 12:03:42', -1, '2019-10-01 12:03:42', NULL, NULL),
(3, 'High', 1, -1, '2019-10-01 12:03:54', -1, '2019-10-01 12:03:54', NULL, NULL);

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

--
-- Table structure for table `processingcenterlogs`
--

CREATE TABLE `processingcenterlogs` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `area_id` int(11) DEFAULT NULL,
  `logstatus_id` int(11) DEFAULT NULL,
  `rundate` datetime DEFAULT NULL,
  `logmessage` text,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT NULL,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `procurementdetails`
--

CREATE TABLE `procurementdetails` (
  `id` int(11) NOT NULL,
  `procurement_id` int(11) DEFAULT NULL,
  `rawmaterial_id` int(11) DEFAULT NULL,
  `qty` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '1',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `procurements`
--

CREATE TABLE `procurements` (
  `id` int(11) NOT NULL,
  `title` varchar(200) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `note` text,
  `procurementstatus_id` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `procurementstatus`
--

CREATE TABLE `procurementstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `procurementstatus`
--

INSERT INTO `procurementstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Pending', 'PENDING', 1, 1, -1, '2022-03-16 11:43:44', -1, '2022-03-16 11:43:44', NULL, NULL),
(2, 'In Progress', 'INPROGRESS', 2, 1, -1, '2022-03-16 11:46:31', -1, '2022-03-16 11:46:31', NULL, NULL),
(3, 'Completed', 'COMPLETED', 3, 1, -1, '2022-03-16 11:46:31', -1, '2022-03-16 11:46:31', NULL, NULL);

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

--
-- Table structure for table `productinventory`
--

CREATE TABLE `productinventory` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `totalqty` int(11) DEFAULT NULL,
  `totalsoldqty` int(11) DEFAULT NULL,
  `totalavailableqty` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `productinventorystockin`
--

CREATE TABLE `productinventorystockin` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `stocktype_id` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `purchasedate` datetime DEFAULT NULL,
  `batchid` varchar(100) DEFAULT NULL,
  `batchnumber` varchar(100) DEFAULT NULL,
  `qty` int(11) DEFAULT NULL,
  `price` decimal(18,2) DEFAULT NULL,
  `shelfno` text,
  `referencenumber` varchar(100) DEFAULT NULL,
  `soldqty` int(11) DEFAULT NULL,
  `availableqty` int(11) DEFAULT NULL,
  `expirydate` datetime DEFAULT NULL,
  `batchdate` datetime DEFAULT NULL,
  `manufacturingdate` datetime DEFAULT NULL,
  `totalamountwithgst` decimal(18,2) DEFAULT NULL,
  `additionalcharges` decimal(18,2) DEFAULT NULL,
  `inventorystatus_id` int(11) DEFAULT NULL,
  `note` text CHARACTER SET latin1,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `productinventorystockout`
--

CREATE TABLE `productinventorystockout` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `orderreferencetype_id` int(11) DEFAULT NULL,
  `reference_id` int(11) DEFAULT NULL,
  `referencedetails_id` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `inventorystockin_id` int(11) DEFAULT NULL,
  `salesdate` datetime DEFAULT NULL,
  `referencenumber` varchar(100) DEFAULT NULL,
  `qty` int(11) DEFAULT NULL,
  `price` decimal(18,2) DEFAULT NULL,
  `totalamountwithgst` decimal(18,2) DEFAULT NULL,
  `additionalcharges` decimal(18,2) DEFAULT NULL,
  `cancelledby_id` int(11) DEFAULT NULL,
  `cancelleddate` datetime DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `note` text CHARACTER SET latin1,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `productionplanning`
--

CREATE TABLE `productionplanning` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `note` text,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `productionplanningdetails`
--

CREATE TABLE `productionplanningdetails` (
  `id` int(11) NOT NULL,
  `productionplanning_id` int(11) DEFAULT NULL,
  `rawmaterial_id` int(11) DEFAULT NULL,
  `size_id` int(11) DEFAULT NULL,
  `qty` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `productpurchaseorderadditionalcharges`
--

CREATE TABLE `productpurchaseorderadditionalcharges` (
  `id` int(11) NOT NULL,
  `productpurchaeorder_id` int(11) DEFAULT NULL,
  `chargetype_id` int(11) DEFAULT NULL,
  `charge` decimal(18,2) DEFAULT NULL,
  `mrpwithgst` int(11) DEFAULT NULL,
  `gstslab_id` int(11) DEFAULT NULL,
  `cgst` decimal(18,2) DEFAULT NULL,
  `cgstamount` decimal(18,2) DEFAULT NULL,
  `sgst` decimal(18,2) DEFAULT NULL,
  `sgstamount` decimal(18,2) DEFAULT NULL,
  `igst` decimal(18,2) DEFAULT NULL,
  `igstamount` decimal(18,2) DEFAULT NULL,
  `chargewithgst` decimal(18,2) DEFAULT NULL,
  `chargewithoutgst` decimal(18,2) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `productpurchaseorderdetails`
--

CREATE TABLE `productpurchaseorderdetails` (
  `id` int(11) NOT NULL,
  `productpurchaseorder_id` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `specification` text,
  `warranty` text,
  `area` text,
  `unit` text,
  `qty` int(11) DEFAULT NULL,
  `price` decimal(18,2) DEFAULT NULL,
  `rate` decimal(18,2) DEFAULT NULL,
  `gst` decimal(18,2) DEFAULT NULL,
  `gstlabs_id` int(11) DEFAULT NULL,
  `amount` decimal(18,2) DEFAULT NULL,
  `totalamount` decimal(18,2) DEFAULT NULL,
  `note` varchar(100) DEFAULT NULL,
  `includedintoinventory` tinyint(4) DEFAULT '0',
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `productpurchaseorders`
--

CREATE TABLE `productpurchaseorders` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `salesorder_id` int(11) DEFAULT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `status_id` int(11) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `title` text,
  `note` text,
  `shippingasbilling` tinyint(4) NOT NULL DEFAULT '0',
  `shippingstreet1` text,
  `shippingstreet2` text,
  `shippingstreet3` text NOT NULL,
  `shippingcity_id` int(11) DEFAULT NULL,
  `shippingstate_id` int(11) DEFAULT NULL,
  `shippingcountry_id` int(11) DEFAULT NULL,
  `shippingpostcode` varchar(20) DEFAULT NULL,
  `billingstreet1` text,
  `billingstreet2` text,
  `billingstreet3` text NOT NULL,
  `billingcity_id` int(11) DEFAULT NULL,
  `billingstate_id` int(11) DEFAULT NULL,
  `billingcountry_id` int(11) DEFAULT NULL,
  `billingpostcode` varchar(20) DEFAULT NULL,
  `installationcharges` decimal(18,2) DEFAULT NULL,
  `shippingcharges` decimal(18,2) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` int(11) NOT NULL,
  `name` varchar(200) DEFAULT NULL,
  `business_id` int(11) DEFAULT NULL,
  `category_id` int(11) DEFAULT NULL,
  `subcategory_id` int(11) DEFAULT NULL,
  `unit_id` int(11) DEFAULT NULL,
  `measurementtype_id` int(11) DEFAULT NULL,
  `size_id` int(11) DEFAULT NULL,
  `modelno` varchar(100) DEFAULT NULL,
  `sku` varchar(100) DEFAULT NULL,
  `barcode` varchar(100) DEFAULT NULL,
  `specification` text,
  `measurement` varchar(150) DEFAULT NULL,
  `warranty` varchar(50) DEFAULT NULL,
  `price` decimal(18,2) DEFAULT NULL,
  `mrpwithgst` int(111) DEFAULT NULL,
  `pricewithgst` decimal(18,2) DEFAULT NULL,
  `pricewithoutgst` decimal(18,2) DEFAULT NULL,
  `dealerdiscounttype` int(11) DEFAULT NULL,
  `purchaserate` decimal(18,2) DEFAULT NULL,
  `profitmargintype` int(11) DEFAULT NULL,
  `profitmargin` decimal(18,2) DEFAULT NULL,
  `dealerdiscount` decimal(18,2) DEFAULT NULL,
  `salesrate` decimal(18,2) DEFAULT NULL,
  `gst` decimal(18,2) DEFAULT NULL,
  `unitrateincludinggst` decimal(18,2) DEFAULT NULL,
  `unitrateexcludinggst` decimal(18,2) DEFAULT NULL,
  `brand_id` int(11) DEFAULT NULL,
  `gstslab_id` int(11) DEFAULT NULL,
  `hsn` varchar(20) DEFAULT NULL,
  `pricetype` varchar(100) DEFAULT NULL,
  `productimage` varchar(255) DEFAULT NULL,
  `laborhours` decimal(18,2) DEFAULT NULL,
  `requireddays` decimal(18,2) DEFAULT NULL,
  `systemfield` tinyint(4) DEFAULT '0',
  `tags` text,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `productstockadjustment`
--

CREATE TABLE `productstockadjustment` (
  `id` int(11) NOT NULL,
  `product_id` int(11) DEFAULT NULL,
  `batchid` varchar(100) DEFAULT NULL,
  `adjustmenttype_id` int(11) DEFAULT NULL,
  `qty` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `productstocklimits`
--

CREATE TABLE `productstocklimits` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `limit` int(11) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `producttypes`
--

CREATE TABLE `producttypes` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `image` varchar(200) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `professionaltax`
--

CREATE TABLE `professionaltax` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `state_id` int(11) DEFAULT NULL,
  `fromsalary` decimal(18,2) DEFAULT NULL,
  `tosalary` decimal(18,2) DEFAULT NULL,
  `tax` decimal(18,2) NOT NULL,
  `additionaltax` decimal(18,2) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `projectassignmenthistory`
--

CREATE TABLE `projectassignmenthistory` (
  `id` int(11) NOT NULL,
  `project_id` int(11) DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `jobtitle_id` int(11) DEFAULT NULL,
  `assigneddate` datetime DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `projectdocuments`
--

CREATE TABLE `projectdocuments` (
  `id` int(11) NOT NULL,
  `project_id` int(11) DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `originalfilename` varchar(100) DEFAULT NULL,
  `documentpath` varchar(255) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `projects`
--

CREATE TABLE `projects` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `department_id` int(11) DEFAULT NULL,
  `companygoal_id` int(11) DEFAULT NULL,
  `calendar_id` int(11) DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `client_id` int(11) DEFAULT NULL,
  `projectmanager_id` int(11) DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `description` varchar(200) DEFAULT NULL,
  `estimatedbudget` decimal(18,2) DEFAULT NULL,
  `startdate` datetime DEFAULT NULL,
  `enddate` datetime DEFAULT NULL,
  `status_id` int(11) DEFAULT NULL,
  `tags` text,
  `active` tinyint(4) DEFAULT '0',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT '-1' COMMENT 'default value -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'default value -1 for admin',
  `deleted_at` datetime DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `projectstatus`
--

CREATE TABLE `projectstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `projectstatus`
--

INSERT INTO `projectstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'In Progress', 'INPROGRESS', 1, 1, -1, NULL, -1, NULL, NULL, NULL),
(2, 'Completed', 'COMPLETED', 2, 1, -1, NULL, -1, NULL, NULL, NULL);

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

--
-- Table structure for table `projecttypes`
--

CREATE TABLE `projecttypes` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(100) DEFAULT NULL,
  `displayorder` int(10) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `projecttypes`
--

INSERT INTO `projecttypes` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Firm', 'FIRM', 1, 1, -1, '2021-07-19 20:14:34', -1, '2021-07-19 20:15:28', NULL, NULL),
(2, 'Budgetary', 'BUDGETARY', 2, 1, -1, '2021-07-19 20:14:34', -1, '2021-07-19 20:15:28', NULL, NULL);

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

--
-- Table structure for table `publicholiday`
--

CREATE TABLE `publicholiday` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `worksite_id` int(11) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1\r\nif for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1\r\nif for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `purchaseorderstatus`
--

CREATE TABLE `purchaseorderstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(50) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_bym` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `purchaseorderstatus`
--

INSERT INTO `purchaseorderstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_bym`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Open', 'OP', 1, 1, -1, '2021-01-18 11:49:25', -1, '2021-01-18 11:49:25', NULL, NULL),
(2, 'In Progress', 'IP', 3, 1, -1, '2021-01-18 11:51:31', -1, '2021-01-18 11:51:31', NULL, NULL),
(3, 'Cancelled', 'CA', 4, 1, -1, '2021-01-18 11:53:25', -1, '2021-01-18 11:53:25', NULL, NULL),
(4, 'Completed', 'CO', 5, 1, -1, '2021-01-18 11:54:13', -1, '2021-01-18 11:54:13', NULL, NULL),
(5, 'Approved', 'APRV', 2, 1, -1, '2021-06-15 05:17:25', -1, '2021-06-15 05:17:25', NULL, NULL);

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

--
-- Table structure for table `questionnaire`
--

CREATE TABLE `questionnaire` (
  `id` int(11) NOT NULL,
  `questionnairetype_id` int(11) DEFAULT NULL,
  `controltype_id` int(11) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `title` varchar(500) DEFAULT NULL,
  `answerlength` varchar(50) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `questionnairetypes`
--

CREATE TABLE `questionnairetypes` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(100) DEFAULT NULL,
  `displayorderid` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `questionnairetypes`
--

INSERT INTO `questionnairetypes` (`id`, `name`, `code`, `displayorderid`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Customer Feedback', 'CUSTFEEDBACK', 1, 1, -1, '2021-06-24 19:31:34', -1, '2021-06-24 19:31:34', NULL, NULL),
(2, 'Complaint Feedback', 'COMPFEEDBACK', 2, 1, -1, '2021-06-24 19:31:34', -1, '2021-06-24 19:31:34', NULL, NULL),
(3, 'Candidate MCQ', 'CANDMCQ', 3, 1, -1, '2021-06-24 19:31:34', -1, '2021-06-24 19:31:34', NULL, NULL),
(4, 'Personal Interview', 'CANDPERSONLINTRW', 4, 1, -1, '2021-07-01 08:42:49', -1, '2021-07-01 08:42:49', NULL, NULL),
(5, 'Lead Qualification', 'LEADQUALIFICATION', 5, 1, -1, '2021-08-02 08:55:53', -1, '2021-08-02 08:55:53', NULL, NULL);

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

--
-- Table structure for table `questionnaireweightages`
--

CREATE TABLE `questionnaireweightages` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `weightage` int(11) DEFAULT NULL,
  `code` varchar(50) DEFAULT NULL,
  `displaytext` varchar(50) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `questionnaireweightages`
--

INSERT INTO `questionnaireweightages` (`id`, `name`, `weightage`, `code`, `displaytext`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Excellent', 2, 'EXCELLENT', 'Excellent', 1, -1, '2020-08-07 12:10:30', -1, '2020-08-07 12:10:30', NULL, NULL),
(2, 'Good', 1, 'GOOD', 'Good', 1, -1, '2020-08-07 12:10:59', -1, '2020-08-07 12:10:59', NULL, NULL),
(3, 'Average', 0, 'AVERAGE', 'Average', 1, -1, '2020-08-07 12:11:21', -1, '2020-08-07 12:11:21', NULL, NULL),
(4, 'Poor', -1, 'POOR', 'Poor', 1, -1, '2020-08-07 12:13:35', -1, '2020-08-07 12:13:35', NULL, NULL);

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

--
-- Table structure for table `queuejobs`
--

CREATE TABLE `queuejobs` (
  `id` bigint(20) UNSIGNED NOT NULL,
  `queue` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `payload` longtext COLLATE utf8_unicode_ci NOT NULL,
  `attempts` tinyint(3) UNSIGNED NOT NULL,
  `reserved_at` datetime DEFAULT NULL,
  `available_at` datetime DEFAULT NULL,
  `created_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

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

--
-- Table structure for table `quotationadditionalcharges`
--

CREATE TABLE `quotationadditionalcharges` (
  `id` int(11) NOT NULL,
  `quotation_id` int(11) DEFAULT NULL,
  `chargetype_id` int(11) DEFAULT NULL,
  `charge` decimal(18,2) DEFAULT NULL,
  `mrpwithgst` int(11) DEFAULT NULL,
  `gstslab_id` int(11) DEFAULT NULL,
  `cgst` decimal(18,2) DEFAULT NULL,
  `cgstamount` decimal(18,2) DEFAULT NULL,
  `sgst` decimal(18,2) DEFAULT NULL,
  `sgstamount` decimal(18,2) DEFAULT NULL,
  `igst` decimal(18,2) DEFAULT NULL,
  `igstamount` decimal(18,2) DEFAULT NULL,
  `chargewithgst` decimal(18,2) DEFAULT NULL,
  `chargewithoutgst` decimal(18,2) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `quotationconfigurations`
--

CREATE TABLE `quotationconfigurations` (
  `id` int(11) NOT NULL,
  `quotation_id` int(11) DEFAULT NULL,
  `showcoverletter` tinyint(4) DEFAULT '0',
  `showterms` tinyint(4) DEFAULT '0',
  `showpaymentdetails` tinyint(4) DEFAULT '1',
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `quotationdetails`
--

CREATE TABLE `quotationdetails` (
  `id` int(11) NOT NULL,
  `quotation_id` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `serialno` varchar(50) CHARACTER SET utf8mb4 DEFAULT NULL,
  `subserialno` varchar(100) CHARACTER SET utf8mb4 DEFAULT NULL,
  `specification` text,
  `warranty` text,
  `area` text,
  `unit` text,
  `qty` int(11) DEFAULT NULL,
  `measurement` varchar(150) DEFAULT NULL,
  `measurementtype` varchar(50) DEFAULT NULL,
  `measureqty` decimal(18,2) DEFAULT NULL,
  `measureamount` decimal(18,2) DEFAULT NULL,
  `price` decimal(18,2) DEFAULT NULL,
  `mrp` decimal(18,2) DEFAULT NULL,
  `pricewithgst` decimal(18,2) DEFAULT NULL,
  `pricewithoutgst` decimal(18,2) DEFAULT NULL,
  `mrpwithgst` int(11) DEFAULT NULL,
  `dealerdiscounttype` int(11) DEFAULT NULL,
  `purchaserate` decimal(18,2) DEFAULT NULL,
  `dealerdiscount` decimal(18,2) DEFAULT NULL,
  `discounttype` int(11) DEFAULT NULL,
  `discount` decimal(18,2) DEFAULT NULL,
  `profitmargintype` int(11) DEFAULT NULL,
  `profitmargin` decimal(18,2) DEFAULT NULL,
  `salesrate` decimal(18,2) DEFAULT NULL,
  `cgst` decimal(18,2) DEFAULT NULL,
  `cgstamount` decimal(18,2) DEFAULT NULL,
  `sgst` decimal(18,2) DEFAULT NULL,
  `sgstamount` decimal(18,2) DEFAULT NULL,
  `igst` decimal(18,2) DEFAULT NULL,
  `igstamount` decimal(18,2) DEFAULT NULL,
  `netrateincludinggst` decimal(18,2) DEFAULT NULL,
  `netrateexcludinggst` decimal(18,2) DEFAULT NULL,
  `gst` decimal(18,2) DEFAULT NULL,
  `unitrateincludinggst` decimal(18,2) DEFAULT NULL,
  `unitrateexcludinggst` decimal(18,2) DEFAULT NULL,
  `gstslab_id` int(11) DEFAULT NULL,
  `amount` decimal(18,2) DEFAULT NULL,
  `totalamountwithgst` decimal(18,2) DEFAULT NULL,
  `totalamountwithoutgst` decimal(18,2) DEFAULT NULL,
  `purchaseprice` decimal(18,2) DEFAULT NULL,
  `purchasetotal` decimal(18,2) DEFAULT NULL,
  `note` varchar(100) NOT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `quotationdocuments`
--

CREATE TABLE `quotationdocuments` (
  `id` int(11) NOT NULL,
  `quotation_id` int(11) DEFAULT NULL,
  `title` varchar(50) DEFAULT NULL,
  `originalfilename` varchar(100) DEFAULT NULL,
  `documentpath` varchar(255) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '1',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default by -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value-1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `quotationpriority`
--

CREATE TABLE `quotationpriority` (
  `id` int(11) NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `quotationpriority`
--

INSERT INTO `quotationpriority` (`id`, `name`, `displayorder`, `code`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'High', 1, 'HIGH', 1, -1, '2021-09-01 11:46:16', -1, '2021-09-01 11:46:16', NULL, NULL),
(2, 'Medium', 2, 'MEDIUM', 1, -1, '2021-09-01 11:47:08', -1, '2021-09-01 11:47:08', NULL, NULL),
(3, 'Low', 3, 'LOW', 1, -1, '2021-09-01 11:47:48', -1, '2021-09-01 11:47:48', NULL, NULL);

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

--
-- Table structure for table `quotationproductserialnos`
--

CREATE TABLE `quotationproductserialnos` (
  `id` int(11) NOT NULL,
  `quotationdetails_id` int(11) DEFAULT NULL,
  `serialnumber` varchar(20) DEFAULT NULL,
  `additionalserialnumber` varchar(20) DEFAULT NULL,
  `warrantystartdate` datetime DEFAULT NULL,
  `warrantyenddate` datetime DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `quotations`
--

CREATE TABLE `quotations` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `salesperson_id` int(11) DEFAULT NULL,
  `quotationstatus_id` int(11) DEFAULT NULL,
  `quotationpriority_id` int(11) DEFAULT NULL,
  `quotationno` varchar(50) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `validupto` datetime DEFAULT NULL,
  `deliverydate` date DEFAULT NULL,
  `title` text,
  `shippingasbilling` tinyint(4) NOT NULL DEFAULT '0',
  `shippingstreet1` text,
  `shippingstreet2` text,
  `shippinglocation` text,
  `shippingcity_id` int(11) DEFAULT NULL,
  `shippingstate_id` int(11) DEFAULT NULL,
  `shippingcountry_id` int(11) DEFAULT NULL,
  `shippingpostcode` varchar(20) DEFAULT NULL,
  `billingstreet1` text,
  `billingstreet2` text,
  `billinglocation` text,
  `billingcity_id` int(11) DEFAULT NULL,
  `billingstate_id` int(11) DEFAULT NULL,
  `billingcountry_id` int(11) DEFAULT NULL,
  `billingpostcode` varchar(20) DEFAULT NULL,
  `installationcharges` decimal(18,2) DEFAULT NULL,
  `shippingcharges` decimal(18,2) DEFAULT NULL,
  `othercharges` decimal(18,2) DEFAULT NULL,
  `dispatchthrough` varchar(100) DEFAULT NULL,
  `destination` varchar(100) DEFAULT NULL,
  `terms` text,
  `exclusion` text,
  `referencenumber` varchar(100) DEFAULT NULL,
  `quotationnumber` varchar(100) DEFAULT NULL,
  `note` text,
  `advancetype` int(11) DEFAULT NULL,
  `advance` decimal(18,2) DEFAULT NULL,
  `approvedby_id` int(11) DEFAULT NULL,
  `approveddate` datetime DEFAULT NULL,
  `tags` text,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `quotationstatus`
--

CREATE TABLE `quotationstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(20) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_at` datetime DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `quotationstatus`
--

INSERT INTO `quotationstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Approved', 'APR', 2, 1, -1, '2020-12-13 11:12:47', -1, '2020-12-13 11:12:47', NULL, NULL),
(2, 'On Hold', 'ONH', 3, 1, -1, '2020-12-13 11:12:47', -1, '2020-12-13 11:12:47', NULL, NULL),
(3, 'Rejected', 'REJ', 4, 1, -1, '2020-12-13 11:12:47', -1, '2020-12-13 11:12:47', NULL, NULL),
(4, 'Created', 'CRE', 1, 1, -1, '2021-03-27 02:56:11', -1, '2021-03-27 02:56:11', NULL, NULL);

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

--
-- Table structure for table `ratecard`
--

CREATE TABLE `ratecard` (
  `id` int(11) NOT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `category_id` int(11) DEFAULT NULL,
  `subcategory_id` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT '	Default value -1 for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT '	Default value -1 for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `ratecarddetails`
--

CREATE TABLE `ratecarddetails` (
  `id` int(11) NOT NULL,
  `ratecard_id` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `servicetype_id` int(11) DEFAULT NULL,
  `rate` decimal(18,2) DEFAULT NULL,
  `gst` decimal(18,2) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT '	Default value -1 for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT '	Default value -1 for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `rawmaterialinventory`
--

CREATE TABLE `rawmaterialinventory` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `rawmaterial_id` int(11) DEFAULT NULL,
  `unittype_id` int(11) DEFAULT NULL,
  `totalqty` int(11) DEFAULT NULL,
  `totalsoldqty` int(11) DEFAULT NULL,
  `totalavailableqty` int(11) DEFAULT NULL,
  `scrap` decimal(18,2) DEFAULT NULL,
  `active` tinyint(4) DEFAULT NULL,
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `rawmaterialinventorystockin`
--

CREATE TABLE `rawmaterialinventorystockin` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `rawmaterial_id` int(11) DEFAULT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `stocktype_id` int(11) DEFAULT NULL,
  `warehouse_id` int(11) DEFAULT NULL,
  `purchasedate` datetime DEFAULT NULL,
  `batchid` varchar(100) DEFAULT NULL,
  `batchnumber` varchar(100) DEFAULT NULL,
  `referencenumber` varchar(100) DEFAULT NULL,
  `qty` int(11) DEFAULT NULL,
  `price` decimal(18,2) DEFAULT NULL,
  `totalamountwithgst` decimal(18,2) DEFAULT NULL,
  `additionalcharges` decimal(18,2) DEFAULT NULL,
  `soldqty` int(11) DEFAULT NULL,
  `availableqty` int(11) DEFAULT NULL,
  `expirydate` datetime DEFAULT NULL,
  `manufacturingdate` datetime DEFAULT NULL,
  `batchdate` datetime DEFAULT NULL,
  `inventorystatus_id` int(11) DEFAULT NULL,
  `note` text CHARACTER SET latin1,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `rawmaterialinventorystockout`
--

CREATE TABLE `rawmaterialinventorystockout` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `salesorder_id` int(11) DEFAULT NULL,
  `salesorderdetails_id` int(11) DEFAULT NULL,
  `rawmaterial_id` int(11) DEFAULT NULL,
  `inventorystockin_id` int(11) DEFAULT NULL,
  `salesdate` datetime DEFAULT NULL,
  `referencenumber` varchar(100) DEFAULT NULL,
  `qty` int(11) DEFAULT NULL,
  `price` decimal(18,2) DEFAULT NULL,
  `totalamountwithgst` decimal(18,2) DEFAULT NULL,
  `additionalcharges` decimal(18,2) DEFAULT NULL,
  `cancelledby_id` int(11) DEFAULT NULL,
  `cancelleddate` datetime DEFAULT NULL,
  `employee_id` int(11) DEFAULT NULL,
  `note` text CHARACTER SET latin1,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `rawmaterialpurchaseorderadditionalcharges`
--

CREATE TABLE `rawmaterialpurchaseorderadditionalcharges` (
  `id` int(11) NOT NULL,
  `rawmaterialpurchaeorder_id` int(11) DEFAULT NULL,
  `chargetype_id` int(11) DEFAULT NULL,
  `charge` decimal(18,2) DEFAULT NULL,
  `mrpwithgst` int(11) DEFAULT NULL,
  `gstslab_id` int(11) DEFAULT NULL,
  `cgst` decimal(18,2) DEFAULT NULL,
  `cgstamount` decimal(18,2) DEFAULT NULL,
  `sgst` decimal(18,2) DEFAULT NULL,
  `sgstamount` decimal(18,2) DEFAULT NULL,
  `igst` decimal(18,2) DEFAULT NULL,
  `igstamount` decimal(18,2) DEFAULT NULL,
  `chargewithgst` decimal(18,2) DEFAULT NULL,
  `chargewithoutgst` decimal(18,2) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `rawmaterialpurchaseorderdetails`
--

CREATE TABLE `rawmaterialpurchaseorderdetails` (
  `id` int(11) NOT NULL,
  `rawmaterialpurchaseorder_id` int(11) DEFAULT NULL,
  `rowmaterial_id` int(11) DEFAULT NULL,
  `rawmaterialno` varchar(200) DEFAULT NULL,
  `material_id` int(11) DEFAULT NULL,
  `unit_id` int(11) DEFAULT NULL,
  `pricecategory_id` int(11) DEFAULT NULL,
  `transportationtype_id` int(11) DEFAULT NULL,
  `brand_id` int(11) DEFAULT NULL,
  `size_id` int(11) DEFAULT NULL,
  `gstlabs_id` int(11) DEFAULT NULL,
  `specification` text,
  `qty` int(11) DEFAULT NULL,
  `price` decimal(18,2) DEFAULT NULL,
  `netrate` decimal(18,2) DEFAULT NULL,
  `totalamount` decimal(18,2) DEFAULT NULL,
  `color` varchar(50) DEFAULT NULL,
  `density` text,
  `transportationcost` decimal(18,2) DEFAULT NULL,
  `specialrequirements` varchar(255) DEFAULT NULL,
  `usage` varchar(255) DEFAULT NULL,
  `includedintoinventory` tinyint(4) DEFAULT '0',
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `rawmaterialpurchaseorders`
--

CREATE TABLE `rawmaterialpurchaseorders` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `salesorder_id` int(11) DEFAULT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `status_id` int(11) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `title` text,
  `note` text,
  `shippingasbilling` tinyint(4) NOT NULL DEFAULT '0',
  `shippingstreet1` text,
  `shippingstreet2` text,
  `shippingstreet3` text NOT NULL,
  `shippingcity_id` int(11) DEFAULT NULL,
  `shippingstate_id` int(11) DEFAULT NULL,
  `shippingcountry_id` int(11) DEFAULT NULL,
  `shippingpostcode` varchar(20) DEFAULT NULL,
  `billingstreet1` text,
  `billingstreet2` text,
  `billingstreet3` text NOT NULL,
  `billingcity_id` int(11) DEFAULT NULL,
  `billingstate_id` int(11) DEFAULT NULL,
  `billingcountry_id` int(11) DEFAULT NULL,
  `billingpostcode` varchar(20) DEFAULT NULL,
  `installationcharges` decimal(18,2) DEFAULT NULL,
  `shippingcharges` decimal(18,2) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `rawmaterials`
--

CREATE TABLE `rawmaterials` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `rawmaterialno` int(11) DEFAULT NULL,
  `brand_id` int(11) DEFAULT NULL,
  `category_id` int(11) DEFAULT NULL,
  `subcategory_id` int(11) DEFAULT NULL,
  `size_id` int(11) DEFAULT NULL,
  `material_id` int(11) DEFAULT NULL,
  `pricecategory_id` int(11) DEFAULT NULL,
  `transportationcost` decimal(10,0) DEFAULT NULL,
  `transportationtype_id` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `specialrequirements` varchar(255) DEFAULT NULL,
  `usage` varchar(255) DEFAULT NULL,
  `unit_id` int(11) DEFAULT NULL,
  `quality` varchar(100) DEFAULT NULL,
  `color` varchar(50) DEFAULT NULL,
  `price` decimal(18,2) DEFAULT NULL,
  `mrpwithgst` int(11) DEFAULT NULL,
  `pricewithgst` decimal(18,2) DEFAULT NULL,
  `pricewithoutgst` decimal(18,2) DEFAULT NULL,
  `dealerdiscounttype` int(11) DEFAULT NULL,
  `purchaserate` decimal(18,2) DEFAULT NULL,
  `profitmargintype` int(11) DEFAULT NULL,
  `profitmargin` decimal(18,2) DEFAULT NULL,
  `dealerdiscount` decimal(10,0) DEFAULT NULL,
  `salesrate` decimal(18,2) DEFAULT NULL,
  `gst` decimal(18,2) DEFAULT NULL,
  `unitrateincludinggst` decimal(18,2) DEFAULT NULL,
  `unitrateexcludinggst` decimal(18,2) DEFAULT NULL,
  `gstslab_id` int(11) DEFAULT NULL,
  `pricetype` varchar(100) DEFAULT NULL,
  `density` text,
  `specification` varchar(255) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1',
  `modified_by` int(11) DEFAULT '-1',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `rawmaterialstockadjustment`
--

CREATE TABLE `rawmaterialstockadjustment` (
  `id` int(11) NOT NULL,
  `rawmaterial_id` int(11) DEFAULT NULL,
  `batchid` varchar(100) DEFAULT NULL,
  `adjustmenttype_id` int(11) DEFAULT NULL,
  `qty` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin	',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `rawmaterialstocklimits`
--

CREATE TABLE `rawmaterialstocklimits` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `rawmaterial_id` int(11) DEFAULT NULL,
  `limit` int(11) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

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

--
-- Table structure for table `recruitmentcurrentstatus`
--

CREATE TABLE `recruitmentcurrentstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value  -1 for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value  -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `recruitmentcurrentstatus`
--

INSERT INTO `recruitmentcurrentstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Selected', 'SELECT', 1, 1, -1, '2020-03-31 10:30:44', -1, '2020-03-31 10:30:44', NULL, NULL),
(2, 'Dead', 'DEAD', 2, 1, -1, '2020-03-31 10:31:14', -1, '2020-03-31 10:31:14', NULL, NULL),
(3, 'Rejected', 'REJECT', 3, 1, -1, '2020-03-31 10:31:30', -1, '2020-03-31 10:31:30', NULL, NULL);

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

--
-- Table structure for table `recruitmentstatus`
--

CREATE TABLE `recruitmentstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` int(11) DEFAULT '0',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `deleted_at` datetime DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `recruitmentstatus`
--

INSERT INTO `recruitmentstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_at`, `created_by`, `modified_at`, `modified_by`, `deleted_at`, `deleted_by`) VALUES
(1, 'Shortlisted as primary applicant', 'SHORTASPRYAPPT', 1, 1, '2020-03-09 11:47:17', -1, '2020-03-09 11:47:17', -1, NULL, NULL),
(2, 'No show', 'NOSHOW', 2, 1, '2020-03-09 11:48:47', -1, '2020-03-09 11:48:47', -1, NULL, NULL),
(3, 'Failed interview round', 'FAILIR', 3, 1, '2020-03-09 11:49:03', -1, '2020-03-09 11:49:03', -1, NULL, NULL),
(4, 'Shortlisted as secondary applicant', 'SHORTASSECAPPT', 4, 1, '2020-03-09 11:49:26', -1, '2020-03-09 11:49:26', -1, NULL, NULL);

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

--
-- Table structure for table `registrationcommunicationhistory`
--

CREATE TABLE `registrationcommunicationhistory` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `registration_id` int(11) DEFAULT NULL,
  `communicationtype_id` int(11) DEFAULT NULL,
  `followupdate` datetime DEFAULT NULL,
  `comment` text,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1 if for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `registrations`
--

CREATE TABLE `registrations` (
  `id` int(11) NOT NULL,
  `business_id` int(11) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `registrationstatus_id` int(11) DEFAULT NULL,
  `submitteddate` date DEFAULT NULL,
  `approveddate` datetime DEFAULT NULL,
  `note` varchar(255) DEFAULT NULL,
  `active` tinyint(4) NOT NULL DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `registrationstatus`
--

CREATE TABLE `registrationstatus` (
  `id` int(11) NOT NULL,
  `name` varchar(20) DEFAULT NULL,
  `code` varchar(150) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `created_by` int(11) DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `modified_by` int(11) DEFAULT NULL,
  `modified_at` datetime DEFAULT NULL,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `registrationstatus`
--

INSERT INTO `registrationstatus` (`id`, `name`, `code`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Submitted', 'SUBMITTED', 2, 1, -1, '2021-08-26 10:59:01', -1, '2021-08-26 11:00:33', NULL, NULL),
(2, 'Approved', 'APPROVED', 4, 1, -1, '2021-08-26 11:01:28', -1, '2021-08-26 11:01:28', NULL, NULL),
(3, 'Initiated', 'INITIATED', 1, 1, NULL, '2021-09-09 12:39:12', NULL, '2021-09-09 12:39:12', NULL, NULL),
(4, 'Inprocess', 'INPROCESS', 3, 1, NULL, '2021-09-09 12:39:12', NULL, '2021-09-09 12:39:12', NULL, NULL),
(5, 'Rejected', 'REJECTED', 5, 1, NULL, '2021-09-09 12:41:49', NULL, '2021-09-09 12:41:49', NULL, NULL);

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

--
-- Table structure for table `relationships`
--

CREATE TABLE `relationships` (
  `id` int(11) NOT NULL,
  `name` varchar(20) DEFAULT NULL,
  `displayorder` int(11) DEFAULT NULL,
  `active` tinyint(4) DEFAULT NULL,
  `created_by` int(11) DEFAULT '-1' COMMENT 'Default value -1\r\nif for admin',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) DEFAULT '-1' COMMENT 'Default value -1\r\nif for admin',
  `modified_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

--
-- Dumping data for table `relationships`
--

INSERT INTO `relationships` (`id`, `name`, `displayorder`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 'Father', 1, 1, -1, '2021-07-07 17:42:48', -1, '2021-07-07 17:42:48', NULL, NULL),
(2, 'Mother', 2, 1, -1, '2021-07-07 17:42:48', -1, '2021-07-07 17:42:48', NULL, NULL),
(3, 'Husband', 3, 1, -1, '2021-07-07 17:42:48', -1, '2021-07-07 17:42:48', NULL, NULL),
(4, 'Wife', 4, 1, -1, '2021-07-07 17:42:48', -1, '2021-07-07 17:42:48', NULL, NULL),
(5, 'Son', 5, 1, -1, '2021-07-07 17:42:48', -1, '2021-07-07 17:42:48', NULL, NULL),
(6, 'Daughter', 6, 1, -1, '2021-07-07 17:42:48', -1, '2021-07-07 17:42:48', NULL, NULL),
(7, 'Friend', 7, 1, -1, '2021-07-07 17:42:48', -1, '2021-07-07 17:42:48', NULL, NULL),
(8, 'Other', 8, 1, -1, '2021-07-07 17:42:48', -1, '2021-07-07 17:42:48', NULL, NULL);

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

--
-- Table structure for table `roleroutes`
--

CREATE TABLE `roleroutes` (
  `id` int(11) NOT NULL,
  `module_id` int(11) DEFAULT NULL,
  `area_id` int(11) DEFAULT NULL,
  `role_id` int(11) DEFAULT NULL,
  `route` varchar(100) DEFAULT NULL,
  `active` tinyint(4) DEFAULT '0',
  `created_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modified_by` int(11) NOT NULL DEFAULT '-1' COMMENT 'Default value -1 for admin',
  `modified_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `deleted_by` int(11) DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `roleroutes`
--

INSERT INTO `roleroutes` (`id`, `module_id`, `area_id`, `role_id`, `route`, `active`, `created_by`, `created_at`, `modified_by`, `modified_at`, `deleted_by`, `deleted_at`) VALUES
(1, 1, 1, 1, '/managementdashboard', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(2, 2, 1, 1, '/salesadmindashboard', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(3, 2, 24, 1, '/salescostanalysisreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(4, 2, 25, 1, '/hcvareport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(5, 2, 26, 1, '/leadcostanalysisreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(6, 2, 27, 1, '/targetreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(7, 2, 28, 1, '/newleadoutflowreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(8, 2, 29, 1, '/adcostpersalereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(9, 2, 30, 1, '/adcostperleadreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(10, 2, 31, 1, '/targetandactualreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(11, 2, 32, 1, '/monthlyrevenuetargetreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(12, 2, 33, 1, '/adcostpersaleandperleadreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(13, 2, 34, 1, '/targetandactaulallocatedreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(14, 2, 35, 1, '/averageinflowandoutflowleadreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(15, 2, 36, 1, '/sourceleadcomparisonreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(16, 2, 37, 1, '/salesrevenuereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(17, 2, 38, 1, '/sourceofleadreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(18, 2, 39, 1, '/serialnumbertrackingreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(19, 2, 40, 1, '/revenuereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(20, 2, 41, 1, '/paymenthistoryreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(21, 2, 42, 1, '/deliveryreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(22, 2, 43, 1, '/pickupreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(23, 2, 55, 1, '/leadstatisticsreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(24, 2, 56, 1, '/leadcommunicationreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(25, 2, 57, 1, '/quotationreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(26, 2, 58, 1, '/topfastestsellingproductreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(27, 2, 59, 1, '/invoicereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(28, 2, 60, 1, '/customerindustryvisereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(29, 2, 61, 1, '/warrantyservicereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(30, 2, 1, 4, '/saleshoddashboard', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(31, 2, 24, 4, '/salescostanalysisreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(32, 2, 25, 4, '/hcvareport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(33, 2, 26, 4, '/leadcostanalysisreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(34, 2, 27, 4, '/targetreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(35, 2, 28, 4, '/newleadoutflowreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(36, 2, 29, 4, '/adcostpersalereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(37, 2, 30, 4, '/adcostperleadreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(38, 2, 31, 4, '/targetandactualreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(39, 2, 32, 4, '/monthlyrevenuetargetreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(40, 2, 33, 4, '/adcostpersaleandperleadreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(41, 2, 34, 4, '/targetandactaulallocatedreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(42, 2, 35, 4, '/averageinflowandoutflowleadreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(43, 2, 36, 4, '/sourceleadcomparisonreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(44, 2, 37, 4, '/salesrevenuereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(45, 2, 38, 4, '/sourceofleadreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(46, 2, 39, 4, '/serialnumbertrackingreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(47, 2, 40, 4, '/revenuereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(48, 2, 41, 4, '/paymenthistoryreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(49, 2, 42, 4, '/deliveryreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(50, 2, 43, 4, '/pickupreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(51, 2, 1, 3, '/salesmanagerdashboard', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(52, 2, 44, 3, '/trainingreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(53, 2, 50, 3, '/pendingworkleftreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(54, 2, 45, 3, '/averageconversionrationcloseddownreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(55, 2, 37, 3, '/salesrevenuereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(56, 2, 46, 3, '/quarterlyactivitytrackingratioreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(57, 2, 47, 3, '/conversionratioreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(58, 2, 51, 3, '/roiperemployeereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(59, 2, 48, 3, '/costreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(60, 2, 49, 3, '/salesamounttargetpendingreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(61, 2, 1, 2, '/salesexecutivedashboard', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(62, 2, 52, 2, '/customerquotationsentreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(63, 2, 53, 2, '/customerquotationdeadlinereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(64, 2, 54, 2, '/deadleadreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(65, 2, 50, 2, '/pendingworkleftreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(66, 3, 1, 1, '/crmdashboard', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(67, 3, 66, 1, '/complaintreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(68, 3, 67, 1, '/jobworkreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(69, 3, 68, 1, '/amcreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(70, 3, 69, 1, '/amcservicereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(71, 4, 1, 1, '/projectmanagementdashboard', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(72, 4, 76, 1, '/projectreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(73, 4, 77, 1, '/taskreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(74, 4, 78, 1, '/issuereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(75, 5, 1, 1, '/scmdashboard', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(76, 5, 97, 1, '/fastestmovingproductreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(77, 5, 98, 1, '/othergreatcustomerreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(78, 5, 99, 1, '/productinventorystockinreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(79, 5, 100, 1, '/productinventorystockoutreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(80, 5, 101, 1, '/rawmaterialinventorystockinreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(81, 5, 102, 1, '/rawmaterialinventorystockoutreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(82, 5, 103, 1, '/cashconversioncyclereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(83, 5, 104, 1, '/inventoryaccuracyreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(84, 5, 105, 1, '/productpurchaseorderreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(85, 5, 106, 1, '/rawmaterialpurchaseorderreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(86, 5, 107, 1, '/purchasedstockinventoryreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(87, 7, 1, 1, '/hrhoddashboard', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(88, 7, 117, 1, '/worstperformerreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(89, 7, 119, 1, '/documentationduereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(90, 7, 118, 1, '/orientationduereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(91, 7, 120, 1, '/peopletakethexamreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(92, 7, 121, 1, '/shortlistedcvreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(93, 7, 122, 1, '/interviewfootfallreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(94, 7, 123, 1, '/closedpositionreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(95, 7, 124, 1, '/orientationtobecompletedreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(96, 7, 125, 1, '/validationemployeedoucmentreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(97, 7, 126, 1, '/conversionratiopassedreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(98, 7, 127, 1, '/hcvaindexaverageforsalesemployeereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(99, 7, 128, 1, '/roiemployeereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(100, 7, 129, 1, '/hrcompliancebeforeendofmonthreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(101, 7, 131, 1, '/jobopeningsreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(102, 7, 130, 1, '/scheduledinterviewreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(103, 7, 1, 9, '/hrhoddashboard', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(104, 7, 117, 9, '/worstperformerreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(105, 7, 119, 9, '/documentationduereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(106, 7, 118, 9, '/orientationduereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(107, 7, 120, 9, '/peopletakethexamreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(108, 7, 121, 9, '/shortlistedcvreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(109, 7, 122, 9, '/interviewfootfallreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(110, 7, 123, 9, '/closedpositionreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(111, 7, 124, 9, '/orientationtobecompletedreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(112, 7, 125, 9, '/validationemployeedoucmentreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(113, 7, 126, 9, '/conversionratiopassedreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(114, 7, 127, 9, '/hcvaindexaverageforsalesemployeereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(115, 7, 128, 9, '/roiemployeereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(116, 7, 129, 9, '/hrcompliancebeforeendofmonthreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(117, 7, 131, 1, '/jobopeningsreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(118, 7, 130, 1, '/scheduledinterviewreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(119, 7, 1, 8, '/hrrecruiterdashboard', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(120, 7, 119, 8, '/documentationduereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(121, 7, 118, 8, '/orientationduereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(122, 7, 120, 8, '/peopletakethexamreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(123, 7, 121, 8, '/shortlistedcvreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(124, 7, 122, 8, '/interviewfootfallreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(125, 7, 123, 8, '/closedpositionreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(126, 7, 124, 8, '/orientationtobecompletedreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(127, 7, 125, 8, '/validationemployeedoucmentreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(128, 8, 1, 1, '/payrollhoddashboard', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(129, 8, 151, 1, '/attendancereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(130, 8, 152, 1, '/leavemanagementreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(131, 8, 153, 1, '/lwfsettingreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(132, 8, 154, 1, '/pendingloansreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(133, 8, 155, 1, '/bankmacroreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(134, 8, 156, 1, '/travelexpenditurereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(135, 8, 157, 1, '/monthlytravelexpenditurereport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(136, 8, 158, 1, '/providentfundreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(137, 8, 159, 1, '/professionaltaxreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(138, 8, 150, 1, '/salarysheetreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(139, 8, 160, 1, '/esicreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(140, 8, 161, 1, '/ecrreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(141, 8, 162, 1, '/esichallanreport', 1, -1, '2022-09-13 05:08:36', -1, '2022-09-13 05:08:36', NULL, NULL),
(142, 8, 163, 1, '/ecrreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(143, 8, 1, 10, '/payrollhoddashboard', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(144, 8, 151, 10, '/attendancereport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(145, 8, 152, 10, '/leavemanagementreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(146, 8, 153, 10, '/lwfsettingreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(147, 8, 154, 10, '/pendingloansreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(148, 8, 155, 10, '/bankmacroreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(149, 8, 156, 10, '/travelexpenditurereport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(150, 8, 157, 10, '/monthlytravelexpenditurereport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(151, 8, 158, 10, '/providentfundreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(152, 8, 159, 10, '/professionaltaxreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(153, 8, NULL, 10, '/payslipreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(154, 8, 160, 10, '/esicreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(155, 8, 1, 11, '/supervisordashboard', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(156, 8, 151, 11, '/attendancereport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(157, 8, 152, 11, '/leavemanagementreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(158, 8, 154, 11, '/pendingloansreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(159, 8, 156, 11, '/travelexpenditurereport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(160, 8, 157, 11, '/monthlytravelexpenditurereport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(161, 10, 1, 1, '/franchisedashboard', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(162, 10, 266, 1, '/franchisereport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(163, 9, 1, 1, '/businessconsultingdashboard', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(164, 9, 288, 1, '/bookingreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(165, 9, 282, 1, '/enquiryreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(166, 9, 287, 1, '/monthlyvisitreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(167, 9, 283, 1, '/tendersreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(168, 9, 281, 1, '/businesssconsultingprojectreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(169, 9, 286, 1, '/monthlyforcastreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(170, NULL, 284, 1, '/prospectsreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(171, NULL, 285, 1, '/lostorderreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(172, NULL, 289, 1, '/purchaseorderreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(173, NULL, 291, 1, '/registrationreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(174, NULL, 280, 1, '/businessplanreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(175, NULL, 290, 1, '/purchaseorderreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(176, 9, 292, 1, '/enquirymasterreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(177, 11, 183, 1, '/financialstatementreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(178, 11, 184, 1, '/gstreturnreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(179, 11, 185, 1, '/expensereport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(180, 11, 1, 1, '/financedashboard', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(181, 12, 1, 1, '/ecommercedashboard', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(182, 12, 293, 1, '/ecmreport', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(183, 6, 1, 1, '/logisticsandtrackingdashboard', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(184, 19, 294, 16, '/crmdashboard', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL),
(185, 23, 294, 12, '/payrolldashboard', 1, -1, '2022-09-13 05:08:37', -1, '2022-09-13 05:08:37', NULL, NULL);

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

--
