-- https://www.phpmyadmin.net/
--

START TRANSACTION;



--
-- Database: `gmpsoftwareindia_captalo`
--

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

--
-- Table structure for table `achievement`
--

CREATE TABLE `achievement` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `department` varchar(50) NOT NULL,
  `emp_id` varchar(50) NOT NULL,
  `section` varchar(50) NOT NULL,
  `description` varchar(50) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date NOT NULL,
  `benifit` varchar(50) NOT NULL,
  `outcome` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `activity`
--

CREATE TABLE `activity` (
  `id` int NOT NULL,
  `activity_type` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `equipment_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `location` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `labour_no` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `start_date` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `from_time` time NOT NULL,
  `end_date` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `to_time` time NOT NULL,
  `pressure` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `temperature` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `humidity` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `activity`
--

INSERT INTO `activity` (`id`, `activity_type`, `entry_by`, `entry_date`, `equipment_code`, `location`, `labour_no`, `start_date`, `from_time`, `end_date`, `to_time`, `pressure`, `temperature`, `humidity`, `plant_id`) VALUES
(205, '', 'master', '2023-08-02', '54', 'location', 'Narendra', '2023-08-02', '18:34:00', '', '00:00:00', '', '', '', '60'),
(206, '', 'master', '2023-08-03', '54', 'location', 'Narendra', '2023-08-03', '14:59:00', '', '00:00:00', '', '', '', '60'),
(207, '', 'master', '2023-08-03', '54', 'location', 'Narendra', '2023-08-03', '17:25:00', '', '00:00:00', '', '', '', '60'),
(208, '', 'master', '2023-08-03', '54', 'location', 'Narendra', '2023-08-03', '17:26:00', '', '00:00:00', '', '', '', '60'),
(209, '', 'master', '2023-08-08', '54', 'location', 'Narendra', '2023-08-08', '16:01:00', '', '00:00:00', '', '', '', '60');

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

--
-- Table structure for table `activity_cleaning`
--

CREATE TABLE `activity_cleaning` (
  `id` int NOT NULL,
  `activity_id` int NOT NULL,
  `entry_by` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `labour_no` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `start_date` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `from_time` time NOT NULL,
  `end_date` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `to_time` time NOT NULL,
  `pressure` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `temperature` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `humidity` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `ac_category`
--

CREATE TABLE `ac_category` (
  `id` int NOT NULL,
  `category_name` varchar(100) NOT NULL,
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` bit(1) NOT NULL DEFAULT b'1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `ac_ledger_master`
--

CREATE TABLE `ac_ledger_master` (
  `id` int NOT NULL,
  `ledger_name` varchar(100) NOT NULL,
  `group_id` int NOT NULL,
  `group_code` int NOT NULL,
  `opening_balance` float NOT NULL,
  `ob_type` char(25) NOT NULL,
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `ac_leger_groups`
--

CREATE TABLE `ac_leger_groups` (
  `id` int NOT NULL,
  `group_name` varchar(100) NOT NULL,
  `group_code` int NOT NULL,
  `category_id` int NOT NULL,
  `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `created_by` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `status` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `additional_charges`
--

CREATE TABLE `additional_charges` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `emp_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `current_post` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `additional_designation` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `department` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `additional_responsibility` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `status` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `additional_material`
--

CREATE TABLE `additional_material` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `material_type` varchar(50) NOT NULL,
  `material_name` varchar(50) NOT NULL,
  `material_code` varchar(50) NOT NULL,
  `product` varchar(50) NOT NULL,
  `product_name` varchar(150) NOT NULL,
  `qty` varchar(50) NOT NULL,
  `purpose` varchar(50) NOT NULL,
  `justification` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL,
  `qa_status` varchar(50) NOT NULL,
  `store_status` varchar(50) NOT NULL,
  `dispensed_qty` varchar(50) NOT NULL,
  `unit` varchar(50) NOT NULL,
  `dispend_by` varchar(50) NOT NULL,
  `ar_no` varchar(50) NOT NULL,
  `receving_status` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `additional_material_hdr`
--

CREATE TABLE `additional_material_hdr` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `batch_no` int NOT NULL,
  `balance_qty` int NOT NULL,
  `material_type` varchar(50) NOT NULL,
  `material_name` varchar(50) NOT NULL,
  `material_code` varchar(50) NOT NULL,
  `gross_total` decimal(10,0) NOT NULL,
  `net_total` decimal(10,0) NOT NULL,
  `tare_total` decimal(10,0) NOT NULL,
  `unit` varchar(20) NOT NULL,
  `container` text NOT NULL,
  `ars` text NOT NULL,
  `done_by` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `additional_requisition`
--

CREATE TABLE `additional_requisition` (
  `id` int NOT NULL,
  `plant_id` varchar(20) NOT NULL,
  `material_code` varchar(40) NOT NULL,
  `reason` varchar(40) NOT NULL,
  `req_qty` varchar(50) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'pending'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `additional_term`
--

CREATE TABLE `additional_term` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `additional_term` varchar(1000) NOT NULL,
  `entry_date` date NOT NULL,
  `status` varchar(10) NOT NULL,
  `entry_by` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `additional_term`
--

INSERT INTO `additional_term` (`id`, `plant_id`, `additional_term`, `entry_date`, `status`, `entry_by`) VALUES
(8, 60, 'Refusal to accept increased payment term', '2023-08-02', '', 'master'),
(9, 60, 'Transportation Extra applicable.', '2023-08-02', '', 'master');

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

--
-- Table structure for table `addresses`
--

CREATE TABLE `addresses` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `plant_id` varchar(11) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `addr_type` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `address` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `contact_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `unit_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `unit_name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `state` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `city` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `pincode` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `agenda_data`
--

CREATE TABLE `agenda_data` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `agenda_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `date_time` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `remark` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `agenda_dates`
--

CREATE TABLE `agenda_dates` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `agenda_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `date_from` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `date_to` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `agenda_product`
--

CREATE TABLE `agenda_product` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `agenda_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `agenda_teams`
--

CREATE TABLE `agenda_teams` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `agenda_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `emp_name` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `auditor_role` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `agenda_vendor`
--

CREATE TABLE `agenda_vendor` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `agenda_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `audit_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `vendor_name` varchar(5000) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `email` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `address_corporate` varchar(2000) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `i_no1` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `agent`
--

CREATE TABLE `agent` (
  `id` int NOT NULL,
  `user_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `agent_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `agent_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `phone` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `email` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `percentage_on` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `percentage` decimal(10,2) NOT NULL,
  `gst_type` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `gst_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `state_code` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `pan_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `contact_person` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `address` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `approve_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_date` datetime DEFAULT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Triggers `agent`
--
DELIMITER $$
CREATE TRIGGER `agent_no_insert` BEFORE INSERT ON `agent` FOR EACH ROW BEGIN

SET @lastID = (SELECT id FROM agent ORDER BY id DESC LIMIT 1);
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.agent_no = concat('A1', LPAD(CONVERT(@lastID, CHAR), 4, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `agreement_details`
--

CREATE TABLE `agreement_details` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `agreement_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `agreement_title` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `company_name` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `agreement_date` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `legal_form` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `file_agreement` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `i_no1` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `agreement_partner`
--

CREATE TABLE `agreement_partner` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `agreement_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `partner_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `ahu_usages`
--

CREATE TABLE `ahu_usages` (
  `id` int NOT NULL,
  `department` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `section` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `equipment_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'PENDING',
  `start_time` time NOT NULL,
  `corridor` decimal(10,2) NOT NULL,
  `sampling` decimal(10,2) NOT NULL,
  `dispensing` decimal(10,2) NOT NULL,
  `stop_time` time NOT NULL,
  `start_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stop_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `start_pressure` decimal(10,2) NOT NULL,
  `stop_pressure` decimal(10,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `aircompressor_filterreplce`
--

CREATE TABLE `aircompressor_filterreplce` (
  `id` int NOT NULL,
  `filter_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `next_date` date NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `check_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `aircompressor_operation`
--

CREATE TABLE `aircompressor_operation` (
  `id` int NOT NULL,
  `AC02` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `AC05` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `AC06` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `air_pressure` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `operator` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_time` time NOT NULL,
  `entry_date` date NOT NULL,
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'APPROVE',
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `aircompressor_pressure`
--

CREATE TABLE `aircompressor_pressure` (
  `id` int NOT NULL,
  `plant_name` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `filter_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `pressure_before` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `pressure_after` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `remark` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `check_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `airtesting`
--

CREATE TABLE `airtesting` (
  `id` int NOT NULL,
  `type` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `point_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `media_lot_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `saline_lot_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'START',
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `appraisal_checklist_choices`
--

CREATE TABLE `appraisal_checklist_choices` (
  `id` bigint UNSIGNED NOT NULL,
  `checklist_detail_id` bigint UNSIGNED NOT NULL,
  `question` varchar(255) NOT NULL,
  `optiona` varchar(255) DEFAULT NULL,
  `optionb` varchar(255) DEFAULT NULL,
  `optionc` varchar(255) DEFAULT NULL,
  `optiond` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `appraisal_checklist_details`
--

CREATE TABLE `appraisal_checklist_details` (
  `id` bigint UNSIGNED NOT NULL,
  `checklist_master_id` bigint UNSIGNED NOT NULL,
  `checkpoint_particular` varchar(255) NOT NULL,
  `description` longtext NOT NULL,
  `goal_type` varchar(150) DEFAULT NULL,
  `evualation_parameter` varchar(150) NOT NULL,
  `evaluation_type` varchar(100) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `appraisal_checklist_dtl`
--

CREATE TABLE `appraisal_checklist_dtl` (
  `id` int NOT NULL,
  `kra_heading` varchar(150) NOT NULL,
  `description` varchar(250) NOT NULL,
  `evaluation_parameter` varchar(50) NOT NULL,
  `question` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `appraisal_checklist_feedback`
--

CREATE TABLE `appraisal_checklist_feedback` (
  `id` bigint UNSIGNED NOT NULL,
  `checklist_master_id` bigint UNSIGNED NOT NULL,
  `checklist_detail_id` bigint UNSIGNED NOT NULL,
  `checkist_choices` text NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `appraisal_checklist_hdr`
--

CREATE TABLE `appraisal_checklist_hdr` (
  `id` int NOT NULL,
  `appraisal_type` varchar(50) NOT NULL,
  `appraisal_heading` varchar(150) NOT NULL,
  `entered_by` varchar(50) NOT NULL,
  `entered_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `status` varchar(10) NOT NULL DEFAULT 'Approved'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `appraisal_checklist_master`
--

CREATE TABLE `appraisal_checklist_master` (
  `id` bigint UNSIGNED NOT NULL,
  `plant_id` int NOT NULL,
  `department` varchar(255) NOT NULL,
  `designation` varchar(255) NOT NULL,
  `appraisal_type` varchar(255) NOT NULL,
  `checklist_heading` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `appraisal_goal_settings`
--

CREATE TABLE `appraisal_goal_settings` (
  `id` bigint UNSIGNED NOT NULL,
  `goal_type` int NOT NULL,
  `allocate_time` int UNSIGNED NOT NULL,
  `particular_goal` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `appraisal_initiate`
--

CREATE TABLE `appraisal_initiate` (
  `id` bigint UNSIGNED NOT NULL,
  `candidate_name` varchar(100) NOT NULL,
  `appraisal_tenure` varchar(100) NOT NULL,
  `appraisal_from` timestamp NULL DEFAULT NULL,
  `appraisal_to` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `appron_testing`
--

CREATE TABLE `appron_testing` (
  `id` int NOT NULL,
  `testing_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `testing_date` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `gown_type` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `lab_name` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `address` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `contact_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `file_certificate` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `i_no1` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `area`
--

CREATE TABLE `area` (
  `id` int NOT NULL,
  `country` varchar(50) NOT NULL,
  `state_name` varchar(50) NOT NULL,
  `city` varchar(50) NOT NULL,
  `area_name` varchar(50) NOT NULL,
  `area_pincode` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `plant_id` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `arealist`
--

CREATE TABLE `arealist` (
  `id` int NOT NULL,
  `city` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `pincode` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `area` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `artwork`
--

CREATE TABLE `artwork` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `artwork_no` varchar(6) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `width` decimal(10,2) NOT NULL,
  `width_unit` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `length` decimal(10,2) NOT NULL,
  `length_unit` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `height` decimal(10,2) NOT NULL,
  `height_unit` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `vendor_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `precaution` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `instruction` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `file` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `approve_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_date` datetime DEFAULT NULL,
  `design` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `design_file` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `design_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `design_date` datetime DEFAULT NULL,
  `design_approve_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `design_approve_date` datetime DEFAULT NULL,
  `printing` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `printing_send_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `printing_send_date` datetime DEFAULT NULL,
  `printing_file` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `printing_upload_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `printing_upload_date` datetime DEFAULT NULL,
  `printing_approve_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `printing_approve_date` datetime DEFAULT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Triggers `artwork`
--
DELIMITER $$
CREATE TRIGGER `artwork_no_insert` BEFORE INSERT ON `artwork` FOR EACH ROW BEGIN

SET @lastID = (SELECT id FROM artwork ORDER BY id DESC LIMIT 1);
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.artwork_no = concat('ART', LPAD(CONVERT(@lastID, CHAR), 3, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `artwork_file`
--

CREATE TABLE `artwork_file` (
  `id` int NOT NULL,
  `artwork_file` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `artwork` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `assessment_questions`
--

CREATE TABLE `assessment_questions` (
  `id` int NOT NULL,
  `assessment_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `particular_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `comment` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `attachment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `asset_issued`
--

CREATE TABLE `asset_issued` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `asset_name` varchar(50) NOT NULL,
  `asset_id` varchar(50) NOT NULL,
  `department` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `attendence`
--

CREATE TABLE `attendence` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `emp_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `indate` date NOT NULL,
  `intime` time NOT NULL,
  `outdate` date NOT NULL,
  `outtime` time NOT NULL,
  `inentry_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `outentry_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `shift` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `late_mark` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `shift_change` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `original_intime` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `original_outtime` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `update_date` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `attendence`
--

INSERT INTO `attendence` (`id`, `user_no`, `emp_id`, `indate`, `intime`, `outdate`, `outtime`, `inentry_by`, `outentry_by`, `shift`, `late_mark`, `shift_change`, `status`, `original_intime`, `original_outtime`, `update_by`, `update_date`, `plant_id`) VALUES
(89, 'gmpdemo1', 'EC04', '2023-06-01', '09:30:00', '2023-06-01', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(90, 'gmpdemo1', 'EC04', '2023-06-02', '09:30:00', '2023-06-02', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(91, 'gmpdemo1', 'EC04', '2023-06-03', '09:30:00', '2023-06-03', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(92, 'gmpdemo1', 'EC04', '2023-06-05', '09:30:00', '2023-06-05', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(93, 'gmpdemo1', 'EC04', '2023-06-06', '09:30:00', '2023-06-06', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(94, 'gmpdemo1', 'EC04', '2023-06-07', '09:30:00', '2023-06-07', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(95, 'gmpdemo1', 'EC04', '2023-06-08', '09:30:00', '2023-06-08', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(96, 'gmpdemo1', 'EC04', '2023-06-09', '09:30:00', '2023-06-09', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(97, 'gmpdemo1', 'EC04', '2023-06-10', '09:30:00', '2023-06-10', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(98, 'gmpdemo1', 'EC04', '2023-06-12', '09:30:00', '2023-06-12', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(99, 'gmpdemo1', 'EC04', '2023-06-13', '09:30:00', '2023-06-13', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(100, 'gmpdemo1', 'EC04', '2023-06-14', '09:30:00', '2023-06-14', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(101, 'gmpdemo1', 'EC04', '2023-06-15', '09:30:00', '2023-06-15', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(102, 'gmpdemo1', 'EC04', '2023-06-16', '09:30:00', '2023-06-16', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(103, 'gmpdemo1', 'EC04', '2023-06-17', '09:30:00', '2023-06-17', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(104, 'gmpdemo1', 'EC04', '2023-06-19', '09:30:00', '2023-06-19', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(105, 'gmpdemo1', 'EC04', '2023-06-20', '09:30:00', '2023-06-20', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(106, 'gmpdemo1', 'EC04', '2023-06-21', '09:30:00', '2023-06-21', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(107, 'gmpdemo1', 'EC04', '2023-06-22', '09:30:00', '2023-06-22', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(108, 'gmpdemo1', 'EC04', '2023-06-23', '09:30:00', '2023-06-23', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(109, 'gmpdemo1', 'EC04', '2023-06-25', '09:30:00', '2023-06-25', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(110, 'gmpdemo1', 'EC04', '2023-06-26', '09:30:00', '2023-06-26', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(111, 'gmpdemo1', 'EC04', '2023-06-27', '09:30:00', '2023-06-27', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(112, 'gmpdemo1', 'EC04', '2023-06-28', '09:30:00', '2023-06-28', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(113, 'gmpdemo1', 'EC04', '2023-06-29', '09:30:00', '2023-06-29', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(114, 'gmpdemo1', 'EC04', '2023-06-30', '09:30:00', '2023-06-30', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(115, 'gmpdemo1', 'EC04', '2023-06-01', '09:30:00', '2023-06-01', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(116, 'gmpdemo1', 'EC04', '2023-06-02', '09:30:00', '2023-06-02', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(117, 'gmpdemo1', 'EC04', '2023-06-03', '09:30:00', '2023-06-03', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(118, 'gmpdemo1', 'EC04', '2023-06-05', '09:30:00', '2023-06-05', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(119, 'gmpdemo1', 'EC04', '2023-06-06', '09:30:00', '2023-06-06', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(120, 'gmpdemo1', 'EC04', '2023-06-07', '09:30:00', '2023-06-07', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(121, 'gmpdemo1', 'EC04', '2023-06-08', '09:30:00', '2023-06-08', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(122, 'gmpdemo1', 'EC04', '2023-06-09', '09:30:00', '2023-06-09', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(123, 'gmpdemo1', 'EC04', '2023-06-10', '09:30:00', '2023-06-10', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(124, 'gmpdemo1', 'EC04', '2023-06-12', '09:30:00', '2023-06-12', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(125, 'gmpdemo1', 'EC04', '2023-06-13', '09:30:00', '2023-06-13', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(126, 'gmpdemo1', 'EC04', '2023-06-14', '09:30:00', '2023-06-14', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(127, 'gmpdemo1', 'EC04', '2023-06-15', '09:30:00', '2023-06-15', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(128, 'gmpdemo1', 'EC04', '2023-06-16', '09:30:00', '2023-06-16', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(129, 'gmpdemo1', 'EC04', '2023-06-17', '09:30:00', '2023-06-17', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(130, 'gmpdemo1', 'EC04', '2023-06-19', '09:30:00', '2023-06-19', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(131, 'gmpdemo1', 'EC04', '2023-06-20', '09:30:00', '2023-06-20', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(132, 'gmpdemo1', 'EC04', '2023-06-21', '09:30:00', '2023-06-21', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(133, 'gmpdemo1', 'EC04', '2023-06-22', '09:30:00', '2023-06-22', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(134, 'gmpdemo1', 'EC04', '2023-06-23', '09:30:00', '2023-06-23', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(135, 'gmpdemo1', 'EC04', '2023-06-25', '09:30:00', '2023-06-25', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(136, 'gmpdemo1', 'EC04', '2023-06-26', '09:30:00', '2023-06-26', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(137, 'gmpdemo1', 'EC04', '2023-06-27', '09:30:00', '2023-06-27', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(138, 'gmpdemo1', 'EC04', '2023-06-28', '09:30:00', '2023-06-28', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(139, 'gmpdemo1', 'EC04', '2023-06-29', '09:30:00', '2023-06-29', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(140, 'gmpdemo1', 'EC04', '2023-06-30', '09:30:00', '2023-06-30', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(141, 'gmpdemo1', 'EC04', '2023-06-01', '09:30:00', '2023-06-01', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(142, 'gmpdemo1', 'EC04', '2023-06-02', '09:30:00', '2023-06-02', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(143, 'gmpdemo1', 'EC04', '2023-06-03', '09:30:00', '2023-06-03', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(144, 'gmpdemo1', 'EC04', '2023-06-05', '09:30:00', '2023-06-05', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(145, 'gmpdemo1', 'EC04', '2023-06-06', '09:30:00', '2023-06-06', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(146, 'gmpdemo1', 'EC04', '2023-06-07', '09:30:00', '2023-06-07', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(147, 'gmpdemo1', 'EC04', '2023-06-08', '09:30:00', '2023-06-08', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(148, 'gmpdemo1', 'EC04', '2023-06-09', '09:30:00', '2023-06-09', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(149, 'gmpdemo1', 'EC04', '2023-06-10', '09:30:00', '2023-06-10', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(150, 'gmpdemo1', 'EC04', '2023-06-12', '09:30:00', '2023-06-12', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(151, 'gmpdemo1', 'EC04', '2023-06-13', '09:30:00', '2023-06-13', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(152, 'gmpdemo1', 'EC04', '2023-06-14', '09:30:00', '2023-06-14', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(153, 'gmpdemo1', 'EC04', '2023-06-15', '09:30:00', '2023-06-15', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(154, 'gmpdemo1', 'EC04', '2023-06-16', '09:30:00', '2023-06-16', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(155, 'gmpdemo1', 'EC04', '2023-06-17', '09:30:00', '2023-06-17', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(156, 'gmpdemo1', 'EC04', '2023-06-19', '09:30:00', '2023-06-19', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(157, 'gmpdemo1', 'EC04', '2023-06-20', '09:30:00', '2023-06-20', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(158, 'gmpdemo1', 'EC04', '2023-06-21', '09:30:00', '2023-06-21', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(159, 'gmpdemo1', 'EC04', '2023-06-22', '09:30:00', '2023-06-22', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(160, 'gmpdemo1', 'EC04', '2023-06-23', '09:30:00', '2023-06-23', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(161, 'gmpdemo1', 'EC04', '2023-06-25', '09:30:00', '2023-06-25', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(162, 'gmpdemo1', 'EC04', '2023-06-26', '09:30:00', '2023-06-26', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(163, 'gmpdemo1', 'EC04', '2023-06-27', '09:30:00', '2023-06-27', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(164, 'gmpdemo1', 'EC04', '2023-06-28', '09:30:00', '2023-06-28', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(165, 'gmpdemo1', 'EC04', '2023-06-29', '09:30:00', '2023-06-29', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(166, 'gmpdemo1', 'EC04', '2023-06-30', '09:30:00', '2023-06-30', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(167, 'gmpdemo1', 'EC04', '2023-06-01', '09:30:00', '2023-06-01', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(168, 'gmpdemo1', 'EC04', '2023-06-02', '09:30:00', '2023-06-02', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(169, 'gmpdemo1', 'EC04', '2023-06-03', '09:30:00', '2023-06-03', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(170, 'gmpdemo1', 'EC04', '2023-06-05', '09:30:00', '2023-06-05', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(171, 'gmpdemo1', 'EC04', '2023-06-06', '09:30:00', '2023-06-06', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(172, 'gmpdemo1', 'EC04', '2023-06-07', '09:30:00', '2023-06-07', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(173, 'gmpdemo1', 'EC04', '2023-06-08', '09:30:00', '2023-06-08', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(174, 'gmpdemo1', 'EC04', '2023-06-09', '09:30:00', '2023-06-09', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(175, 'gmpdemo1', 'EC04', '2023-06-10', '09:30:00', '2023-06-10', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(176, 'gmpdemo1', 'EC04', '2023-06-12', '09:30:00', '2023-06-12', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(177, 'gmpdemo1', 'EC04', '2023-06-13', '09:30:00', '2023-06-13', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(178, 'gmpdemo1', 'EC04', '2023-06-14', '09:30:00', '2023-06-14', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(179, 'gmpdemo1', 'EC04', '2023-06-15', '09:30:00', '2023-06-15', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(180, 'gmpdemo1', 'EC04', '2023-06-16', '09:30:00', '2023-06-16', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(181, 'gmpdemo1', 'EC04', '2023-06-17', '09:30:00', '2023-06-17', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(182, 'gmpdemo1', 'EC04', '2023-06-19', '09:30:00', '2023-06-19', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(183, 'gmpdemo1', 'EC04', '2023-06-20', '09:30:00', '2023-06-20', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(184, 'gmpdemo1', 'EC04', '2023-06-21', '09:30:00', '2023-06-21', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(185, 'gmpdemo1', 'EC04', '2023-06-22', '09:30:00', '2023-06-22', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(186, 'gmpdemo1', 'EC04', '2023-06-23', '09:30:00', '2023-06-23', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(187, 'gmpdemo1', 'EC04', '2023-06-25', '09:30:00', '2023-06-25', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(188, 'gmpdemo1', 'EC04', '2023-06-26', '09:30:00', '2023-06-26', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(189, 'gmpdemo1', 'EC04', '2023-06-27', '09:30:00', '2023-06-27', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(190, 'gmpdemo1', 'EC04', '2023-06-28', '09:30:00', '2023-06-28', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(191, 'gmpdemo1', 'EC04', '2023-06-29', '09:30:00', '2023-06-29', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(192, 'gmpdemo1', 'EC04', '2023-06-30', '09:30:00', '2023-06-30', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(193, 'gmpdemo1', 'EC05', '2023-06-01', '09:30:00', '2023-06-01', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(194, 'gmpdemo1', 'EC05', '2023-06-02', '09:30:00', '2023-06-02', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(195, 'gmpdemo1', 'EC05', '2023-06-03', '09:30:00', '2023-06-03', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(196, 'gmpdemo1', 'EC05', '2023-06-05', '09:30:00', '2023-06-05', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(197, 'gmpdemo1', 'EC05', '2023-06-06', '09:30:00', '2023-06-06', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(198, 'gmpdemo1', 'EC05', '2023-06-07', '09:30:00', '2023-06-07', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(199, 'gmpdemo1', 'EC05', '2023-06-08', '09:30:00', '2023-06-08', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(200, 'gmpdemo1', 'EC05', '2023-06-09', '09:30:00', '2023-06-09', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(201, 'gmpdemo1', 'EC05', '2023-06-10', '09:30:00', '2023-06-10', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(202, 'gmpdemo1', 'EC05', '2023-06-12', '09:30:00', '2023-06-12', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(203, 'gmpdemo1', 'EC05', '2023-06-13', '09:30:00', '2023-06-13', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(204, 'gmpdemo1', 'EC05', '2023-06-14', '09:30:00', '2023-06-14', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(205, 'gmpdemo1', 'EC05', '2023-06-15', '09:30:00', '2023-06-15', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(206, 'gmpdemo1', 'EC05', '2023-06-16', '09:30:00', '2023-06-16', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(207, 'gmpdemo1', 'EC05', '2023-06-17', '09:30:00', '2023-06-17', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(208, 'gmpdemo1', 'EC05', '2023-06-19', '09:30:00', '2023-06-19', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(209, 'gmpdemo1', 'EC05', '2023-06-20', '09:30:00', '2023-06-20', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(210, 'gmpdemo1', 'EC05', '2023-06-21', '09:30:00', '2023-06-21', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(211, 'gmpdemo1', 'EC05', '2023-06-22', '09:30:00', '2023-06-22', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(212, 'gmpdemo1', 'EC05', '2023-06-23', '09:30:00', '2023-06-23', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(213, 'gmpdemo1', 'EC05', '2023-06-25', '09:30:00', '2023-06-25', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(214, 'gmpdemo1', 'EC05', '2023-06-26', '09:30:00', '2023-06-26', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(215, 'gmpdemo1', 'EC05', '2023-06-27', '09:30:00', '2023-06-27', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(216, 'gmpdemo1', 'EC05', '2023-06-28', '09:30:00', '2023-06-28', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(217, 'gmpdemo1', 'EC05', '2023-06-29', '09:30:00', '2023-06-29', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(218, 'gmpdemo1', 'EC05', '2023-06-30', '09:30:00', '2023-06-30', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(219, 'gmpdemo1', 'EC05', '2023-06-01', '09:30:00', '2023-06-01', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(220, 'gmpdemo1', 'EC05', '2023-06-02', '09:30:00', '2023-06-02', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(221, 'gmpdemo1', 'EC05', '2023-06-03', '09:30:00', '2023-06-03', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(222, 'gmpdemo1', 'EC05', '2023-06-05', '09:30:00', '2023-06-05', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(223, 'gmpdemo1', 'EC05', '2023-06-06', '09:30:00', '2023-06-06', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(224, 'gmpdemo1', 'EC05', '2023-06-07', '09:30:00', '2023-06-07', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(225, 'gmpdemo1', 'EC05', '2023-06-08', '09:30:00', '2023-06-08', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(226, 'gmpdemo1', 'EC05', '2023-06-09', '09:30:00', '2023-06-09', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(227, 'gmpdemo1', 'EC05', '2023-06-10', '09:30:00', '2023-06-10', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(228, 'gmpdemo1', 'EC05', '2023-06-12', '09:30:00', '2023-06-12', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(229, 'gmpdemo1', 'EC05', '2023-06-13', '09:30:00', '2023-06-13', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(230, 'gmpdemo1', 'EC05', '2023-06-14', '09:30:00', '2023-06-14', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(231, 'gmpdemo1', 'EC05', '2023-06-15', '09:30:00', '2023-06-15', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(232, 'gmpdemo1', 'EC05', '2023-06-16', '09:30:00', '2023-06-16', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(233, 'gmpdemo1', 'EC05', '2023-06-17', '09:30:00', '2023-06-17', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(234, 'gmpdemo1', 'EC05', '2023-06-19', '09:30:00', '2023-06-19', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(235, 'gmpdemo1', 'EC05', '2023-06-20', '09:30:00', '2023-06-20', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(236, 'gmpdemo1', 'EC05', '2023-06-21', '09:30:00', '2023-06-21', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(237, 'gmpdemo1', 'EC05', '2023-06-22', '09:30:00', '2023-06-22', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(238, 'gmpdemo1', 'EC05', '2023-06-23', '09:30:00', '2023-06-23', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(239, 'gmpdemo1', 'EC05', '2023-06-25', '09:30:00', '2023-06-25', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(240, 'gmpdemo1', 'EC05', '2023-06-26', '09:30:00', '2023-06-26', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(241, 'gmpdemo1', 'EC05', '2023-06-27', '09:30:00', '2023-06-27', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(242, 'gmpdemo1', 'EC05', '2023-06-28', '09:30:00', '2023-06-28', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(243, 'gmpdemo1', 'EC05', '2023-06-29', '09:30:00', '2023-06-29', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(244, 'gmpdemo1', 'EC05', '2023-06-30', '09:30:00', '2023-06-30', '18:30:00', 'master', 'master', '', '', '', 'pending', '', '', '', '', ''),
(245, 'gmpdemo1', 'EC02', '2023-08-04', '10:02:57', '2023-08-04', '10:03:35', 'master', 'master', '', '', '', 'exit', '', '', '', '', ''),
(251, 'gmpdemo1', '0016', '2023-08-29', '09:40:00', '2023-08-29', '18:40:00', 'SHARAD PATEL', 'SHARAD PATEL', '', '', '', 'pending', '', '', '', '', ''),
(252, 'gmpdemo1', '0017', '2023-08-29', '09:00:00', '2023-08-29', '17:45:00', 'NIRAV PATEL', 'NIRAV PATEL', '', '', '', 'pending', '', '', '', '', ''),
(253, 'gmpdemo1', '0004', '2023-08-29', '09:40:00', '2023-08-29', '18:10:00', 'ROHIT NAYAK', 'ROHIT NAYAK', '', '', '', 'pending', '', '', '', '', ''),
(254, 'gmpdemo1', '0009', '2023-08-29', '09:10:00', '2023-08-29', '17:44:00', 'SENDHABHAI RAVAL', 'SENDHABHAI RAVAL', '', '', '', 'pending', '', '', '', '', ''),
(255, 'gmpdemo1', '0028', '2023-08-29', '08:30:00', '2023-08-29', '17:56:00', 'JYOTI THAKOR', 'JYOTI THAKOR', '', '', '', 'pending', '', '', '', '', ''),
(256, 'gmpdemo1', '0030', '2023-08-29', '09:00:00', '2023-08-29', '18:00:00', 'MAHESH SENMA', 'MAHESH SENMA', '', '', '', 'pending', '', '', '', '', ''),
(257, 'gmpdemo1', '0031', '2023-08-29', '09:00:00', '2023-08-29', '18:20:00', 'RAJDEEP THAKOR', 'RAJDEEP THAKOR', '', '', '', 'pending', '', '', '', '', ''),
(258, 'gmpdemo1', '0032', '2023-08-29', '09:15:00', '2023-08-29', '18:15:00', 'GOPI PATEL', 'GOPI PATEL', '', '', '', 'pending', '', '', '', '', ''),
(259, 'gmpdemo1', '0033', '2023-08-29', '09:27:00', '2023-08-29', '17:30:00', 'DEEP PATEL', 'DEEP PATEL', '', '', '', 'pending', '', '', '', '', ''),
(260, 'gmpdemo1', '0034', '2023-08-29', '09:00:00', '2023-08-29', '17:45:00', 'NIDHI PATEL', 'NIDHI PATEL', '', '', '', 'pending', '', '', '', '', ''),
(261, 'gmpdemo1', '0035', '2023-08-29', '09:30:00', '2023-08-29', '18:00:00', 'NIKHIL PATEL', 'NIKHIL PATEL', '', '', '', 'pending', '', '', '', '', ''),
(265, 'gmpdemo1', '0018', '2023-08-29', '09:40:00', '2023-08-29', '18:15:00', 'JUHI PARMAR', 'JUHI PARMAR', '', '', '', 'pending', '', '', '', '', ''),
(286, 'gmpdemo1', '0015', '2023-08-28', '09:00:00', '2023-08-28', '18:30:00', 'PRIYANK PAREKH', 'PRIYANK PAREKH', '', '', '', 'pending', '', '', '', '', ''),
(291, 'gmpdemo1', '0028', '2023-08-28', '08:30:00', '2023-08-28', '17:56:00', 'JYOTI THAKOR', 'JYOTI THAKOR', '', '', '', 'pending', '', '', '', '', ''),
(299, 'gmpdemo1', '0018', '2023-08-28', '09:40:00', '2023-08-28', '18:15:00', 'JUHI PARMAR', 'JUHI PARMAR', '', '', '', 'pending', '', '', '', '', ''),
(315, 'gmpdemo1', '0018', '2023-08-28', '09:40:00', '2023-08-28', '18:15:00', 'JUHI PARMAR', 'JUHI PARMAR', '', '', '', 'pending', '', '', '', '', ''),
(319, 'gmpdemo1', '0016', '2023-08-28', '09:40:00', '2023-08-28', '18:40:00', 'SHARAD PATEL', 'SHARAD PATEL', '', '', '', 'pending', '', '', '', '', ''),
(331, 'gmpdemo1', '0018', '2023-08-28', '09:40:00', '2023-08-28', '18:15:00', 'JUHI PARMAR', 'JUHI PARMAR', '', '', '', 'pending', '', '', '', '', ''),
(336, 'gmpdemo1', '0017', '2023-08-28', '09:00:00', '2023-08-28', '17:45:00', 'NIRAV PATEL', 'NIRAV PATEL', '', '', '', 'pending', '', '', '', '', '');

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

--
-- Table structure for table `audit_dates`
--

CREATE TABLE `audit_dates` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `audit_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `vendor_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `audit_date_from` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `audit_date_to` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `audit_trail`
--

CREATE TABLE `audit_trail` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `user_id` int NOT NULL,
  `audit_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `ip_address` varchar(16) NOT NULL,
  `module` varchar(150) NOT NULL,
  `form_name` varchar(250) NOT NULL,
  `action_taken` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `authorization`
--

CREATE TABLE `authorization` (
  `id` int NOT NULL,
  `type` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_type` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_code` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material_code` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `instrument_id` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_no` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `sample_test` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `test` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `justification` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `autoclave`
--

CREATE TABLE `autoclave` (
  `id` int NOT NULL,
  `cycle_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cycle_start` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `achieved_time` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `steam_pressure` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cycle_end` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `hold_time` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `indicator` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `done_by` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `remark` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `bactorial`
--

CREATE TABLE `bactorial` (
  `id` int NOT NULL,
  `equipment_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `disinfect_cleaning` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `clean_by` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `check_by` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `remark` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `entry_time` time NOT NULL,
  `plant_id` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `balance_calibration`
--

CREATE TABLE `balance_calibration` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `department` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `balance_id` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `location` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `capacity` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `bal_name` varchar(505) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `from` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `to` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `unit` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `std_weights` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `weight1` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `weight2` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `weight3` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `weight4` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `weight5` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `check_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `check_date` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `banks`
--

CREATE TABLE `banks` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `bank_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `account_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `branch` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `account_type` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `ifsc` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `approve_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `batch`
--

CREATE TABLE `batch` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `bmr_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_qty` decimal(10,2) NOT NULL,
  `unit` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'Kg',
  `lots` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `check_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `check_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `batchformula`
--

CREATE TABLE `batchformula` (
  `id` int NOT NULL,
  `user_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `bom_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_code` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `mfr_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `unit` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_size` decimal(10,2) NOT NULL,
  `raw_materials` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `packing_materials` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stages` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Triggers `batchformula`
--
DELIMITER $$
CREATE TRIGGER `batchformula_no_insert` BEFORE INSERT ON `batchformula` FOR EACH ROW BEGIN

SET @lastID = (SELECT id FROM batchformula ORDER BY id DESC LIMIT 1);
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.bom_no = concat('B1', LPAD(CONVERT(@lastID, CHAR), 4, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `batch_checklist`
--

CREATE TABLE `batch_checklist` (
  `id` int NOT NULL,
  `user_no` varchar(20) NOT NULL DEFAULT 'gmpdemo1',
  `dosage_form` varchar(20) NOT NULL,
  `product_code` varchar(20) NOT NULL,
  `checkpoints` text NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) NOT NULL,
  `entry_date` datetime NOT NULL,
  `approve_by` varchar(20) NOT NULL,
  `approve_date` datetime DEFAULT NULL,
  `dosage_type` varchar(22) NOT NULL,
  `plant_id` varchar(20) NOT NULL,
  `master_ch_dtl` varchar(1000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `batch_formula`
--

CREATE TABLE `batch_formula` (
  `id` int NOT NULL,
  `material_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `unit_qty` decimal(10,2) NOT NULL,
  `unit` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `overages_percent` decimal(10,2) NOT NULL,
  `total_qty` decimal(10,2) NOT NULL,
  `batch_qty` decimal(10,2) NOT NULL,
  `grade` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `bfr_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `batch_formula_info`
--

CREATE TABLE `batch_formula_info` (
  `id` int NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `mfr_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `bfr_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `unit_formula_batch_weight` decimal(10,2) NOT NULL,
  `batch_formula_weight` decimal(10,2) NOT NULL,
  `rm_batch_size_unit` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `pm_pack_size` decimal(10,2) NOT NULL,
  `pm_pack_unit` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `market_type` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `country_specific` varchar(3) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `country_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `packing_type` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `raw_materials` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `packing_materials` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `bfr_type` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `version_no` varchar(5) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `effective_date` datetime DEFAULT NULL,
  `status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `checked_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `checked_date` datetime DEFAULT NULL,
  `approve_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `batch_materials`
--

CREATE TABLE `batch_materials` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `material_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `pack_size` int NOT NULL,
  `pack_unit` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `mf_batch_size` int NOT NULL,
  `bfr_no` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `overages` decimal(10,2) NOT NULL,
  `qty` decimal(10,2) NOT NULL,
  `unit` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `grade` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_qty` decimal(10,2) NOT NULL,
  `total_qty` decimal(10,2) NOT NULL,
  `yeild_contribution` varchar(5) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `role` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `process_step` varchar(5) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `split_into_lots` varchar(5) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `factor` varchar(6) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `strength` varchar(6) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `no` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `batch_no`
--

CREATE TABLE `batch_no` (
  `id` int NOT NULL,
  `plant_id` varchar(10) NOT NULL,
  `plan_no` varchar(10) NOT NULL,
  `bom_no` varchar(10) NOT NULL,
  `batch_no` varchar(10) NOT NULL,
  `exp_start_date` date NOT NULL,
  `exp_end_date` date NOT NULL,
  `allocate_batch_no` varchar(20) NOT NULL,
  `hardcopy_issue` varchar(20) NOT NULL,
  `issue_by` varchar(10) NOT NULL,
  `issue_to` varchar(20) NOT NULL,
  `issue_date` date NOT NULL,
  `status` varchar(10) NOT NULL,
  `batch_size` varchar(10) NOT NULL,
  `batch_id` int NOT NULL,
  `bmr_received_by` varchar(100) NOT NULL,
  `bmr_received_on` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `batch_planing_raw_material_hdr`
--

CREATE TABLE `batch_planing_raw_material_hdr` (
  `id` int NOT NULL,
  `batch_plan_id` int NOT NULL,
  `country_name` varchar(25) NOT NULL,
  `pack_size` varchar(25) NOT NULL,
  `pack_size_unit` varchar(25) NOT NULL,
  `pack_batch_size` varchar(25) NOT NULL,
  `pack_type` varchar(25) NOT NULL,
  `batch_size` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `batch_planning`
--

CREATE TABLE `batch_planning` (
  `id` int NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material_type` varchar(2) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'RM',
  `plan_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plan_for` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plan_based_on` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plan_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plan_for_market` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plan_client_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plan_client_code` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `client_po_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `client_po_date` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `client_po_qty` int NOT NULL,
  `client_po_unit` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `country_specific` int NOT NULL,
  `pack_multiple_countries` int NOT NULL,
  `grade` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `bfr_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `mfr_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_size` decimal(10,2) NOT NULL,
  `batch_no` varchar(11) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `pack_size` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `pack_unit` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `total_batches` int NOT NULL,
  `dispatch_qty` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `planned_qty` decimal(10,2) NOT NULL,
  `qty_can_planned` decimal(10,2) NOT NULL,
  `no_of_batches_can_planned` decimal(10,2) NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'PENDING',
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_date` date NOT NULL,
  `approve_by` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Triggers `batch_planning`
--
DELIMITER $$
CREATE TRIGGER `batch_planning_no_insert` BEFORE INSERT ON `batch_planning` FOR EACH ROW BEGIN

SET @lastID = (SELECT id FROM batch_planning ORDER BY id DESC LIMIT 1);
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.plan_no = concat('P1', LPAD(CONVERT(@lastID, CHAR), 4, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `batch_planning_materials`
--

CREATE TABLE `batch_planning_materials` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `batch_plan_id` int NOT NULL,
  `pm_hdr_id` int NOT NULL,
  `material_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `pack_size` int NOT NULL,
  `pack_unit` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `mf_batch_size` int NOT NULL,
  `bfr_no` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `overages` decimal(10,2) NOT NULL,
  `qty` decimal(10,2) NOT NULL,
  `unit` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `grade` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_qty` decimal(10,2) NOT NULL,
  `total_qty` decimal(10,2) NOT NULL,
  `plan_qty` decimal(10,2) NOT NULL,
  `batches_can_plan` decimal(10,2) NOT NULL,
  `shortage_qty` decimal(10,2) NOT NULL,
  `disp_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',
  `dispensing_status` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `batch_release`
--

CREATE TABLE `batch_release` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `document_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_name` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_for` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `client_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `qty` decimal(10,2) NOT NULL,
  `unit` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `pack_size` decimal(10,2) NOT NULL,
  `containers` int NOT NULL,
  `mfg_date` date NOT NULL,
  `exp_date` date NOT NULL,
  `mfg_date1` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `exp_date1` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `checkpoints` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `check_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `check_date` datetime DEFAULT NULL,
  `approve_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_date` datetime DEFAULT NULL,
  `receive_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `receive_date` date DEFAULT NULL,
  `remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'Pending',
  `product_label` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_info` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `seal_integrity` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `physical_condition` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `fg_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `batch_stages`
--

CREATE TABLE `batch_stages` (
  `id` int NOT NULL,
  `mfr_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `for_lot` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stage` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `batch_stages_ipqc_dtl`
--

CREATE TABLE `batch_stages_ipqc_dtl` (
  `id` int NOT NULL,
  `ti_no` varchar(50) NOT NULL,
  `stage_hdr_id` int NOT NULL,
  `stage_dtl_id` int NOT NULL,
  `plan_no` varchar(250) NOT NULL,
  `bfr_no` varchar(250) NOT NULL,
  `lot_no` varchar(250) NOT NULL,
  `remarks` varchar(250) NOT NULL,
  `remarks_entry_by` varchar(20) NOT NULL,
  `remarks_entry_date` datetime NOT NULL,
  `equipment_code` varchar(25) NOT NULL,
  `equipment` varchar(50) NOT NULL,
  `start_time` time NOT NULL,
  `end_time` time NOT NULL,
  `operator_code` varchar(25) NOT NULL,
  `process_entry_by` varchar(25) NOT NULL,
  `process_entry_date` datetime NOT NULL,
  `recording_date` date NOT NULL,
  `recording_time` time(6) NOT NULL,
  `stage_yield` decimal(8,2) NOT NULL,
  `stage_yield_unit` varchar(25) NOT NULL,
  `stage_yield_percent` decimal(6,2) NOT NULL,
  `expected_yield` varchar(50) NOT NULL,
  `yeild_entry_by` varchar(25) NOT NULL,
  `yeild_entry_date` datetime NOT NULL,
  `ti_recd_by` varchar(15) NOT NULL,
  `test_result` varchar(25) NOT NULL,
  `test_remarks` varchar(250) NOT NULL,
  `ti_recd_date` datetime NOT NULL,
  `test_result_status` varchar(25) NOT NULL DEFAULT 'Pending',
  `limit_type` varchar(50) NOT NULL,
  `description` varchar(5000) NOT NULL,
  `lower_limit` varchar(50) NOT NULL,
  `upper_limit` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Triggers `batch_stages_ipqc_dtl`
--
DELIMITER $$
CREATE TRIGGER `ti_no` BEFORE INSERT ON `batch_stages_ipqc_dtl` FOR EACH ROW BEGIN

SET @lastID = (SELECT lot_no FROM batch_stages_ipqc_dtl ORDER BY id DESC LIMIT 1);
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.ti_no = concat('TI', LPAD(CONVERT(@lastID, CHAR), 4, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `blister`
--

CREATE TABLE `blister` (
  `id` int NOT NULL,
  `machine_name` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `item_name` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `change_part` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `specification` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `remark` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `bmr`
--

CREATE TABLE `bmr` (
  `id` int NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `user_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `company_unit` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plan_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `bom_for` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `bom_type` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'FRESH',
  `bmr_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_code` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `bom_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `min_output_qty` decimal(10,2) NOT NULL,
  `max_output_qty` decimal(10,2) NOT NULL,
  `finish_materials` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `raw_materials` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `packing_materials` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `islot` varchar(3) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'no',
  `lots` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stages` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_size` decimal(10,2) NOT NULL,
  `unit` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `bmr_file` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `yield_qty` decimal(10,2) NOT NULL,
  `yield_per` decimal(10,2) NOT NULL,
  `dispatch_qty` decimal(10,2) NOT NULL,
  `complete_date` datetime NOT NULL,
  `start_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `start_date` datetime DEFAULT NULL,
  `pack` decimal(10,2) NOT NULL,
  `pack_unit` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `transfer` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `complete_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `mfg_date` date NOT NULL,
  `exp_date` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `mfg_date1` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `exp_date1` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `sampling_qty` decimal(10,2) NOT NULL,
  `sampling_unit` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `destroy_qty` decimal(10,2) NOT NULL,
  `issuance` varchar(58) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `expected_start_date` date NOT NULL,
  `expected_end_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Triggers `bmr`
--
DELIMITER $$
CREATE TRIGGER `bmr_no_insert` BEFORE INSERT ON `bmr` FOR EACH ROW BEGIN

SET @lastID = (SELECT id FROM bmr ORDER BY id DESC LIMIT 1);
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.bmr_no = concat('BMR', LPAD(CONVERT(@lastID, CHAR), 4, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `bmr_material`
--

CREATE TABLE `bmr_material` (
  `id` int NOT NULL,
  `no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `overages` decimal(10,2) NOT NULL,
  `qty` decimal(10,2) NOT NULL,
  `unit` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_qty` decimal(10,2) NOT NULL,
  `batch_unit` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `lot_qty` decimal(10,2) NOT NULL,
  `lot_unit` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `role` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `process` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `materials` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `bmr_materials`
--

CREATE TABLE `bmr_materials` (
  `id` int NOT NULL,
  `bmr_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material_type` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material_subtype` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material_code` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material_name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `grade` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `req_qty` decimal(10,2) NOT NULL,
  `dispensing_qty` decimal(10,2) NOT NULL,
  `recovery_qty` decimal(10,2) NOT NULL,
  `unit` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `variation` decimal(10,3) NOT NULL,
  `islod` varchar(3) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'NO'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `bmr_packing`
--

CREATE TABLE `bmr_packing` (
  `id` int NOT NULL,
  `packing_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_type` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'BMR',
  `plant_name` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `bmr_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `bom_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `min_output_qty` decimal(10,2) NOT NULL,
  `max_output_qty` decimal(10,2) NOT NULL,
  `qty` decimal(10,2) NOT NULL,
  `dispatch_qty` decimal(10,2) NOT NULL,
  `packing_qty` decimal(10,2) NOT NULL,
  `discard_qty` decimal(10,2) NOT NULL,
  `tailing_qty` decimal(10,2) NOT NULL,
  `batches` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `unit` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `containers` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_container` int NOT NULL,
  `tailing_container` int NOT NULL,
  `mfg_date` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `exp_date` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `check_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `check_date` date DEFAULT NULL,
  `complete_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `complete_date` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Triggers `bmr_packing`
--
DELIMITER $$
CREATE TRIGGER `bmr_packing_no_insert` BEFORE INSERT ON `bmr_packing` FOR EACH ROW BEGIN

SET @lastID = (SELECT id FROM bmr_packing ORDER BY id DESC LIMIT 1);
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.packing_no = concat('BP', LPAD(CONVERT(@lastID, CHAR), 4, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `bmr_plan`
--

CREATE TABLE `bmr_plan` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `plan_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `planning_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `bmr_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_size` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `lots` int NOT NULL,
  `bom_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `mfr_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `materials` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stages` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `check_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `check_date` datetime NOT NULL,
  `approve_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_date` datetime NOT NULL,
  `bno` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `allocate_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `allocate_date` datetime DEFAULT NULL,
  `stability` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `reason` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `validation` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Triggers `bmr_plan`
--
DELIMITER $$
CREATE TRIGGER `bmr_plan_no` BEFORE INSERT ON `bmr_plan` FOR EACH ROW BEGIN

SET @lastID = (SELECT id FROM bmr_plan ORDER BY id DESC LIMIT 1);
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.plan_no = concat('BP', LPAD(CONVERT(@lastID, CHAR), 4, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `bmr_stages`
--

CREATE TABLE `bmr_stages` (
  `id` int NOT NULL,
  `bmr_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `process` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stage` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `expected_start_date` date NOT NULL,
  `expected_complete_date` date NOT NULL,
  `start_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `start_date` date DEFAULT NULL,
  `supervisors` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `workers` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `isinstruction` varchar(3) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'no',
  `instructions` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `isprocedure` varchar(3) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'no',
  `procedures` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `isequipment` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'no',
  `equipments` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `isclerance` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `clearances` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `ischeck` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `checks` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `inprocess_frequency` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `inprocess_freq_unit` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `inprocess_production` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `inprocess_qa` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `inprocess_qc` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `isweighing` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'no',
  `weighings` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `isenvironment` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `environments` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `yields` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `complete_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `complete_date` datetime DEFAULT NULL,
  `status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `data` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `procedure_data` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `details` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `yield_qty` decimal(10,2) NOT NULL,
  `yield_per` decimal(10,2) NOT NULL,
  `yield_unit` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `theoretical_wt` decimal(10,2) NOT NULL,
  `actual_wt` decimal(10,2) NOT NULL,
  `qty_destroyed` decimal(10,2) NOT NULL,
  `issieve` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `isscreen` varchar(60) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `isdrying` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `iswash` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `isqcchecks` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `bmr_tailing`
--

CREATE TABLE `bmr_tailing` (
  `id` int NOT NULL,
  `plant_name` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `bmr_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_code` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `ar_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `mfg_date` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `exp_date` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `tailing_qty` decimal(10,2) NOT NULL,
  `remaining_qty` decimal(10,2) NOT NULL,
  `unit` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `bmr_work`
--

CREATE TABLE `bmr_work` (
  `id` int NOT NULL,
  `bmr_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stage` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `person_type` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `person_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `bod_cleaning`
--

CREATE TABLE `bod_cleaning` (
  `id` int NOT NULL,
  `equipment_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `disinfectant` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `clean_by` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `remark` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_time` time NOT NULL,
  `entry_date` date NOT NULL,
  `entry_by` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `bpr`
--

CREATE TABLE `bpr` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `bpr_no` varchar(6) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `bmr_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `mfr_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_size` decimal(10,2) NOT NULL,
  `yield_qty` decimal(10,2) NOT NULL,
  `yield_per` decimal(10,2) NOT NULL,
  `mfg_date` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `exp_date` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `unit` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'Kg',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `receive_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `receive_date` datetime DEFAULT NULL,
  `packing_for` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `tenative_complete_date` date NOT NULL,
  `plan_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plan_date` date DEFAULT NULL,
  `work` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `work_data` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `work_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `work_date` datetime DEFAULT NULL,
  `start_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `start_date` datetime DEFAULT NULL,
  `dispensing` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `dispense_request_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dispense_request_date` datetime DEFAULT NULL,
  `primary_qty` decimal(10,2) NOT NULL,
  `secondary_qty` decimal(10,2) NOT NULL,
  `tertiary_qty` decimal(10,2) NOT NULL,
  `remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `complete_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `complete_date` date NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Triggers `bpr`
--
DELIMITER $$
CREATE TRIGGER `bpr_no_insert` BEFORE INSERT ON `bpr` FOR EACH ROW BEGIN

SET @lastID = (SELECT id FROM bpr ORDER BY id DESC LIMIT 1);
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.bpr_no = concat('BPR', LPAD(CONVERT(@lastID, CHAR), 3, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `brine_plant`
--

CREATE TABLE `brine_plant` (
  `id` int NOT NULL,
  `run_hr` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `load_per` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `amp` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `gas_temp_dis` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `gas_temp_suc` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `gas_temp_liq` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `gas_temp_oil` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `gas_pressure_dis` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `gas_pressure_suc` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `gas_pressure_oil` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `brine_inlet` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `brine_outlet` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cooling_inlet` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cooling_outlet` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `supply_pressure` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `tank_level_mini1` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `tank_level_mini2` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `KWH` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `entry_time` time NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `bulkdensity`
--

CREATE TABLE `bulkdensity` (
  `id` int NOT NULL,
  `bulkmethod` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `bulkset` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `bulktime` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `bulk_stocks` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `cabin_passage`
--

CREATE TABLE `cabin_passage` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `date` date NOT NULL,
  `time` time(6) NOT NULL,
  `sweeping` varchar(50) NOT NULL,
  `table_chair_stool` varchar(50) NOT NULL,
  `cupboard` varchar(50) NOT NULL,
  `done_by` varchar(50) NOT NULL,
  `checked_by` varchar(50) NOT NULL,
  `remark` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `calibration`
--

CREATE TABLE `calibration` (
  `id` int NOT NULL,
  `user_no` varchar(20) NOT NULL DEFAULT 'gmpdemo1',
  `frequency` varchar(10) NOT NULL DEFAULT 'Daily',
  `equipment_code` varchar(20) NOT NULL,
  `weights` text NOT NULL,
  `deviation` varchar(20) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) NOT NULL,
  `entry_date` datetime NOT NULL,
  `check_by` varchar(20) NOT NULL,
  `check_date` datetime DEFAULT NULL,
  `calibration_status` varchar(20) NOT NULL,
  `remark` varchar(20) NOT NULL,
  `plant_id` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `calibration`
--

INSERT INTO `calibration` (`id`, `user_no`, `frequency`, `equipment_code`, `weights`, `deviation`, `status`, `entry_by`, `entry_date`, `check_by`, `check_date`, `calibration_status`, `remark`, `plant_id`) VALUES
(40, 'gmpdemo1', 'Daily', '004', '\"null\"', '', 'approve', '', '2023-08-03 02:58:26', 'master', NULL, '', '', '');

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

--
-- Table structure for table `candidate`
--

CREATE TABLE `candidate` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `candidate_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `qualification` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `place` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `mobile_no` bigint NOT NULL,
  `email_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `gender` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `resume` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `isScheduleInteview` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'No',
  `interview_date` date DEFAULT NULL,
  `interview_time` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `venue` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `contact_person` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `department` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `designation` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `schedule_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `interview_allocated` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'No',
  `isInterviewCompleted` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'No',
  `dept_status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `dept_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `special_term` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `finaldepartment` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `finaldesignation` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `isemployee` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'No',
  `isSalary` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'No',
  `register_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `registration_date` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `offeracceptance` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `medicalcheckup` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'yes',
  `ischeckup` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'No',
  `checkup_status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'yes',
  `tentative_joining_date` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `offer_accept_date` datetime NOT NULL,
  `premedical` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `frequency` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `location` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `address` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `interviewed_by` varchar(25) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `interviewer_remarks` varchar(25) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `interviewer_checklist` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `primary_hr_comments` varchar(25) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `primary_hr` varchar(25) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `primary_hr_checklist` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `expected_salary` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `recommended_salary` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `offered_salary` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `final_hr` varchar(25) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `final_hr_checklist` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `final_hr_comments` varchar(25) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `final_decision_comments` varchar(25) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `primary_int_comp` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'no',
  `interviewer_int_comp` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'no',
  `final_int_comp` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'no',
  `is_interview_completed` varchar(3) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'No',
  `company_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `candidate`
--

INSERT INTO `candidate` (`id`, `user_no`, `candidate_name`, `qualification`, `place`, `mobile_no`, `email_id`, `gender`, `resume`, `status`, `isScheduleInteview`, `interview_date`, `interview_time`, `venue`, `contact_person`, `department`, `designation`, `schedule_by`, `interview_allocated`, `isInterviewCompleted`, `dept_status`, `dept_remark`, `special_term`, `finaldepartment`, `finaldesignation`, `isemployee`, `isSalary`, `register_by`, `registration_date`, `offeracceptance`, `medicalcheckup`, `ischeckup`, `checkup_status`, `tentative_joining_date`, `offer_accept_date`, `premedical`, `entry_by`, `entry_date`, `frequency`, `location`, `address`, `plant_id`, `interviewed_by`, `interviewer_remarks`, `interviewer_checklist`, `primary_hr_comments`, `primary_hr`, `primary_hr_checklist`, `expected_salary`, `recommended_salary`, `offered_salary`, `final_hr`, `final_hr_checklist`, `final_hr_comments`, `final_decision_comments`, `primary_int_comp`, `interviewer_int_comp`, `final_int_comp`, `is_interview_completed`, `company_name`) VALUES
(76, 'gmpdemo1', 'Kavya Singh', 'MBA', '', 1204875425, 'kavya765@gmail.com', 'Female', '20230803110602resume.pdf', 'Approved', 'Yes', '2023-08-03', '10:00', 'Factory', NULL, 'Engineering', 'EXECUTIVE', 'master', 'Yes', 'No', 'done', 'selected', NULL, 'Engineering', 'EXECUTIVE', 'Yes', 'Yes', '', '', NULL, 'yes', 'No', 'yes', NULL, '0000-00-00 00:00:00', 'pending', 'master', '2023-08-03', '', 'Pune', 'Viman nagar .Pune', '', 'master', 'Recommended', '[{\"id\":\"105\",\"chklist_id\":\"82\",\"check_point\":\"Communication skill\",\"ch_description\":\"Communication skill\",\"evl_pr\":\"10\",\"evl_type\":\"\",\"options\":\"\",\"qs_dtl\":\"\",\"update_date\":\"2023-08-03 01:44:30\",\"date_peparation\":\"2023-08-03 01:44:30\",\"approved_by\":\"\",\"entry_by\":\"\",\"status\":\"active\",\"module\":\"Interviewer\",\"form_name\":\"Interviewer Round\",\"department\":\"HR\",\"check\":\"4\"}]', 'Recommended', 'master', '[{\"id\":\"104\",\"chklist_id\":\"81\",\"check_point\":\"Communication skill\",\"ch_description\":\"communication skill\",\"evl_pr\":\"10\",\"evl_type\":\"\",\"options\":\"\",\"qs_dtl\":\"\",\"update_date\":\"2023-08-03 01:40:43\",\"date_peparation\":\"2023-08-03 01:40:43\",\"approved_by\":\"\",\"entry_by\":\"\",\"status\":\"active\",\"module\":\"Primary\",\"form_name\":\"Primary HR Round\",\"department\":\"HR\",\"check\":\"4\"}]', '30000', '25000', '25000', 'master', '[{\"id\":\"106\",\"chklist_id\":\"83\",\"check_point\":\"Positive attitude\",\"ch_description\":\"Positive attitude\",\"evl_pr\":\"2\",\"evl_type\":\"\",\"options\":\"\",\"qs_dtl\":\"\",\"update_date\":\"2023-08-03 01:46:05\",\"date_peparation\":\"2023-08-03 01:46:05\",\"approved_by\":\"\",\"entry_by\":\"\",\"status\":\"active\",\"module\":\"Final\",\"form_name\":\"Final\",\"department\":\"HR\",\"check\":\"Yes\"}]', 'Recommended', '', 'yes', 'yes', 'ys', 'Yes', '');

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

--
-- Table structure for table `canteen_office`
--

CREATE TABLE `canteen_office` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `date` date NOT NULL,
  `time` time(6) NOT NULL,
  `sweeping` varchar(50) NOT NULL,
  `table_chair_stool` varchar(50) NOT NULL,
  `washbasin` varchar(50) NOT NULL,
  `done_by` varchar(50) NOT NULL,
  `checked_by` varchar(50) NOT NULL,
  `remark` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `capa`
--

CREATE TABLE `capa` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `capa_no` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `department` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `origin` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `document_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `document_file` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plan` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `initiate_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `initiate_date` date NOT NULL,
  `status` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `check_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `check_date` datetime NOT NULL,
  `prev_occured` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `changecontrol` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `review1_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `review1_date` datetime NOT NULL,
  `pcapa_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `review2_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `review2_date` datetime NOT NULL,
  `review2_comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `extension` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `capa_extension` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `due_date` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `review3_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `review3_date` datetime NOT NULL,
  `review3_comment` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approval1_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approval1_date` datetime NOT NULL,
  `approval2_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approval2_date` datetime NOT NULL,
  `file` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `verify_comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `effectiveness` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `closing_date` datetime NOT NULL,
  `close_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `close_date` datetime NOT NULL,
  `closing_approval_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `closing_approval_date` date DEFAULT NULL,
  `effectiveness_no` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `close_verify_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `close_verify_date` date DEFAULT NULL,
  `close_verify_approve_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `close_verify_approve_date` date DEFAULT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Triggers `capa`
--
DELIMITER $$
CREATE TRIGGER `capa_no_insert` BEFORE INSERT ON `capa` FOR EACH ROW BEGIN
SET @cur_year = DATE_FORMAT(CURDATE(), '%y');
SET @lastID = (SELECT id FROM capa ORDER BY id DESC LIMIT 1);
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.capa_no = concat('CAPA/', @cur_year + '', '/', LPAD(CONVERT(@lastID, CHAR), 3, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `capa_comment`
--

CREATE TABLE `capa_comment` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `capa_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `department` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `capa_file`
--

CREATE TABLE `capa_file` (
  `id` int NOT NULL,
  `user_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `capa_no` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `particular` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `file` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'ACTIVE',
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `ccpermanant`
--

CREATE TABLE `ccpermanant` (
  `id` int NOT NULL,
  `cc_no1` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `document_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cc_related` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `change_title` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `document_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `revision_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `existing_procedure` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `proposed_change` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `change_reason` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `affected_for` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `final_target` date NOT NULL,
  `initiate_dept` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `initiate_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `initiate_date` date NOT NULL,
  `status` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'Initiated',
  `action_plan` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `requirements` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dept_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dept_check_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dept_check_date` date NOT NULL,
  `change_proposed` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `change_status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `reject_reason` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `preapproval_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `preapproval_date` date DEFAULT NULL,
  `preapproval_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `preapproval_customer` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `customer_comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `preapproval_customer_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `preapproval_customer_date` date DEFAULT NULL,
  `preapproval_check_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `preapproval_check_date` date DEFAULT NULL,
  `postapproval_status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `postapproval_comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `postapproval_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `postapproval_date` date DEFAULT NULL,
  `postapproval1_comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL COMMENT 'QA final review',
  `postapproval1_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `postapproval1_date` date DEFAULT NULL,
  `extension_status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `extension_plan` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `extension_for` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `extension_justification` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `extension_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `extension_date` date DEFAULT NULL,
  `extension_check_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `extension_check_date` date DEFAULT NULL,
  `additional_evaluation` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `evaluation_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `evaluation_date` date DEFAULT NULL,
  `implementation_comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `implementation_date` date NOT NULL,
  `implementation_review` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `issatisfactory` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `ispermanent` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cqa_recommendation` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cqa_comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `implement_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `implement_date` date DEFAULT NULL,
  `close_comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `close_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `close_date` date DEFAULT NULL,
  `close1_comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `close1_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `close1_date` date DEFAULT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `department` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `issue_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `reference` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `date_initiation` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `market` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `client_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cc_related_product_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `document` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cc_document` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `final_qa_action` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `customer_approval_status` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `customer_approval` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `customer_qa_approval` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cust_comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `customer_status` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cust_atachment` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `decison_chnge_control` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `ccpermanant_files`
--

CREATE TABLE `ccpermanant_files` (
  `id` int NOT NULL,
  `cc_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `particular` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `file` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `ccpermanant_final_qa_change_action`
--

CREATE TABLE `ccpermanant_final_qa_change_action` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `action` varchar(999) NOT NULL,
  `department_name` varchar(50) NOT NULL,
  `employee` varchar(50) NOT NULL,
  `target_date` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL,
  `ccpermanant_id` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `ccpermanant_regulatoy`
--

CREATE TABLE `ccpermanant_regulatoy` (
  `id` int NOT NULL,
  `ccpermanant_id` int NOT NULL,
  `comment` varchar(999) NOT NULL,
  `change_reg_doss` varchar(999) NOT NULL,
  `change_pharma` varchar(999) NOT NULL,
  `change_update` varchar(999) NOT NULL,
  `change_cust_req` varchar(999) NOT NULL,
  `change_regulatory_req` varchar(999) NOT NULL,
  `dic_req` varchar(999) NOT NULL,
  `reg_file` varchar(999) NOT NULL,
  `plant_id` varchar(9) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `ccp_departments`
--

CREATE TABLE `ccp_departments` (
  `id` int NOT NULL,
  `cc_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `department` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `reg_impact` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `cctemporary`
--

CREATE TABLE `cctemporary` (
  `id` int NOT NULL,
  `cc_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `document_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cc_related` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `change_title` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `document_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `existing_procedure` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `proposed_change` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `change_reason` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `affected_for` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `initiate_dept` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `initiate_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `initiate_date` date NOT NULL,
  `status` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'Initiated',
  `action_plan` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dept_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dept_check_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dept_check_date` date NOT NULL,
  `change_proposed` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `change_status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `reject_reason` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `preapproval_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `preapproval_date` date DEFAULT NULL,
  `preapproval_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `preapproval_check_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `preapproval_check_date` date DEFAULT NULL,
  `postapproval_status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batches_no` int NOT NULL,
  `postapproval_comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `postapproval_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `postapproval_date` date DEFAULT NULL,
  `postapproval1_comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `postapproval1_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `postapproval1_date` date DEFAULT NULL,
  `extension_status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `extension_plan` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `extension_for` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `extension_justification` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `extension_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `extension_date` date DEFAULT NULL,
  `extension_check_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `extension_check_date` date DEFAULT NULL,
  `additional_evaluation` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `evaluation_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `evaluation_date` date DEFAULT NULL,
  `implementation_comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `ispermanent` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cqa_recommendation` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `implement_comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `implement_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `implement_date` date DEFAULT NULL,
  `close_comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `close_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `close_date` date DEFAULT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `cctemporary_files`
--

CREATE TABLE `cctemporary_files` (
  `id` int NOT NULL,
  `cc_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `particular` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `file` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `cc_departments`
--

CREATE TABLE `cc_departments` (
  `id` int NOT NULL,
  `cc_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `department` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `cc_department_review`
--

CREATE TABLE `cc_department_review` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `department` varchar(50) NOT NULL,
  `remark` varchar(9999) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  `ccpermanant_id` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  `status` varchar(9999) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'pending',
  `document` varchar(500) NOT NULL,
  `entry_from` varchar(50) NOT NULL,
  `remark2` varchar(999) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'pending' COMMENT ' qa review entry deep'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `challan`
--

CREATE TABLE `challan` (
  `id` int NOT NULL,
  `inward_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `material_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `challan_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `challan_date` date NOT NULL,
  `vendor_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `po_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `po_date` date NOT NULL,
  `driver_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `driver_contact` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `tax_invoice` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `transport` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `transport_company` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `vehicle_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `materials` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `gross_total` decimal(10,2) NOT NULL,
  `gst_total` decimal(10,2) NOT NULL,
  `net_total` decimal(10,2) NOT NULL,
  `status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_date` datetime DEFAULT NULL,
  `receiving_status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `inward_date` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `inward_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `challan_file` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `weighing_procedure` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `transport_frieght` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `courier` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `person` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `po` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `is_tanker` varchar(3) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `vehicle_type` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_time` varchar(5) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dedusting` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `damage` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `next_stage` varchar(25) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'Pending',
  `error` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `tax_invoice_date` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `inward` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `challan`
--

INSERT INTO `challan` (`id`, `inward_no`, `user_no`, `material_type`, `challan_no`, `challan_date`, `vendor_no`, `po_no`, `po_date`, `driver_name`, `driver_contact`, `tax_invoice`, `transport`, `transport_company`, `vehicle_no`, `materials`, `gross_total`, `gst_total`, `net_total`, `status`, `entry_by`, `entry_date`, `remark`, `approve_by`, `approve_date`, `receiving_status`, `inward_date`, `inward_type`, `challan_file`, `type`, `plant_id`, `weighing_procedure`, `transport_frieght`, `courier`, `person`, `po`, `is_tanker`, `vehicle_type`, `entry_time`, `dedusting`, `damage`, `next_stage`, `error`, `tax_invoice_date`, `inward`) VALUES
(613, '', 'gmpdemo1', 'Raw Material', 'C763', '2023-08-02', 'V10001', 'RM/PURHO/0051/2022-23', '2023-08-02', '', '', 'T876', 'By Air', '', '', 'null', 0.00, 0.00, 0.00, 'approve', 'master', '2023-08-02 02:37:13', '', 'master', '2023-08-02 02:38:44', 'pending', '2023-08-02 02:37:13', 'Raw Material', 'challan_file.pdf', 'From PO', '60', 'Inhouse-Weighing', '', '', '', '', 'NO', '', '14:36', '', '', 'GRN_Received', '', '2023-08-02', ''),
(614, '', 'gmpdemo1', 'Raw Material', 'C02', '2023-08-03', 'V10646', 'RM/PURHO/0052/2022-23', '2023-08-03', '', '', 'T02', 'By Air', '', '', 'null', 0.00, 0.00, 0.00, 'approve', 'master', '2023-08-03 04:17:33', '', 'master', '2023-08-03 04:18:13', 'pending', '2023-08-03 04:17:33', 'Raw Material', 'challan_file.pdf', 'From PO', '60', 'Inhouse-Weighing', '', '', '', '', 'NO', '', '16:16', '', '', 'GRN_Received', '', '2023-08-03', ''),
(615, '', 'gmpdemo1', 'Raw Material', 'C098', '2023-08-07', 'V10647', 'RM/PURHO/0053/2022-23', '2023-08-07', '', '', '80', 'By Rail', '', '', 'null', 0.00, 0.00, 0.00, 'approve', 'master', '2023-08-07 05:22:53', '', 'master', '2023-08-07 05:23:29', 'pending', '2023-08-07 05:22:53', 'Raw Material', 'challan_file.pdf', 'From PO', '60', 'Inhouse-Weighing', '', '', '', '', 'NO', '', '17:22', '', '', 'GRN_Received', '', '2023-08-23', ''),
(616, '', 'gmpdemo1', 'Raw Material', 'C086', '2023-08-08', 'V10648', 'RM/PURHO/0054/2022-23', '2023-08-08', '', '', '80', 'By Rail', '', '', 'null', 0.00, 0.00, 0.00, 'approve', 'master', '2023-08-08 03:34:55', '', 'master', '2023-08-08 03:35:41', 'pending', '2023-08-08 03:34:55', 'Raw Material', 'challan_file.pdf', 'From PO', '60', 'Inhouse-Weighing', '', '', '', '', 'NO', '', '15:34', '', '', 'Receiving_Approved', '', '2023-08-31', ''),
(617, '', 'gmpdemo1', 'Raw Material', 'C084', '2023-08-08', 'V10648', 'RM/PURHO/0055/2022-23', '2023-08-08', '', '', '60', 'By Rail', '', '', 'null', 0.00, 0.00, 0.00, 'approve', 'master', '2023-08-08 03:41:38', '', 'master', '2023-08-08 03:42:08', 'pending', '2023-08-08 03:41:38', 'Raw Material', '', 'From PO', '60', 'Inhouse-Weighing', '', '', '', '', 'NO', '', '15:41', '', '', 'GRN_Received', '', '2023-08-31', ''),
(618, '', 'gmpdemo1', 'Raw Material', 'C0654', '2023-08-31', 'V10651', 'RM/PURHO/0056/2023-24', '2023-08-31', '', '', '30', 'By Rail', '', '', 'null', 0.00, 0.00, 0.00, 'approve', 'master', '2023-08-31 12:09:04', '', 'master', '2023-08-31 12:09:41', 'pending', '2023-08-31 12:09:04', 'Raw Material', '618Relieving Letter Supriya Mam.pdf', 'From PO', '60', 'Inhouse-Weighing', '', '', '', '', 'NO', '', '12:08', '', '', 'GRN_Received', '', '2023-09-08', '');

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

--
-- Table structure for table `challan_materials`
--

CREATE TABLE `challan_materials` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `document_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `inward_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `inward_date` datetime NOT NULL,
  `challan_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material_subtype` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `grade` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `vendor` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `rec_qty` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `material_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `vendor_type` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `vendor_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `manufacturer_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `qty` decimal(10,2) NOT NULL,
  `unit` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `gst` decimal(10,2) NOT NULL,
  `quotation_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `quotation_amt` decimal(10,2) NOT NULL,
  `rate` decimal(10,2) NOT NULL,
  `received_rate` decimal(10,2) NOT NULL,
  `diff` decimal(10,2) NOT NULL,
  `required_for` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `client_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `gross_total` decimal(10,2) NOT NULL,
  `gst_total` decimal(10,2) NOT NULL,
  `net_total` decimal(10,2) NOT NULL,
  `status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `batches` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `manufacturer` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `container_type` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cleaning_type` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `challan_qty` decimal(10,2) NOT NULL,
  `received_qty` decimal(10,2) NOT NULL,
  `pack_size` decimal(10,2) NOT NULL,
  `accept_qty` decimal(10,2) NOT NULL,
  `containers` int NOT NULL,
  `receiving_details` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `po_status` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `short_qty` decimal(10,2) NOT NULL,
  `coa_received` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `container_condition` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `container_seal` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `document_status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `storage_condition` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `tanker_cleaning` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `vehicle_cleanliness` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `vehicle_condition` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `packing_condition` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `outer_packing` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `received_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `receiving_date` date DEFAULT NULL,
  `entry_time_start` time NOT NULL,
  `entry_time_end` time NOT NULL,
  `receiving` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `receiving_no` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dedusting` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `dedusting_details` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dedusting_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dedusting_date` date DEFAULT NULL,
  `damage` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `damage_details` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `weighing` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `weighing_details` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `weighing_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `balance` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `weighing_date` date DEFAULT NULL,
  `weighing_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `grn` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `grn_details` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `grn_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `retest_grn_no` varchar(20) COLLATE utf8mb3_unicode_ci NOT NULL,
  `retest_status` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'Pending',
  `grn_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `grn_date` date DEFAULT NULL,
  `urgency` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `within_days` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `labels` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `mixing` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'PENDING',
  `coa_status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `print_status` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `grncheck_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `grncheck_date` date NOT NULL,
  `vendor_coa` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `grn_receive_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `grn_remark` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dedusting_applicable` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `weighing_bridge` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `weighing_bridgestatus` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `weight` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `qty_status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `grn_grade` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `weighing_details_bkp` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `correction` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `challan_materials`
--

INSERT INTO `challan_materials` (`id`, `user_no`, `document_no`, `inward_no`, `inward_date`, `challan_no`, `material_subtype`, `material_name`, `grade`, `vendor`, `rec_qty`, `entry_date`, `material_code`, `vendor_type`, `vendor_no`, `manufacturer_no`, `qty`, `unit`, `gst`, `quotation_no`, `quotation_amt`, `rate`, `received_rate`, `diff`, `required_for`, `client_code`, `gross_total`, `gst_total`, `net_total`, `status`, `batches`, `manufacturer`, `container_type`, `cleaning_type`, `challan_qty`, `received_qty`, `pack_size`, `accept_qty`, `containers`, `receiving_details`, `po_status`, `short_qty`, `coa_received`, `container_condition`, `container_seal`, `document_status`, `storage_condition`, `tanker_cleaning`, `vehicle_cleanliness`, `vehicle_condition`, `packing_condition`, `outer_packing`, `received_by`, `receiving_date`, `entry_time_start`, `entry_time_end`, `receiving`, `receiving_no`, `dedusting`, `dedusting_details`, `dedusting_by`, `dedusting_date`, `damage`, `damage_details`, `weighing`, `weighing_details`, `weighing_by`, `balance`, `weighing_date`, `weighing_no`, `grn`, `grn_details`, `grn_no`, `retest_grn_no`, `retest_status`, `grn_by`, `grn_date`, `urgency`, `within_days`, `labels`, `mixing`, `coa_status`, `print_status`, `grncheck_by`, `grncheck_date`, `vendor_coa`, `grn_receive_remark`, `grn_remark`, `plant_id`, `dedusting_applicable`, `weighing_bridge`, `weighing_bridgestatus`, `weight`, `qty_status`, `grn_grade`, `weighing_details_bkp`, `correction`) VALUES
(522, 'gmpdemo1', 'RM-0002', '', '2023-08-02 02:37:13', 'C763', 'Raw material', '', '', '', '', '0000-00-00', 'RM00012', '', '', '', 100.00, 'Kg', 12.00, '', 400.00, 400.00, 0.00, 0.00, 'Own', '', 40000.00, 4320.00, 40320.00, 'accept', '', '', 'Bag', '', 100.00, 100.00, 0.00, 0.00, 2, '{\"pack_size\":null,\"isdamagecontainer\":\"No\",\"damange_remark\":\"\",\"packing_condition\":null,\"outer_packing\":null,\"container_type\":\"Bag\",\"container_subtype\":\"Polyethylene Bag\",\"vehicle_condition\":null,\"coa_received\":\"Yes\",\"coa_file\":\"20230802144239RESUME (1).pdf.pdf\",\"received_by\":\"master\",\"received_date\":\"2023-08-02 02:42:39\"}', '', 0.00, 'Yes', '', '', '', '', '', '', '', '', '', 'master', '2023-08-02', '13:47:00', '14:42:00', 'approve', 'REC/22/R/0522', 'approve', '{\"equipment_code\":\"001\",\"operator\":\"EC02\",\"vsdate\":\"2023-08-02\",\"vfrom_time\":\"14:05\",\"vto_time\":\"15:02\",\"area_cleaned_by\":\"EC02\",\"area_sdate\":\"2023-08-02\",\"area_cleaned_from\":\"14:05\",\"area_cleaned_to\":\"15:02\",\"equip_cleaned_by\":\"EC02\",\"equip_sdate\":\"2023-08-02\",\"equip_cleaned_from\":\"14:06\",\"equip_cleaned_to\":\"15:02\",\"id\":\"522\"}', 'master', '2023-08-02', 'no', '', 'approve', '{\"id\":\"522\",\"challan_id\":\"613\",\"balance\":\"004\",\"weight\":[],\"checklist\":[],\"check_by\":\"master\",\"check_date\":\"2023-08-02 03:41:35\"}', 'master', '004', '2023-08-02', 'WTRM-0001', 'approve', '{\"remark\":\"ok\",\"urgency\":\"WIthin 4 Day\",\"grn_grade\":[{\"id\":\"80\",\"plant_id\":\"60\",\"user_no\":\"gmpdemo1\",\"grade\":\"IP\",\"phamacopoeia_name\":\"Indian Pharmacopoeia\",\"status\":\"active\",\"entry_by\":\"master\",\"entry_date\":\"2023-08-02\"},{\"id\":\"81\",\"plant_id\":\"60\",\"user_no\":\"gmpdemo1\",\"grade\":\"BP\",\"phamacopoeia_name\":\"British Pharmacopoeia\",\"status\":\"active\",\"entry_by\":\"master\",\"entry_date\":\"2023-08-02\"}],\"id\":\"522\",\"challan_id\":\"613\",\"short_qty\":\"0.00\",\"vendor_no\":\"V10001\",\"material_code\":\"RM00012\",\"unit\":\"Kg\",\"accept_qty\":0,\"reject_qty\":0,\"batches\":[{\"id\":\"4274\",\"plant_id\":\"\",\"material_code\":\"\",\"batch_no\":\"1\",\"ar_no\":\"\",\"grn_no\":\"\",\"sampled_container\":\"\",\"material_condition\":\"\",\"sample_qty\":\"\",\"sampler_id\":\"\",\"seal_check\":\"\",\"status\":\"approve\",\"stop_batch\":\"\",\"mfg_date\":\"2023-07-05\",\"exp_date\":\"2024-06-04\",\"mfg_by\":\"V10001\",\"pack_size\":\"50\",\"total_containers\":\"2\",\"qty_received\":\"100\",\"container_no\":\"\",\"gross_wt\":\"\",\"tare_wt\":\"\",\"remark\":\"0\",\"weight\":[{\"container_no\":\"1\",\"lbgross_weight\":600,\"lbtare_weight\":100,\"lbnet_weight\":500,\"acgross_weight\":600,\"action\":\"Accept\"}],\"challan_no\":\"C763\",\"root_container\":\"1\",\"unit\":\"Kg\",\"correction\":\"\"}],\"entry_by\":\"master\",\"entry_date\":\"2023-08-02 03:43:18\"}', 'GRN/22/R/0522', '', 'Pending', '', '2023-08-02', 'WIthin 4 Day', '', 'pending', 'PENDING', '', 'pending', 'master', '2023-08-02', 'NO', 'ok', '', '', 'Yes', '', 'pending', '[]', '0', 'IP,BP', '', ''),
(523, 'gmpdemo1', 'RM-0003', '', '2023-08-03 04:17:33', 'C02', 'Raw material', '', '', '', '', '0000-00-00', 'RM00013', '', '', '', 300.00, 'Kg', 18.00, '', 520.00, 520.00, 0.00, 0.00, 'Own', '', 156000.00, 26676.00, 174876.00, 'accept', '', '', 'Bag', '', 300.00, 300.00, 0.00, 0.00, 3, '{\"pack_size\":null,\"isdamagecontainer\":\"No\",\"damange_remark\":\"\",\"packing_condition\":null,\"outer_packing\":null,\"container_type\":\"Bag\",\"container_subtype\":\"Polyethylene Bag\",\"vehicle_condition\":null,\"coa_received\":\"Yes\",\"coa_file\":\"20230803161948Ankita Bhausaheb Godase Resume.pdf.pdf\",\"received_by\":\"master\",\"received_date\":\"2023-08-03 04:19:48\"}', '', 0.00, 'Yes', '', '', '', '', '', '', '', '', '', 'master', '2023-08-03', '15:22:00', '16:19:00', 'approve', 'REC/22/R/0523', 'pending', '', '', NULL, 'no', '', 'approve', '{\"id\":\"523\",\"challan_id\":\"614\",\"balance\":\"004\",\"weight\":[{\"container_no\":\"1\",\"lbgross_weight\":650,\"lbtare_weight\":150,\"lbnet_weight\":500,\"acgross_weight\":650,\"action\":\"Accept\"}],\"checklist\":[],\"check_by\":\"master\",\"check_date\":\"2023-08-03 04:20:46\"}', 'master', '004', '2023-08-03', 'WTRM-0002', 'approve', '{\"remark\":\"ok\",\"urgency\":\"WIthin 3 Day\",\"grn_grade\":[{\"id\":\"80\",\"plant_id\":\"60\",\"user_no\":\"gmpdemo1\",\"grade\":\"IP\",\"phamacopoeia_name\":\"Indian Pharmacopoeia\",\"status\":\"active\",\"entry_by\":\"master\",\"entry_date\":\"2023-08-02\"}],\"id\":\"523\",\"challan_id\":\"614\",\"short_qty\":\"0.00\",\"vendor_no\":\"V10646\",\"material_code\":\"RM00013\",\"unit\":\"Kg\",\"accept_qty\":0,\"reject_qty\":0,\"batches\":[{\"id\":\"4275\",\"plant_id\":\"\",\"material_code\":\"\",\"batch_no\":\"1\",\"ar_no\":\"\",\"grn_no\":\"\",\"sampled_container\":\"\",\"material_condition\":\"\",\"sample_qty\":\"\",\"sampler_id\":\"\",\"seal_check\":\"\",\"status\":\"approve\",\"stop_batch\":\"\",\"mfg_date\":\"2023-06-21\",\"exp_date\":\"2024-10-16\",\"mfg_by\":\"\",\"pack_size\":\"100\",\"total_containers\":\"3\",\"qty_received\":\"300\",\"container_no\":\"\",\"gross_wt\":\"\",\"tare_wt\":\"\",\"remark\":\"0\",\"weight\":[{\"container_no\":\"1\",\"lbgross_weight\":650,\"lbtare_weight\":150,\"lbnet_weight\":500,\"acgross_weight\":650,\"action\":\"Accept\"}],\"challan_no\":\"C02\",\"root_container\":\"1\",\"unit\":\"Kg\",\"correction\":\"\"}],\"entry_by\":\"master\",\"entry_date\":\"2023-08-03 04:21:26\"}', 'GRN/22/R/0523', '', 'Pending', '', '2023-08-03', 'WIthin 3 Day', '', 'pending', 'PENDING', '', 'pending', 'master', '2023-08-03', 'NO', 'ok', '', '', 'No', '', 'pending', '[{\"container_no\":\"1\",\"lbgross_weight\":650,\"lbtare_weight\":150,\"lbnet_weight\":500,\"acgross_weight\":650,\"action\":\"Accept\"}]', '0', 'IP', '', ''),
(524, 'gmpdemo1', 'RM-0004', '', '2023-08-07 05:22:53', 'C098', 'Raw material', '', '', '', '', '0000-00-00', 'RM00014', '', '', '', 200.00, 'Kg', 7.00, '', 200.00, 200.00, 0.00, 0.00, 'Own', '', 40000.00, 2632.00, 40232.00, 'accept', '', '', 'Bag', '', 200.00, 200.00, 0.00, 0.00, 2, '{\"pack_size\":null,\"isdamagecontainer\":\"No\",\"damange_remark\":\"\",\"packing_condition\":null,\"outer_packing\":null,\"container_type\":\"Bag\",\"container_subtype\":\"Paper Bag\",\"vehicle_condition\":null,\"coa_received\":\"Yes\",\"coa_file\":\"20230807172535PHARMA_ERP_GOLD_SILVER_3.pdf.pdf\",\"received_by\":\"master\",\"received_date\":\"2023-08-07 05:25:35\"}', '', 0.00, 'Yes', '', '', '', '', '', '', '', '', '', 'master', '2023-08-07', '17:25:00', '18:25:00', 'approve', 'REC/22/R/0524', 'pending', '', '', NULL, 'no', '', 'approve', '{\"id\":\"524\",\"challan_id\":\"615\",\"balance\":\"004\",\"weight\":[{\"container_no\":\"213\",\"lbgross_weight\":300,\"lbtare_weight\":100,\"lbnet_weight\":200,\"acgross_weight\":500,\"action\":\"Accept\"}],\"checklist\":[{\"id\":\"107\",\"chklist_id\":\"84\",\"check_point\":\"Primary \",\"ch_description\":\"Store \",\"evl_pr\":\"5\",\"evl_type\":\"\",\"options\":\"\",\"qs_dtl\":\"\",\"update_date\":\"2023-08-07 08:01:59\",\"date_peparation\":\"2023-08-07 08:01:59\",\"approved_by\":\"\",\"entry_by\":\"\",\"status\":\"active\",\"module\":\"Weighing\",\"form_name\":\"Weighing\",\"department\":\"Store\"}],\"check_by\":\"master\",\"check_date\":\"2023-08-07 05:34:00\"}', 'master', '004', '2023-08-07', 'WTRM-0003', 'approve', '{\"remark\":\"OK\",\"urgency\":\"Immediate\",\"grn_grade\":[{\"id\":\"80\",\"plant_id\":\"60\",\"user_no\":\"gmpdemo1\",\"grade\":\"IP\",\"phamacopoeia_name\":\"Indian Pharmacopoeia\",\"status\":\"active\",\"entry_by\":\"master\",\"entry_date\":\"2023-08-02\"},{\"id\":\"81\",\"plant_id\":\"60\",\"user_no\":\"gmpdemo1\",\"grade\":\"BP\",\"phamacopoeia_name\":\"British Pharmacopoeia\",\"status\":\"active\",\"entry_by\":\"master\",\"entry_date\":\"2023-08-02\"}],\"id\":\"524\",\"challan_id\":\"615\",\"short_qty\":\"0.00\",\"vendor_no\":\"V10647\",\"material_code\":\"RM00014\",\"unit\":\"Kg\",\"accept_qty\":0,\"reject_qty\":0,\"batches\":[{\"id\":\"4276\",\"plant_id\":\"\",\"material_code\":\"\",\"batch_no\":\"B031\",\"ar_no\":\"\",\"grn_no\":\"\",\"sampled_container\":\"\",\"material_condition\":\"\",\"sample_qty\":\"\",\"sampler_id\":\"\",\"seal_check\":\"\",\"status\":\"approve\",\"stop_batch\":\"\",\"mfg_date\":\"2023-08-07\",\"exp_date\":\"2023-08-31\",\"mfg_by\":\"V10647\",\"pack_size\":\"100\",\"total_containers\":\"2\",\"qty_received\":\"200\",\"container_no\":\"\",\"gross_wt\":\"\",\"tare_wt\":\"\",\"remark\":\"0\",\"weight\":[{\"container_no\":\"213\",\"lbgross_weight\":300,\"lbtare_weight\":100,\"lbnet_weight\":200,\"acgross_weight\":500,\"action\":\"Accept\"}],\"challan_no\":\"C098\",\"root_container\":\"1\",\"unit\":\"Kg\",\"correction\":\"\"}],\"entry_by\":\"master\",\"entry_date\":\"2023-08-07 05:35:34\"}', 'GRN/22/R/0524', '', 'Pending', '', '2023-08-07', 'Immediate', '', 'pending', 'PENDING', '', 'pending', 'master', '2023-08-07', 'NO', 'ok', '', '', 'No', '', 'pending', '[{\"container_no\":\"213\",\"lbgross_weight\":300,\"lbtare_weight\":100,\"lbnet_weight\":200,\"acgross_weight\":500,\"action\":\"Accept\"}]', '0', 'IP,BP', '', ''),
(525, 'gmpdemo1', 'RM-0005', '', '2023-08-08 03:34:55', 'C086', 'Raw material', '', '', '', '', '0000-00-00', 'RM00015', '', '', '', 200.00, 'Kg', 6.00, '', 300.00, 300.00, 0.00, 0.00, 'Own', '', 60000.00, 3420.00, 60420.00, 'inprocess', '', '', 'Bag', '', 200.00, 200.00, 0.00, 0.00, 40, '{\"pack_size\":null,\"isdamagecontainer\":\"No\",\"damange_remark\":\"\",\"packing_condition\":null,\"outer_packing\":null,\"container_type\":\"Bag\",\"container_subtype\":\"Paper Bag\",\"vehicle_condition\":null,\"coa_received\":\"Yes\",\"coa_file\":\"20230808153730PGMP_PLAN_FORMLN_APRIL22_1_2.pdf.pdf\",\"received_by\":\"master\",\"received_date\":\"2023-08-08 03:37:30\"}', '', 0.00, 'Yes', '', '', '', '', '', '', '', '', '', 'master', '2023-08-08', '15:37:00', '15:41:00', 'approve', 'REC/22/R/0525', 'pending', '', '', NULL, 'no', '', 'pending', '', '', '', NULL, '', 'pending', '', '', '', 'Pending', '', NULL, '', '', 'pending', 'PENDING', '', 'pending', '', '0000-00-00', '', '', '', '', 'No', '', 'pending', '', '0', '', '', ''),
(526, 'gmpdemo1', 'RM-0006', '', '2023-08-08 03:41:38', 'C084', 'Raw material', '', '', '', '', '0000-00-00', 'RM00015', '', '', '', 100.00, 'Kg', 6.00, '', 300.00, 300.00, 0.00, 0.00, '', '', 30000.00, 1800.00, 31800.00, 'accept', '', '', 'Bag', '', 100.00, 100.00, 0.00, 0.00, 46, '{\"pack_size\":null,\"isdamagecontainer\":\"No\",\"damange_remark\":\"\",\"packing_condition\":null,\"outer_packing\":null,\"container_type\":\"Bag\",\"container_subtype\":\"Paper Bag\",\"vehicle_condition\":null,\"coa_received\":\"Yes\",\"coa_file\":\"\",\"received_by\":\"master\",\"received_date\":\"2023-08-08 03:45:13\"}', '', 0.00, 'Yes', '', '', '', '', '', '', '', '', '', 'master', '2023-08-08', '14:45:00', '16:45:00', 'approve', 'REC/22/R/0526', 'pending', '', '', NULL, 'no', '', 'approve', '{\"id\":\"526\",\"challan_id\":\"617\",\"balance\":\"004\",\"weight\":[{\"container_no\":\"55\",\"lbgross_weight\":500,\"lbtare_weight\":100,\"lbnet_weight\":400,\"acgross_weight\":600,\"action\":\"Accept\"},{\"container_no\":\"332\",\"lbgross_weight\":600,\"lbtare_weight\":200,\"lbnet_weight\":400,\"acgross_weight\":700,\"action\":\"Accept\"}],\"checklist\":[{\"id\":\"107\",\"chklist_id\":\"84\",\"check_point\":\"Primary \",\"ch_description\":\"Store \",\"evl_pr\":\"5\",\"evl_type\":\"\",\"options\":\"\",\"qs_dtl\":\"\",\"update_date\":\"2023-08-07 08:01:59\",\"date_peparation\":\"2023-08-07 08:01:59\",\"approved_by\":\"\",\"entry_by\":\"\",\"status\":\"active\",\"module\":\"Weighing\",\"form_name\":\"Weighing\",\"department\":\"Store\"}],\"check_by\":\"master\",\"check_date\":\"2023-08-08 03:47:13\"}', 'master', '004', '2023-08-08', 'WTRM-0004', 'approve', '{\"remark\":\"OK\",\"urgency\":\"Immediate\",\"grn_grade\":[{\"id\":\"80\",\"plant_id\":\"60\",\"user_no\":\"gmpdemo1\",\"grade\":\"IP\",\"phamacopoeia_name\":\"Indian Pharmacopoeia\",\"status\":\"active\",\"entry_by\":\"master\",\"entry_date\":\"2023-08-02\"},{\"id\":\"81\",\"plant_id\":\"60\",\"user_no\":\"gmpdemo1\",\"grade\":\"BP\",\"phamacopoeia_name\":\"British Pharmacopoeia\",\"status\":\"active\",\"entry_by\":\"master\",\"entry_date\":\"2023-08-02\"}],\"id\":\"526\",\"challan_id\":\"617\",\"short_qty\":\"0.00\",\"vendor_no\":\"V10648\",\"material_code\":\"RM00015\",\"unit\":\"Kg\",\"accept_qty\":0,\"reject_qty\":0,\"batches\":[{\"id\":\"4278\",\"plant_id\":\"\",\"material_code\":\"\",\"batch_no\":\"B087\",\"ar_no\":\"\",\"grn_no\":\"\",\"sampled_container\":\"\",\"material_condition\":\"\",\"sample_qty\":\"\",\"sampler_id\":\"\",\"seal_check\":\"\",\"status\":\"approve\",\"stop_batch\":\"\",\"mfg_date\":\"2023-08-08\",\"exp_date\":\"2023-08-31\",\"mfg_by\":\"V10648\",\"pack_size\":\"6\",\"total_containers\":\"16\",\"qty_received\":\"100\",\"container_no\":\"\",\"gross_wt\":\"\",\"tare_wt\":\"\",\"remark\":\"0\",\"weight\":[{\"container_no\":\"55\",\"lbgross_weight\":500,\"lbtare_weight\":100,\"lbnet_weight\":400,\"acgross_weight\":600,\"action\":\"Accept\"},{\"container_no\":\"332\",\"lbgross_weight\":600,\"lbtare_weight\":200,\"lbnet_weight\":400,\"acgross_weight\":700,\"action\":\"Accept\"}],\"challan_no\":\"C084\",\"root_container\":\"2\",\"unit\":\"Kg\",\"correction\":\"\"}],\"entry_by\":\"master\",\"entry_date\":\"2023-08-08 03:47:51\"}', 'GRN/22/R/0526', '', 'Pending', '', '2023-08-08', 'Immediate', '', 'pending', 'PENDING', '', 'pending', 'master', '2023-08-08', 'NO', 'ok', '', '', 'No', '', 'pending', '[{\"container_no\":\"55\",\"lbgross_weight\":500,\"lbtare_weight\":100,\"lbnet_weight\":400,\"acgross_weight\":600,\"action\":\"Accept\"},{\"container_no\":\"332\",\"lbgross_weight\":600,\"lbtare_weight\":200,\"lbnet_weight\":400,\"acgross_weight\":700,\"action\":\"Accept\"}]', '0', 'IP,BP', '', ''),
(527, 'gmpdemo1', 'RM-0007', '', '2023-08-31 12:09:04', 'C0654', 'Raw material', '', '', '', '', '0000-00-00', 'RM000653', '', '', '', 300.00, 'Kg', 4.00, '', 200.00, 200.00, 0.00, 0.00, 'Own', '', 60000.00, 2328.00, 60528.00, 'accept', '', '', 'Bag', '', 300.00, 300.00, 0.00, 0.00, 3, '{\"pack_size\":null,\"isdamagecontainer\":\"No\",\"damange_remark\":\"\",\"packing_condition\":null,\"outer_packing\":null,\"container_type\":\"Bag\",\"container_subtype\":\"Paper Bag\",\"vehicle_condition\":null,\"coa_received\":\"Yes\",\"coa_file\":\"20230831121135PHARMA_ERP_GOLD_SILVER_3.pdf.pdf\",\"received_by\":\"master\",\"received_date\":\"2023-08-31 12:11:35\"}', '', 0.00, 'Yes', '', '', '', '', '', '', '', '', '', 'master', '2023-08-31', '12:11:00', '13:11:00', 'approve', 'REC/22/R/0527', 'pending', '', '', NULL, 'no', '', 'approve', '{\"id\":\"527\",\"challan_id\":\"618\",\"balance\":\"004\",\"weight\":[{\"container_no\":\"1\",\"lbgross_weight\":500,\"lbtare_weight\":200,\"lbnet_weight\":300,\"acgross_weight\":600,\"action\":\"Accept\"}],\"checklist\":[{\"id\":\"107\",\"chklist_id\":\"84\",\"check_point\":\"Primary \",\"ch_description\":\"Store \",\"evl_pr\":\"5\",\"evl_type\":\"\",\"options\":\"\",\"qs_dtl\":\"\",\"update_date\":\"2023-08-07 08:01:59\",\"date_peparation\":\"2023-08-07 08:01:59\",\"approved_by\":\"\",\"entry_by\":\"\",\"status\":\"active\",\"module\":\"Weighing\",\"form_name\":\"Weighing\",\"department\":\"Store\"}],\"check_by\":\"master\",\"check_date\":\"2023-08-31 12:25:53\"}', 'master', '004', '2023-08-31', 'WTRM-0005', 'approve', '{\"remark\":\"OK\",\"urgency\":\"Immediate\",\"grn_grade\":[{\"id\":\"80\",\"plant_id\":\"60\",\"user_no\":\"gmpdemo1\",\"grade\":\"IP\",\"phamacopoeia_name\":\"Indian Pharmacopoeia\",\"status\":\"active\",\"entry_by\":\"master\",\"entry_date\":\"2023-08-02\"},{\"id\":\"81\",\"plant_id\":\"60\",\"user_no\":\"gmpdemo1\",\"grade\":\"BP\",\"phamacopoeia_name\":\"British Pharmacopoeia\",\"status\":\"active\",\"entry_by\":\"master\",\"entry_date\":\"2023-08-02\"}],\"id\":\"527\",\"challan_id\":\"618\",\"short_qty\":\"0.00\",\"vendor_no\":\"V10651\",\"material_code\":\"RM000653\",\"unit\":\"Kg\",\"accept_qty\":0,\"reject_qty\":0,\"batches\":[{\"id\":\"4279\",\"plant_id\":\"\",\"material_code\":\"\",\"batch_no\":\"B077\",\"ar_no\":\"\",\"grn_no\":\"\",\"sampled_container\":\"\",\"material_condition\":\"\",\"sample_qty\":\"\",\"sampler_id\":\"\",\"seal_check\":\"\",\"status\":\"approve\",\"stop_batch\":\"\",\"mfg_date\":\"2023-08-31\",\"exp_date\":\"2023-09-30\",\"mfg_by\":\"V10651\",\"pack_size\":\"100\",\"total_containers\":\"3\",\"qty_received\":\"300\",\"container_no\":\"\",\"gross_wt\":\"\",\"tare_wt\":\"\",\"remark\":\"0\",\"weight\":[{\"container_no\":\"1\",\"lbgross_weight\":500,\"lbtare_weight\":200,\"lbnet_weight\":300,\"acgross_weight\":600,\"action\":\"Accept\"}],\"challan_no\":\"C0654\",\"root_container\":\"1\",\"unit\":\"Kg\",\"correction\":\"\"}],\"entry_by\":\"master\",\"entry_date\":\"2023-08-31 12:26:48\"}', 'GRN/22/R/0527', '', 'Pending', '', '2023-08-31', 'Immediate', '', 'pending', 'PENDING', '', 'pending', 'master', '2023-08-31', 'NO', 'ok', '', '', 'Yes', '', 'pending', '[{\"container_no\":\"1\",\"lbgross_weight\":500,\"lbtare_weight\":200,\"lbnet_weight\":300,\"acgross_weight\":600,\"action\":\"Accept\"}]', '0', 'IP,BP', '', '');

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

--
-- Table structure for table `changecontrol`
--

CREATE TABLE `changecontrol` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `ctrl_no` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `department` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `change_related` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `change_title` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `existing_procedure` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `proposed_change` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `change_reason` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `export` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'no',
  `domastic` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'no',
  `impact_product` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_details` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `check_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `check_date` datetime DEFAULT NULL,
  `check_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dept_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `classifications` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `verify_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `verify_date` datetime DEFAULT NULL,
  `verify_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_date` datetime DEFAULT NULL,
  `approve_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `close_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `close_date` datetime DEFAULT NULL,
  `close_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `capa` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `capa_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `reason_for_changes` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `change_interlinked` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `product_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `batch_no` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `impact_quality` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `description` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `proposal` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `changes_category` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `information_customer` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `market_approval` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `validation_required` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `comments` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `market_details` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `cc_level` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `departments` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `c_no1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `change_action`
--

CREATE TABLE `change_action` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `action` varchar(999) NOT NULL,
  `department_name` varchar(50) NOT NULL,
  `employee` varchar(50) NOT NULL,
  `target_date` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL,
  `ccpermanant_id` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `change_comments`
--

CREATE TABLE `change_comments` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `ctrl_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `department` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,
  `status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime DEFAULT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `chat_message`
--

CREATE TABLE `chat_message` (
  `id` int NOT NULL,
  `to_user_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `from_user_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `chat_message` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `checklist`
--

CREATE TABLE `checklist` (
  `id` int NOT NULL,
  `checklist_for` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `checklist_name` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `format_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `revision_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `checkpoints` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `prepared_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `prepared_date` date NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'APPROVED',
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `checklist_master`
--

CREATE TABLE `checklist_master` (
  `id` int NOT NULL,
  `department` varchar(50) NOT NULL,
  `designation` varchar(50) NOT NULL,
  `check_point` varchar(50) NOT NULL,
  `checkList` text NOT NULL,
  `entry_by` varchar(50) NOT NULL,
  `entry_date` datetime NOT NULL,
  `plant_id` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `checklist_transaction`
--

CREATE TABLE `checklist_transaction` (
  `id` int NOT NULL,
  `trans_id` varchar(100) NOT NULL,
  `chk_id` int NOT NULL,
  `plant_id` int NOT NULL,
  `module` varchar(100) NOT NULL,
  `form` varchar(100) NOT NULL,
  `deprt` varchar(100) NOT NULL,
  `params` varchar(100) NOT NULL,
  `chk_type` varchar(100) NOT NULL,
  `chk_value` varchar(500) NOT NULL,
  `creation_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `correction` varchar(100) NOT NULL,
  `rm` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `checklist_transaction`
--

INSERT INTO `checklist_transaction` (`id`, `trans_id`, `chk_id`, `plant_id`, `module`, `form`, `deprt`, `params`, `chk_type`, `chk_value`, `creation_date`, `correction`, `rm`) VALUES
(6148, 'REC/22/R/0522', 103, 60, 'Receiving', 'Receiving', 'Store', 'Check 1', '3', 'OK', '2023-08-02 05:12:39', '', ''),
(6149, 'REC/22/R/0523', 103, 60, 'Receiving', 'Receiving', 'Store', 'Check 1', '3', 'OK', '2023-08-03 06:49:48', '', ''),
(6150, 'REC/22/R/0524', 103, 60, 'Receiving', 'Receiving', 'Store', 'Check 1', '3', 'OK', '2023-08-07 07:55:35', '', ''),
(6151, '615', 107, 60, 'Weighing', 'Weighing', 'Store', 'Primary ', '5', '', '2023-08-07 08:03:27', '', ''),
(6152, 'REC/22/R/0525', 103, 60, 'Receiving', 'Receiving', 'Store', 'Check 1', '3', 'OK', '2023-08-08 06:07:30', '', ''),
(6153, 'REC/22/R/0526', 103, 60, 'Receiving', 'Receiving', 'Store', 'Check 1', '3', 'OK', '2023-08-08 06:15:13', '', ''),
(6154, '617', 107, 60, 'Weighing', 'Weighing', 'Store', 'Primary ', '5', '', '2023-08-08 06:16:34', '', ''),
(6155, 'REC/22/R/0527', 103, 60, 'Receiving', 'Receiving', 'Store', 'Check 1', '3', 'OK', '2023-08-31 02:41:35', '', ''),
(6156, '618', 107, 60, 'Weighing', 'Weighing', 'Store', 'Primary ', '5', '', '2023-08-31 02:55:43', '', '');

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

--
-- Table structure for table `check_list`
--

CREATE TABLE `check_list` (
  `id` int NOT NULL,
  `review_heading` varchar(50) NOT NULL,
  `review_point` varchar(10) NOT NULL,
  `grade` varchar(10) NOT NULL,
  `marks` varchar(10) NOT NULL,
  `alert_grade` varchar(10) NOT NULL,
  `entry_by` varchar(50) NOT NULL,
  `entry_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `chemical`
--

CREATE TABLE `chemical` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `chemical_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `chemical_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `molecular_wt` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `pack_size` decimal(10,2) NOT NULL,
  `cas_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `grade` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `make` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `unit` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `gst` decimal(10,2) NOT NULL,
  `hsn` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(15) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `approve_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_date` datetime DEFAULT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `chemical`
--

INSERT INTO `chemical` (`id`, `user_no`, `chemical_no`, `chemical_name`, `molecular_wt`, `pack_size`, `cas_name`, `grade`, `make`, `unit`, `gst`, `hsn`, `status`, `entry_by`, `entry_date`, `approve_by`, `approve_date`, `plant_id`) VALUES
(261, 'gmpdemo1', 'C-0001', 'L - Ascorbic Acid', '176.12', 0.00, '50-81-7', 'AR', '[]', '', 0.00, '', 'approve', 'master', '2023-08-02', '', NULL, '60'),
(262, 'gmpdemo1', 'C-0262', 'Ethanol Absolute Anhydrous', '46.08', 0.00, '64-17-5', 'AR', '[]', '', 0.00, '', 'approve', 'master', '2023-08-02', '', NULL, '60');

--
-- Triggers `chemical`
--
DELIMITER $$
CREATE TRIGGER `chemical_no_insert` BEFORE INSERT ON `chemical` FOR EACH ROW BEGIN

SET @lastID = (SELECT id FROM chemical ORDER BY id DESC LIMIT 1);
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.chemical_no = concat('C-', LPAD(CONVERT(@lastID, CHAR), 4, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `chemical_indend`
--

CREATE TABLE `chemical_indend` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `indend_no` varchar(6) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `chemical_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `req_qty` decimal(10,2) NOT NULL,
  `unit` varchar(6) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'Litre',
  `requirement` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `purpose` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `vendor_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `required_for` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `client_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `days` int NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `check_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `check_date` datetime DEFAULT NULL,
  `approve_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_date` datetime DEFAULT NULL,
  `quotation_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `order_qty` decimal(10,2) NOT NULL,
  `quotation_amt` decimal(10,2) NOT NULL,
  `quotation_per` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `gst` decimal(10,2) NOT NULL,
  `gross_total` decimal(10,2) NOT NULL,
  `gst_total` decimal(10,2) NOT NULL,
  `net_total` decimal(10,2) NOT NULL,
  `po_status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Triggers `chemical_indend`
--
DELIMITER $$
CREATE TRIGGER `chemical_indend_no_insert` BEFORE INSERT ON `chemical_indend` FOR EACH ROW BEGIN

SET @lastID = (SELECT id FROM chemical_indend ORDER BY id DESC LIMIT 1);
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.indend_no = concat('CI-', LPAD(CONVERT(@lastID, CHAR), 3, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `chem_manufaturer`
--

CREATE TABLE `chem_manufaturer` (
  `id` int NOT NULL,
  `chemical_id` varchar(50) NOT NULL,
  `vendor_no` varchar(50) NOT NULL,
  `vendor_name` varchar(50) NOT NULL,
  `plant_id` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `city`
--

CREATE TABLE `city` (
  `id` int NOT NULL,
  `country` varchar(50) NOT NULL,
  `state_name` varchar(50) NOT NULL,
  `city` varchar(50) NOT NULL,
  `std_code` varchar(50) NOT NULL,
  `entry_by` varchar(50) NOT NULL,
  `entry_date` datetime(6) NOT NULL,
  `status` varchar(50) NOT NULL DEFAULT 'active',
  `plant_id` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Triggers `client`
--
DELIMITER $$
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.client_code = concat('CL-', LPAD(CONVERT(@lastID, CHAR), 3, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `client_document`
--

CREATE TABLE `client_document` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `request_no` varchar(6) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `client_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `document_type` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `documents` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `required_in` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Triggers `client_document`
--
DELIMITER $$
CREATE TRIGGER `request_no_insert` BEFORE INSERT ON `client_document` FOR EACH ROW BEGIN

SET @lastID = (SELECT id FROM client_document ORDER BY id DESC LIMIT 1);
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.request_no = concat('DR', LPAD(CONVERT(@lastID, CHAR), 4, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `client_feedback`
--

CREATE TABLE `client_feedback` (
  `id` int NOT NULL,
  `client_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `feedback_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `feedback` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `client_quotation`
--

CREATE TABLE `client_quotation` (
  `id` int NOT NULL,
  `user_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `quotation_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `client_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `branch` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `materials` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `terms` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `approve_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_date` datetime DEFAULT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Triggers `client_quotation`
--
DELIMITER $$
CREATE TRIGGER `client_quotation_insert` BEFORE INSERT ON `client_quotation` FOR EACH ROW BEGIN

SET @lastID = (SELECT id FROM client_quotation ORDER BY id DESC LIMIT 1);
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.quotation_no = concat('QO', LPAD(CONVERT(@lastID, CHAR), 4, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `colony`
--

CREATE TABLE `colony` (
  `id` int NOT NULL,
  `activity` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `from_batch` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `to_batch` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `done_by` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `remark` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `colony_calibration`
--

CREATE TABLE `colony_calibration` (
  `id` int NOT NULL,
  `equipment_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `details` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `conclusion` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'PENDING',
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `color`
--

CREATE TABLE `color` (
  `id` int NOT NULL,
  `color` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `color`
--

INSERT INTO `color` (`id`, `color`, `plant_id`) VALUES
(9, 'Red', '');

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

--
-- Table structure for table `color1`
--

CREATE TABLE `color1` (
  `id` int NOT NULL,
  `color` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Triggers `company`
--
DELIMITER $$
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.company_code = concat('C', LPAD(CONVERT(@lastID, CHAR), 4, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `company_unit`
--

CREATE TABLE `company_unit` (
  `id` int NOT NULL,
  `user_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `unit` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `type` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `complaint`
--

CREATE TABLE `complaint` (
  `id` int NOT NULL,
  `client_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `complaint_nature` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `complaint_date` date NOT NULL,
  `product_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `mfg_date` date NOT NULL,
  `exp_date` date NOT NULL,
  `complaint_description` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `complaint_action`
--

CREATE TABLE `complaint_action` (
  `id` int NOT NULL,
  `complaint_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `action_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `action` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `component_master`
--

CREATE TABLE `component_master` (
  `id` int NOT NULL,
  `component_name` varchar(255) NOT NULL,
  `parent_id` int DEFAULT NULL,
  `icon` varchar(255) DEFAULT NULL,
  `Is_checked` varchar(255) NOT NULL DEFAULT 'false',
  `created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `consoladated`
--

CREATE TABLE `consoladated` (
  `id` int NOT NULL,
  `user_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `work_order_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `client_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `po_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `po_date` date NOT NULL,
  `po_type` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `unit` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `estimate_qty` decimal(10,2) NOT NULL,
  `available_qty` decimal(10,2) NOT NULL,
  `short_qty` decimal(10,2) NOT NULL,
  `batches` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `suggested` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `materials` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `approve_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_date` datetime DEFAULT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Triggers `consoladated`
--
DELIMITER $$
CREATE TRIGGER `consoladated_no_insert` BEFORE INSERT ON `consoladated` FOR EACH ROW BEGIN

SET @lastID = (SELECT id FROM consoladated ORDER BY id DESC LIMIT 1);
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.no = concat('C', LPAD(CONVERT(@lastID, CHAR), 5, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `container`
--

CREATE TABLE `container` (
  `id` int NOT NULL,
  `entry_by` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `container_type` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `container_no` int NOT NULL,
  `container_ml` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `contractor_bill`
--

CREATE TABLE `contractor_bill` (
  `id` int NOT NULL,
  `contractor_bill_id` int NOT NULL DEFAULT '35',
  `date` date NOT NULL,
  `month` varchar(100) NOT NULL,
  `labours_no` int NOT NULL,
  `file_bill1` int NOT NULL,
  `gents` varchar(50) NOT NULL,
  `gents_per_wages` int NOT NULL,
  `operators` varchar(50) NOT NULL,
  `operators_per_wages` int NOT NULL,
  `womens` varchar(50) NOT NULL,
  `womens_per_wages` int NOT NULL,
  `i_no1` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `controlsample_rack`
--

CREATE TABLE `controlsample_rack` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `rack_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `rack_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `subrack` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `approve_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_date` datetime DEFAULT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `controlsample_review`
--

CREATE TABLE `controlsample_review` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `user_no` varchar(100) NOT NULL,
  `no` int NOT NULL,
  `reason` varchar(100) NOT NULL,
  `description` varchar(100) NOT NULL,
  `remark` varchar(100) NOT NULL,
  `over_printing` varchar(100) NOT NULL,
  `color_change` varchar(100) NOT NULL,
  `observation` varchar(100) NOT NULL,
  `entry_by` varchar(100) NOT NULL,
  `entry_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `control_sample`
--

CREATE TABLE `control_sample` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `cs_id` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material_type` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_no` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_size` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `ar_no` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `analysis_date` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `release_date` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `mfg_date` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `exp_date` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `done_by` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `sampling_date` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `sample_quantity` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `unit` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `sample_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `pack_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `rack_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `checked_by` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `room_temp` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `humidity` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `department` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `approve_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_date` datetime DEFAULT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Triggers `control_sample`
--
DELIMITER $$
CREATE TRIGGER `control_sample_no_insert` BEFORE INSERT ON `control_sample` FOR EACH ROW BEGIN

SET @lastID = (SELECT id FROM control_sample ORDER BY id DESC LIMIT 1);
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.cs_id = concat('CS-', LPAD(CONVERT(@lastID, CHAR), 3, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `costing`
--

CREATE TABLE `costing` (
  `id` int NOT NULL,
  `costing_type` varchar(50) NOT NULL,
  `product_for` varchar(50) NOT NULL,
  `product_code` varchar(50) NOT NULL,
  `batch_size` varchar(50) NOT NULL,
  `doller_value` varchar(50) NOT NULL,
  `materials` varchar(50) NOT NULL,
  `analytical_cost` varchar(50) NOT NULL,
  `ccpc_cost` varchar(50) NOT NULL,
  `fright_cost` varchar(50) NOT NULL,
  `other_cost` varchar(50) NOT NULL,
  `batch_cost` varchar(50) NOT NULL,
  `unit_cost` varchar(50) NOT NULL,
  `pack_cost` varchar(50) NOT NULL,
  `entry_by` varchar(50) NOT NULL,
  `entry_date` datetime NOT NULL,
  `plant_id` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `country`
--

CREATE TABLE `country` (
  `id` int NOT NULL,
  `country` varchar(50) NOT NULL,
  `isd_code` varchar(50) NOT NULL,
  `entry_by` varchar(50) NOT NULL,
  `entry_date` datetime(6) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'active',
  `plant_id` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `critiera_master`
--

CREATE TABLE `critiera_master` (
  `id` int NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `weighing` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `tolerance` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime(6) NOT NULL,
  `entry_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `culture`
--

CREATE TABLE `culture` (
  `id` int NOT NULL,
  `culture_name` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `atcc_no` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `source` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `opening_culture` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `maintanance` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `transfer_date` date NOT NULL,
  `slant_no` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `generation_no` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `lot_no` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `done_by` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `growth_observe` int NOT NULL,
  `purity` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `check_by` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `next_transfer` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `culture_identification`
--

CREATE TABLE `culture_identification` (
  `id` int NOT NULL,
  `organism_name` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `atcc_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `feature` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `feature_gram` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `microscope` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `done_by` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `check_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `daikin_chilling`
--

CREATE TABLE `daikin_chilling` (
  `id` int NOT NULL,
  `load_per` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `EWT_CHW` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `LWT_CHW` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `eva_gas_pr` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `EWT_COW` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `LWT_COW` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cond_gas_per` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `comp1_run_hr` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `comp1_kwh` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `comp2_run_hr` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `comp2_kwh` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `energy_reading` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `supply_pressure` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `tank_level_hot` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `tank_level_cold` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `entry_time` time NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `daily_training`
--

CREATE TABLE `daily_training` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `subject` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `training_time` time NOT NULL,
  `trainer_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `venue` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `participants` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `check_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `check_date` datetime DEFAULT NULL,
  `approve_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_date` datetime DEFAULT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `department`
--

CREATE TABLE `department` (
  `id` int NOT NULL,
  `user_no` varchar(20) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `department_type` varchar(20) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'Non Technical',
  `department_code` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL,
  `department_name` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `department_building` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'active',
  `entry_by` varchar(20) COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `plant_id` varchar(20) COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `department`
--

INSERT INTO `department` (`id`, `user_no`, `department_type`, `department_code`, `department_name`, `department_building`, `status`, `entry_by`, `entry_date`, `plant_id`) VALUES
(1, 'gmpdemo1', 'Non Technical', '1', 'Human Resource', '1', 'active', '', '0000-00-00 00:00:00', '64'),
(2, 'gmpdemo1', 'Technical', '2', 'Quality Control', '1', 'active', '', '0000-00-00 00:00:00', '64'),
(4, 'gmpdemo1', 'Non Technical', '4', 'Account', '', 'active', '', '0000-00-00 00:00:00', '64'),
(5, 'gmpdemo1', 'Non Technical', '5', 'Security', '', 'active', '', '0000-00-00 00:00:00', '28'),
(7, 'gmpdemo1', 'Non Technical', '7', 'Purchase', '', 'active', '', '0000-00-00 00:00:00', '28'),
(9, 'gmpdemo1', 'Technical', '8', 'Quality Assurance', '', 'active', '', '0000-00-00 00:00:00', '28'),
(10, 'gmpdemo1', 'Non Technical', '9', 'Microbiology', '', 'active', '', '0000-00-00 00:00:00', '28'),
(11, 'gmpdemo1', 'Non Technical', '10', 'Engineering', '', 'active', '', '0000-00-00 00:00:00', '28'),
(12, 'gmpdemo1', 'Non Technical', '11', 'Store', '', 'active', '', '0000-00-00 00:00:00', '28'),
(13, 'gmpdemo1', 'Non Technical', '12', 'Packing', '', 'active', '', '0000-00-00 00:00:00', '28'),
(15, 'gmpdemo1', 'Non Technical', '15', 'R & D', '', 'active', '', '0000-00-00 00:00:00', '28'),
(16, 'gmpdemo1', 'Non Technical', '16', 'Marketing', '', 'active', '', '0000-00-00 00:00:00', '28'),
(17, 'gmpdemo1', 'Non Technical', '17', 'Vendor', '', 'active', '', '0000-00-00 00:00:00', '28'),
(18, 'gmpdemo1', 'Non Technical', '18', 'Management', '', 'active', '', '0000-00-00 00:00:00', '28'),
(19, 'gmpdemo1', 'Non Technical', '19', 'Planning', '', 'active', '', '0000-00-00 00:00:00', '28'),
(20, 'gmpdemo1', 'Non Technical', '20', 'Admin', '', 'active', '', '0000-00-00 00:00:00', '28'),
(21, 'gmpdemo1', 'Non Technical', '21', 'IPQA', '', 'active', '', '0000-00-00 00:00:00', '28'),
(23, 'gmpdemo1', 'Non Technical', '23', 'Regulatory', '', 'active', '', '0000-00-00 00:00:00', '28'),
(24, 'gmpdemo1', 'Non Technical', '24', 'EHS', '', 'active', '', '0000-00-00 00:00:00', '28'),
(25, 'gmpdemo1', 'Non Technical', '25', 'Enginering Store', '', 'active', '', '0000-00-00 00:00:00', '28'),
(34, 'gmpdemo1', 'Non Technical', '28', 'Production', '', 'active', '', '0000-00-00 00:00:00', '28'),
(35, 'gmpdemo1', 'Non Technical', '29', 'Business Development', '', 'active', '', '0000-00-00 00:00:00', '28'),
(37, 'gmpdemo1', 'Non Technical', '31', 'F & D', '', 'active', '', '0000-00-00 00:00:00', '28'),
(38, 'gmpdemo1', 'Non Technical', '33', 'IPQC ', '', 'active', '', '0000-00-00 00:00:00', '67');

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

--
-- Table structure for table `department_review`
--

CREATE TABLE `department_review` (
  `id` int NOT NULL,
  `emp_name` varchar(100) NOT NULL,
  `emp_id` varchar(50) NOT NULL,
  `joining_date` varchar(50) NOT NULL,
  `year_service` varchar(50) NOT NULL,
  `designation` varchar(100) NOT NULL,
  `last_date` varchar(50) NOT NULL,
  `year_appraisal` varchar(50) NOT NULL,
  `result` varchar(50) NOT NULL,
  `special_appraisal` varchar(100) NOT NULL,
  `request_appraisal` varchar(70) NOT NULL,
  `head_recomded` varchar(50) NOT NULL,
  `assign` varchar(100) NOT NULL,
  `entry_by` varchar(100) NOT NULL,
  `entry_date` datetime NOT NULL,
  `department` varchar(50) NOT NULL,
  `plant_id` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `deprt_formname`
--

CREATE TABLE `deprt_formname` (
  `id` int NOT NULL,
  `department_id` varchar(100) NOT NULL,
  `form_name` varchar(100) NOT NULL,
  `module_name` varchar(50) NOT NULL,
  `form_type` varchar(100) NOT NULL COMMENT 'User,Check,Approver,Approved,Log',
  `routing_link` varchar(200) NOT NULL,
  `creation_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `designation`
--

CREATE TABLE `designation` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `dept_id` int NOT NULL,
  `designation_heading` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `designation` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `responsibilities` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `entry_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_date` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `designation`
--

INSERT INTO `designation` (`id`, `user_no`, `dept_id`, `designation_heading`, `designation`, `responsibilities`, `status`, `entry_by`, `entry_date`, `approve_by`, `approve_date`, `plant_id`) VALUES
(68, 'gmpdemo1', 11, 'ENG', 'EXECUTIVE', '[]', 'pending', 'master', '2023-08-02 10:59:41', '', '', '60'),
(69, 'gmpdemo1', 11, 'ENG', 'OFFICER', '[]', 'pending', 'master', '2023-08-02 11:00:21', '', '', '60'),
(70, 'gmpdemo1', 9, 'QA', 'EXECUTIVE', '[]', 'pending', 'master', '2023-08-02 11:01:03', '', '', '60'),
(71, 'gmpdemo1', 9, 'QA', 'OFFICER', '[]', 'pending', 'master', '2023-08-02 11:01:29', '', '', '60'),
(72, 'gmpdemo1', 2, 'QC', 'EXECUTIVE', '[]', 'pending', 'master', '2023-08-02 11:02:03', '', '', '60'),
(73, 'gmpdemo1', 2, 'QC', 'OFFICER', '[]', 'pending', 'master', '2023-08-02 11:02:53', '', '', '60'),
(74, 'gmpdemo1', 10, 'MICRO', 'EXECUTIVE', '[]', 'pending', 'master', '2023-08-02 11:04:07', '', '', '60'),
(75, 'gmpdemo1', 10, 'MICRO', 'OFFICER', '[]', 'pending', 'master', '2023-08-02 11:04:34', '', '', '60'),
(76, 'gmpdemo1', 34, 'PRD', 'EXECUTIVE', '[]', 'pending', 'master', '2023-08-02 11:15:32', '', '', '60'),
(77, 'gmpdemo1', 34, 'PRD', 'OFFICER', '[]', 'pending', 'master', '2023-08-02 11:16:13', '', '', '60'),
(78, 'gmpdemo1', 12, 'STR', 'EXECUTIVE', '[]', 'pending', 'master', '2023-08-02 11:31:10', '', '', '60'),
(79, 'gmpdemo1', 12, 'STR', 'OFFICER', '[]', 'pending', 'master', '2023-08-02 11:33:04', '', '', '60'),
(80, 'gmpdemo1', 1, 'HR', 'EXECUTIVE', '[]', 'pending', 'master', '2023-08-02 11:35:27', '', '', '60'),
(81, 'gmpdemo1', 1, 'HR', 'OFFICER', '[]', 'pending', 'master', '2023-08-02 11:35:46', '', '', '60'),
(82, 'gmpdemo1', 13, 'PCK', 'OFFICER', '[]', 'pending', 'master', '2023-08-27 03:31:37', '', '', '60'),
(83, 'gmpdemo1', 4, 'ACCT', 'SR, OFFICER', '[]', 'pending', 'master', '2023-08-27 05:01:06', '', '', '60'),
(84, 'gmpdemo1', 20, 'DESIGNEE', 'OFFICER', '[]', 'pending', 'master', '2023-08-27 05:06:54', '', '', '60'),
(85, 'gmpdemo1', 11, 'OPTR', 'RO OPERATOR', '[]', 'pending', 'master', '2023-08-27 05:14:01', '', '', '60'),
(86, 'gmpdemo1', 34, 'OPTR', 'MACHINE OPERATOR', '[]', 'pending', 'master', '2023-08-27 05:15:00', '', '', '60'),
(87, 'gmpdemo1', 2, 'Activity Operater', 'MSC', '[]', 'pending', 'master', '2023-08-31 02:30:08', '', '', '60'),
(88, 'gmpdemo1', 2, 'Activity Operater', 'Activity Operater', '[{\"responsibility\":\"Testing\"}]', 'pending', 'master', '2023-08-31 02:34:38', '', '', '60');

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

--
-- Table structure for table `destruction`
--

CREATE TABLE `destruction` (
  `id` int NOT NULL,
  `entry_by` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `destroy_after` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `unit` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `type` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `deviation`
--

CREATE TABLE `deviation` (
  `id` int NOT NULL,
  `deviation_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `deviation_for` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material_code` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `stage` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `document_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `observed_in` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `description` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `immediate_action` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `impact_assessment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `impact_other` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `initiate_dept` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `initiate_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `initiate_date` date NOT NULL,
  `status` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'PENDING',
  `initiate_check_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `inititate_check_date` date DEFAULT NULL,
  `classification` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `initiate_verify_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `inititate_verify_date` date DEFAULT NULL,
  `deviation_status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `rca_prepared` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `justification` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `initiate_approve_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `inititate_approve_date` date DEFAULT NULL,
  `investigation_details` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `investigation_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `investigation_date` date DEFAULT NULL,
  `quality_impact` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `category` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `assessment_impact` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `assessment_risk` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `risk_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `previously_occured` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `prev_ref_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `issamerootcause` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `root_ref_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `prev_investigation` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `prev_investigation_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `assessment_comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `deviation_cause` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `assessment_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `assessment_date` date DEFAULT NULL,
  `correct_action` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `remidial_action` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `prevent_action` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `actionplan_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `actionplan_date` date DEFAULT NULL,
  `recommendation` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_disposition` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `qa_comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `recommend_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `recommend_date` date DEFAULT NULL,
  `cqa_comment` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `evaluation_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `evaluation_date` date NOT NULL,
  `close_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `close_date` date DEFAULT NULL,
  `dev_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `i_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `departments` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `related_to` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `type` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cause` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `affecting_product` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `affecting_equipment` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `materials` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `products` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `equipments` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `department_review` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `product_details` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `equip_details` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Triggers `deviation`
--
DELIMITER $$
CREATE TRIGGER `deviation_no_insert` BEFORE INSERT ON `deviation` FOR EACH ROW BEGIN

SET @lastID = (SELECT id FROM deviation ORDER BY id DESC LIMIT 1);
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.deviation_no = concat('DV/', LPAD(CONVERT(@lastID, CHAR), 4, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `deviation_comments`
--

CREATE TABLE `deviation_comments` (
  `id` int NOT NULL,
  `dev_no` int NOT NULL,
  `departments` int NOT NULL,
  `status` int NOT NULL,
  `comment` int NOT NULL,
  `entry_by` int NOT NULL,
  `entry_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `deviation_files`
--

CREATE TABLE `deviation_files` (
  `id` int NOT NULL,
  `deviation_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `particular` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `file` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `dinamic_pass_box`
--

CREATE TABLE `dinamic_pass_box` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `equipment_id` varchar(10) NOT NULL,
  `diff_pressure` int NOT NULL,
  `uv_burning_hours` int NOT NULL,
  `entry_by` varchar(10) NOT NULL,
  `checked_by` varchar(10) NOT NULL,
  `approved_by` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `disinfectant_solution`
--

CREATE TABLE `disinfectant_solution` (
  `id` int NOT NULL,
  `plant_name` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `disinfectant_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `disinfectant_qty` decimal(10,2) NOT NULL,
  `water_qty` decimal(10,2) NOT NULL,
  `total_volume` decimal(10,2) NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'PENDING',
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `check_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `check_date` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `disinfect_solution`
--

CREATE TABLE `disinfect_solution` (
  `id` int NOT NULL,
  `disinfectant` varchar(20) NOT NULL,
  `qty_disinfectant` varchar(20) NOT NULL,
  `qty_water` varchar(20) NOT NULL,
  `volume` varchar(25) NOT NULL,
  `prepared_by` varchar(25) NOT NULL,
  `entry_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `dispatch`
--

CREATE TABLE `dispatch` (
  `id` int NOT NULL,
  `dispatch_name` varchar(50) NOT NULL,
  `entry_by` varchar(50) NOT NULL,
  `entry_date` datetime NOT NULL,
  `plant_id` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `dispensing`
--

CREATE TABLE `dispensing` (
  `id` int NOT NULL,
  `user_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `dispensing_for` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `document_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_code` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `batch_size` varchar(60) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `request_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `request_date` datetime NOT NULL,
  `balance_id` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `laf_id` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `laf_start_time` time NOT NULL,
  `laf_pressure` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `laf_stop_time` time NOT NULL,
  `pressure` decimal(10,2) NOT NULL,
  `complete_date` datetime DEFAULT NULL,
  `receiving` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `calculate_api` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `receive_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `receive_date` datetime DEFAULT NULL,
  `dispensing_date` date NOT NULL,
  `checkpoints` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `min_output_qty` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `max_output_qty` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `cleaned_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `dispensing_details_hdr`
--

CREATE TABLE `dispensing_details_hdr` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `qa_checking` varchar(3) NOT NULL,
  `prod_checking` varchar(3) NOT NULL,
  `material_code` varchar(25) NOT NULL,
  `batch_no` varchar(50) NOT NULL,
  `containers` text NOT NULL,
  `ars` text NOT NULL,
  `gross_total` decimal(10,2) NOT NULL,
  `net_total` decimal(10,2) NOT NULL,
  `tare_total` decimal(10,2) NOT NULL,
  `unit` varchar(15) NOT NULL,
  `dispensing_room` varchar(50) NOT NULL,
  `done_by` varchar(50) NOT NULL,
  `entry_by` varchar(25) NOT NULL,
  `entry_date` datetime NOT NULL,
  `lot_id` int NOT NULL,
  `pm_hdr_id` int NOT NULL,
  `status` varchar(15) NOT NULL DEFAULT 'Pending',
  `pressure_reading` varchar(25) NOT NULL,
  `rlaf_start` time NOT NULL,
  `prod_status` varchar(15) NOT NULL DEFAULT 'Pending',
  `prod_approved_by` varchar(25) NOT NULL,
  `prod_approved_date` datetime NOT NULL,
  `qa_status` varchar(15) NOT NULL DEFAULT 'Pending',
  `qa_approved_by` varchar(25) NOT NULL,
  `qa_approved_date` datetime NOT NULL,
  `batch_plan_id` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `dispensing_materials`
--

CREATE TABLE `dispensing_materials` (
  `id` int NOT NULL,
  `user_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `dispensing_no` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `material_code` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `operator_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `qty` decimal(10,2) NOT NULL,
  `unit` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `overages` decimal(10,2) NOT NULL,
  `role` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `gross_wt` decimal(10,2) NOT NULL,
  `tare_wt` decimal(10,2) NOT NULL,
  `net_wt` decimal(10,2) NOT NULL,
  `containers` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `ars` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `done_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `check_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime DEFAULT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `qa_checking` varchar(3) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `prod_checking` varchar(3) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `container_number` varchar(25) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `descripancy_observed` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `descripancy_remarks` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `division`
--

CREATE TABLE `division` (
  `id` int NOT NULL,
  `location` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `pincode` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` datetime NOT NULL,
  `entry_by` datetime NOT NULL,
  `division_name` varchar(22) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `document`
--

CREATE TABLE `document` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `document` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  `entry_by` varchar(25) NOT NULL,
  `entry_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `document_index`
--

CREATE TABLE `document_index` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `department` varchar(50) NOT NULL,
  `document_name` varchar(50) NOT NULL,
  `document_no` varchar(50) NOT NULL,
  `document_version` varchar(50) NOT NULL,
  `effective_date` varchar(50) NOT NULL,
  `next_review_date` varchar(50) NOT NULL,
  `document_types` varchar(50) NOT NULL,
  `upload` varchar(50) NOT NULL,
  `entry_date` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `document_requisition_log`
--

CREATE TABLE `document_requisition_log` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `department` varchar(50) NOT NULL,
  `document_name` varchar(50) NOT NULL,
  `version` varchar(50) NOT NULL,
  `expiry_date` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL,
  `copy_req` varchar(50) NOT NULL,
  `document_form` varchar(50) NOT NULL,
  `format_no` varchar(50) NOT NULL,
  `entry_date` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `document_training`
--

CREATE TABLE `document_training` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `department` varchar(50) NOT NULL,
  `subject` varchar(50) NOT NULL,
  `training_on` varchar(50) NOT NULL,
  `equipment` varchar(50) NOT NULL,
  `equipment_id` varchar(50) NOT NULL,
  `description` text NOT NULL,
  `employeeList` mediumtext NOT NULL,
  `proposed_date` date NOT NULL,
  `proposed_trainer` varchar(50) NOT NULL,
  `entry_by` varchar(50) NOT NULL,
  `entry_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `doc_management`
--

CREATE TABLE `doc_management` (
  `id` int NOT NULL,
  `document_name` varchar(100) NOT NULL,
  `document_type` varchar(100) NOT NULL,
  `document_no` varchar(100) NOT NULL,
  `document_version` varchar(100) NOT NULL,
  `effective_date` varchar(100) NOT NULL,
  `next_review_date` varchar(100) NOT NULL,
  `document_types` varchar(100) NOT NULL,
  `upload` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `dosage_form`
--

CREATE TABLE `dosage_form` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `type` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dosage_form` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `product_code` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `checkpoints` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `dose_units`
--

CREATE TABLE `dose_units` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `dose_unit_name` varchar(25) NOT NULL,
  `entry_by` varchar(25) NOT NULL,
  `entry_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `dose_units`
--

INSERT INTO `dose_units` (`id`, `plant_id`, `dose_unit_name`, `entry_by`, `entry_date`) VALUES
(19, 60, 'gm', 'master', '2023-08-04 11:50:23');

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

--
-- Table structure for table `dossier_dmf`
--

CREATE TABLE `dossier_dmf` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `material_name` varchar(50) NOT NULL,
  `product_name` varchar(50) NOT NULL,
  `request` varchar(50) NOT NULL,
  `dossage_form` varchar(50) NOT NULL,
  `for_client` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL,
  `client_name` varchar(50) NOT NULL,
  `client_country` varchar(50) NOT NULL,
  `urgency` varchar(50) NOT NULL,
  `product_comp` varchar(50) NOT NULL,
  `country` varchar(50) NOT NULL,
  `sample_req` varchar(50) NOT NULL,
  `qty` varchar(50) NOT NULL,
  `unit` varchar(50) NOT NULL,
  `person_name` varchar(50) NOT NULL,
  `status` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `dossier_entry`
--

CREATE TABLE `dossier_entry` (
  `id` int NOT NULL,
  `user_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'gmpdemo1',
  `dossier_req_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `brand_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `generic_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `label_claim` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `finished_product_life` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `packing_style` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `country` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `mfg_by` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `marketed_by` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `mfg_address` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `marketing_address` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `applicant_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `market_product` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `dossier_lang` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `registered_product` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `client_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `document_checklist` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `requisition_date` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `expected_date` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `requisition_prepared` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `special_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approval_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `acceptance_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `file` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `apis` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `status` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'pending',
  `i_no1` int NOT NULL,
  `entry_by` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Triggers `dossier_entry`
--
DELIMITER $$
CREATE TRIGGER `dossier_requisition_no` BEFORE INSERT ON `dossier_entry` FOR EACH ROW BEGIN

SET @lastID = (SELECT id FROM dossier_entry ORDER BY id DESC LIMIT 1);
IF @lastID IS NULL OR @lastID = '' THEN
    SET @lastID = 0;
END IF;
SET @lastID = @lastID +1;
SET NEW.dossier_req_id = concat('D1', LPAD(CONVERT(@lastID, CHAR), 4, '0'));
END
$$
DELIMITER ;

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

--
-- Table structure for table `earthing_points`
--

CREATE TABLE `earthing_points` (
  `id` int NOT NULL,
  `location` varchar(255) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `id_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `earthing_test`
--

CREATE TABLE `earthing_test` (
  `id` int NOT NULL,
  `test_no` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `test_date` date NOT NULL,
  `locations` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `done_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `check_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `approve_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `edits`
--

CREATE TABLE `edits` (
  `id` int NOT NULL,
  `update_id` int NOT NULL,
  `plant_id` int NOT NULL,
  `receiving_edit` varchar(2000) NOT NULL,
  `weighing_edit` varchar(2000) NOT NULL,
  `dedusting_edit` varchar(2000) NOT NULL,
  `grn_edit` varchar(2000) NOT NULL,
  `sampling_all_edit` varchar(2000) NOT NULL,
  `sampling_edit` varchar(2000) NOT NULL,
  `testing_edit` varchar(2000) NOT NULL,
  `ar_edit` varchar(2000) NOT NULL,
  `coa_edit` varchar(255) NOT NULL,
  `specification_edit` varchar(2000) NOT NULL,
  `bom_edit` varchar(2000) NOT NULL,
  `unit_formula_edit` varchar(2000) NOT NULL,
  `edited_by` varchar(2000) NOT NULL,
  `edit_date` varchar(2000) NOT NULL,
  `inciden_report_no` varchar(2000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `electric_operation`
--

CREATE TABLE `electric_operation` (
  `id` int NOT NULL,
  `start_time` time NOT NULL,
  `stop_time` time NOT NULL,
  `meter01` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `meter02` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `electrician` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_by` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `entry_date` date NOT NULL,
  `plant_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

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

--
-- Table structure for table `employee1`
--

CREATE TABLE `employee1` (
  `id` int NOT NULL,
  `employee_type` varchar(20) NOT NULL DEFAULT 'Non Technical',
  `emp_id` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `firstname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `department` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `qualification` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `gender` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `designation` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `isuser` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `ischecker` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `isapprover` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,
  `status` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'active',
  `plant_id` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `employee_agreement`
--

CREATE TABLE `employee_agreement` (
  `id` int NOT NULL,
  `agreement_id` varchar(10) NOT NULL DEFAULT 'Agid0045',
  `entry_date` date NOT NULL,
  `agreement_title` varchar(100) NOT NULL,
  `company_name` varchar(100) NOT NULL,
  `employee_name` varchar(100) NOT NULL,
  `description` varchar(100) NOT NULL,
  `agreement_date` date NOT NULL,
  `file_agreement` text NOT NULL,
  `legal_form` varchar(100) NOT NULL,
  `i_no1` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `emp_document`
--

CREATE TABLE `emp_document` (
  `did` int NOT NULL,
  `emp_no` varchar(50) NOT NULL,
  `document_type` varchar(200) NOT NULL,
  `description` varchar(200) NOT NULL,
  `doc_file_name` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

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

--
-- Table structure for table `emp_rights`
--

CREATE TABLE `emp_rights` (
  `id` int NOT NULL,
  `user_no` varchar(20) NOT NULL DEFAULT 'gmpdemo1',
  `emp_id` varchar(20) NOT NULL,
  `module` varchar(50) NOT NULL,
  `form_name` varchar(50) NOT NULL,
  `isuser` varchar(20) NOT NULL DEFAULT 'true',
  `ischecker` varchar(20) NOT NULL DEFAULT 'true',
  `isapprover` varchar(20) NOT NULL DEFAULT 'true',
  `qms_approver` varchar(15) NOT NULL,
  `dept_head` varchar(25) NOT NULL,
  `isauditor` varchar(10) NOT NULL DEFAULT 'false',
  `user_rights` text,
  `additional` text NOT NULL,
  `rights` varchar(20) NOT NULL,
  `ismail` varchar(10) NOT NULL,
  `iscontact` varchar(10) NOT NULL,
  `mail_id` varchar(50) NOT NULL,
  `contact_no` varchar(20) NOT NULL,
  `from_date` date NOT NULL,
  `to_date` date DEFAULT NULL,
  `status` varchar(20) NOT NULL DEFAULT 'pending',
  `entry_by` varchar(20) NOT NULL,
  `entry_date` datetime NOT NULL,
  `update_by` varchar(20) NOT NULL,
  `update_date` date DEFAULT NULL,
  `plant_id` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `emp_rights`
--

INSERT INTO `emp_rights` (`id`, `user_no`, `emp_id`, `module`, `form_name`, `isuser`, `ischecker`, `isapprover`, `qms_approver`, `dept_head`, `isauditor`, `user_rights`, `additional`, `rights`, `ismail`, `iscontact`, `mail_id`, `contact_no`, `from_date`, `to_date`, `status`, `entry_by`, `entry_date`, `update_by`, `update_date`, `plant_id`) VALUES
(43, 'gmpdemo1', 'master', '', '', 'true', 'true', 'true', 'true', 'true', 'false', NULL, '[]', '', '', '', '', '', '0000-00-00', NULL, 'approve', 'master', '2022-11-28 05:12:09', '', NULL, ''),
(44, 'gmpdemo1', 'master', '', '', 'true', 'true', 'true', 'true', 'true', 'false', NULL, '[]', '', '', '', '', '', '0000-00-00', NULL, 'approve', 'master', '2023-08-02 06:14:03', '', NULL, ''),
(45, 'gmpdemo1', 'master', '', '', 'true', 'true', 'true', 'true', 'true', 'false', NULL, '[]', '', '', '', '', '', '0000-00-00', NULL, 'approve', 'master', '2023-08-03 05:03:52', '', NULL, ''),
(46, 'gmpdemo1', 'EC07', '', '', 'false', 'true', 'false', 'false', 'false', 'false', '', '[]', '', '', '', '', '', '0000-00-00', NULL, 'approve', 'master', '2023-08-03 05:24:30', '', NULL, ''),
(47, 'gmpdemo1', 'EC07', '', '', 'true', 'true', 'true', 'true', 'true', 'false', NULL, '[]', '', '', '', '', '', '0000-00-00', NULL, 'approve', 'master', '2023-08-03 05:24:49', '', NULL, '');

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

--
-- Table structure for table `emp_rights_dtl`
--

CREATE TABLE `emp_rights_dtl` (
  `id` int NOT NULL,
  `emp_id` varchar(50) NOT NULL,
  `isuser` varchar(50) NOT NULL,
  `ischecker` varchar(50) NOT NULL,
  `isapprover` varchar(50) NOT NULL,
  `module_name` varchar(50) NOT NULL,
  `form_type` varchar(50) NOT NULL,
  `form_name` varchar(50) NOT NULL,
  `user_access` varchar(50) NOT NULL,
  `plant_id` int NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

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

--
-- Table structure for table `emp_salary_details`
--

CREATE TABLE `emp_salary_details` (
  `id` int NOT NULL,
  `plant_id` int NOT NULL,
  `month` varchar(11) NOT NULL,
  `year` int NOT NULL,
  `emp_code` varchar(25) NOT NULL,
  `salary_details` text NOT NULL,
  `entry_by` varchar(20) NOT NULL,
  `entry_date` datetime NOT NULL,
  `status` varchar(10) NOT NULL DEFAULT 'Pending',
  `management_approved` varchar(50) NOT NULL,
  `management_date` date NOT NULL,
  `account_stetus` varchar(50) NOT NULL,
  `transaction_table` date NOT NULL,
  `approved_by` int NOT NULL,
  `approved_date` datetime NOT NULL,
  `send_to_clearance` varchar(3) NOT NULL DEFAULT 'No',
  `send_to_finance` varchar(3) NOT NULL DEFAULT 'No'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `emp_salary_details`
--

INSERT INTO `emp_salary_details` (`id`, `plant_id`, `month`, `year`, `emp_code`, `salary_details`, `entry_by`, `entry_date`, `status`, `management_approved`, `management_date`, `account_stetus`, `transaction_table`, `approved_by`, `approved_date`, `send_to_clearance`, `send_to_finance`) VALUES
(16, 60, '06', 2023, 'EC05', '{\"emp_id\":\"EC05\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"52\",\"absent_days\":-25,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-06-30 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'Yes', 'No'),
(17, 60, '06', 2023, 'EC05', '{\"emp_id\":\"EC05\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"52\",\"absent_days\":-25,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-06-30 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(18, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(19, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(20, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(21, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(22, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(23, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(24, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(25, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(26, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(27, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(28, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(29, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(30, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(31, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(32, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(33, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(34, 60, '01', 1970, '', '{\"emp_id\":null,\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"2\",\"absent_days\":25,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '1970-01-01 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(35, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(36, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(37, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(38, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(39, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(40, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(41, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(42, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(43, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(44, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(45, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(46, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(47, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(48, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(49, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(50, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(51, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(52, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(53, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(54, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(55, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(56, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(57, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(58, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(59, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(60, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(61, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(62, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(63, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(64, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(65, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(66, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(67, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(68, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(69, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(70, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(71, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(72, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(73, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(74, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(75, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(76, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(77, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(78, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(79, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(80, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(81, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(82, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(83, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(84, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No');
INSERT INTO `emp_salary_details` (`id`, `plant_id`, `month`, `year`, `emp_code`, `salary_details`, `entry_by`, `entry_date`, `status`, `management_approved`, `management_date`, `account_stetus`, `transaction_table`, `approved_by`, `approved_date`, `send_to_clearance`, `send_to_finance`) VALUES
(85, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(86, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(87, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(88, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(89, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(90, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(91, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(92, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(93, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(94, 60, '08', 2023, '0001', '{\"emp_id\":\"0001\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(95, 60, '08', 2023, '0018', '{\"emp_id\":\"0018\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"4\",\"absent_days\":23,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(96, 60, '08', 2023, '0002', '{\"emp_id\":\"0002\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(97, 60, '08', 2023, '0020', '{\"emp_id\":\"0020\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"1\",\"absent_days\":26,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(98, 60, '08', 2023, '0015', '{\"emp_id\":\"0015\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"2\",\"absent_days\":25,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(99, 60, '08', 2023, '0016', '{\"emp_id\":\"0016\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"3\",\"absent_days\":24,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(100, 60, '08', 2023, '0017', '{\"emp_id\":\"0017\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"2\",\"absent_days\":25,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(101, 60, '08', 2023, '0004', '{\"emp_id\":\"0004\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"2\",\"absent_days\":25,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(102, 60, '08', 2023, '0009', '{\"emp_id\":\"0009\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"2\",\"absent_days\":25,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(103, 60, '08', 2023, '0028', '{\"emp_id\":\"0028\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"3\",\"absent_days\":24,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(104, 60, '08', 2023, '0030', '{\"emp_id\":\"0030\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"2\",\"absent_days\":25,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(105, 60, '08', 2023, '0031', '{\"emp_id\":\"0031\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"2\",\"absent_days\":25,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(106, 60, '08', 2023, '0032', '{\"emp_id\":\"0032\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"2\",\"absent_days\":25,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(107, 60, '08', 2023, '0033', '{\"emp_id\":\"0033\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"2\",\"absent_days\":25,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(108, 60, '08', 2023, '0034', '{\"emp_id\":\"0034\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"2\",\"absent_days\":25,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No'),
(109, 60, '08', 2023, '0035', '{\"emp_id\":\"0035\",\"emp_name\":null,\"department\":\"Production\",\"designation\":null,\"present_days\":\"2\",\"absent_days\":25,\"take_home_salary\":null,\"salary_slip_id\":null,\"Basic Salary\":null,\"HRA\":null,\"other\":null,\"Special Allowance\":null,\"earned_gross\":\"0.00\",\"PF Contribution By Employer\":null,\"ESI Contribution By Employer\":null,\"Bonus\":null,\"Gratuity\":null,\"mediclaim\":\"300.00\",\"Professional Tax\":null,\"PF Contribution By Employee\":null,\"ESI Contribution By Employee\":null,\"deduction\":\"0.00\",\"inhand\":\"0.00\"}', 'master', '2023-08-28 00:00:00', 'Pending', '', '0000-00-00', '', '0000-00-00', 0, '0000-00-00 00:00:00', 'No', 'No');

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

--
